diff options
Diffstat (limited to 'viewer/src/plugins')
-rw-r--r-- | viewer/src/plugins/buefy.ts | 24 | ||||
-rw-r--r-- | viewer/src/plugins/fontawesome.ts | 13 | ||||
-rw-r--r-- | viewer/src/plugins/router.ts | 8 |
3 files changed, 33 insertions, 12 deletions
diff --git a/viewer/src/plugins/buefy.ts b/viewer/src/plugins/buefy.ts index 9fa73b6..fbffd55 100644 --- a/viewer/src/plugins/buefy.ts +++ b/viewer/src/plugins/buefy.ts | |||
@@ -19,10 +19,24 @@ | |||
19 | 19 | ||
20 | import Vue from "vue"; | 20 | import Vue from "vue"; |
21 | 21 | ||
22 | import Buefy from "buefy"; | 22 | // @ts-ignore |
23 | import Taginput from 'buefy/src/components/taginput'; | ||
24 | // @ts-ignore | ||
25 | import Loading from 'buefy/src/components/loading'; | ||
26 | // @ts-ignore | ||
27 | import Radio from 'buefy/src/components/radio'; | ||
28 | // @ts-ignore | ||
29 | import SnackBar from 'buefy/src/components/snackbar'; | ||
30 | |||
23 | import "@/assets/scss/buefy.scss"; | 31 | import "@/assets/scss/buefy.scss"; |
24 | 32 | ||
25 | Vue.use(Buefy, { | 33 | Vue.use(Taginput); |
26 | defaultIconComponent: 'fa-icon', | 34 | Vue.use(Loading); |
27 | defaultIconPack: 'fas', | 35 | Vue.use(Radio); |
28 | }); | 36 | Vue.use(SnackBar); |
37 | |||
38 | declare module 'vue/types/vue' { | ||
39 | interface Vue { | ||
40 | $buefy: any; | ||
41 | } | ||
42 | } \ No newline at end of file | ||
diff --git a/viewer/src/plugins/fontawesome.ts b/viewer/src/plugins/fontawesome.ts index bf2ff5f..a15f4ce 100644 --- a/viewer/src/plugins/fontawesome.ts +++ b/viewer/src/plugins/fontawesome.ts | |||
@@ -19,32 +19,39 @@ | |||
19 | 19 | ||
20 | import Vue from "vue"; | 20 | import Vue from "vue"; |
21 | 21 | ||
22 | import { library } from "@fortawesome/fontawesome-svg-core"; | 22 | import { library, config } from "@fortawesome/fontawesome-svg-core"; |
23 | import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; | 23 | import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; |
24 | import { | 24 | import { |
25 | faFolder, | 25 | faFolder, |
26 | faSearch, | 26 | faSearch, |
27 | faTag, | ||
28 | faPlus, | 27 | faPlus, |
29 | faMinus, | 28 | faMinus, |
30 | faImage, | 29 | faImage, |
31 | faHome, | 30 | faHome, |
32 | faArrowLeft, | 31 | faArrowLeft, |
32 | faLevelUpAlt, | ||
33 | faTags, | 33 | faTags, |
34 | faAngleRight, | 34 | faAngleRight, |
35 | faWindowClose, | ||
36 | faQuestionCircle, | ||
35 | } from "@fortawesome/free-solid-svg-icons"; | 37 | } from "@fortawesome/free-solid-svg-icons"; |
36 | 38 | ||
37 | library.add( | 39 | library.add( |
38 | faFolder, | 40 | faFolder, |
39 | faSearch, | 41 | faSearch, |
40 | faTag, | ||
41 | faPlus, | 42 | faPlus, |
42 | faMinus, | 43 | faMinus, |
43 | faImage, | 44 | faImage, |
44 | faHome, | 45 | faHome, |
45 | faArrowLeft, | 46 | faArrowLeft, |
47 | faLevelUpAlt, | ||
46 | faTags, | 48 | faTags, |
47 | faAngleRight, | 49 | faAngleRight, |
50 | faWindowClose, | ||
51 | faQuestionCircle, | ||
48 | ); | 52 | ); |
49 | 53 | ||
54 | config.autoAddCss = false; | ||
55 | import "@fortawesome/fontawesome-svg-core/styles.css"; | ||
56 | |||
50 | Vue.component("fa-icon", FontAwesomeIcon); | 57 | Vue.component("fa-icon", FontAwesomeIcon); |
diff --git a/viewer/src/plugins/router.ts b/viewer/src/plugins/router.ts index 0f3d2c7..8b4a8dc 100644 --- a/viewer/src/plugins/router.ts +++ b/viewer/src/plugins/router.ts | |||
@@ -19,17 +19,17 @@ | |||
19 | 19 | ||
20 | import Vue from "vue"; | 20 | import Vue from "vue"; |
21 | import VueRouter from "vue-router"; | 21 | import VueRouter from "vue-router"; |
22 | import Gallery from "@/views/MainGallery.vue"; | 22 | import MainGallery from "@/views/MainGallery.vue"; |
23 | 23 | ||
24 | Vue.use(VueRouter); | 24 | Vue.use(VueRouter); |
25 | 25 | ||
26 | // async way : component: () => import(/* webpackChunkName: "Gallery" */ "@/views/Gallery.vue"), | 26 | // async way : component: () => import(/* webpackChunkName: "MainGallery" */ "@/views/MainGallery.vue"), |
27 | 27 | ||
28 | const routes = [ | 28 | const routes = [ |
29 | { | 29 | { |
30 | path: "*", | 30 | path: "*", |
31 | name: "Gallery", | 31 | name: "MainGallery", |
32 | component: Gallery, | 32 | component: MainGallery, |
33 | props: true | 33 | props: true |
34 | }, | 34 | }, |
35 | ]; | 35 | ]; |