aboutsummaryrefslogtreecommitdiff
path: root/viewer/src/plugins/buefy.ts
diff options
context:
space:
mode:
authorZero~Informatique2020-01-31 10:48:21 +0100
committerZero~Informatique2020-01-31 10:48:21 +0100
commitb049f1abd6d00b76afae76d6dc212be213b26c68 (patch)
tree63515f618622545e8a781a9a37c48b6d51e7d883 /viewer/src/plugins/buefy.ts
parent170da2d55fec0359cbac780786383710b734eda7 (diff)
downloadldgallery-b049f1abd6d00b76afae76d6dc212be213b26c68.tar.gz
viewer: buefy optimization (importing only used components)
Diffstat (limited to 'viewer/src/plugins/buefy.ts')
-rw-r--r--viewer/src/plugins/buefy.ts24
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
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