-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: correct data from axios, actual usage of plugins and fixed the s…
…css issue - the store is initialized in plugins/init.js like it was before, using the env object - this env is set to empty if not retrieved - import '../styles/settings.scss' is now valid, node 20 bug apparently, more info here : * vuejs/vitepress#3102 * sass/dart-sass#2127 * dart-lang/sdk#53784 - the data is set to data.data as soon as we get it from axios, removing further problems
- Loading branch information
Showing
8 changed files
with
28 additions
and
21 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
20 | ||
21 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,20 @@ | ||
import { createPinia } from 'pinia' | ||
import useMainStore from '@/stores/useMainStore' | ||
import 'url-polyfill' | ||
|
||
export function useInit(env, router) { | ||
const store = useMainStore() | ||
window.vIframeOptions = { router, reactiveParams: true } | ||
store.init(env) | ||
const StorePlugin = { | ||
install(app, options) { | ||
const pinia = createPinia() | ||
app.use(pinia) | ||
|
||
const store = useMainStore() | ||
store.init(options.environement) | ||
|
||
window.vIframeOptions = { router: app.config.globalProperties.$router, reactiveParams: true } | ||
app.provide('mainStore', store) | ||
|
||
app.config.globalProperties.$mainStore = store | ||
} | ||
} | ||
|
||
export default StorePlugin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
// main.js or specific component file | ||
import moment from 'moment' | ||
import 'moment/locale/fr' | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters