corequery 0.30.0 → 0.31.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/dist/server/api/create-api-router.d.ts +2 -2
- package/server/dist/server/api/create-api-router.js +2 -2
- package/server/dist/server/api/create-api-router.js.map +1 -1
- package/server/dist/server/api/handlers/about-page/v1/index.d.ts +4 -4
- package/server/dist/server/api/handlers/about-page/v1/index.js.map +1 -1
- package/server/dist/server/api/handlers/departures/v0/index.d.ts +4 -4
- package/server/dist/server/api/handlers/departures/v0/index.js +1 -1
- package/server/dist/server/api/handlers/departures/v0/index.js.map +1 -1
- package/server/dist/server/api/handlers/foda-synced-handler.d.ts +2 -2
- package/server/dist/server/api/handlers/foda-synced-handler.js.map +1 -1
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-foda.d.ts +3 -3
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-foda.js +2 -2
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-foda.js.map +1 -1
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-line-diagram-entry-foda.d.ts +2 -2
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-line-diagram-entry-foda.js +1 -1
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-line-diagram-foda.d.ts +2 -2
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-line-diagram-foda.js +1 -1
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-line-foda.d.ts +2 -2
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-line-foda.js +2 -2
- package/server/dist/server/api/handlers/foundational-data/multiversional/multiversional-stop-foda.d.ts +2 -2
- package/server/dist/server/api/handlers/foundational-data/v1/index.d.ts +4 -4
- package/server/dist/server/api/handlers/foundational-data/v1/index.js.map +1 -1
- package/server/dist/server/api/handlers/service/v0/index.d.ts +4 -4
- package/server/dist/server/api/handlers/service/v0/index.js +1 -1
- package/server/dist/server/api/handlers/service/v0/index.js.map +1 -1
- package/server/dist/server/api/handlers/version-check/v1/index.d.ts +4 -4
- package/server/dist/server/api/handlers/version-check/v1/index.js.map +1 -1
- package/server/dist/server/api/handlers/versions/v1/index.d.ts +4 -4
- package/server/dist/server/api/handlers/versions/v1/index.js.map +1 -1
- package/server/dist/server/api/types.d.ts +5 -5
- package/server/dist/server/config/config.d.ts +4 -4
- package/server/dist/server/config/helpers/create-canonical-lines-serving-stop-algorithm.d.ts +3 -3
- package/server/dist/server/config/helpers/create-canonical-lines-serving-stop-algorithm.js +2 -2
- package/server/dist/server/config/helpers/extract-stops-from-line-diagram-shape.d.ts +2 -2
- package/server/dist/server/config/linting/line/all-or-none-codes.d.ts +3 -3
- package/server/dist/server/config/linting/line/all-or-none-codes.js +2 -2
- package/server/dist/server/config/linting/line/all-or-none-colors.d.ts +3 -3
- package/server/dist/server/config/linting/line/all-or-none-colors.js +2 -2
- package/server/dist/server/config/linting/line/diagram/entry-minimum-stops.d.ts +2 -2
- package/server/dist/server/config/linting/line/diagram/entry-minimum-stops.js +2 -2
- package/server/dist/server/config/linting/line/diagram/has-entries.d.ts +3 -3
- package/server/dist/server/config/linting/line/diagram/has-entries.js +1 -1
- package/server/dist/server/config/linting/line/diagram/index.d.ts +4 -4
- package/server/dist/server/config/linting/line/diagram/index.js +3 -3
- package/server/dist/server/config/linting/line/diagram/stops-exist.d.ts +3 -3
- package/server/dist/server/config/linting/line/diagram/stops-exist.js +3 -3
- package/server/dist/server/config/linting/line/index.d.ts +4 -4
- package/server/dist/server/config/linting/line/index.js +11 -11
- package/server/dist/server/config/linting/line/no-duplicate-tags.d.ts +2 -2
- package/server/dist/server/config/linting/line/no-duplicate-tags.js +2 -2
- package/server/dist/server/config/linting/line/non-empty-code.d.ts +2 -2
- package/server/dist/server/config/linting/line/non-empty-code.js +1 -1
- package/server/dist/server/config/linting/line/non-empty-name.d.ts +2 -2
- package/server/dist/server/config/linting/line/non-empty-name.js +1 -1
- package/server/dist/server/config/linting/line/non-empty-url-path.d.ts +2 -2
- package/server/dist/server/config/linting/line/non-empty-url-path.js +1 -1
- package/server/dist/server/config/linting/line/unique-codes.d.ts +3 -3
- package/server/dist/server/config/linting/line/unique-codes.js +2 -2
- package/server/dist/server/config/linting/line/unique-ids.d.ts +2 -2
- package/server/dist/server/config/linting/line/unique-ids.js +2 -2
- package/server/dist/server/config/linting/line/unique-names.d.ts +3 -3
- package/server/dist/server/config/linting/line/unique-names.js +2 -2
- package/server/dist/server/config/linting/line/unique-url-paths.d.ts +2 -2
- package/server/dist/server/config/linting/line/unique-url-paths.js +2 -2
- package/server/dist/server/config/linting/lines-page/all-lines-listed.d.ts +5 -5
- package/server/dist/server/config/linting/lines-page/all-lines-listed.js +2 -2
- package/server/dist/server/config/linting/lines-page/index.d.ts +5 -5
- package/server/dist/server/config/linting/lines-page/index.js +2 -2
- package/server/dist/server/config/linting/lines-page/no-duplicate-lines.d.ts +5 -5
- package/server/dist/server/config/linting/lines-page/no-duplicate-lines.js +2 -2
- package/server/dist/server/config/linting/lint.d.ts +1 -1
- package/server/dist/server/config/linting/lint.js +5 -5
- package/server/dist/server/config/linting/stop/all-or-none-locations.d.ts +3 -3
- package/server/dist/server/config/linting/stop/all-or-none-locations.js +2 -2
- package/server/dist/server/config/linting/stop/all-or-none-positions.d.ts +3 -3
- package/server/dist/server/config/linting/stop/all-or-none-positions.js +2 -2
- package/server/dist/server/config/linting/stop/appears-in-diagrams.d.ts +4 -4
- package/server/dist/server/config/linting/stop/appears-in-diagrams.js +2 -2
- package/server/dist/server/config/linting/stop/index.d.ts +4 -4
- package/server/dist/server/config/linting/stop/index.js +10 -10
- package/server/dist/server/config/linting/stop/no-duplicate-tags.d.ts +2 -2
- package/server/dist/server/config/linting/stop/no-duplicate-tags.js +2 -2
- package/server/dist/server/config/linting/stop/non-empty-name.d.ts +2 -2
- package/server/dist/server/config/linting/stop/non-empty-name.js +1 -1
- package/server/dist/server/config/linting/stop/non-empty-url-path.d.ts +2 -2
- package/server/dist/server/config/linting/stop/non-empty-url-path.js +1 -1
- package/server/dist/server/config/linting/stop/position/index.d.ts +3 -3
- package/server/dist/server/config/linting/stop/position/index.js +3 -3
- package/server/dist/server/config/linting/stop/position/non-empty-name.d.ts +2 -2
- package/server/dist/server/config/linting/stop/position/non-empty-name.js +1 -1
- package/server/dist/server/config/linting/stop/position/unique-ids.d.ts +2 -2
- package/server/dist/server/config/linting/stop/position/unique-ids.js +2 -2
- package/server/dist/server/config/linting/stop/position/unique-names.d.ts +3 -3
- package/server/dist/server/config/linting/stop/position/unique-names.js +2 -2
- package/server/dist/server/config/linting/stop/unique-ids.d.ts +2 -2
- package/server/dist/server/config/linting/stop/unique-ids.js +2 -2
- package/server/dist/server/config/linting/stop/unique-names.d.ts +3 -3
- package/server/dist/server/config/linting/stop/unique-names.js +2 -2
- package/server/dist/server/config/linting/stop/unique-url-paths.d.ts +2 -2
- package/server/dist/server/config/linting/stop/unique-url-paths.js +2 -2
- package/server/dist/server/config/linting/tags/index.d.ts +2 -2
- package/server/dist/server/config/linting/tags/index.js +1 -1
- package/server/dist/server/config/linting/tags/no-duplicates-in-succession.d.ts +2 -2
- package/server/dist/server/config/linting/tags/no-duplicates-in-succession.js +2 -2
- package/server/dist/server/config/linting/types.d.ts +1 -1
- package/server/dist/server/config/linting/utils/issue-collector.d.ts +1 -1
- package/server/dist/server/config/types/line-config.d.ts +1 -1
- package/server/dist/server/config/types/service-sources-config.d.ts +1 -1
- package/server/dist/server/corequery.d.ts +7 -7
- package/server/dist/server/corequery.js +8 -8
- package/server/dist/server/corequery.js.map +1 -1
- package/server/dist/server/data/line-collection.d.ts +3 -3
- package/server/dist/server/data/line-collection.js +2 -2
- package/server/dist/server/data/line-diagram-entry.d.ts +2 -2
- package/server/dist/server/data/line-diagram-entry.js +2 -2
- package/server/dist/server/data/line-diagram.d.ts +2 -2
- package/server/dist/server/data/line-diagram.js +1 -1
- package/server/dist/server/data/line.d.ts +4 -4
- package/server/dist/server/data/line.js +3 -3
- package/server/dist/server/data/service/connection/service-connection.d.ts +2 -2
- package/server/dist/server/data/service/departure.d.ts +2 -2
- package/server/dist/server/data/service/service-movement.d.ts +4 -4
- package/server/dist/server/data/service/service-originating-movement.d.ts +1 -1
- package/server/dist/server/data/service/service-regular-movement.d.ts +1 -1
- package/server/dist/server/data/service/service-repository.d.ts +3 -3
- package/server/dist/server/data/service/service-repository.js +1 -1
- package/server/dist/server/data/service/service-source.d.ts +2 -2
- package/server/dist/server/data/service/service-terminating-movement.d.ts +1 -1
- package/server/dist/server/data/service/service.d.ts +7 -7
- package/server/dist/server/data/service/service.js +1 -1
- package/server/dist/server/data/service/zipper-departures-iterator.d.ts +2 -2
- package/server/dist/server/data/stop-collection.d.ts +3 -3
- package/server/dist/server/data/stop-collection.js +2 -2
- package/server/dist/server/data/stop.d.ts +3 -3
- package/server/dist/server/data/stop.js +2 -2
- package/server/dist/server/data/tags.d.ts +1 -1
- package/server/dist/server/get-corequery-package-version.js +1 -1
- package/server/dist/server/logger/console-logger.d.ts +1 -1
- package/server/dist/server/logger/console-logger.js +1 -1
- package/server/dist/server/logger/logger.d.ts +2 -2
- package/server/dist/server/logger/logger.js +2 -2
- package/server/dist/server/web-server/asset-preparer.d.ts +1 -1
- package/server/dist/server/web-server/asset-preparer.js +4 -4
- package/server/dist/server/web-server/web-server.d.ts +4 -4
- package/server/dist/server/web-server/web-server.js +2 -2
- package/server/dist/server/web-server/web-server.js.map +1 -1
- package/server/dist/shared/apis/about-page/v1/index.d.ts +1 -1
- package/server/dist/shared/apis/departures/v0/index.d.ts +1 -1
- package/server/dist/shared/apis/departures/v0/index.js +1 -1
- package/server/dist/shared/apis/foundational-data/v1/index.d.ts +1 -1
- package/server/dist/shared/apis/foundational-data/v1/index.js +1 -1
- package/server/dist/shared/apis/service/v0/index.d.ts +1 -1
- package/server/dist/shared/apis/service/v0/index.js +1 -1
- package/server/dist/shared/apis/version-check/v1/index.d.ts +1 -1
- package/server/dist/shared/apis/versions/v1/index.d.ts +1 -1
- package/web/dist/assets/{About-DpFLDTV_.js → About-DGmg1TM-.js} +1 -1
- package/web/dist/assets/{AdminControls-BMTTV4kR.js → AdminControls-T05hoDB-.js} +1 -1
- package/web/dist/assets/{Alert-k_U4L_j3.js → Alert-DfpdtaOB.js} +1 -1
- package/web/dist/assets/Debug-Q4Vy4lZ_.js +1 -0
- package/web/dist/assets/{Home-LcK9TehM.js → Home-C6T20k8G.js} +1 -1
- package/web/dist/assets/{Line-ZicduquS.js → Line-6nd7KD0E.js} +1 -1
- package/web/dist/assets/NotFound-BozS7u6u.js +1 -0
- package/web/dist/assets/{NotFoundPage-DLkgQE3z.js → NotFoundPage-UhXr10a9.js} +1 -1
- package/web/dist/assets/{Picker-ByWHXE97.js → Picker-D-TjVZAI.js} +1 -1
- package/web/dist/assets/{Service-CqfnDpff.js → Service-CkHxNopv.js} +1 -1
- package/web/dist/assets/{Settings-1Z6FXsgC.js → Settings-Ccrmh7u8.js} +1 -1
- package/web/dist/assets/{SimpleMobileHeaderContent-DnaUyjiU.js → SimpleMobileHeaderContent-Ja68XAJd.js} +1 -1
- package/web/dist/assets/{Status-DIIRyqgr.js → Status-CO5w5a1E.js} +1 -1
- package/web/dist/assets/Stop-BWZOcpvU.js +1 -0
- package/web/dist/assets/{ZenMode-qKwx-pZt.js → ZenMode-C3S7FmYt.js} +1 -1
- package/web/dist/assets/index-CrhwkQ9k.js +2 -0
- package/web/dist/assets/{index-BQNbqGv2.css → index-DJPX60jz.css} +1 -1
- package/web/dist/assets/{linear-CMwrWzQJ.js → linear-CtNhjlrM.js} +1 -1
- package/web/dist/assets/{use-simple-headers-Bihzijd5.js → use-simple-headers-Cbv0t_De.js} +1 -1
- package/web/dist/index.html +2 -2
- package/web/dist/reset.html +8 -4
- package/web/dist/sw.js +1 -1
- package/web/dist/assets/Debug-DGqHdl31.js +0 -1
- package/web/dist/assets/NotFound-zNBih-TR.js +0 -1
- package/web/dist/assets/Stop-DKWaUN6o.js +0 -1
- package/web/dist/assets/index-CE8NAPhv.js +0 -2
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {} from "
|
|
1
|
+
import {} from "@/server/data/color.js";
|
|
2
2
|
import { unique } from "@dan-schel/js-utils";
|
|
3
|
-
import { extractStopsFromLineDiagramShape } from "
|
|
3
|
+
import { extractStopsFromLineDiagramShape } from "@/server/config/helpers/extract-stops-from-line-diagram-shape.js";
|
|
4
4
|
const includedInStopListMapping = {
|
|
5
5
|
"regular": true,
|
|
6
6
|
"always-express": false,
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { LineDiagramEntry } from "
|
|
2
|
-
import type { LineDiagramConfig } from "
|
|
1
|
+
import { LineDiagramEntry } from "@/server/data/line-diagram-entry.js";
|
|
2
|
+
import type { LineDiagramConfig } from "@/server/config/index.js";
|
|
3
3
|
type LineDiagramFields = {
|
|
4
4
|
readonly entries: LineDiagramEntry[];
|
|
5
5
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import type { LineConfig, TagSuccessionConfig } from "
|
|
2
|
-
import { Tags } from "
|
|
3
|
-
import { type Color } from "
|
|
4
|
-
import { LineDiagram } from "
|
|
1
|
+
import type { LineConfig, TagSuccessionConfig } from "@/server/config/index.js";
|
|
2
|
+
import { Tags } from "@/server/data/tags.js";
|
|
3
|
+
import { type Color } from "@/server/data/color.js";
|
|
4
|
+
import { LineDiagram } from "@/server/data/line-diagram.js";
|
|
5
5
|
type LineFields = {
|
|
6
6
|
readonly id: number;
|
|
7
7
|
readonly name: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Tags } from "
|
|
2
|
-
import {} from "
|
|
3
|
-
import { LineDiagram } from "
|
|
1
|
+
import { Tags } from "@/server/data/tags.js";
|
|
2
|
+
import {} from "@/server/data/color.js";
|
|
3
|
+
import { LineDiagram } from "@/server/data/line-diagram.js";
|
|
4
4
|
export class Line {
|
|
5
5
|
id;
|
|
6
6
|
name;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { EntireVehicleFormsServiceConnection } from "
|
|
2
|
-
import type { GenericConnection } from "
|
|
1
|
+
import type { EntireVehicleFormsServiceConnection } from "@/server/data/service/connection/entire-vehicle-forms-service-connection.js";
|
|
2
|
+
import type { GenericConnection } from "@/server/data/service/connection/generic-connection.js";
|
|
3
3
|
export type ServiceConnection = EntireVehicleFormsServiceConnection | GenericConnection;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Service } from "
|
|
2
|
-
import type { ServiceServicingMovement } from "
|
|
1
|
+
import type { Service } from "@/server/data/service/service.js";
|
|
2
|
+
import type { ServiceServicingMovement } from "@/server/data/service/service-movement.js";
|
|
3
3
|
type DepartureFields = {
|
|
4
4
|
readonly service: Service;
|
|
5
5
|
readonly movementIndex: number;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ServiceOriginatingMovement } from "
|
|
2
|
-
import type { ServicePassingMovement } from "
|
|
3
|
-
import type { ServiceRegularMovement } from "
|
|
4
|
-
import type { ServiceTerminatingMovement } from "
|
|
1
|
+
import type { ServiceOriginatingMovement } from "@/server/data/service/service-originating-movement.js";
|
|
2
|
+
import type { ServicePassingMovement } from "@/server/data/service/service-passing-movement.js";
|
|
3
|
+
import type { ServiceRegularMovement } from "@/server/data/service/service-regular-movement.js";
|
|
4
|
+
import type { ServiceTerminatingMovement } from "@/server/data/service/service-terminating-movement.js";
|
|
5
5
|
export type ServiceMovement = ServiceOriginatingMovement | ServiceRegularMovement | ServiceTerminatingMovement | ServicePassingMovement;
|
|
6
6
|
export type ServiceServicingMovement = ServiceOriginatingMovement | ServiceRegularMovement | ServiceTerminatingMovement;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { ServiceSourcesConfig } from "
|
|
2
|
-
import type { DeparturesIterationDirection, ServiceSource } from "
|
|
3
|
-
import { ZipperDeparturesIterator } from "
|
|
1
|
+
import type { ServiceSourcesConfig } from "@/server/config/index.js";
|
|
2
|
+
import type { DeparturesIterationDirection, ServiceSource } from "@/server/data/service/service-source.js";
|
|
3
|
+
import { ZipperDeparturesIterator } from "@/server/data/service/zipper-departures-iterator.js";
|
|
4
4
|
export declare class ServiceRepository {
|
|
5
5
|
private readonly _sources;
|
|
6
6
|
constructor(_sources: readonly ServiceSource[]);
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { Service } from "
|
|
2
|
-
import type { Departure } from "
|
|
1
|
+
import type { Service } from "@/server/data/service/service.js";
|
|
2
|
+
import type { Departure } from "@/server/data/service/departure.js";
|
|
3
3
|
export type DeparturesIterationDirection = "forwards" | "backwards";
|
|
4
4
|
export type DeparturesIterator = {
|
|
5
5
|
peek: () => Promise<Departure | null>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import type { Tags } from "
|
|
2
|
-
import type { ServiceMovement } from "
|
|
3
|
-
import type { ServiceConnection } from "
|
|
4
|
-
import type { EntireVehicleFormsServiceConnection } from "
|
|
5
|
-
import type { ServiceOriginatingMovement } from "
|
|
6
|
-
import type { ServiceTerminatingMovement } from "
|
|
7
|
-
import { type Color } from "
|
|
1
|
+
import type { Tags } from "@/server/data/tags.js";
|
|
2
|
+
import type { ServiceMovement } from "@/server/data/service/service-movement.js";
|
|
3
|
+
import type { ServiceConnection } from "@/server/data/service/connection/service-connection.js";
|
|
4
|
+
import type { EntireVehicleFormsServiceConnection } from "@/server/data/service/connection/entire-vehicle-forms-service-connection.js";
|
|
5
|
+
import type { ServiceOriginatingMovement } from "@/server/data/service/service-originating-movement.js";
|
|
6
|
+
import type { ServiceTerminatingMovement } from "@/server/data/service/service-terminating-movement.js";
|
|
7
|
+
import { type Color } from "@/server/data/color.js";
|
|
8
8
|
type ServiceLiveDataType = "scheduled" | "updated" | "added";
|
|
9
9
|
type ServiceFields = {
|
|
10
10
|
readonly sourceId: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import type { DeparturesIterationDirection, DeparturesIterator } from "
|
|
2
|
-
import type { Departure } from "
|
|
1
|
+
import type { DeparturesIterationDirection, DeparturesIterator } from "@/server/data/service/service-source.js";
|
|
2
|
+
import type { Departure } from "@/server/data/service/departure.js";
|
|
3
3
|
export declare class ZipperDeparturesIterator implements DeparturesIterator {
|
|
4
4
|
private readonly _iterators;
|
|
5
5
|
private readonly _direction;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Collection } from "
|
|
2
|
-
import { Stop } from "
|
|
3
|
-
import type { GetCanonicalLinesServingStopConfig, StopConfig, TagSuccessionConfig } from "
|
|
1
|
+
import { Collection } from "@/shared/data/collection.js";
|
|
2
|
+
import { Stop } from "@/server/data/stop.js";
|
|
3
|
+
import type { GetCanonicalLinesServingStopConfig, StopConfig, TagSuccessionConfig } from "@/server/config/index.js";
|
|
4
4
|
export declare class StopCollection extends Collection<number, Stop> {
|
|
5
5
|
static build(stops: readonly StopConfig[], stopTagSuccession: TagSuccessionConfig, getCanonicalLinesServingStop: GetCanonicalLinesServingStopConfig): StopCollection;
|
|
6
6
|
protected _getID(item: Stop): number;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { Collection } from "
|
|
2
|
-
import { Stop } from "
|
|
1
|
+
import { Collection } from "@/shared/data/collection.js";
|
|
2
|
+
import { Stop } from "@/server/data/stop.js";
|
|
3
3
|
export class StopCollection extends Collection {
|
|
4
4
|
static build(stops, stopTagSuccession, getCanonicalLinesServingStop) {
|
|
5
5
|
return new StopCollection(stops.map((s) => Stop.build(s, stopTagSuccession, getCanonicalLinesServingStop(s.id))));
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import type { StopConfig, TagSuccessionConfig } from "
|
|
2
|
-
import { Tags } from "
|
|
3
|
-
import { Location } from "
|
|
1
|
+
import type { StopConfig, TagSuccessionConfig } from "@/server/config/index.js";
|
|
2
|
+
import { Tags } from "@/server/data/tags.js";
|
|
3
|
+
import { Location } from "@/server/data/location.js";
|
|
4
4
|
type StopFields = {
|
|
5
5
|
readonly id: number;
|
|
6
6
|
readonly name: string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GeneralLogCategory } from "
|
|
2
|
-
import { WebServerLogCategory } from "
|
|
1
|
+
import { GeneralLogCategory } from "@/server/logger/general-log-category.js";
|
|
2
|
+
import { WebServerLogCategory } from "@/server/logger/web-server-log-category.js";
|
|
3
3
|
export declare abstract class Logger {
|
|
4
4
|
readonly general: GeneralLogCategory;
|
|
5
5
|
readonly webServer: WebServerLogCategory;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { GeneralLogCategory } from "
|
|
2
|
-
import { WebServerLogCategory } from "
|
|
1
|
+
import { GeneralLogCategory } from "@/server/logger/general-log-category.js";
|
|
2
|
+
import { WebServerLogCategory } from "@/server/logger/web-server-log-category.js";
|
|
3
3
|
export class Logger {
|
|
4
4
|
general;
|
|
5
5
|
webServer;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { IndexHtmlPreparer } from "
|
|
2
|
-
import { ManifestPreparer } from "
|
|
3
|
-
import { IconsPreparer } from "
|
|
4
|
-
import { ServiceWorkerPreparer } from "
|
|
1
|
+
import { IndexHtmlPreparer } from "@/server/web-server/index-html-preparer.js";
|
|
2
|
+
import { ManifestPreparer } from "@/server/web-server/manifest-preparer.js";
|
|
3
|
+
import { IconsPreparer } from "@/server/web-server/icons-preparer.js";
|
|
4
|
+
import { ServiceWorkerPreparer } from "@/server/web-server/service-worker-preparer.js";
|
|
5
5
|
export class AssetPreparer {
|
|
6
6
|
_distFolderPath;
|
|
7
7
|
_config;
|
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import type { Corequery } from "
|
|
2
|
-
import type { AssetConfig } from "
|
|
1
|
+
import type { Corequery } from "@/server/corequery.js";
|
|
2
|
+
import type { AssetConfig } from "@/server/config/types/asset-config.js";
|
|
3
3
|
type ClientMode = "dist-folder" | "vite-middleware";
|
|
4
|
-
export declare class WebServer {
|
|
4
|
+
export declare class WebServer<CustomContextType> {
|
|
5
5
|
private readonly _app;
|
|
6
6
|
private readonly _port;
|
|
7
7
|
private readonly _assetConfig;
|
|
8
8
|
private readonly _clientMode;
|
|
9
9
|
private readonly _serverFolderPath;
|
|
10
10
|
private _frontendVersion;
|
|
11
|
-
constructor(_app: Corequery
|
|
11
|
+
constructor(_app: Corequery<CustomContextType>, _port: number, _assetConfig: AssetConfig, _clientMode: ClientMode, _serverFolderPath: string);
|
|
12
12
|
prepareAssets(): Promise<void>;
|
|
13
13
|
start(): Promise<void>;
|
|
14
14
|
getFrontendVersion(): string;
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
import express from "express";
|
|
2
2
|
import fsp from "fs/promises";
|
|
3
3
|
import path from "path";
|
|
4
|
-
import { AssetPreparer } from "
|
|
5
|
-
import { createApiRouter } from "
|
|
4
|
+
import { AssetPreparer } from "@/server/web-server/asset-preparer.js";
|
|
5
|
+
import { createApiRouter } from "@/server/api/create-api-router.js";
|
|
6
6
|
export class WebServer {
|
|
7
7
|
_app;
|
|
8
8
|
_port;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"web-server.js","sourceRoot":"","sources":["../../../web-server/web-server.ts"],"names":[],"mappings":"AAAA,OAAO,OAAO,MAAM,SAAS,CAAC;AAC9B,OAAO,GAAG,MAAM,aAAa,CAAC;AAC9B,OAAO,IAAI,MAAM,MAAM,CAAC;AAExB,OAAO,EAAE,aAAa,EAAE,MAAM,uCAAuC,CAAC;AAEtE,OAAO,EAAE,eAAe,EAAE,MAAM,mCAAmC,CAAC;AAIpE,MAAM,OAAO,SAAS;IAID;IACA;IACA;IACA;IACA;IAPX,gBAAgB,CAAgB;IAExC,YACmB,
|
|
1
|
+
{"version":3,"file":"web-server.js","sourceRoot":"","sources":["../../../web-server/web-server.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
|
-
import { createFodaSyncedResultSchema } from "
|
|
2
|
+
import { createFodaSyncedResultSchema } from "@/shared/apis/foda-synced-result.js";
|
|
3
3
|
// NOTE: This is a "v0" API, i.e. its not intended to be used by anyone except
|
|
4
4
|
// me, during the "beta" phase. When we switch to "v1" it'll break compatibility
|
|
5
5
|
// with frontends that only understand the v0 API, and that's A-OK.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import z from "zod";
|
|
2
|
-
import { createFodaSyncedResultSchema } from "
|
|
2
|
+
import { createFodaSyncedResultSchema } from "@/shared/apis/foda-synced-result.js";
|
|
3
3
|
// NOTE: This is a "v0" API, i.e. its not intended to be used by anyone except
|
|
4
4
|
// me, during the "beta" phase. When we switch to "v1" it'll break compatibility
|
|
5
5
|
// with frontends that only understand the v0 API, and that's A-OK.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,l as t,r as n}from"./use-nav-exemptions-QtGbfEPT.js";import{d as r}from"./use-api-BJomuYg6.js";import{n as i}from"./use-foundational-data-BEVQRFj9.js";import{n as a,v as o}from"./index-
|
|
1
|
+
import{i as e,l as t,r as n}from"./use-nav-exemptions-QtGbfEPT.js";import{d as r}from"./use-api-BJomuYg6.js";import{n as i}from"./use-foundational-data-BEVQRFj9.js";import{n as a,v as o}from"./index-CrhwkQ9k.js";import{t as s}from"./Placeholder-BRnxNmKm.js";import{n as c,t as l}from"./Markdown-D5fQv556.js";import{t as u}from"./Page-BMcxP_9m.js";import{t as d}from"./use-simple-headers-Cbv0t_De.js";import{t as f}from"./Divider-lz6Cf6K8.js";import{t as p}from"./Alert-DfpdtaOB.js";function m(){let{appName:m}=o(),{foda:h}=i(),{data:g,loading:_,error:v}=a(r,{}),y=d({title:`About ${m}`});return _?t(u,{...y,children:t(n,{class:`px-4 py-8`,children:[t(s,{class:`w-[30%] text-xl`}),t(`div`,{class:`h-8`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-[60%] text-md`}),t(`div`,{class:`h-12`}),t(s,{class:`w-[40%] text-lg`}),t(`div`,{class:`h-8`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-[20%] text-md`}),t(`div`,{class:`h-12`}),t(s,{class:`w-[50%] text-lg`}),t(`div`,{class:`h-8`}),t(s,{class:`w-full text-md`}),t(`div`,{class:`h-3`}),t(s,{class:`w-[80%] text-md`})]})}):v!=null||g==null?t(u,{...y,children:t(n,{class:`px-4 py-8`,children:t(p,{type:`error`,children:t(e,{children:`An error occurred while loading the about page.`})})})}):t(u,{...y,children:t(n,{class:`px-4 py-8 gap-12`,children:[t(l,{markdown:g.primaryMarkdown}),t(n,{class:`gap-8`,children:[t(f,{}),t(e,{as:`p`,style:`small-weak`,children:t(c,{markdown:h.footerPrimaryMarkdown})})]})]})})}export{m as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,l as t,r as n}from"./use-nav-exemptions-QtGbfEPT.js";import{t as r}from"./Page-BMcxP_9m.js";import{t as i}from"./use-simple-headers-
|
|
1
|
+
import{i as e,l as t,r as n}from"./use-nav-exemptions-QtGbfEPT.js";import{t as r}from"./Page-BMcxP_9m.js";import{t as i}from"./use-simple-headers-Cbv0t_De.js";function a(){return t(r,{...i({title:`Admin controls`}),children:t(n,{class:`px-4 py-8 gap-8`,children:t(e,{children:`Maybe the real admin controls were the friends we made along the way?`})})})}export{a as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,l as t,o as n,s as r}from"./use-nav-exemptions-QtGbfEPT.js";import{l as i,r as a,s as o}from"./index-
|
|
1
|
+
import{c as e,l as t,o as n,s as r}from"./use-nav-exemptions-QtGbfEPT.js";import{l as i,r as a,s as o}from"./index-CrhwkQ9k.js";import{t as s}from"./MingcuteAlertLine-CdthHQmK.js";function c(e){return t(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:t(`g`,{fill:`none`,fillRule:`evenodd`,children:[t(`path`,{d:`m12.593 23.258l-.011.002l-.071.035l-.02.004l-.014-.004l-.071-.035q-.016-.005-.024.005l-.004.01l-.017.428l.005.02l.01.013l.104.074l.015.004l.012-.004l.104-.074l.012-.016l.004-.017l-.017-.427q-.004-.016-.017-.018m.265-.113l-.013.002l-.185.093l-.01.01l-.003.011l.018.43l.005.012l.008.007l.201.093q.019.005.029-.008l.004-.014l-.034-.614q-.005-.018-.02-.022m-.715.002a.02.02 0 0 0-.027.006l-.006.014l-.034.614q.001.018.017.024l.015-.002l.201-.093l.01-.008l.004-.011l.017-.43l-.003-.012l-.01-.01z`}),t(`path`,{fill:`currentColor`,d:`M21.192 5.465a1 1 0 0 1 0 1.414L9.95 18.122a1.1 1.1 0 0 1-1.556 0l-5.586-5.586a1 1 0 1 1 1.415-1.415l4.95 4.95L19.777 5.465a1 1 0 0 1 1.414 0Z`})]})})}function l(l){let u={info:o,error:i,warning:s,success:c}[l.type],d=l.icon===void 0?u:l.icon,f={info:`bg-soft-accent`,error:`bg-soft-error`,warning:`bg-soft-warning`,success:`bg-soft-success`}[l.type],p={info:[`[--color-fg:var(--color-accent-text)]`,`[--color-fg-strong:var(--color-accent-text)]`,`[--color-fg-weak:var(--color-accent-text)]`],error:[`[--color-fg:var(--color-error-text)]`,`[--color-fg-strong:var(--color-error-text)]`,`[--color-fg-weak:var(--color-error-text)]`],warning:[`[--color-fg:var(--color-warning-text)]`,`[--color-fg-strong:var(--color-warning-text)]`,`[--color-fg-weak:var(--color-warning-text)]`],success:[`[--color-fg:var(--color-success-text)]`,`[--color-fg-strong:var(--color-success-text)]`,`[--color-fg-weak:var(--color-success-text)]`]}[l.type];return t(r,{class:e(l.class,f,p,`px-4 py-4.5 rounded-sm gap-2 items-start`,{"grid-cols-[auto_1fr]":d!=null}),children:[d!=null&&t(a,{heightRem:n(`text-md`),children:t(d,{class:`text-fg text-icon-lg`})}),l.children]})}export{l as t};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{c as e,h as t,i as n,l as r,o as i,r as a,s as o,v as s}from"./use-nav-exemptions-QtGbfEPT.js";import{i as c}from"./use-api-BJomuYg6.js";import{n as l}from"./use-foundational-data-BEVQRFj9.js";import{_ as u,f as d,g as f,m as p,n as m,o as h,r as g,t as _,v}from"./index-CrhwkQ9k.js";import{t as y}from"./Placeholder-BRnxNmKm.js";import{t as b}from"./Page-BMcxP_9m.js";import{t as x}from"./use-simple-headers-Cbv0t_De.js";import{t as S}from"./Divider-lz6Cf6K8.js";import{t as C}from"./Alert-DfpdtaOB.js";function w(t){let i={info:`bg-soft-accent`,error:`bg-soft-error`,warning:`bg-soft-warning`,success:`bg-soft-success`}[t.type],a={info:`[--color-fg:var(--color-accent-text)]`,error:`[--color-fg:var(--color-error-text)]`,warning:`[--color-fg:var(--color-warning-text)]`,success:`[--color-fg:var(--color-success-text)]`}[t.type];return r(o,{class:e(t.class,i,a,`px-2 py-1.5 rounded-full`),children:r(n,{style:`small`,children:t.text})})}function T(t){return r(p,{class:e(t.class,`gap-x-2 gap-y-3`),wrap:!0,children:[r(n,{style:`strong`,children:t.header}),t.loading&&r(y,{class:`w-[20%] text-md`}),!t.loading&&t.pillContent!=null&&r(g,{heightRem:i(`text-md`),children:r(w,{type:t.pillContent.type,text:t.pillContent.text})})]})}function E(e){return r(T,{class:e.class,header:e.header,pillContent:D(e.currentValue,e.latestValue),loading:e.loading})}function D(e,t){return t==null?null:{text:e===t?`Up to date`:`Outdated`,type:e===t?`success`:`error`}}function O(e){return e.loading?r(o,{class:e.class,children:r(y,{class:`w-[40%] text-md`})}):e.value==null?null:r(n,{class:e.class,children:[e.prefix,`: `,e.value]})}function k(e){return e==null?null:e.length<32||!/^[0-9a-f]+$/.test(e)?e:e.slice(0,7)}function A(t){let{isUpdateAvailable:a,update:o}=h();return a?r(d,{theme:`accent`,text:`Refresh & update`,class:`self-start`,icon:f,onClick:()=>void o()}):r(p,{class:e(t.class,`gap-2`),children:[r(g,{heightRem:i(`text-md`),children:r(u,{})}),r(n,{class:`min-w-0 shrink`,children:`Waiting for service worker to install update...`})]})}function j(e){let{isHotReloadingEnabled:t}=_();return r(t?M:N,{...e})}function M(t){return r(a,{class:e(t.class,`gap-6`),children:[r(T,{header:`App version`,pillContent:{text:`Development`,type:`info`},loading:!1}),r(n,{children:`All frontend code is being served with hot-reloading enabled, not through the PWA. (The below values are meaningless.)`}),r(P,{}),r(O,{prefix:`Latest version`,value:t.latestVersion?.slice(0,8)??null,loading:t.loading})]})}function N(t){let{frontendVersion:n}=v(),i=!t.loading&&t.latestVersion!=null&&t.latestVersion!==n;return r(a,{class:e(t.class,`gap-6`),children:[r(E,{header:`App version`,currentValue:n,latestValue:t.latestVersion,loading:t.loading}),r(P,{}),r(O,{prefix:`Latest version`,value:k(t.latestVersion),loading:t.loading}),i&&r(A,{})]})}function P(){let{frontendVersion:e,versionsOnLastUpdate:t}=v();return r(a,{class:`gap-4`,children:[r(n,{children:[`Current version: `,k(e)]}),r(a,{class:`gap-3`,children:[r(n,{style:`small-weak`,children:[`Server version: `,k(t.serverVersion)]}),r(n,{style:`small-weak`,children:[`CoreQuery version: `,t.corequeryPackageVersion]})]})]})}function F(t){let{foda:i}=l();return r(a,{class:e(t.class,`gap-6`),children:[r(E,{header:`Foundational data`,currentValue:i.hash,latestValue:t.latestVersion,loading:t.loading}),r(a,{class:`gap-4`,children:[r(n,{children:[`Current version: `,k(i.hash)]}),r(n,{style:`small-weak`,children:[`Server version: `,k(i.serverVersion)]})]}),r(O,{prefix:`Latest version`,value:k(t.latestVersion),loading:t.loading})]})}function I(t){return r(a,{class:e(t.class,`gap-6`),children:[r(n,{style:`strong`,children:`Server`}),t.error!=null&&r(C,{type:`error`,children:r(n,{children:`An error occurred while fetching the latest version info from the server.`})}),r(a,{class:`gap-4 empty:hidden`,children:[r(O,{prefix:`Server version`,value:k(t.serverVersion),loading:t.loading}),r(O,{prefix:`CoreQuery version`,value:t.corequeryPackageVersion,loading:t.loading})]})]})}function L(e){return e<2e3?`${e.toFixed(0)} bytes`:e<2e6?`${(e/1e3).toFixed(2)} KB`:e<2e9?`${(e/1e6).toFixed(2)} MB`:e<2e12?`${(e/1e9).toFixed(2)} GB`:`${(e/0xe8d4a51000).toFixed(2)} TB`}function R(){let[e,i]=s(null),[o,c]=s(!0),[l,u]=s(!1);t(()=>{async function e(){c(!0),u(!1);try{let e=await navigator.storage.estimate();i(e)}catch(e){console.warn(`An error occurred while retrieving storage metrics.`,e),u(!0)}finally{c(!1)}}e()},[]);let d=e?.usage==null?null:L(e.usage),f=e?.quota==null?null:L(e.quota);return r(a,{class:`gap-6`,children:[r(n,{style:`strong`,children:`On-device storage`}),l&&r(C,{type:`error`,children:r(n,{children:`An error occurred while retrieving storage metrics.`})}),r(a,{class:`gap-4 empty:hidden`,children:[r(O,{prefix:`Storage used`,value:d,loading:o}),r(O,{prefix:`Storage quota`,value:f,loading:o})]})]})}function z(){let{data:e,loading:t,error:i}=m(c,{});return r(b,{...x({title:`Developer info`}),children:r(a,{class:`px-4 py-8 gap-8`,children:[i!=null&&r(C,{type:`error`,children:r(n,{children:`An error occurred while fetching the latest version info from the server.`})}),r(j,{latestVersion:e?.frontendVersion??null,loading:t}),r(S,{}),r(F,{latestVersion:e?.foundationalDataHash??null,loading:t}),r(S,{}),r(I,{serverVersion:e?.serverVersion??null,corequeryPackageVersion:e?.corequeryPackageVersion??null,loading:t,error:i}),r(S,{}),r(R,{}),r(S,{})]})})}export{z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{l as e,r as t}from"./use-nav-exemptions-QtGbfEPT.js";import{n}from"./use-foundational-data-BEVQRFj9.js";import{t as r}from"./Markdown-D5fQv556.js";import{t as i}from"./Page-BMcxP_9m.js";import{t as a}from"./use-simple-headers-
|
|
1
|
+
import{l as e,r as t}from"./use-nav-exemptions-QtGbfEPT.js";import{n}from"./use-foundational-data-BEVQRFj9.js";import{t as r}from"./Markdown-D5fQv556.js";import{t as i}from"./Page-BMcxP_9m.js";import{t as a}from"./use-simple-headers-Cbv0t_De.js";function o(){let{foda:o}=n();return e(i,{...a({title:`Home`}),children:e(t,{class:`px-4 py-8 gap-12`,children:e(r,{markdown:o.landingPage.primaryMarkdown})})})}export{o as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,c as t,i as n,l as r,m as i,r as a,s as o,v as s,y as c}from"./use-nav-exemptions-QtGbfEPT.js";import{l}from"./use-api-BJomuYg6.js";import{n as u}from"./use-foundational-data-BEVQRFj9.js";import{t as d}from"./scope-B-e4l8Dr.js";import{i as f,n as p,o as m,r as h,t as g}from"./linear-
|
|
1
|
+
import{_ as e,c as t,i as n,l as r,m as i,r as a,s as o,v as s,y as c}from"./use-nav-exemptions-QtGbfEPT.js";import{l}from"./use-api-BJomuYg6.js";import{n as u}from"./use-foundational-data-BEVQRFj9.js";import{t as d}from"./scope-B-e4l8Dr.js";import{i as f,n as p,o as m,r as h,t as g}from"./linear-CtNhjlrM.js";import{t as _}from"./LinkText-sdmJpshg.js";import{a as v,d as y,v as b}from"./index-CrhwkQ9k.js";import{t as x}from"./Page-BMcxP_9m.js";import{t as S}from"./use-simple-headers-Cbv0t_De.js";import{t as C}from"./Alert-DfpdtaOB.js";import{t as w}from"./NotFoundPage-UhXr10a9.js";import{t as T}from"./Picker-D-TjVZAI.js";function E(e){throw Error(`Unexpected value: ${String(e)}`)}function D(i){let{foda:o}=u(),{appName:s}=b(),c=e(()=>i.fallbackStopList.map(e=>o.stops.require(e)).sort((e,t)=>e.name.localeCompare(t.name)),[o.stops,i.fallbackStopList]);return r(a,{class:t(i.class,`gap-6`),children:[r(n,{style:`subtitle`,children:`Stops`}),r(C,{type:`info`,children:r(a,{class:`gap-6`,children:[r(n,{children:[`A neat little diagram is also available for this line, but it's of a new type, and so requires a newer version of `,s,` to be able to view.`,` `]}),r(n,{style:`strong`,children:r(_,{href:`/debug`,children:`Help me update`})})]})}),r(`ul`,{class:`flex-col flex list-disc list-inside gap-4`,children:c.map(e=>r(n,{children:r(`li`,{children:r(_,{href:`/stop/${e.urlPath}`,children:e.name})})}))})]})}function O(e,t){return t.map(t=>{let i=e.stops.require(t.stopId),a=`/stop/${i.urlPath}`;if(t.type===`regular`)return{content:r(n,{style:`strong`,children:r(_,{href:a,style:`subtle`,children:i.name})})};if(t.type===`always-express`)return{content:r(n,{style:`small-weak`,children:r(_,{href:a,style:`subtle`,children:[`Skips `,i.name]})}),drawMark:!1};E(t.type)})}function k(t){let{foda:n}=u(),i=e(()=>({type:`linear`,stops:O(n,t.diagram.stops)}),[n,t.diagram.stops]);return r(g,{class:t.class,structure:i,lightThemeColorHexCode:t.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:t.diagram.color?.darkModeHexCode??null})}var A=10,j=15,M=class extends h{_onRenderStructure(){let{commonStops:e,branchAStops:t,branchBStops:n}=this.data.structure,{x:r,y:i}=this._measure();this._renderSection({stops:e,x:r.common,yLevels:i.common.all,terminatesAtTop:!0,terminatesAtBottom:!1,notchSide:`right`}),this._renderSection({stops:t,x:r.branchA,yLevels:i.branchA.all,terminatesAtTop:!1,terminatesAtBottom:!0,notchSide:`left`}),this._renderSection({stops:n,x:r.branchB,yLevels:i.branchB.all,terminatesAtTop:!1,terminatesAtBottom:!0,notchSide:`right`}),this._drawLine(e=>{e.moveTo(r.common,i.common.bottom),e.lineTo(r.common,i.common.bottom+A),e.bezierCurveTo(r.common,i.common.bottom+j+A,r.branchA,i.branches.top-j,r.branchA,i.branches.top),e.lineTo(r.branchA,i.branchA.top),e.moveTo(r.common,i.common.bottom+A),e.bezierCurveTo(r.common,i.common.bottom+j+A,r.branchB,i.branches.top-j,r.branchB,i.branches.top),e.lineTo(r.branchB,i.branchA.top)})}_measure(){let{commonStops:e,branchAStops:t,branchBStops:n}=this.data.structure,r=this._extractYLevels(e,N),i=d(r[0]),a=d(r[r.length-1]),o=this._extractYLevels(t,P),s=d(o[0]),c=d(o[o.length-1]),l=this._extractYLevels(n,F),u=d(l[0]),f=d(l[l.length-1]);return{x:{common:this.width/2,branchA:8,branchB:this.width-8},y:{common:{all:r,top:i,bottom:a},branchA:{all:o,top:s,bottom:c},branchB:{all:l,top:u,bottom:f},branches:{top:Math.min(s,u),bottom:Math.max(c,f)}}}}},N=`_diagram-common-stops`,P=`_diagram-branch-a-stops`,F=`_diagram-branch-b-stops`;function I(n){let{settings:i}=y(),s=e(()=>({structure:n.structure,lightThemeColorHexCode:n.lightThemeColorHexCode,darkThemeColorHexCode:n.darkThemeColorHexCode,colorTheme:i.theme}),[n.darkThemeColorHexCode,n.lightThemeColorHexCode,n.structure,i.theme]),l=c((e,t)=>new M(e,t),[]);return s.structure.commonStops.length<1||s.structure.branchAStops.length<1||s.structure.branchBStops.length<1?r(p,{}):r(o,{class:t(n.class,`grid-cols-[auto_auto_auto] grid-rows-[auto_auto] gap-y-8 gap-x-4`),children:[r(f,{class:`w-12 col-2 row-span-full`,createController:l,data:s}),r(a,{class:t(`gap-6 col-3 row-1 -ml-4`,N),xAlign:`left`,children:n.structure.commonStops.map(e=>r(o,{children:e.content}))}),r(a,{class:t(`gap-6 col-1 row-2`,P),xAlign:`right`,children:n.structure.branchAStops.map(e=>r(o,{children:e.content}))}),r(a,{class:t(`gap-6 col-3 row-2`,F),xAlign:`left`,children:n.structure.branchBStops.map(e=>r(o,{children:e.content}))})]})}function L(t){let{foda:n}=u(),i=e(()=>({type:`branch`,commonStops:O(n,t.diagram.commonStops),branchAStops:O(n,t.diagram.branchAStops),branchBStops:O(n,t.diagram.branchBStops)}),[n,t.diagram]);return r(I,{class:t.class,structure:i,lightThemeColorHexCode:t.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:t.diagram.color?.darkModeHexCode??null})}var R=10,z=15,B=24,V=1,H=class extends h{_onRenderStructure(){let{loopLeftStops:e,loopRightStops:t,mainStops:n}=this.data.structure,{x:r,y:i}=this._measure();if(e.length>0?this._renderSection({stops:e,x:r.loopLeft,yLevels:i.loopLeft.all,terminatesAtTop:!1,terminatesAtBottom:!1,notchSide:`left`}):this._drawLine(e=>{e.moveTo(r.loopLeft,i.loopLeft.top-V),e.lineTo(r.loopLeft,i.loopLeft.bottom+V)}),t.length>0?this._renderSection({stops:t,x:r.loopRight,yLevels:i.loopRight.all,terminatesAtTop:!1,terminatesAtBottom:!1,notchSide:`right`}):this._drawLine(e=>{e.moveTo(r.loopRight,i.loopRight.top-V),e.lineTo(r.loopRight,i.loopRight.bottom+V)}),n.length>0){let e=d(i.main.top);this._renderSection({stops:n,x:r.main,yLevels:i.main.all,terminatesAtTop:!1,terminatesAtBottom:!0,notchSide:`right`}),this._drawLine(t=>{t.moveTo(r.main,e),t.lineTo(r.main,e-R),t.bezierCurveTo(r.main,e-z-R,r.loopLeft,i.loop.bottom+z,r.loopLeft,i.loop.bottom),t.lineTo(r.loopLeft,i.loopLeft.bottom),t.moveTo(r.main,e-R),t.bezierCurveTo(r.main,e-z-R,r.loopRight,i.loop.bottom+z,r.loopRight,i.loop.bottom),t.lineTo(r.loopRight,i.loopRight.bottom)}),this.ctx.stroke()}else this._drawLine(e=>{e.moveTo(r.loopLeft,i.loopLeft.bottom),e.lineTo(r.loopLeft,i.loop.bottom),e.bezierCurveTo(r.loopLeft,i.loop.bottom+B,r.loopRight,i.loop.bottom+B,r.loopRight,i.loop.bottom),e.lineTo(r.loopRight,i.loopRight.bottom)});this._drawLine(e=>{e.moveTo(r.loopLeft,i.loopLeft.top),e.lineTo(r.loopLeft,i.loop.top),e.bezierCurveTo(r.loopLeft,i.loop.top-B,r.loopRight,i.loop.top-B,r.loopRight,i.loop.top),e.lineTo(r.loopRight,i.loopRight.top)})}_measure(){let{loopLeftStops:e,loopRightStops:t,mainStops:n}=this.data.structure,r=this._extractYLevels(e,W),i=this._extractYLevels(t,G),a=this._extractYLevels(n,U),o=r[0],s=i[0],c=r[r.length-1],l=i[i.length-1],u=d(o??s),f=d(s??o),p=d(c??l),m=d(l??c);return{x:{loopLeft:8,loopRight:this.width-8,main:this.width/2},y:{loopLeft:{all:r,top:u,bottom:p},loopRight:{all:i,top:f,bottom:m},main:{all:a,top:a[0]??null,bottom:a[a.length-1]??null},loop:{top:Math.min(u,f),bottom:Math.max(p,m)}}}}},U=`_diagram-main-stops`,W=`_diagram-loop-left-stops`,G=`_diagram-loop-right-stops`;function K(n){let{settings:i}=y(),s=e(()=>({structure:n.structure,lightThemeColorHexCode:n.lightThemeColorHexCode,darkThemeColorHexCode:n.darkThemeColorHexCode,colorTheme:i.theme}),[n.darkThemeColorHexCode,n.lightThemeColorHexCode,n.structure,i.theme]),l=c((e,t)=>new H(e,t),[]),{loopLeftStops:u,loopRightStops:d}=s.structure;return u.length+d.length<1?r(p,{}):r(o,{class:t(n.class,`grid-cols-[auto_auto_auto] grid-rows-[auto_auto] gap-x-4`),children:[r(f,{class:`w-12 col-2 row-span-full`,createController:l,data:s}),r(a,{class:t(`gap-6 col-1 row-1 py-4`,W),xAlign:`right`,yAlign:`center`,children:n.structure.loopLeftStops.map(e=>r(o,{children:e.content}))}),r(a,{class:t(`gap-6 col-3 row-1 py-4`,G),xAlign:`left`,yAlign:`center`,children:n.structure.loopRightStops.map(e=>r(o,{children:e.content}))}),r(a,{class:t(`gap-6 col-3 row-2 -ml-4`,U,{"pt-4":n.structure.mainStops.length>0}),xAlign:`left`,children:n.structure.mainStops.map(e=>r(o,{children:e.content}))})]})}function q(t){let{foda:n}=u(),i=e(()=>({type:`loop`,loopLeftStops:O(n,t.diagram.loopLeftStops),loopRightStops:O(n,t.diagram.loopRightStops),mainStops:O(n,t.diagram.mainStops)}),[n,t.diagram]);return r(K,{class:t.class,structure:i,lightThemeColorHexCode:t.diagram.color?.lightModeHexCode??null,darkThemeColorHexCode:t.diagram.color?.darkModeHexCode??null})}function J(e){return r(o,{class:t(e.class,`bg-bg-raised px-4 py-8 justify-center rounded-sm border border-soft-border`),children:r(Y,{diagram:e.diagram})})}function Y(e){if(e.diagram.type===`linear`)return r(k,{diagram:e.diagram});if(e.diagram.type===`branch`)return r(L,{diagram:e.diagram});if(e.diagram.type===`loop`)return r(q,{diagram:e.diagram});E(e.diagram)}function X(e){let i=e.diagram.entries.filter(e=>l(e.type));return i.length<e.diagram.entries.length?r(D,{fallbackStopList:e.diagram.fallbackStopList}):r(a,{class:t(e.class,`gap-6`),children:[r(n,{style:`subtitle`,children:`Diagram`}),i.length===1?r(J,{diagram:d(i[0])}):r(Z,{entries:i},i.length)]})}function Z(t){let[n,i]=s(0),o=e(()=>t.entries.map((e,t)=>({value:t.toFixed(),label:e.name??`Route ${t+1}`})),[t.entries]);return r(a,{class:`gap-4`,children:[r(T,{class:`self-start`,value:n.toFixed(),options:o,onChange:e=>{i(m(e))}}),r(J,{diagram:d(t.entries[n])})]})}function Q(){let{params:{id:t}}=i(),{foda:n}=u(),a=e(()=>n.lines.getByUrlPath(t??``),[n.lines,t]);return a==null?r(w,{afterConfirming:`foundational-data-version`}):r($,{line:a},a.id)}function $(e){let{formatLine:t}=v();return r(x,{...S({title:t(e.line.name),back:{href:`/`,text:`Home`}}),children:r(a,{class:`px-4 py-8 gap-8`,children:e.line.diagram.entries.length>0&&r(X,{diagram:e.line.diagram})})})}export{Q as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{l as e}from"./use-nav-exemptions-QtGbfEPT.js";import{t}from"./NotFoundPage-UhXr10a9.js";function n(){return e(t,{afterConfirming:`frontend-version`})}export{n as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{h as e,i as t,l as n,r,v as i}from"./use-nav-exemptions-QtGbfEPT.js";import{i as a}from"./use-api-BJomuYg6.js";import{n as o}from"./use-foundational-data-BEVQRFj9.js";import{_ as s,c,f as l,n as u,o as d,t as f,v as p}from"./index-
|
|
1
|
+
import{h as e,i as t,l as n,r,v as i}from"./use-nav-exemptions-QtGbfEPT.js";import{i as a}from"./use-api-BJomuYg6.js";import{n as o}from"./use-foundational-data-BEVQRFj9.js";import{_ as s,c,f as l,n as u,o as d,t as f,v as p}from"./index-CrhwkQ9k.js";import{t as m}from"./Page-BMcxP_9m.js";function h(e){let t=u(a,{}),n=g(e===`frontend-version`,t),r=_(e===`foundational-data-version`,t);return t.loading||n||r}function g(t,n){let{isHotReloadingEnabled:r}=f(),{frontendVersion:i}=p(),{unregister:a}=d(),o=t&&!r&&!n.loading&&n.error==null&&n.data!=null&&n.data.frontendVersion!==i;return e(()=>{if(!o)return;async function e(){await a(),window.location.reload()}e()},[o,a]),o}function _(t,n){let{foda:r,forceFodaUpdate:a}=o(),[s,c]=i(!1),[l,u]=i(!1),d=t&&!n.loading&&n.error==null&&n.data!=null&&n.data.foundationalDataHash!==r.hash;return e(()=>{if(!d)return;async function e(){u(!0);try{await a()}catch{console.warn(`Foundational data is outdated, but force update failed.`)}finally{c(!0),u(!1)}}e()},[d,a]),d&&!s||l}function v({afterConfirming:e}){return h(e)?n(m,{mobileHeader:null,desktopHeader:null,children:n(r,{xAlign:`center`,yAlign:`center`,children:n(s,{})})}):n(m,{mobileHeader:null,desktopHeader:null,children:n(r,{class:`px-4 py-8 gap-8`,xAlign:`center`,yAlign:`center`,children:[n(t,{style:`title`,align:`center`,children:`Page not found`}),n(t,{align:`center`,children:`This page doesn't exist, at least not anymore!`}),n(l,{href:`/`,text:`Go home`,icon:c})]})})}export{v as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,i as t,l as n}from"./use-nav-exemptions-QtGbfEPT.js";import{h as r,m as i}from"./index-
|
|
1
|
+
import{c as e,i as t,l as n}from"./use-nav-exemptions-QtGbfEPT.js";import{h as r,m as i}from"./index-CrhwkQ9k.js";var a=[`bg-transparent`,`group-hover:bg-soft-hover`,`group-active:bg-soft-active`],o=[`bg-accent`,`group-hover:bg-accent-hover`,`group-active:bg-accent-active`],s=[`[--color-fg:var(--color-on-accent)]`,`[--color-fg-strong:var(--color-on-accent)]`,`[--color-fg-weak:var(--color-on-accent)]`],c=e(a),l=e(o),u=e(s);function d(t){return n(i,{class:e(t.class,`overflow-hidden rounded-sm border border-accent max-w-full`),children:t.options.map((e,r)=>n(f,{class:`shrink`,label:e.label,active:e.value===t.value,last:r===t.options.length-1,onClick:()=>t.onChange(e.value)},e.value))})}function f(a){return n(r,{class:e(a.class,`relative group min-h-8`,{[u]:a.active,"border-r border-accent":!a.last}),onClick:a.onClick,children:[n(`div`,{class:e(`absolute z-0 top-0 bottom-0 left-0 right-0`,{[c]:!a.active,[l]:a.active})}),n(i,{class:`relative z-1 px-6 py-2 min-w-0`,xAlign:`center`,yAlign:`center`,children:n(t,{class:`shrink min-w-min`,align:`center`,children:a.label})})]})}export{d as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{_ as e,c as t,i as n,l as r,m as i,r as a,s as o}from"./use-nav-exemptions-QtGbfEPT.js";import{o as s}from"./use-api-BJomuYg6.js";import{n as c}from"./use-foundational-data-BEVQRFj9.js";import{a as l,t as u}from"./linear-
|
|
1
|
+
import{_ as e,c as t,i as n,l as r,m as i,r as a,s as o}from"./use-nav-exemptions-QtGbfEPT.js";import{o as s}from"./use-api-BJomuYg6.js";import{n as c}from"./use-foundational-data-BEVQRFj9.js";import{a as l,t as u}from"./linear-CtNhjlrM.js";import{t as d}from"./LinkText-sdmJpshg.js";import{_ as f,c as p,f as m,m as h}from"./index-CrhwkQ9k.js";import{t as g}from"./Page-BMcxP_9m.js";import{t as _}from"./use-simple-headers-Cbv0t_De.js";import{t as v}from"./use-foda-synced-query-BM-OPAql.js";function y(n){let{foda:i}=c(),a=e(()=>({type:`linear`,stops:b(i,n.service.movements)}),[i,n.service.movements]);return r(o,{class:t(n.class),children:r(u,{class:n.class,structure:a,lightThemeColorHexCode:n.service.color?.lightModeHexCode??null,darkThemeColorHexCode:n.service.color?.darkModeHexCode??null})})}function b(e,t){return t.map(t=>{let i=e.stops.require(t.stopId),a=`/stop/${i.urlPath}`,o=t.arrivalTime==null?null:new Date(Date.parse(t.arrivalTime)).toLocaleString(),s=t.departureTime==null?null:new Date(Date.parse(t.departureTime)).toLocaleString();if(o==null&&s==null)return{content:r(n,{style:`small-weak`,children:r(d,{href:a,style:`subtle`,children:[`Skips `,i.name]})}),drawMark:!1};let c=s??o;return{content:r(h,{class:`gap-2 min-w-0`,children:[r(n,{style:`strong`,children:r(d,{href:a,style:`subtle`,children:i.name})}),r(n,{children:`•`}),r(n,{class:`shrink min-w-0`,oneLine:!0,children:c})]})}})}function x(){let{params:{sourceId:e,intrasourceId:t},query:{from:n}}=i(),{data:a,loading:o,error:c}=v(s,{sourceId:e??``,intrasourceId:t??``}),u=l(n??``);return o?r(C,{}):c!=null||a==null||u==null||u<0||a.service!=null&&u>a.service.movements.length-1?r(w,{}):a.service==null?r(T,{}):r(S,{service:a.service,movementIndex:u},`${e}/${t}`)}function S(e){return r(g,{..._({title:`${e.service.primaryDestinationText} service`,back:{href:`/`,text:`Home`}}),children:r(a,{class:`px-4 py-8 gap-8`,children:[r(y,{service:e.service}),r(n,{style:`small-narrow`,children:`(Real-time data has not been provided for all stops. Times marked with * are estimates, extrapolated from the available data.)`})]})})}function C(){return r(g,{..._({title:`Loading...`,back:{href:`/`,text:`Home`}}),children:r(f,{})})}function w(){return r(g,{..._({title:`Error`,back:{href:`/`,text:`Home`}}),children:r(n,{children:`Failed to load service.`})})}function T(){return r(g,{mobileHeader:null,desktopHeader:null,children:r(a,{class:`px-4 py-8 gap-8`,xAlign:`center`,yAlign:`center`,children:[r(n,{style:`title`,align:`center`,children:`Service not found`}),r(n,{align:`center`,children:`This can happen if the service was cancelled, or the timetable changed since this link was generated. You might be able to find it again by searching for one of the stops it departed from.`}),r(m,{href:`/`,text:`Go home`,icon:p})]})})}export{x as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,l as t,r as n}from"./use-nav-exemptions-QtGbfEPT.js";import{d as r,u as i}from"./index-
|
|
1
|
+
import{i as e,l as t,r as n}from"./use-nav-exemptions-QtGbfEPT.js";import{d as r,u as i}from"./index-CrhwkQ9k.js";import{t as a}from"./Page-BMcxP_9m.js";import{t as o}from"./use-simple-headers-Cbv0t_De.js";import{t as s}from"./Divider-lz6Cf6K8.js";import{t as c}from"./Picker-D-TjVZAI.js";var l={auto:`Auto`,light:`Light`,dark:`Dark`},u=i.map(e=>({value:e,label:l[e]}));function d(e){let{settings:n,updateSettings:i}=r();return t(c,{class:e.class,value:n.theme,options:u,onChange:e=>{i(t=>t.with({theme:e}))}})}function f(){return t(a,{...o({title:`Settings`}),children:t(n,{class:`px-4 py-8 gap-8`,children:[t(n,{class:`gap-6`,children:[t(e,{style:`strong`,children:`Theme`}),t(e,{children:`"Auto" means the colour theme should follow your device's/browser's settings.`}),t(d,{class:`self-start`})]}),t(s,{}),t(e,{style:`small-weak`,children:`(Settings are saved to your device's/browser's local storage.)`})]})})}export{f as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as e,i as t,l as n}from"./use-nav-exemptions-QtGbfEPT.js";import{f as r,m as i}from"./index-
|
|
1
|
+
import{c as e,i as t,l as n}from"./use-nav-exemptions-QtGbfEPT.js";import{f as r,m as i}from"./index-CrhwkQ9k.js";function a(e){return n(`svg`,{xmlns:`http://www.w3.org/2000/svg`,width:`1em`,height:`1em`,viewBox:`0 0 24 24`,...e,children:n(`path`,{fill:`none`,stroke:`currentColor`,"stroke-linecap":`round`,"stroke-linejoin":`round`,"stroke-width":`2`,d:`M14.657 17.657L9 12l5.657-5.657`})})}function o(o){return n(i,{class:e(o.class,`gap-2`,{"px-4":o.backHref==null,"pl-2 pr-4":o.backHref!=null}),yAlign:`center`,children:[o.backHref!=null&&n(r,{href:o.backHref,icon:a,theme:`hover`}),n(t,{style:`title`,children:o.title})]})}export{a as n,o as t};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{i as e,l as t,r as n}from"./use-nav-exemptions-QtGbfEPT.js";import{t as r}from"./Page-BMcxP_9m.js";import{t as i}from"./use-simple-headers-
|
|
1
|
+
import{i as e,l as t,r as n}from"./use-nav-exemptions-QtGbfEPT.js";import{t as r}from"./Page-BMcxP_9m.js";import{t as i}from"./use-simple-headers-Cbv0t_De.js";function a(){return t(r,{...i({title:`Status`}),children:t(n,{class:`px-4 py-8 gap-8`,children:t(e,{children:`LGTM`})})})}export{a as default};
|