diff options
author | Zero~Informatique | 2020-01-31 10:48:21 +0100 |
---|---|---|
committer | Zero~Informatique | 2020-01-31 10:48:21 +0100 |
commit | b049f1abd6d00b76afae76d6dc212be213b26c68 (patch) | |
tree | 63515f618622545e8a781a9a37c48b6d51e7d883 /viewer/src | |
parent | 170da2d55fec0359cbac780786383710b734eda7 (diff) | |
download | ldgallery-b049f1abd6d00b76afae76d6dc212be213b26c68.tar.gz |
viewer: buefy optimization (importing only used components)
Diffstat (limited to 'viewer/src')
-rw-r--r-- | viewer/src/plugins/buefy.ts | 24 |
1 files changed, 19 insertions, 5 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 | ||