feature: routesInfo update

This commit is contained in:
2023-05-18 02:22:37 +02:00
parent 4847524b64
commit c6df4a3f84
6 changed files with 75 additions and 121 deletions
+15 -4
View File
@@ -10,14 +10,14 @@ export type ChangeProp =
| 'signalType'
| 'controlType'
| 'SUP'
| 'routes'
| 'routesInfo'
| 'checkpoints'
| 'authors'
| 'availability';
export enum HeaderTypes {
name = 'Nazwa',
abbr = "Skrót posterunku",
abbr = 'Skrót posterunku',
url = 'URL',
hash = 'Hash',
lines = 'Linie',
@@ -28,7 +28,7 @@ export enum HeaderTypes {
controlType = 'Sterowanie',
SUP = 'SUP',
authors = 'Autorzy',
routes = 'Szlaki',
routesInfo = 'Szlaki',
checkpoints = 'Posterunki',
availability = 'Dostępność',
toRemove = 'Usuń',
@@ -42,6 +42,16 @@ export enum AvailabilityTypes {
'unavailable' = 'niedostępna',
}
export interface SceneryRoutesInfo {
routeName: string;
isElectric: boolean;
isRouteSBL: boolean;
isInternal: boolean;
routeSpeed: number;
routeLength: number;
routeTracks: number;
}
export interface SceneryRowItem {
id: string;
hash: string;
@@ -56,13 +66,14 @@ export interface SceneryRowItem {
controlType: string;
SUP: boolean;
routes: string;
routesInfo: SceneryRoutesInfo[];
checkpoints: string;
authors: string;
availability: Availability;
}
export type ChangeItem = {
[key in ChangeProp]?: string | number | boolean | null;
[key in ChangeProp]?: any;
} & {
id: string;
name: string;