misc_pterodactyl-panel/resources/scripts/state/index.ts

25 lines
672 B
TypeScript
Raw Permalink Normal View History

import { createStore } from 'easy-peasy';
import flashes, { FlashStore } from '@/state/flashes';
import user, { UserStore } from '@/state/user';
import permissions, { GloablPermissionsStore } from '@/state/permissions';
2019-12-16 02:05:44 +00:00
import settings, { SettingsStore } from '@/state/settings';
import progress, { ProgressStore } from '@/state/progress';
export interface ApplicationStore {
permissions: GloablPermissionsStore;
flashes: FlashStore;
user: UserStore;
2019-12-16 02:05:44 +00:00
settings: SettingsStore;
progress: ProgressStore;
}
const state: ApplicationStore = {
permissions,
flashes,
user,
2019-12-16 02:05:44 +00:00
settings,
progress,
};
export const store = createStore(state);