mirror of
https://github.com/Spythere/station-manager-2.0.git
synced 2026-05-03 05:28:13 +00:00
update: auth & update modal
This commit is contained in:
+31
-28
@@ -1,28 +1,31 @@
|
||||
import { defineStore } from 'pinia';
|
||||
import { Availability, ChangeProp, HeaderTypes, IStore } from './types/types';
|
||||
import { getAvailabilityValue } from './types/typeUitls';
|
||||
|
||||
export const useStore = defineStore('store', {
|
||||
state: () =>
|
||||
({
|
||||
dataState: 'LOADING',
|
||||
unsavedChanges: false,
|
||||
stationList: [],
|
||||
backupList: [],
|
||||
stationsToRemove: [],
|
||||
searchedSceneryName: '',
|
||||
changeList: [],
|
||||
newStationsCount: 0,
|
||||
routesModalVisible: true,
|
||||
currentStation: null,
|
||||
selectedStationName: '',
|
||||
token: null,
|
||||
user: null,
|
||||
isAuthorized: false,
|
||||
notifyDiscord: true,
|
||||
alertMessage: '',
|
||||
confirmMessage: '',
|
||||
|
||||
changesResponse: [],
|
||||
} as IStore),
|
||||
});
|
||||
import { defineStore } from 'pinia';
|
||||
import { AuthState, Availability, ChangeProp, HeaderTypes, IStore } from './types/types';
|
||||
import { getAvailabilityValue } from './types/typeUitls';
|
||||
|
||||
export const useStore = defineStore('store', {
|
||||
state: () =>
|
||||
({
|
||||
dataState: 'LOADING',
|
||||
authState: AuthState.LOADING,
|
||||
|
||||
unsavedChanges: false,
|
||||
stationList: [],
|
||||
backupList: [],
|
||||
stationsToRemove: [],
|
||||
searchedSceneryName: '',
|
||||
changeList: [],
|
||||
newStationsCount: 0,
|
||||
routesModalVisible: true,
|
||||
currentStation: null,
|
||||
selectedStationName: '',
|
||||
token: null,
|
||||
user: null,
|
||||
isAuthorized: false,
|
||||
notifyDiscord: true,
|
||||
|
||||
alertMessage: '',
|
||||
confirmMessage: '',
|
||||
|
||||
changesResponse: [],
|
||||
} as IStore),
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user