Skip to content
This repository was archived by the owner on Jun 23, 2025. It is now read-only.

Commit c961f3e

Browse files
committed
Fix block mappings for ninini and nanana stations; update image tag for autooperation
1 parent 4569ee6 commit c961f3e

2 files changed

Lines changed: 5 additions & 10 deletions

File tree

frontend/dashboard/src/components/mapview/mapview.tsx

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,6 @@ const POINT_RAILS_FROM_ID: Map<string, { x: number, y: number, fixed: number, st
3333
["ninini_p1", { x: 500, y: 100, fixed: 0, straight: 180, changed: 140 }],
3434
]);
3535

36-
const BLOCKS_FROM_ID: Map<string, { x: number, y: number }> = new Map([
37-
["ninini_b1", { x: 320, y: 400 }],
38-
["nanana_b1", { x: 320, y: 500 }],
39-
])
40-
4136
const LOCATIONS_FOR_TRAIN_FROM_ID: Map<string, { x: number, y: number }> = new Map([...STOP_RAILS_FROM_ID, ...BLOCKS_FROM_ID]);
4237

4338
function MapView() {
@@ -89,8 +84,8 @@ function MapView() {
8984
{ x: 200, y: 300 },
9085
{ x: 350, y: 300 },
9186
]}
92-
isClosed={isClosed("nanana_b1")}
93-
onClick={() => mutateBlock({ state: { blockId: "nanana_b1", state: isClosed("nanana_b1") ? BlockStateEnum.BLOCK_STATE_OPEN : BlockStateEnum.BLOCK_STATE_CLOSE } })}
87+
isClosed={isClosed("ninini_b1")}
88+
onClick={() => mutateBlock({ state: { blockId: "ninini_b1", state: isClosed("ninini_b1") ? BlockStateEnum.BLOCK_STATE_OPEN : BlockStateEnum.BLOCK_STATE_CLOSE } })}
9489
/>
9590
<Rail
9691
points={[
@@ -99,8 +94,8 @@ function MapView() {
9994
{ x: 600, y: 100 },
10095
{ x: 500, y: 100 }
10196
]}
102-
isClosed={isClosed("ninini_b1")}
103-
onClick={() => mutateBlock({ state: { blockId: "ninini_b1", state: isClosed("ninini_b1") ? BlockStateEnum.BLOCK_STATE_OPEN : BlockStateEnum.BLOCK_STATE_CLOSE } })}
97+
isClosed={isClosed("nanana_b1")}
98+
onClick={() => mutateBlock({ state: { blockId: "nanana_b1", state: isClosed("nanana_b1") ? BlockStateEnum.BLOCK_STATE_OPEN : BlockStateEnum.BLOCK_STATE_CLOSE } })}
10499
/>
105100

106101
<Rail

infra/k8s/overlays/local/kustomization.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,4 +11,4 @@ images:
1111
- name: ghcr.io/ueckoken/plarail2023-dashboard
1212
newTag: main-867dddd-1750441012
1313
- name: ghcr.io/ueckoken/plarail2023-autooperation:latest
14-
newTag: main-32cf5c5-1750475369
14+
newTag: main-abd0b19-1750444269

0 commit comments

Comments
 (0)