@@ -20,54 +20,57 @@ import { Config, defaultConfig } from './config'
2020import Eplant from './Eplant'
2121
2222import './css/index.css'
23- const router = createBrowserRouter ( [
24- {
25- path : '/' ,
26- element : < Eplant /> ,
27- children : [
28- {
29- element : < Navigate to = { 'gene-info/' } replace = { true } > </ Navigate > ,
30- } ,
31- {
32- path : 'cell-efp/:geneid?' ,
33- element : < CellEFPView > </ CellEFPView > ,
34- } ,
35- {
36- path : 'publications/:geneid?' ,
37- element : < PublicationsViewer > </ PublicationsViewer > ,
38- } ,
39- {
40- path : 'chromosome/:geneid?' ,
41- element : < ChromosomeView > </ ChromosomeView > ,
42- } ,
43- {
44- path : 'plant-efp/:geneid?' ,
45- element : < PlantEFPView > </ PlantEFPView > ,
46- } ,
47- {
48- path : 'experiment-efp/:geneid?' ,
49- element : < ExperimentEFPView > </ ExperimentEFPView > ,
50- } ,
51- {
52- path : 'gene-info/:geneid?' ,
53- element : < GeneInfoView > </ GeneInfoView > ,
54- } ,
55- {
56- path : 'get-started/:geneid?' ,
57- element : < GetStartedView > </ GetStartedView > ,
58- } ,
59- {
60- path : 'navigator-view/:geneid?' ,
61- element : < NavigatorViewObject > </ NavigatorViewObject > ,
62- } ,
63- {
64- path : 'interactions-view/:geneid?' ,
65- element : < InteractionsViewObject > </ InteractionsViewObject > ,
66- } ,
67- ] ,
68- errorElement : < ErrorBoundary > </ ErrorBoundary > ,
69- } ,
70- ] , { basename : import . meta. env . BASE_URL ?? '/' } )
23+ const router = createBrowserRouter (
24+ [
25+ {
26+ path : '/' ,
27+ element : < Eplant /> ,
28+ children : [
29+ {
30+ element : < Navigate to = { 'gene-info/' } replace = { true } > </ Navigate > ,
31+ } ,
32+ {
33+ path : 'cell-efp/:geneid?' ,
34+ element : < CellEFPView > </ CellEFPView > ,
35+ } ,
36+ {
37+ path : 'publications/:geneid?' ,
38+ element : < PublicationsViewer > </ PublicationsViewer > ,
39+ } ,
40+ {
41+ path : 'chromosome/:geneid?' ,
42+ element : < ChromosomeView > </ ChromosomeView > ,
43+ } ,
44+ {
45+ path : 'plant-efp/:geneid?' ,
46+ element : < PlantEFPView > </ PlantEFPView > ,
47+ } ,
48+ {
49+ path : 'experiment-efp/:geneid?' ,
50+ element : < ExperimentEFPView > </ ExperimentEFPView > ,
51+ } ,
52+ {
53+ path : 'gene-info/:geneid?' ,
54+ element : < GeneInfoView > </ GeneInfoView > ,
55+ } ,
56+ {
57+ path : 'get-started/:geneid?' ,
58+ element : < GetStartedView > </ GetStartedView > ,
59+ } ,
60+ {
61+ path : 'navigator-view/:geneid?' ,
62+ element : < NavigatorViewObject > </ NavigatorViewObject > ,
63+ } ,
64+ {
65+ path : 'interactions-view/:geneid?' ,
66+ element : < InteractionsViewObject > </ InteractionsViewObject > ,
67+ } ,
68+ ] ,
69+ errorElement : < ErrorBoundary > </ ErrorBoundary > ,
70+ } ,
71+ ] ,
72+ { basename : import . meta. env . BASE_URL ?? '/' }
73+ )
7174
7275export const queryClient = new QueryClient ( )
7376
0 commit comments