Migracja projektu na Vite

This commit is contained in:
2022-08-17 23:07:21 +02:00
commit c799b47698
26 changed files with 2222 additions and 0 deletions
+26
View File
@@ -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),
});