Skip to content

Commit

Permalink
Add a page for ME/CFS & LongCOVID.
Browse files Browse the repository at this point in the history
  • Loading branch information
yjcyxky committed Mar 15, 2024
1 parent 1514b37 commit f2e4d9a
Show file tree
Hide file tree
Showing 5 changed files with 428 additions and 2 deletions.
10 changes: 9 additions & 1 deletion studio/config/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,13 @@ import * as icons from "@ant-design/icons";
import type { MenuDataItem } from '@ant-design/pro-components';

export const routes = [
{
path: '/knowledge-table',
name: 'ME/CFS & LongCOVID',
icon: 'table',
component: './KnowledgeTable',
category: 'knowledge-graph'
},
{
path: '/predict-model',
name: 'Predict Drug/Target',
Expand Down Expand Up @@ -61,7 +68,8 @@ export const routes = [
},
{
path: '/',
redirect: '/predict-model',
// redirect: '/predict-model',
redirect: '/knowledge-table',
},
{
component: './404',
Expand Down
1 change: 1 addition & 0 deletions studio/src/components/Header/extra.less
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
.right-content {
.ant-menu {
height: 46px;
display: flex;
}

Expand Down
2 changes: 1 addition & 1 deletion studio/src/global.less
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ body,
}

.ant-layout-content {
height: calc(100vh - 48px);
height: calc(100vh - 46px);
margin: 0;
padding: 0;
// overflow-y: scroll;
Expand Down
20 changes: 20 additions & 0 deletions studio/src/pages/KnowledgeTable/index.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
.knowledge-table-container {
display: flex;
width: 100%;
height: 100%;
padding: 0 20px;

.ant-pagination {
margin: 10px 0 !important;
}

.button-container {
z-index: 100;
top: 10px;
position: absolute;

.ant-btn {
margin-right: 5px;
}
}
}
Loading

0 comments on commit f2e4d9a

Please sign in to comment.