diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 7cc3418..17b4c0f 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -4,7 +4,6 @@ on: branches-ignore: - main - staging - - staging-debug pull_request: jobs: build: diff --git a/Eplant/main.tsx b/Eplant/main.tsx index f7f1b3a..5260001 100644 --- a/Eplant/main.tsx +++ b/Eplant/main.tsx @@ -20,54 +20,59 @@ import { Config, defaultConfig } from './config' import Eplant from './Eplant' import './css/index.css' -const router = createBrowserRouter([ +const router = createBrowserRouter( + [ + { + path: '/', + element: , + children: [ + { + element: , + }, + { + path: 'cell-efp/:geneid?', + element: , + }, + { + path: 'publications/:geneid?', + element: , + }, + { + path: 'chromosome/:geneid?', + element: , + }, + { + path: 'plant-efp/:geneid?', + element: , + }, + { + path: 'experiment-efp/:geneid?', + element: , + }, + { + path: 'gene-info/:geneid?', + element: , + }, + { + path: 'get-started/:geneid?', + element: , + }, + { + path: 'navigator-view/:geneid?', + element: , + }, + { + path: 'interactions-view/:geneid?', + element: , + }, + ], + errorElement: , + }, + ], { - path: '/', - element: , - children: [ - { - element: , - }, - { - path: 'cell-efp/:geneid?', - element: , - }, - { - path: 'publications/:geneid?', - element: , - }, - { - path: 'chromosome/:geneid?', - element: , - }, - { - path: 'plant-efp/:geneid?', - element: , - }, - { - path: 'experiment-efp/:geneid?', - element: , - }, - { - path: 'gene-info/:geneid?', - element: , - }, - { - path: 'get-started/:geneid?', - element: , - }, - { - path: 'navigator-view/:geneid?', - element: , - }, - { - path: 'interactions-view/:geneid?', - element: , - }, - ], - errorElement: , - }, -]) + basename: import.meta.env.BASE_URL ?? '/', + } +) export const queryClient = new QueryClient() diff --git a/index.html b/index.html index a00036c..dc22a37 100644 --- a/index.html +++ b/index.html @@ -4,7 +4,30 @@ - + - + Eplant diff --git a/package.json b/package.json index 571621d..9ee5b67 100644 --- a/package.json +++ b/package.json @@ -4,6 +4,7 @@ "description": "Eplant", "main": "index.ts", "type": "module", + "homepage": "https://bioanalyticresource.github.io/ePlant/", "scripts": { "test": "jest --passWithNoTests", "dev": "vite", diff --git a/public/404.html b/public/404.html new file mode 100644 index 0000000..2a3ccbd --- /dev/null +++ b/public/404.html @@ -0,0 +1,35 @@ + + + + + + Redirecting… + + + +