forked from Sage-Bionetworks/synapse-web-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
PORTALS-3195 - Migrate cancer complexity portal to react-router v6
- Loading branch information
Showing
26 changed files
with
1,280 additions
and
1,023 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
39 changes: 39 additions & 0 deletions
39
apps/portals/cancercomplexity/src/config/explorePageRoutes.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
import React from 'react' | ||
import { RouteObject } from 'react-router-dom' | ||
import { QueryWrapperPlotNav } from 'synapse-react-client' | ||
import { | ||
datasetsQueryWrapperPlotNavProps, | ||
educationQueryWrapperPlotNavProps, | ||
grantQueryWrapperPlotNavProps, | ||
peopleQueryWrapperPlotNavProps, | ||
publicationsQueryWrapperPlotNavProps, | ||
toolsQueryWrapperPlotNavProps, | ||
} from './synapseConfigs' | ||
|
||
const explorePageRoutes = [ | ||
{ | ||
path: 'Grants', | ||
element: <QueryWrapperPlotNav {...grantQueryWrapperPlotNavProps} />, | ||
}, | ||
{ | ||
path: 'People', | ||
element: <QueryWrapperPlotNav {...peopleQueryWrapperPlotNavProps} />, | ||
}, | ||
{ | ||
path: 'Publications', | ||
element: <QueryWrapperPlotNav {...publicationsQueryWrapperPlotNavProps} />, | ||
}, | ||
{ | ||
path: 'Datasets', | ||
element: <QueryWrapperPlotNav {...datasetsQueryWrapperPlotNavProps} />, | ||
}, | ||
{ | ||
path: 'Tools', | ||
element: <QueryWrapperPlotNav {...toolsQueryWrapperPlotNavProps} />, | ||
}, | ||
{ | ||
path: 'Educational Resources', | ||
element: <QueryWrapperPlotNav {...educationQueryWrapperPlotNavProps} />, | ||
}, | ||
] satisfies RouteObject[] | ||
export default explorePageRoutes |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import { NavbarConfig } from '@sage-bionetworks/synapse-portal-framework/components/navbar/Navbar' | ||
|
||
export const navbarConfig: NavbarConfig = { | ||
routes: [ | ||
{ | ||
name: 'Home', | ||
path: '/', | ||
children: [ | ||
{ name: 'Portal Goals', path: '/#Portal Goals' }, | ||
{ | ||
name: 'What Research Themes are Scientists Currently Focusing On?', | ||
path: '/#What Research Themes are Scientists Currently Focusing On?', | ||
}, | ||
{ name: "What's New", path: "/#What's New" }, | ||
{ name: 'Consortia', path: '/#Consortia' }, | ||
{ | ||
name: 'The Cancer Resource Information Ecosystem', | ||
path: '/#The Cancer Resource Information Ecosystem', | ||
}, | ||
{ | ||
name: 'About the Cancer Complexity Knowledge Portal', | ||
path: '/#About the Cancer Complexity Knowledge Portal', | ||
}, | ||
], | ||
}, | ||
{ | ||
name: 'Explore', | ||
path: '/Explore', | ||
children: [ | ||
{ name: 'Grants', path: '/Explore/Grants' }, | ||
{ name: 'People', path: '/Explore/People' }, | ||
{ name: 'Publications', path: '/Explore/Publications' }, | ||
{ | ||
name: 'Datasets', | ||
path: '/Explore/Datasets', | ||
}, | ||
{ | ||
name: 'Tools', | ||
path: '/Explore/Tools', | ||
}, | ||
{ | ||
name: 'Educational Resources', | ||
path: '/Explore/Educational Resources', | ||
}, | ||
], | ||
}, | ||
{ | ||
name: 'Intranet', | ||
path: 'https://sites.google.com/sagebase.org/mc2intranet/home?authuser=0', | ||
}, | ||
{ | ||
name: 'News', | ||
path: 'https://news.cancercomplexity.synapse.org/', | ||
}, | ||
{ | ||
name: 'Help', | ||
path: 'https://help.cancercomplexity.synapse.org/', | ||
}, | ||
], | ||
} |
22 changes: 0 additions & 22 deletions
22
apps/portals/cancercomplexity/src/config/routeControlWrapperProps.ts
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.