-
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.
Merge pull request #74 from ag-computational-bio/feature/persist-brow…
…sing-data Feature/persist browsing data
- Loading branch information
Showing
4 changed files
with
284 additions
and
147 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
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
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 |
---|---|---|
@@ -1,66 +1,61 @@ | ||
import { createRouter, createWebHistory } from "vue-router"; | ||
|
||
const router = createRouter({ | ||
linkActiveClass: "active", | ||
linkExactActiveClass: "exact-active", | ||
history: createWebHistory(import.meta.env.BASE_URL), | ||
routes: [ | ||
{ | ||
path: "/", | ||
name: "home", | ||
component: () => import("../views/HomeView.vue"), | ||
}, | ||
{ | ||
path: "/about", | ||
name: "about", | ||
// route level code-splitting | ||
// this generates a separate chunk (About.[hash].js) for this route | ||
// which is lazy-loaded when the route is visited. | ||
component: () => import("../views/AboutView.vue"), | ||
}, | ||
{ | ||
path: "/search", | ||
name: "search", | ||
component: () => import("../views/search/SearchView.vue"), | ||
props: (route) => ({ | ||
offset: route.query.offset, | ||
limit: route.query.limit, | ||
query: route.query.query, | ||
}), | ||
}, | ||
{ | ||
path: "/imprint", | ||
name: "imprint", | ||
component: () => import("../views/ImprintView.vue"), | ||
}, | ||
{ | ||
path: "/result/:id", | ||
name: "result", | ||
component: () => import("../views/show-results/ResultView.vue"), | ||
props: true, | ||
}, | ||
{ | ||
path: "/result/:id/:tab", | ||
name: "result-tab", | ||
component: () => import("../views/show-results/ResultView.vue"), | ||
props: true, | ||
}, | ||
{ | ||
path: "/browse", | ||
name: "browse", | ||
component: () => import("../views/BrowseView.vue"), | ||
}, | ||
{ | ||
path: "/composition", | ||
name: "composition", | ||
component: () => import("../views/DatasetCompositionView.vue"), | ||
}, | ||
{ | ||
path: "/statistics", | ||
name: "statistics", | ||
component: () => import("../views/statistics/StatisticsView.vue"), | ||
}, | ||
], | ||
}); | ||
|
||
export default router; | ||
import { createRouter, createWebHistory } from "vue-router"; | ||
|
||
const router = createRouter({ | ||
linkActiveClass: "active", | ||
linkExactActiveClass: "exact-active", | ||
history: createWebHistory(import.meta.env.BASE_URL), | ||
routes: [ | ||
{ | ||
path: "/", | ||
name: "home", | ||
component: () => import("../views/HomeView.vue"), | ||
}, | ||
{ | ||
path: "/about", | ||
name: "about", | ||
// route level code-splitting | ||
// this generates a separate chunk (About.[hash].js) for this route | ||
// which is lazy-loaded when the route is visited. | ||
component: () => import("../views/AboutView.vue"), | ||
}, | ||
{ | ||
path: "/search", | ||
name: "search", | ||
component: () => import("../views/search/SearchView.vue"), | ||
}, | ||
{ | ||
path: "/imprint", | ||
name: "imprint", | ||
component: () => import("../views/ImprintView.vue"), | ||
}, | ||
{ | ||
path: "/result/:id", | ||
name: "result", | ||
component: () => import("../views/show-results/ResultView.vue"), | ||
props: true, | ||
}, | ||
{ | ||
path: "/result/:id/:tab", | ||
name: "result-tab", | ||
component: () => import("../views/show-results/ResultView.vue"), | ||
props: true, | ||
}, | ||
{ | ||
path: "/browse", | ||
name: "browse", | ||
component: () => import("../views/BrowseView.vue"), | ||
}, | ||
{ | ||
path: "/composition", | ||
name: "composition", | ||
component: () => import("../views/DatasetCompositionView.vue"), | ||
}, | ||
{ | ||
path: "/statistics", | ||
name: "statistics", | ||
component: () => import("../views/statistics/StatisticsView.vue"), | ||
}, | ||
], | ||
}); | ||
|
||
export default router; |
Oops, something went wrong.