aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/plugins
diff options
context:
space:
mode:
Diffstat (limited to 'viewer/src/plugins')
-rw-r--r--viewer/src/plugins/buefy.ts24
-rw-r--r--viewer/src/plugins/fontawesome.ts13
-rw-r--r--viewer/src/plugins/router.ts8
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
20import Vue from "vue"; 20import Vue from "vue";
21 21
22import Buefy from "buefy"; 22// @ts-ignore
23import Taginput from 'buefy/src/components/taginput';
24// @ts-ignore
25import Loading from 'buefy/src/components/loading';
26// @ts-ignore
27import Radio from 'buefy/src/components/radio';
28// @ts-ignore
29import SnackBar from 'buefy/src/components/snackbar';
30
23import "@/assets/scss/buefy.scss"; 31import "@/assets/scss/buefy.scss";
24 32
25Vue.use(Buefy, { 33Vue.use(Taginput);
26 defaultIconComponent: 'fa-icon', 34Vue.use(Loading);
27 defaultIconPack: 'fas', 35Vue.use(Radio);
28}); 36Vue.use(SnackBar);
37
38declare 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
20import Vue from "vue"; 20import Vue from "vue";
21 21
22import { library } from "@fortawesome/fontawesome-svg-core"; 22import { library, config } from "@fortawesome/fontawesome-svg-core";
23import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome"; 23import { FontAwesomeIcon } from "@fortawesome/vue-fontawesome";
24import { 24import {
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
37library.add( 39library.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
54config.autoAddCss = false;
55import "@fortawesome/fontawesome-svg-core/styles.css";
56
50Vue.component("fa-icon", FontAwesomeIcon); 57Vue.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
20import Vue from "vue"; 20import Vue from "vue";
21import VueRouter from "vue-router"; 21import VueRouter from "vue-router";
22import Gallery from "@/views/MainGallery.vue"; 22import MainGallery from "@/views/MainGallery.vue";
23 23
24Vue.use(VueRouter); 24Vue.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
28const routes = [ 28const 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];