Skip to content

Commit be8728e

Browse files
committed
boards -> departureboard
1 parent dc543c8 commit be8728e

File tree

12 files changed

+37
-32
lines changed

12 files changed

+37
-32
lines changed

src/routeTree.gen.ts

Lines changed: 25 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
import { Route as rootRoute } from "./routes/__root"
1414
import { Route as IndexImport } from "./routes/index"
1515
import { Route as MapIndexImport } from "./routes/map/index"
16-
import { Route as BoardsIndexImport } from "./routes/boards/index"
16+
import { Route as DepartureboardIndexImport } from "./routes/departureboard/index"
1717
import { Route as MapServerIdImport } from "./routes/map/$serverId"
1818
import { Route as JourneysJourneyIdImport } from "./routes/journeys/$journeyId"
1919

@@ -31,9 +31,9 @@ const MapIndexRoute = MapIndexImport.update({
3131
getParentRoute: () => rootRoute,
3232
} as any)
3333

34-
const BoardsIndexRoute = BoardsIndexImport.update({
35-
id: "/boards/",
36-
path: "/boards/",
34+
const DepartureboardIndexRoute = DepartureboardIndexImport.update({
35+
id: "/departureboard/",
36+
path: "/departureboard/",
3737
getParentRoute: () => rootRoute,
3838
} as any)
3939

@@ -74,11 +74,11 @@ declare module "@tanstack/react-router" {
7474
preLoaderRoute: typeof MapServerIdImport
7575
parentRoute: typeof rootRoute
7676
}
77-
"/boards/": {
78-
id: "/boards/"
79-
path: "/boards"
80-
fullPath: "/boards"
81-
preLoaderRoute: typeof BoardsIndexImport
77+
"/departureboard/": {
78+
id: "/departureboard/"
79+
path: "/departureboard"
80+
fullPath: "/departureboard"
81+
preLoaderRoute: typeof DepartureboardIndexImport
8282
parentRoute: typeof rootRoute
8383
}
8484
"/map/": {
@@ -97,15 +97,15 @@ export interface FileRoutesByFullPath {
9797
"/": typeof IndexRoute
9898
"/journeys/$journeyId": typeof JourneysJourneyIdRoute
9999
"/map/$serverId": typeof MapServerIdRoute
100-
"/boards": typeof BoardsIndexRoute
100+
"/departureboard": typeof DepartureboardIndexRoute
101101
"/map": typeof MapIndexRoute
102102
}
103103

104104
export interface FileRoutesByTo {
105105
"/": typeof IndexRoute
106106
"/journeys/$journeyId": typeof JourneysJourneyIdRoute
107107
"/map/$serverId": typeof MapServerIdRoute
108-
"/boards": typeof BoardsIndexRoute
108+
"/departureboard": typeof DepartureboardIndexRoute
109109
"/map": typeof MapIndexRoute
110110
}
111111

@@ -114,7 +114,7 @@ export interface FileRoutesById {
114114
"/": typeof IndexRoute
115115
"/journeys/$journeyId": typeof JourneysJourneyIdRoute
116116
"/map/$serverId": typeof MapServerIdRoute
117-
"/boards/": typeof BoardsIndexRoute
117+
"/departureboard/": typeof DepartureboardIndexRoute
118118
"/map/": typeof MapIndexRoute
119119
}
120120

@@ -124,16 +124,21 @@ export interface FileRouteTypes {
124124
| "/"
125125
| "/journeys/$journeyId"
126126
| "/map/$serverId"
127-
| "/boards"
127+
| "/departureboard"
128128
| "/map"
129129
fileRoutesByTo: FileRoutesByTo
130-
to: "/" | "/journeys/$journeyId" | "/map/$serverId" | "/boards" | "/map"
130+
to:
131+
| "/"
132+
| "/journeys/$journeyId"
133+
| "/map/$serverId"
134+
| "/departureboard"
135+
| "/map"
131136
id:
132137
| "__root__"
133138
| "/"
134139
| "/journeys/$journeyId"
135140
| "/map/$serverId"
136-
| "/boards/"
141+
| "/departureboard/"
137142
| "/map/"
138143
fileRoutesById: FileRoutesById
139144
}
@@ -142,15 +147,15 @@ export interface RootRouteChildren {
142147
IndexRoute: typeof IndexRoute
143148
JourneysJourneyIdRoute: typeof JourneysJourneyIdRoute
144149
MapServerIdRoute: typeof MapServerIdRoute
145-
BoardsIndexRoute: typeof BoardsIndexRoute
150+
DepartureboardIndexRoute: typeof DepartureboardIndexRoute
146151
MapIndexRoute: typeof MapIndexRoute
147152
}
148153

149154
const rootRouteChildren: RootRouteChildren = {
150155
IndexRoute: IndexRoute,
151156
JourneysJourneyIdRoute: JourneysJourneyIdRoute,
152157
MapServerIdRoute: MapServerIdRoute,
153-
BoardsIndexRoute: BoardsIndexRoute,
158+
DepartureboardIndexRoute: DepartureboardIndexRoute,
154159
MapIndexRoute: MapIndexRoute,
155160
}
156161

@@ -167,7 +172,7 @@ export const routeTree = rootRoute
167172
"/",
168173
"/journeys/$journeyId",
169174
"/map/$serverId",
170-
"/boards/",
175+
"/departureboard/",
171176
"/map/"
172177
]
173178
},
@@ -180,8 +185,8 @@ export const routeTree = rootRoute
180185
"/map/$serverId": {
181186
"filePath": "map/$serverId.tsx"
182187
},
183-
"/boards/": {
184-
"filePath": "boards/index.tsx"
188+
"/departureboard/": {
189+
"filePath": "departureboard/index.tsx"
185190
},
186191
"/map/": {
187192
"filePath": "map/index.tsx"

src/routes/boards/-components/BoardDestinationInfo.tsx renamed to src/routes/departureboard/-components/BoardDestinationInfo.tsx

File renamed without changes.

src/routes/boards/-components/BoardEntry.tsx renamed to src/routes/departureboard/-components/BoardEntry.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
import type { BoardEntryDto, PointInfoDto } from "@/api/generated";
2-
import { BoardDestinationInfo } from "@/routes/boards/-components/BoardDestinationInfo.tsx";
3-
import { BoardPlatformInfo } from "@/routes/boards/-components/BoardPlatformInfo.tsx";
4-
import { BoardTimeInfo } from "@/routes/boards/-components/BoardTimeInfo.tsx";
5-
import { BoardTrainInfo } from "@/routes/boards/-components/BoardTrainInfo.tsx";
6-
import { BoardViaInfo } from "@/routes/boards/-components/BoardViaInfo.tsx";
2+
import { BoardDestinationInfo } from "@/routes/departureboard/-components/BoardDestinationInfo.tsx";
3+
import { BoardPlatformInfo } from "@/routes/departureboard/-components/BoardPlatformInfo.tsx";
4+
import { BoardTimeInfo } from "@/routes/departureboard/-components/BoardTimeInfo.tsx";
5+
import { BoardTrainInfo } from "@/routes/departureboard/-components/BoardTrainInfo.tsx";
6+
import { BoardViaInfo } from "@/routes/departureboard/-components/BoardViaInfo.tsx";
77
import type { FC } from "react";
88

99
type BoardEntryProps = {

src/routes/boards/-components/BoardEntryTable.tsx renamed to src/routes/departureboard/-components/BoardEntryTable.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { type BoardEntryDto, type PointInfoDto, type SimRailServerDto, listBoardDepartures } from "@/api/generated";
22
import { Throbber } from "@/components/Throbber.tsx";
3-
import { BoardEntry } from "@/routes/boards/-components/BoardEntry.tsx";
4-
import { BoardTableHeading } from "@/routes/boards/-components/BoardTableHeading.tsx";
3+
import { BoardEntry } from "@/routes/departureboard/-components/BoardEntry.tsx";
4+
import { BoardTableHeading } from "@/routes/departureboard/-components/BoardTableHeading.tsx";
55
import { useQuery } from "@tanstack/react-query";
66
import { DateTime } from "luxon";
77
import type { FC } from "react";
File renamed without changes.

src/routes/boards/-components/BoardPlatformInfo.tsx renamed to src/routes/departureboard/-components/BoardPlatformInfo.tsx

File renamed without changes.

src/routes/boards/-components/BoardSelectForm.tsx renamed to src/routes/departureboard/-components/BoardSelectForm.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export const BoardSelectForm: FC<BoardSelectFormProps> = ({ timeSpan, onlyPassen
3636
} as BoardSelectFormFields,
3737
onSubmit: async ({ value }) =>
3838
navigate({
39-
to: "/boards",
39+
to: "/departureboard",
4040
search: {
4141
serverId: value.server?.id,
4242
pointId: value.point?.id,

src/routes/boards/-components/BoardTableHeading.tsx renamed to src/routes/departureboard/-components/BoardTableHeading.tsx

File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)