mirror of
https://github.com/Spythere/pojazdownik.git
synced 2026-05-03 05:18:10 +00:00
format; linting; aktualizacja do 2023.2.1
This commit is contained in:
+20
-12
@@ -1,5 +1,5 @@
|
||||
export type Vehicle = ILocomotive | ICarWagon;
|
||||
export type StockSectionMode = 'STOCK_LIST' | 'STOCK_GENERATOR';
|
||||
export type StockSectionMode = "STOCK_LIST" | "STOCK_GENERATOR";
|
||||
|
||||
export interface IStore {
|
||||
chosenCar: ICarWagon | null;
|
||||
@@ -28,11 +28,21 @@ export interface IStore {
|
||||
isRandomizerCardOpen: boolean;
|
||||
isRealStockListCardOpen: boolean;
|
||||
|
||||
stockSectionMode: 'stock-list' | 'stock-generator' | 'number-generator' | 'wiki-list';
|
||||
stockSectionMode:
|
||||
| "stock-list"
|
||||
| "stock-generator"
|
||||
| "number-generator"
|
||||
| "wiki-list";
|
||||
stockData?: IStockData;
|
||||
}
|
||||
|
||||
export type TStockInfoKey = 'loco-e' | 'loco-s' | 'loco-ezt' | 'loco-szt' | 'car-passenger' | 'car-cargo';
|
||||
export type TStockInfoKey =
|
||||
| "loco-e"
|
||||
| "loco-s"
|
||||
| "loco-ezt"
|
||||
| "loco-szt"
|
||||
| "car-passenger"
|
||||
| "car-cargo";
|
||||
|
||||
export interface IStockProps {
|
||||
type: string;
|
||||
@@ -52,12 +62,12 @@ export interface IStockData {
|
||||
};
|
||||
|
||||
info: {
|
||||
'car-cargo': [string, string, boolean, boolean, string][];
|
||||
'car-passenger': [string, string, boolean, boolean, string][];
|
||||
'loco-e': [string, string, string, string, boolean][];
|
||||
'loco-s': [string, string, string, string, boolean][];
|
||||
'loco-szt': [string, string, string, string, boolean][];
|
||||
'loco-ezt': [string, string, string, string, boolean][];
|
||||
"car-cargo": [string, string, boolean, boolean, string][];
|
||||
"car-passenger": [string, string, boolean, boolean, string][];
|
||||
"loco-e": [string, string, string, string, boolean][];
|
||||
"loco-s": [string, string, string, string, boolean][];
|
||||
"loco-szt": [string, string, string, string, boolean][];
|
||||
"loco-ezt": [string, string, string, string, boolean][];
|
||||
};
|
||||
|
||||
props: IStockProps[];
|
||||
@@ -79,9 +89,8 @@ export interface ILocomotive {
|
||||
}
|
||||
|
||||
export interface ICarWagon {
|
||||
//"203V_PKPC_Fll_01","203V",true,false,"100",img
|
||||
type: string;
|
||||
useType: 'car-passenger' | 'car-cargo';
|
||||
useType: "car-passenger" | "car-cargo";
|
||||
constructionType: string;
|
||||
loadable: boolean;
|
||||
supportersOnly: boolean;
|
||||
@@ -120,4 +129,3 @@ export interface IReadyStockItem {
|
||||
number: string;
|
||||
name: string;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user