diff options
author | Zero~Informatique | 2020-06-20 16:50:49 +0200 |
---|---|---|
committer | OzoneGrif | 2020-06-28 14:11:13 +0200 |
commit | 170d7a61f720ece9dc4b347b19f5a8213f1d8984 (patch) | |
tree | 3a7af0595faea4a98437f8f73b3172529bda3a1d /viewer/src/store/index.ts | |
parent | 06355c9cebce469d3d827d48043387144c2458a5 (diff) | |
download | ldgallery-170d7a61f720ece9dc4b347b19f5a8213f1d8984.tar.gz |
viewer: prettier formatting based on eslint-prettier plugin
Diffstat (limited to 'viewer/src/store/index.ts')
-rw-r--r-- | viewer/src/store/index.ts | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/viewer/src/store/index.ts b/viewer/src/store/index.ts index d5339e8..f86d66b 100644 --- a/viewer/src/store/index.ts +++ b/viewer/src/store/index.ts | |||
@@ -17,30 +17,30 @@ | |||
17 | -- along with this program. If not, see <https://www.gnu.org/licenses/>. | 17 | -- along with this program. If not, see <https://www.gnu.org/licenses/>. |
18 | */ | 18 | */ |
19 | 19 | ||
20 | import Vue from "vue" | 20 | import Vue from "vue"; |
21 | import Vuex from "vuex" | 21 | import Vuex from "vuex"; |
22 | import { extractVuexModule } from "vuex-class-component"; | 22 | import { extractVuexModule } from "vuex-class-component"; |
23 | import { createProxy } from "vuex-class-component"; | 23 | import { createProxy } from "vuex-class-component"; |
24 | import UIStore from "@/store/uiStore"; | 24 | import UIStore from "@/store/uiStore"; |
25 | import GalleryStore from "@/store/galleryStore"; | 25 | import GalleryStore from "@/store/galleryStore"; |
26 | 26 | ||
27 | Vue.use(Vuex) | 27 | Vue.use(Vuex); |
28 | 28 | ||
29 | const store = new Vuex.Store({ | 29 | const store = new Vuex.Store({ |
30 | modules: { | 30 | modules: { |
31 | ...extractVuexModule(UIStore), | 31 | ...extractVuexModule(UIStore), |
32 | ...extractVuexModule(GalleryStore) | 32 | ...extractVuexModule(GalleryStore), |
33 | }, | 33 | }, |
34 | strict: process.env.NODE_ENV !== "production", | 34 | strict: process.env.NODE_ENV !== "production", |
35 | }); | 35 | }); |
36 | 36 | ||
37 | Vue.use((vue) => vue.prototype.$uiStore = createProxy(store, UIStore)); | 37 | Vue.use(vue => (vue.prototype.$uiStore = createProxy(store, UIStore))); |
38 | Vue.use((vue) => vue.prototype.$galleryStore = createProxy(store, GalleryStore)); | 38 | Vue.use(vue => (vue.prototype.$galleryStore = createProxy(store, GalleryStore))); |
39 | 39 | ||
40 | declare module "vue/types/vue" { | 40 | declare module "vue/types/vue" { |
41 | interface Vue { | 41 | interface Vue { |
42 | $uiStore: UIStore, | 42 | $uiStore: UIStore; |
43 | $galleryStore: GalleryStore | 43 | $galleryStore: GalleryStore; |
44 | } | 44 | } |
45 | } | 45 | } |
46 | 46 | ||