Pobieranie danych z API zamiast lokalnie

This commit is contained in:
2022-11-27 15:28:56 +01:00
parent e6d22234b2
commit ff93e4cc32
11 changed files with 70 additions and 2121 deletions
+27 -3
View File
@@ -28,10 +28,33 @@ export interface IStore {
isRealStockListCardOpen: boolean;
stockSectionMode: 'stock-list' | 'stock-generator';
stockData?: IStockData;
}
export interface IVehicleData {
[key: string]: (string | boolean)[][];
export type TStockInfoKey = 'loco-e' | 'loco-s' | 'loco-ezt' | 'loco-szt' | 'car-passenger' | 'car-cargo';
export interface IStockProps {
type: string;
length: number;
mass: number;
cargo: string;
}
export interface IStockData {
generator: {
passenger: [];
cargo: {
[key: string]: string[];
};
};
info: {
[key in TStockInfoKey]: any[];
};
props: IStockProps[];
usage: { [key: string]: string };
}
export interface ILocomotive {
@@ -83,4 +106,5 @@ export interface IStock {
export interface IReadyStockList {
[key: string]: { stockString: string; type: string; number: string; name: string };
}
}