mirror of
https://github.com/Elvanos/fantasia-archive.git
synced 2024-10-01 09:38:04 +13:00
a3f637d55a
Modified readme file for proper install Electron dev env works Build untested so far
32 lines
810 B
TypeScript
32 lines
810 B
TypeScript
import { store } from 'quasar/wrappers'
|
|
import { createPinia } from 'pinia'
|
|
import { Router } from 'vue-router'
|
|
|
|
/*
|
|
* When adding new properties to stores, you should also
|
|
* extend the `PiniaCustomProperties` interface.
|
|
* @see https://pinia.vuejs.org/core-concepts/plugins.html#typing-new-store-properties
|
|
*/
|
|
declare module 'pinia' {
|
|
export interface PiniaCustomProperties {
|
|
readonly router: Router;
|
|
}
|
|
}
|
|
|
|
/*
|
|
* If not building with SSR mode, you can
|
|
* directly export the Store instantiation;
|
|
*
|
|
* The function below can be async too; either use
|
|
* async/await or return a Promise which resolves
|
|
* with the Store instance.
|
|
*/
|
|
|
|
export default store((/* { ssrContext } */) => {
|
|
const pinia = createPinia()
|
|
|
|
// You can add Pinia plugins here
|
|
// pinia.use(SomePiniaPlugin)
|
|
|
|
return pinia
|
|
})
|