mirror of
https://github.com/Spythere/station-manager-2.0.git
synced 2026-05-03 05:28:13 +00:00
Dodano changelog; poprawki reaktywności
This commit is contained in:
+48
-3
@@ -1,4 +1,41 @@
|
||||
export type Availability = 'default' | 'unavailable' | 'nonPublic' | 'abandoned' | 'nonDefault';
|
||||
export type ChangeProp =
|
||||
| 'name'
|
||||
| 'url'
|
||||
| 'lines'
|
||||
| 'project'
|
||||
| 'reqLevel'
|
||||
| 'signalType'
|
||||
| 'controlType'
|
||||
| 'SUP'
|
||||
| 'routes'
|
||||
| 'checkpoints'
|
||||
| 'authors'
|
||||
| 'availability';
|
||||
|
||||
export enum HeaderTypes {
|
||||
name = 'Nazwa',
|
||||
url = 'URL',
|
||||
lines = 'Linie',
|
||||
project = 'Projekt',
|
||||
reqLevel = 'Wym. poziom',
|
||||
signalType = 'Sygnalizacja',
|
||||
controlType = 'Sterowanie',
|
||||
SUP = 'SUP',
|
||||
authors = 'Autorzy',
|
||||
routes = 'Szlaki',
|
||||
checkpoints = 'Posterunki',
|
||||
availability = 'Dostępność',
|
||||
toRemove = 'Usuń',
|
||||
}
|
||||
|
||||
export enum AvailabilityTypes {
|
||||
'default' = 'w paczce',
|
||||
'nonDefault' = 'poza paczką',
|
||||
'nonPublic' = 'niepubliczna',
|
||||
'abandoned' = 'wycofana',
|
||||
'unavailable' = 'niedostępna',
|
||||
}
|
||||
|
||||
export interface SceneryRowItem {
|
||||
id: string;
|
||||
@@ -16,15 +53,23 @@ export interface SceneryRowItem {
|
||||
availability: Availability;
|
||||
}
|
||||
|
||||
export type ChangeItem = {
|
||||
[key in ChangeProp]?: string | number | boolean | null;
|
||||
} & {
|
||||
id: string;
|
||||
name: string;
|
||||
|
||||
toRemove?: boolean;
|
||||
};
|
||||
|
||||
export interface IStore {
|
||||
dataState: string;
|
||||
unsavedChanges: boolean;
|
||||
stationList: SceneryRowItem[];
|
||||
backupList: string;
|
||||
backupList: SceneryRowItem[];
|
||||
stationsToRemove: string[];
|
||||
searchedSceneryName: string;
|
||||
changeList: { [key: string]: any };
|
||||
changeBackupList: { [key: string]: any };
|
||||
changeList: ChangeItem[];
|
||||
newStationsCount: number;
|
||||
routesModalVisible: boolean;
|
||||
currentStation: SceneryRowItem | null;
|
||||
|
||||
Reference in New Issue
Block a user