diff options
author | Zero~Informatique | 2020-02-14 09:19:53 +0100 |
---|---|---|
committer | Zero~Informatique | 2020-02-24 00:04:39 +0100 |
commit | 370e3db3455f548699ff5e046e0f8dcc304991ac (patch) | |
tree | e29fe9e2afb940eea74c8ed510c46a1eb0fa4d84 /viewer/src/plugins/router.ts | |
parent | e42f4e864bac21ed3b19d1869df2cdd4f8c3433c (diff) | |
download | ldgallery-370e3db3455f548699ff5e046e0f8dcc304991ac.tar.gz |
viewer: major code and search mode overhaul
Updated libraries to the lastest version
SCSS Formatter as suggested VSC extensions
Renamed toolbar-color by scrollbar-color
LD components use Props in favor of touching the stores directly (when possible)
Moved most common algorithms to a "services" folder
Complete search overhaul (lots of code change)
Diffstat (limited to 'viewer/src/plugins/router.ts')
-rw-r--r-- | viewer/src/plugins/router.ts | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/viewer/src/plugins/router.ts b/viewer/src/plugins/router.ts index 8b4a8dc..00979c9 100644 --- a/viewer/src/plugins/router.ts +++ b/viewer/src/plugins/router.ts | |||
@@ -18,19 +18,20 @@ | |||
18 | */ | 18 | */ |
19 | 19 | ||
20 | import Vue from "vue"; | 20 | import Vue from "vue"; |
21 | import VueRouter from "vue-router"; | 21 | import VueRouter, { RouteConfig } from "vue-router"; |
22 | import MainGallery from "@/views/MainGallery.vue"; | 22 | import GalleryNavigation from "@/views/GalleryNavigation.vue"; |
23 | 23 | ||
24 | Vue.use(VueRouter); | 24 | Vue.use(VueRouter); |
25 | 25 | ||
26 | // async way : component: () => import(/* webpackChunkName: "MainGallery" */ "@/views/MainGallery.vue"), | 26 | const routes: RouteConfig[] = [ |
27 | |||
28 | const routes = [ | ||
29 | { | 27 | { |
30 | path: "*", | 28 | path: "*", |
31 | name: "MainGallery", | 29 | name: "GalleryNavigation", |
32 | component: MainGallery, | 30 | component: GalleryNavigation, |
33 | props: true | 31 | props: (route) => ({ |
32 | path: route.params.pathMatch, | ||
33 | query: Object.keys(route.query), | ||
34 | }), | ||
34 | }, | 35 | }, |
35 | ]; | 36 | ]; |
36 | 37 | ||