とりあえず実装、明日動作チェックして挙動確認
This commit is contained in:
@@ -5,7 +5,7 @@ type nameString =
|
||||
| "SPCL"
|
||||
| "Normal"
|
||||
| string;
|
||||
type colorString = "aqua" | "red" | "#297bff" | "#ff7300ff" | "white" | "pink";
|
||||
type colorString = "aqua" | "red" | "#297bff" | "#ff7300ff" | "#00869ecc" | "#727272cc" | "white" | "pink";
|
||||
type trainTypeString =
|
||||
| "快速"
|
||||
| "特急"
|
||||
@@ -16,8 +16,11 @@ type trainTypeString =
|
||||
| "臨時快速"
|
||||
| "臨時特急"
|
||||
| "団体臨時"
|
||||
| "貨物"
|
||||
| "回送"
|
||||
| "単機回送"
|
||||
| "その他";
|
||||
type trainTypeDataString = "rapid" | "express" | "normal";
|
||||
type trainTypeDataString = "rapid" | "express" | "normal" | "notService";
|
||||
type getTrainType = (d: nameString) => {
|
||||
color: colorString;
|
||||
name: trainTypeString;
|
||||
@@ -45,6 +48,12 @@ export const getTrainType: getTrainType = (nameString) => {
|
||||
return { color: "#297bff", name: "臨時特急", data: "normal" };
|
||||
case "Party":
|
||||
return { color: "#ff7300ff", name: "団体臨時", data: "normal" };
|
||||
case "Freight":
|
||||
return { color: "#00869ecc", name: "貨物", data: "notService" };
|
||||
case "Forwarding":
|
||||
return { color: "#727272cc", name: "回送", data: "notService" };
|
||||
case "FreightForwarding":
|
||||
return { color: "#727272cc", name: "単機回送", data: "notService" };
|
||||
default:
|
||||
return { color: "white", name: "その他", data: "normal" };
|
||||
}
|
||||
|
Reference in New Issue
Block a user