Lines 17-37
library.add(faPlus, faMinus, faPencil, faTrash, faSpinner);
Link Here
|
17 |
|
17 |
|
18 |
import App from "../components/Vendors/Main.vue"; |
18 |
import App from "../components/Vendors/Main.vue"; |
19 |
|
19 |
|
20 |
import { routes as routesDef } from "../routes/vendors"; |
20 |
import { routes as routesDef } from "../routes/acquisitions"; |
21 |
|
21 |
|
22 |
import { useMainStore } from "../stores/main"; |
22 |
import { useMainStore } from "../stores/main"; |
23 |
import { useVendorStore } from "../stores/vendors"; |
23 |
import { useVendorStore } from "../stores/vendors"; |
24 |
import { useAVStore } from "../stores/authorisedValues/authorised-values"; |
|
|
25 |
import { useNavigationStore } from "../stores/navigation"; |
24 |
import { useNavigationStore } from "../stores/navigation"; |
26 |
import { usePermissionsStore } from "../stores/permissions"; |
25 |
import { usePermissionsStore } from "../stores/permissions"; |
|
|
26 |
import { useAVStore } from "../stores/authorised-values"; |
27 |
import i18n from "../i18n"; |
27 |
import i18n from "../i18n"; |
28 |
|
28 |
|
29 |
const pinia = createPinia(); |
29 |
const pinia = createPinia(); |
30 |
|
30 |
|
31 |
const mainStore = useMainStore(pinia); |
31 |
const mainStore = useMainStore(pinia); |
32 |
const AVStore = useAVStore(pinia); |
|
|
33 |
const navigationStore = useNavigationStore(pinia); |
32 |
const navigationStore = useNavigationStore(pinia); |
34 |
const permissionsStore = usePermissionsStore(pinia); |
33 |
const permissionsStore = usePermissionsStore(pinia); |
|
|
34 |
const AVStore = useAVStore(pinia); |
35 |
const routes = navigationStore.setRoutes(routesDef); |
35 |
const routes = navigationStore.setRoutes(routesDef); |
36 |
|
36 |
|
37 |
const router = createRouter({ |
37 |
const router = createRouter({ |
Lines 52-60
const rootComponent = app
Link Here
|
52 |
app.config.unwrapInjectedRef = true; |
52 |
app.config.unwrapInjectedRef = true; |
53 |
app.provide("vendorStore", useVendorStore(pinia)); |
53 |
app.provide("vendorStore", useVendorStore(pinia)); |
54 |
app.provide("mainStore", mainStore); |
54 |
app.provide("mainStore", mainStore); |
55 |
app.provide("AVStore", AVStore); |
|
|
56 |
app.provide("navigationStore", navigationStore); |
55 |
app.provide("navigationStore", navigationStore); |
57 |
app.provide("permissionsStore", permissionsStore); |
56 |
app.provide("permissionsStore", permissionsStore); |
|
|
57 |
app.provide("AVStore", AVStore); |
58 |
|
58 |
|
59 |
app.mount("#__vendors"); |
59 |
app.mount("#__vendors"); |
60 |
|
60 |
|