Lines 32-38
import App from "../components/Preservation/Main.vue";
Link Here
|
32 |
import { routes as routesDef } from "../routes/preservation"; |
32 |
import { routes as routesDef } from "../routes/preservation"; |
33 |
|
33 |
|
34 |
import { useMainStore } from "../stores/main"; |
34 |
import { useMainStore } from "../stores/main"; |
35 |
import { useAVStore } from "../stores/authorised-values"; |
|
|
36 |
import { usePreservationStore } from "../stores/preservation"; |
35 |
import { usePreservationStore } from "../stores/preservation"; |
37 |
import { useNavigationStore } from "../stores/navigation"; |
36 |
import { useNavigationStore } from "../stores/navigation"; |
38 |
import i18n from "../i18n"; |
37 |
import i18n from "../i18n"; |
Lines 40-46
import i18n from "../i18n";
Link Here
|
40 |
const pinia = createPinia(); |
39 |
const pinia = createPinia(); |
41 |
|
40 |
|
42 |
const mainStore = useMainStore(pinia); |
41 |
const mainStore = useMainStore(pinia); |
43 |
const AVStore = useAVStore(pinia); |
|
|
44 |
const navigationStore = useNavigationStore(pinia); |
42 |
const navigationStore = useNavigationStore(pinia); |
45 |
const routes = navigationStore.setRoutes(routesDef); |
43 |
const routes = navigationStore.setRoutes(routesDef); |
46 |
|
44 |
|
Lines 61-67
const rootComponent = app
Link Here
|
61 |
|
59 |
|
62 |
app.config.unwrapInjectedRef = true; |
60 |
app.config.unwrapInjectedRef = true; |
63 |
app.provide("mainStore", mainStore); |
61 |
app.provide("mainStore", mainStore); |
64 |
app.provide("AVStore", useAVStore(pinia)); |
|
|
65 |
app.provide("navigationStore", navigationStore); |
62 |
app.provide("navigationStore", navigationStore); |
66 |
const PreservationStore = usePreservationStore(pinia); |
63 |
const PreservationStore = usePreservationStore(pinia); |
67 |
app.provide("PreservationStore", PreservationStore); |
64 |
app.provide("PreservationStore", PreservationStore); |
68 |
- |
|
|