mirror of
https://github.com/Spythere/station-manager-2.0.git
synced 2026-05-03 21:48:14 +00:00
Migracja projektu na Vite
This commit is contained in:
@@ -0,0 +1,26 @@
|
||||
import { defineStore } from 'pinia';
|
||||
import { IStore } from './types/types';
|
||||
|
||||
export const useStore = defineStore('store', {
|
||||
state: () =>
|
||||
({
|
||||
dataState: 'LOADING',
|
||||
unsavedChanges: false,
|
||||
stationList: [],
|
||||
backupList: '',
|
||||
stationsToRemove: [],
|
||||
searchedSceneryName: '',
|
||||
changeList: {},
|
||||
changeBackupList: {},
|
||||
newStationsCount: 0,
|
||||
routesModalVisible: true,
|
||||
currentStation: null,
|
||||
selectedStationName: '',
|
||||
token: null,
|
||||
user: null,
|
||||
isAuthorized: false,
|
||||
notifyDiscord: true,
|
||||
alertMessage: '',
|
||||
confirmMessage: '',
|
||||
} as IStore),
|
||||
});
|
||||
Reference in New Issue
Block a user