2020-10-02 07:13:14 +00:00
|
|
|
import { store } from 'quasar/wrappers';
|
2021-01-30 03:19:30 +00:00
|
|
|
import { createStore } from 'vuex';
|
2021-01-31 19:40:18 +00:00
|
|
|
import { UserStateInterface } from 'src/plugins/user/store/user';
|
|
|
|
import { SessionStateInterface } from 'src/plugins/user/store/session';
|
|
|
|
|
|
|
|
export interface StateInterface {
|
2021-02-04 23:07:51 +00:00
|
|
|
users: UserStateInterface;
|
|
|
|
sessions: SessionStateInterface;
|
2021-01-31 21:21:49 +00:00
|
|
|
[key: string]: unknown;
|
2021-01-31 19:40:18 +00:00
|
|
|
}
|
2020-10-02 07:13:14 +00:00
|
|
|
|
2021-01-30 03:19:30 +00:00
|
|
|
export default store(function (/* { ssrContext } */) {
|
|
|
|
const Store = createStore({
|
2020-10-16 07:38:14 +00:00
|
|
|
modules: {},
|
2020-10-02 07:13:14 +00:00
|
|
|
|
|
|
|
// enable strict mode (adds overhead!)
|
2021-01-30 03:19:30 +00:00
|
|
|
// for dev mode and --debug builds only
|
|
|
|
strict: !!process.env.DEBUGGING,
|
2020-10-02 07:13:14 +00:00
|
|
|
});
|
|
|
|
|
|
|
|
return Store;
|
|
|
|
});
|