corequery 0.13.1 → 0.14.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/handlers/foundational-data/v1/builder.js +4 -0
- package/server/dist/server/api/handlers/foundational-data/v1/builder.js.map +1 -1
- package/server/dist/server/corequery.d.ts +2 -1
- package/server/dist/server/corequery.js +2 -0
- package/server/dist/server/corequery.js.map +1 -1
- package/server/dist/shared/apis/foundational-data/v1/foundational-data.d.ts +10 -0
- package/server/dist/shared/apis/foundational-data/v1/foundational-data.js +32 -63
- package/server/dist/shared/apis/foundational-data/v1/foundational-data.js.map +1 -1
- package/server/dist/shared/apis/foundational-data/v1/index.d.ts +10 -0
- package/web/dist/assets/About-C7TwGm-9.js +2 -0
- package/web/dist/assets/AdminControls-CXHtvDZj.js +1 -0
- package/web/dist/assets/{Alert-CuEkLNOc.js → Alert-D1TgTDa3.js} +1 -1
- package/web/dist/assets/{Debug-BJmhwf2M.js → Debug-feNxzADF.js} +1 -1
- package/web/dist/assets/Divider-DHrvJK31.js +1 -0
- package/web/dist/assets/Home-Ppe-FmWN.js +1 -0
- package/web/dist/assets/Nearby-CTaCIyUc.js +1 -0
- package/web/dist/assets/{NotFound-0odigbT6.js → NotFound-C2boF5j_.js} +1 -1
- package/web/dist/assets/Page-B5vom1oT.js +1 -0
- package/web/dist/assets/{Settings-CWdK-TCJ.js → Settings-CPFXMpKT.js} +1 -1
- package/web/dist/assets/Status-CtalOTlg.js +1 -0
- package/web/dist/assets/Strong-BxLc3qED.js +1 -0
- package/web/dist/assets/ZenMode-CyMySQw9.js +1 -0
- package/web/dist/assets/{index-CqVvUNnw.js → index-B0c5gglU.js} +6 -6
- package/web/dist/assets/index-DzefptUV.css +1 -0
- package/web/dist/assets/{use-simple-headers-DcvIZvms.js → use-simple-headers-sr6Bsxax.js} +1 -1
- package/web/dist/index.html +2 -2
- package/web/dist/sw.js +1 -1
- package/web/dist/assets/About-DrUZ1UyX.js +0 -2
- package/web/dist/assets/Divider-Cu9p8FgM.js +0 -1
- package/web/dist/assets/Home-BSQe5H12.js +0 -1
- package/web/dist/assets/Page-BnztU_de.js +0 -1
- package/web/dist/assets/index-DOPC5VNW.css +0 -1
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"builder.js","sourceRoot":"","sources":["../../../../../../api/handlers/foundational-data/v1/builder.ts"],"names":[],"mappings":"AAAA,OAAO,MAAM,MAAM,QAAQ,CAAC;AAQ5B,MAAM,OAAO,yBAAyB;IACP;IAA7B,YAA6B,IAAe;QAAf,SAAI,GAAJ,IAAI,CAAW;IAAG,CAAC;IAEhD,KAAK;QACH,MAAM,qBAAqB,GAAG,IAAI,CAAC,qBAAqB,EAAE,CAAC;QAE3D,2EAA2E;QAC3E,yEAAyE;QACzE,uEAAuE;QACvE,wEAAwE;QACxE,kEAAkE;QAClE,MAAM,IAAI,GAAG,MAAM;aAChB,UAAU,CAAC,QAAQ,CAAC;aACpB,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,qBAAqB,CAAC,CAAC;aACvE,MAAM,CAAC,KAAK,CAAC,CAAC;QAEjB,OAAO;YACL,GAAG,qBAAqB;YACxB,QAAQ,EAAE;gBACR,IAAI,EAAE,IAAI;gBACV,aAAa,EAAE,IAAI,CAAC,IAAI,CAAC,aAAa;aACvC;SACF,CAAC;IACJ,CAAC;IAEO,qBAAqB;QAC3B,OAAO;YACL,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;YAC7C,KAAK,EAAE,IAAI,CAAC,IAAI,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;YAC7C,WAAW,EAAE;gBACX,eAAe,E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,iBAAiB,CAAC,eAAe;aAC7D;YACD,MAAM,EAAE;gBACN,eAAe,EAAE,IAAI,CAAC,IAAI,CAAC,YAAY,CAAC,eAAe;aACxD;YACD,WAAW,EAAE;gBACX,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI;gBACtC,IAAI,EAAE,IAAI,CAAC,IAAI,CAAC,iBAAiB,CAAC,IAAI;aACvC;SACF,CAAC;IACJ,CAAC;CACF"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import type { CorequeryConfig } from "../server/config/config.js";
|
|
2
2
|
import { StopCollection } from "../server/data/stop-collection.js";
|
|
3
3
|
import { LineCollection } from "../server/data/line-collection.js";
|
|
4
|
-
import type { AboutPageConfig, FooterConfig, LandingPageConfig } from "../server/config/index.js";
|
|
4
|
+
import type { AboutPageConfig, FooterConfig, LandingPageConfig, TerminologyConfig } from "../server/config/index.js";
|
|
5
5
|
export type CorequeryConfigBuilder = (corequery: Corequery) => CorequeryConfig;
|
|
6
6
|
export declare class Corequery {
|
|
7
7
|
private readonly _config;
|
|
@@ -14,6 +14,7 @@ export declare class Corequery {
|
|
|
14
14
|
readonly landingPageConfig: LandingPageConfig;
|
|
15
15
|
readonly footerConfig: FooterConfig;
|
|
16
16
|
readonly aboutPageConfig: AboutPageConfig;
|
|
17
|
+
readonly terminologyConfig: TerminologyConfig;
|
|
17
18
|
constructor(configBuilder: CorequeryConfigBuilder);
|
|
18
19
|
getCorequeryPackageVersion(): string;
|
|
19
20
|
getFrontendVersion(): string;
|
|
@@ -17,6 +17,7 @@ export class Corequery {
|
|
|
17
17
|
landingPageConfig;
|
|
18
18
|
footerConfig;
|
|
19
19
|
aboutPageConfig;
|
|
20
|
+
terminologyConfig;
|
|
20
21
|
constructor(configBuilder) {
|
|
21
22
|
this._config = configBuilder(this);
|
|
22
23
|
this._webServer = new WebServer(this, this._config.port, this._config.assets, env.COREQUERY_HOT_RELOAD ? "vite-middleware" : "dist-folder", serverFolderPath);
|
|
@@ -31,6 +32,7 @@ export class Corequery {
|
|
|
31
32
|
this.landingPageConfig = this._config.landingPage;
|
|
32
33
|
this.footerConfig = this._config.footer;
|
|
33
34
|
this.aboutPageConfig = this._config.aboutPage;
|
|
35
|
+
this.terminologyConfig = this._config.terminology;
|
|
34
36
|
}
|
|
35
37
|
getCorequeryPackageVersion() {
|
|
36
38
|
if (this._corequeryPackageVersion == null) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"corequery.js","sourceRoot":"","sources":["../../corequery.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;
|
|
1
|
+
{"version":3,"file":"corequery.js","sourceRoot":"","sources":["../../corequery.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,gBAAgB,EAAE,MAAM,qBAAqB,CAAC;AACvD,OAAO,EAAE,GAAG,EAAE,MAAM,iBAAiB,CAAC;AACtC,OAAO,EAAE,SAAS,EAAE,MAAM,mCAAmC,CAAC;AAC9D,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAClE,OAAO,EAAE,cAAc,EAAE,MAAM,kCAAkC,CAAC;AAOlE,OAAO,EAAE,0BAA0B,EAAE,MAAM,2CAA2C,CAAC;AAIvF,MAAM,OAAO,SAAS;IACH,OAAO,CAAkB;IACzB,UAAU,CAAY;IAE9B,aAAa,CAAS;IACvB,wBAAwB,CAAgB;IACxC,gBAAgB,CAAgB;IAE/B,KAAK,CAAiB;IACtB,KAAK,CAAiB;IAE/B,8EAA8E;IAC9E,6CAA6C;IACpC,iBAAiB,CAAoB;IACrC,YAAY,CAAe;IAC3B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C,qBAAqB,CAAC,CAAC;QACzC,CAAC;QACD,OAAO,IAAI,CAAC,wBAAwB,CAAC;IACvC,CAAC;IAED,kBAAkB;QAChB,IAAI,IAAI,CAAC,gBAAgB,IAAI,IAAI,EAAE,CAAC;YAClC,MAAM,IAAI,KAAK,CAAC,qBAAqB,CAAC,CAAC;QACzC,CAAC;QACD,OAAO,IAAI,CAAC,gBAAgB,CAAC;IAC/B,CAAC;IAED,KAAK,CAAC,KAAK;QACT,IAAI,CAAC,wBAAwB,GAAG,MAAM,0BAA0B,EAAE,CAAC;QAEnE,MAAM,IAAI,CAAC,UAAU,CAAC,aAAa,EAAE,CAAC;QACtC,IAAI,CAAC,gBAAgB,GAAG,IAAI,CAAC,UAAU,CAAC,kBAAkB,EAAE,CAAC;QAE7D,2BAA2B;QAC3B,sCAAsC;QACtC,OAAO,CAAC,GAAG,CAAC,YAAY,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,OAAO,KAAK,CAAC,CAAC;QAC1D,sCAAsC;QACtC,OAAO,CAAC,GAAG,CAAC,qBAAqB,IAAI,CAAC,aAAa,EAAE,CAAC,CAAC;QACvD,sCAAsC;QACtC,OAAO,CAAC,GAAG,CAAC,uBAAuB,IAAI,CAAC,kBAAkB,EAAE,EAAE,CAAC,CAAC;QAChE,sCAAsC;QACtC,OAAO,CAAC,GAAG,CAAC,wBAAwB,IAAI,CAAC,0BAA0B,EAAE,EAAE,CAAC,CAAC;QAEzE,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,EAAE,CAAC;IAChC,CAAC;CACF"}
|
|
@@ -36,6 +36,16 @@ export declare const fodaSchema: z.ZodObject<{
|
|
|
36
36
|
name: z.ZodString;
|
|
37
37
|
urlPath: z.ZodString;
|
|
38
38
|
}, z.z.core.$strip>>;
|
|
39
|
+
terminology: z.ZodObject<{
|
|
40
|
+
stop: z.ZodEnum<{
|
|
41
|
+
stop: "stop";
|
|
42
|
+
station: "station";
|
|
43
|
+
}>;
|
|
44
|
+
line: z.ZodEnum<{
|
|
45
|
+
line: "line";
|
|
46
|
+
route: "route";
|
|
47
|
+
}>;
|
|
48
|
+
}, z.z.core.$strip>;
|
|
39
49
|
landingPage: z.ZodObject<{
|
|
40
50
|
primaryMarkdown: z.ZodString;
|
|
41
51
|
}, z.z.core.$strip>;
|
|
@@ -68,66 +68,37 @@ export const lineFodaSchema = z.object({
|
|
|
68
68
|
// line page) isn't blocked by an API call.
|
|
69
69
|
});
|
|
70
70
|
// Omitting for now, see comments below for each field's reasoning.
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
//
|
|
75
|
-
//
|
|
76
|
-
//
|
|
77
|
-
//
|
|
78
|
-
//
|
|
79
|
-
//
|
|
80
|
-
//
|
|
81
|
-
//
|
|
82
|
-
//
|
|
83
|
-
//
|
|
84
|
-
//
|
|
85
|
-
//
|
|
86
|
-
//
|
|
87
|
-
//
|
|
88
|
-
//
|
|
89
|
-
//
|
|
90
|
-
//
|
|
91
|
-
//
|
|
92
|
-
//
|
|
93
|
-
//
|
|
94
|
-
//
|
|
95
|
-
//
|
|
96
|
-
//
|
|
97
|
-
//
|
|
98
|
-
//
|
|
99
|
-
//
|
|
100
|
-
//
|
|
101
|
-
|
|
102
|
-
// // each departure. It probably makes more sense to send it over as part of the
|
|
103
|
-
// // foundational data rather than each departures/service API response.
|
|
104
|
-
// //
|
|
105
|
-
// // Gonna omit it for now, until I'm sure, then I don't have to make a breaking
|
|
106
|
-
// // change.
|
|
107
|
-
// //
|
|
108
|
-
// // stopPosition: z.enum([
|
|
109
|
-
// // "platform",
|
|
110
|
-
// // "track",
|
|
111
|
-
// // "bay",
|
|
112
|
-
// // "wharf",
|
|
113
|
-
// // "wharf-and-side",
|
|
114
|
-
// // "stand",
|
|
115
|
-
// // ]),
|
|
116
|
-
// });
|
|
117
|
-
// I'm torn on this. I don't think the about page serves any real navigational
|
|
118
|
-
// purpose, so there's little harm in fetching it from an API when the user
|
|
119
|
-
// wants it. Also, unlike the two examples below for the landing page and
|
|
120
|
-
// footer, this markdown isn't just a little snippet, it's essentially the
|
|
121
|
-
// entire content of the page, which is traditionally exactly what you'd be
|
|
122
|
-
// fetching from a server. The main argument to include it in the foundational
|
|
123
|
-
// data is really just consistency with the other markdown bits below.
|
|
124
|
-
//
|
|
125
|
-
// Gonna omit it for now, until I'm sure, then I don't have to make a breaking
|
|
126
|
-
// change.
|
|
127
|
-
//
|
|
128
|
-
// export const aboutPageSchema = z.object({
|
|
129
|
-
// primaryMarkdown: z.string(),
|
|
130
|
-
// });
|
|
71
|
+
const terminologySchema = z.object({
|
|
72
|
+
stop: z.enum(["stop", "station"]),
|
|
73
|
+
line: z.enum(["line", "route"]),
|
|
74
|
+
// Not sure if this is really needed yet. It will be if stop filters are
|
|
75
|
+
// included in the foundational data, as they're not pre-formatted by the
|
|
76
|
+
// server (i.e. sent over as `position: 1` and expect the frontend to format
|
|
77
|
+
// that to "Platform 1").
|
|
78
|
+
//
|
|
79
|
+
// Pre-formatting could make sense if we want to support customly named
|
|
80
|
+
// filters for maximum flexibility, but NOT pre-formatting allows us to
|
|
81
|
+
// smartly combine multiple filters together, e.g. "Citybound Frankston trains
|
|
82
|
+
// on Platform 6". I think we'll end up pre-formatting the filters, due to how
|
|
83
|
+
// Southern Cross has platforms 16a, 16b, and 16, and we just want a single
|
|
84
|
+
// "Platform 16" filter to cover all three.
|
|
85
|
+
//
|
|
86
|
+
// This could also be needed for showing the little "Platform XYZ" badges on
|
|
87
|
+
// each departure. It probably makes more sense to send it over as part of the
|
|
88
|
+
// foundational data rather than each departures/service API response.
|
|
89
|
+
//
|
|
90
|
+
// Gonna omit it for now, until I'm sure, then I don't have to make a breaking
|
|
91
|
+
// change.
|
|
92
|
+
//
|
|
93
|
+
// stopPosition: z.enum([
|
|
94
|
+
// "platform",
|
|
95
|
+
// "track",
|
|
96
|
+
// "bay",
|
|
97
|
+
// "wharf",
|
|
98
|
+
// "wharf-and-side",
|
|
99
|
+
// "stand",
|
|
100
|
+
// ]),
|
|
101
|
+
});
|
|
131
102
|
const landingPageFodaSchema = z.object({
|
|
132
103
|
// Would feel weird needing to load copy from an API while the rest of the
|
|
133
104
|
// HTML for the landing page (search box, JS handling widgets, etc.) is
|
|
@@ -146,9 +117,7 @@ export const fodaSchema = z.object({
|
|
|
146
117
|
}),
|
|
147
118
|
stops: stopFodaSchema.array(),
|
|
148
119
|
lines: lineFodaSchema.array(),
|
|
149
|
-
|
|
150
|
-
// terminology: terminologySchema,
|
|
151
|
-
// aboutPage: aboutPageSchema,
|
|
120
|
+
terminology: terminologySchema,
|
|
152
121
|
landingPage: landingPageFodaSchema,
|
|
153
122
|
footer: footerFodaSchema,
|
|
154
123
|
});
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"foundational-data.js","sourceRoot":"","sources":["../../../../../../shared/apis/foundational-data/v1/foundational-data.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,6EAA6E;AAC7E,4EAA4E;AAC5E,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,4EAA4E;AAC5E,yDAAyD;AACzD,EAAE;AACF,yEAAyE;AACzE,gFAAgF;AAChF,+EAA+E;AAC/E,gFAAgF;AAChF,8EAA8E;AAC9E,4BAA4B;AAC5B,EAAE;AACF,gFAAgF;AAChF,+EAA+E;AAC/E,6EAA6E;AAC7E,8EAA8E;AAC9E,6EAA6E;AAC7E,8EAA8E;AAC9E,kBAAkB;AAElB,MAAM,CAAC,MAAM,kBAAkB,GAAG,CAAC,CAAC,MAAM,CAAC;IACzC,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;IACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;CACtB,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IAEnB,2EAA2E;IAC3E,wEAAwE;IACxE,QAAQ,EAAE,CAAC;SACR,MAAM,CAAC;QACN,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE;QACpB,SAAS,EAAE,CAAC,CAAC,MAAM,EAAE;KACtB,CAAC;SACD,QAAQ,EAAE;IAEb,4EAA4E;IAC5E,6EAA6E;IAC7E,8EAA8E;IAC9E,6EAA6E;IAC7E,qEAAqE;IACrE,EAAE;IACF,2EAA2E;IAC3E,0EAA0E;IAC1E,0EAA0E;IAC1E,2EAA2E;IAC3E,6EAA6E;IAC7E,yEAAyE;IACzE,kCAAkC;IAClC,EAAE;IACF,6EAA6E;IAC7E,2EAA2E;IAC3E,8EAA8E;IAC9E,wEAAwE;IACxE,8EAA8E;IAC9E,qEAAqE;IACrE,+BAA+B;CAChC,CAAC,CAAC;AAEH,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,EAAE,EAAE,CAAC,CAAC,MAAM,EAAE;IACd,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE;IAChB,OAAO,EAAE,CAAC,CAAC,MAAM,EAAE;IAEnB,yEAAyE;IACzE,0EAA0E;IAC1E,2CAA2C;CAC5C,CAAC,CAAC;AAEH,mEAAmE;AACnE,
|
|
1
|
+
{"version":3,"file":"foundational-data.js","sourceRoot":"","sources":["../../../../../../shared/apis/foundational-data/v1/foundational-data.ts"],"names":[],"mappings":"AAAA,OAAO,CAAC,MAAM,KAAK,CAAC;AAEpB,6EAA6E;AAC7E,4EAA4E;AAC5E,6EAA6E;AAC7E,2EAA2E;AAC3E,8EAA8E;AAC9E,4EAA4E;AAC5E,yDAAyD;AACzD,EAAE;AACF,yEAAyE;AACzE,gFAAgF;AAChF,+EAA+E;AAC/E,gFAAgF;AAChF,8EAA8E;AAC9E,4BAA4B;AAC5B,EAAE;AACF,gFAAgF;AAChF,+EAA+E;AAC/E,6EAA6E;AAC7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"}
|
|
@@ -24,6 +24,16 @@ declare const resultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
24
24
|
name: z.ZodString;
|
|
25
25
|
urlPath: z.ZodString;
|
|
26
26
|
}, z.z.core.$strip>>;
|
|
27
|
+
terminology: z.ZodObject<{
|
|
28
|
+
stop: z.ZodEnum<{
|
|
29
|
+
stop: "stop";
|
|
30
|
+
station: "station";
|
|
31
|
+
}>;
|
|
32
|
+
line: z.ZodEnum<{
|
|
33
|
+
line: "line";
|
|
34
|
+
route: "route";
|
|
35
|
+
}>;
|
|
36
|
+
}, z.z.core.$strip>;
|
|
27
37
|
landingPage: z.ZodObject<{
|
|
28
38
|
primaryMarkdown: z.ZodString;
|
|
29
39
|
}, z.z.core.$strip>;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import{u as t,k as f,c as h,T as a,a as k,C as s,b as g,d as y,e as b}from"./index-B0c5gglU.js";import{T as i,A as v}from"./Alert-D1TgTDa3.js";import{S as T}from"./Strong-BxLc3qED.js";import{P as u}from"./Page-B5vom1oT.js";import{u as C}from"./use-simple-headers-sr6Bsxax.js";import{D as M}from"./Divider-DHrvJK31.js";const P=/\[([^[\]]+)\]\(([^()]+)\)/,I=/\*\*(.+?)\*\*/,S=/\*([^*]+)\*/,A=/_([^_]+)_/;function x(l,n){const e=[];let r=l;for(;r.length>0;){const c=_(r);if(c==null){e.push(r);break}c.index>0&&e.push(r.slice(0,c.index));const d=x(c.innerContent,n);e.push(c.wrap(t(f,{children:d}),n)),r=r.slice(c.index+c.fullMatch.length)}return e}function _(l){const n=[B(l),D(l),m(l,S),m(l,A)];let e=null;for(const r of n)r!=null&&(e==null||r.index<e.index)&&(e=r);return e}function B(l){const n=l.match(P);if(n==null||n.index==null||n[1]==null||n[2]==null)return null;const e=n[2];return e.startsWith("https://")?{index:n.index,fullMatch:n[0],innerContent:n[1],wrap:(r,c)=>c.link(r,e)}:null}function D(l){const n=l.match(I);return n==null||n.index==null||n[1]==null?null:{index:n.index,fullMatch:n[0],innerContent:n[1],wrap:(e,r)=>r.bold(e)}}function m(l,n){const e=l.match(n);return e==null||e.index==null||e[1]==null?null:{index:e.index,fullMatch:e[0],innerContent:e[1],wrap:(r,c)=>c.italic(r)}}function $(l){return t("em",{class:h(l.class),children:l.children})}function L(l){const n=h("text-accent-text inline underline",l.class);return l.onClick!=null?t("span",{class:n,onClick:l.onClick,children:l.children}):l.href!=null?t("a",{class:n,href:l.href,children:l.children}):t("span",{class:n,children:l.children})}const o={bold:l=>t(T,{children:l}),italic:l=>t($,{children:l}),link:(l,n)=>t(L,{href:n,children:l})},E={h1:{render:(l,n)=>t(a,{as:"h1",style:"title",children:l},n),marginTop:"mt-12"},h2:{render:(l,n)=>t(a,{as:"h2",style:"subtitle",children:l},n),marginTop:"mt-12"},h3:{render:(l,n)=>t(a,{as:"h3",style:"strong",children:l},n),marginTop:"mt-12"},p:{render:(l,n)=>t(a,{as:"p",children:l},n),marginTop:"mt-8"},bold:o.bold,italic:o.italic,link:o.link};function w(l){const n=l.style??o,e=k(()=>x(l.markdown,n),[l.markdown,n]);return t(f,{children:e})}function F(l){return l.split(`
|
|
2
|
+
`).map(n=>n.replace(/[\r\t]/g,"").trim()).filter(n=>n.length>0).map(n=>{const e=n.match(/^### (.+)$/);if(e!=null&&e[1]!=null)return{kind:"h3",content:e[1]};const r=n.match(/^## (.+)$/);if(r!=null&&r[1]!=null)return{kind:"h2",content:r[1]};const c=n.match(/^# (.+)$/);return c!=null&&c[1]!=null?{kind:"h1",content:c[1]}:{kind:"p",content:n}})}function H(l){const n=l.style??E,e=k(()=>F(l.markdown).map((r,c)=>{const d=n[r.kind],p=c===0?"":d.marginTop;return t("div",{class:p,children:d.render(t(w,{style:n,markdown:r.content}),c)},c)}),[l.markdown,n]);return t(s,{class:h(l.class),children:e})}function G(){const{foda:l}=g(),{data:n,loading:e,error:r}=y(b,{}),c=C({title:"About"});return e?t(u,{...c,children:t(s,{class:"px-4 py-8",children:[t(i,{class:"w-[30%] text-xl"}),t("div",{class:"h-8"}),t(i,{class:"w-full text-md"}),t("div",{class:"h-3"}),t(i,{class:"w-full text-md"}),t("div",{class:"h-3"}),t(i,{class:"w-[60%] text-md"}),t("div",{class:"h-12"}),t(i,{class:"w-[40%] text-lg"}),t("div",{class:"h-8"}),t(i,{class:"w-full text-md"}),t("div",{class:"h-3"}),t(i,{class:"w-full text-md"}),t("div",{class:"h-3"}),t(i,{class:"w-[20%] text-md"}),t("div",{class:"h-12"}),t(i,{class:"w-[50%] text-lg"}),t("div",{class:"h-8"}),t(i,{class:"w-full text-md"}),t("div",{class:"h-3"}),t(i,{class:"w-[80%] text-md"})]})}):r!=null||n==null?t(u,{...c,children:t(s,{class:"px-4 py-8",children:t(v,{type:"error",children:t(a,{children:"Unable to load the about page."})})})}):t(u,{...c,children:t(s,{class:"px-4 py-8 gap-12",children:[t(H,{markdown:n.primaryMarkdown}),t(s,{class:"gap-8",children:[t(M,{}),t(a,{as:"p",style:"small-weak",children:t(w,{markdown:l.footerPrimaryMarkdown})})]})]})})}export{G as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as e,C as r,T as o}from"./index-B0c5gglU.js";import{P as a}from"./Page-B5vom1oT.js";import{u as t}from"./use-simple-headers-sr6Bsxax.js";function s(){return e(a,{...t({title:"Admin controls"}),children:e(r,{class:"px-4 py-8 gap-8",children:e(o,{children:"Maybe the real admin controls were the friends we made along the way?"})})})}export{s as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{u as e,c as r,m as a,U as s,g as i,G as g}from"./index-B0c5gglU.js";function f(l){return e("div",{class:r(l.class,"bg-placeholder animate-placeholder-pulse")})}function x(l){return e(f,{...l,class:r(l.class,"h-[1em] -my-[0.13em]")})}function h(l){return e("div",{class:r(l.class,"flex flex-col justify-center items-stretch"),style:{height:`${l.heightRem}rem`},children:l.children})}function u(l){return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...l,children:e("g",{fill:"none",children:[e("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"}),e("path",{fill:"currentColor",d:"m13.299 3.148l8.634 14.954a1.5 1.5 0 0 1-1.299 2.25H3.366a1.5 1.5 0 0 1-1.299-2.25l8.634-14.954c.577-1 2.02-1 2.598 0M12 4.898L4.232 18.352h15.536zM12 15a1 1 0 1 1 0 2a1 1 0 0 1 0-2m0-7a1 1 0 0 1 1 1v4a1 1 0 1 1-2 0V9a1 1 0 0 1 1-1"})]})})}function d(l){return e("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...l,children:e("g",{fill:"none",fillRule:"evenodd",children:[e("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"}),e("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 v(l){const o={info:s,error:a,warning:u,success:d}[l.type],t=l.icon!==void 0?l.icon:o,c={info:"bg-soft-accent",error:"bg-soft-error",warning:"bg-soft-warning",success:"bg-soft-success"}[l.type],n={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 e(g,{class:r(l.class,c,n,"px-4 py-4.5 rounded-sm gap-2 items-start",{"grid-cols-[auto_1fr]":t!=null}),children:[t!=null&&e(h,{heightRem:i("text-md"),children:e(t,{class:"text-fg text-lg"})}),l.children]})}export{v as A,x as T,h as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{R as P,x as A,
|
|
1
|
+
import{R as P,x as A,u as e,T as l,c as i,G as f,g as h,f as g,h as R,M as S,B as k,L as D,i as H,C as a,j as v,d as B,l as L,b as T}from"./index-B0c5gglU.js";import{P as E}from"./Page-B5vom1oT.js";import{u as F}from"./use-simple-headers-sr6Bsxax.js";import{D as d}from"./Divider-DHrvJK31.js";import{T as p,V as m,A as x}from"./Alert-D1TgTDa3.js";const y=P(null);function c(){const n=A(y);if(n==null)throw new Error("Foundational data unavailable outside provider.");return n}function U(n){const r={info:"bg-soft-accent",error:"bg-soft-error",warning:"bg-soft-warning",success:"bg-soft-success"}[n.type],t={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)]"}[n.type];return e(f,{class:i(n.class,r,t,"px-2 py-1.5 rounded-full"),children:e(l,{style:"small",children:n.text})})}function C(n){return e(g,{class:i(n.class,"gap-x-2 gap-y-3"),wrap:!0,children:[e(l,{style:"strong",children:n.header}),n.loading&&e(p,{class:"w-[20%] text-md"}),!n.loading&&n.pillContent!=null&&e(m,{heightRem:h("text-md"),children:e(U,{type:n.pillContent.type,text:n.pillContent.text})})]})}function V(n){return e(C,{class:n.class,header:n.header,pillContent:M(n.currentValue,n.latestValue),loading:n.loading})}function M(n,r){return r==null?null:{text:n===r?"Up to date":"Outdated",type:n===r?"success":"error"}}function u(n){return n.loading?e(f,{class:n.class,children:e(p,{class:"w-[40%] text-md"})}):n.value==null?null:e(l,{class:n.class,children:[n.prefix,": ",n.value]})}function o(n){return n==null?null:n.length<32||!/^[0-9a-f]+$/.test(n)?n:n.slice(0,7)}function O(n){const{isUpdateAvailable:r,update:t}=R();return r?e(k,{theme:"accent",text:"Refresh & update",class:"self-start",icon:S,onClick:()=>{t()}}):e(g,{class:i(n.class,"gap-2"),children:[e(m,{heightRem:h("text-md"),children:e(D,{})}),e(l,{class:"min-w-0 shrink w-full",children:"Waiting for service worker to install update..."})]})}function W(n){const{isHotReloadingEnabled:r}=H();return r?e(Q,{...n}):e(q,{...n})}function Q(n){const{data:r,loading:t}=c();return e(a,{class:i(n.class,"gap-6"),children:[e(C,{header:"App version",pillContent:{text:"Development",type:"info"},loading:!1}),e(l,{children:"All frontend code is being served with hot-reloading enabled, not through the PWA. (The below values are meaningless.)"}),e(w,{}),e(u,{prefix:"Latest version",value:r?.frontendVersion.slice(0,8)??null,loading:t})]})}function q(n){const{frontendVersion:r}=v(),{data:t,loading:s}=c(),b=!s&&t!=null&&t?.frontendVersion!==r;return e(a,{class:i(n.class,"gap-8"),children:e(a,{class:"gap-6",children:[e(V,{header:"App version",currentValue:r,latestValue:t?.frontendVersion??null,loading:s}),e(w,{}),e(u,{prefix:"Latest version",value:o(t?.frontendVersion),loading:s}),b&&e(O,{})]})})}function w(){const{frontendVersion:n,versionsOnLastUpdate:r}=v();return e(a,{class:"gap-4",children:[e(l,{children:["Current version: ",o(n)]}),e(a,{class:"gap-3",children:[e(l,{style:"small-weak",children:["Server version: ",o(r.serverVersion)]}),e(l,{style:"small-weak",children:["CoreQuery version: ",r.corequeryPackageVersion]})]})]})}function G(n){const r=B(L,{});return e(y.Provider,{value:r,children:n.children})}function $(n){const{data:r,loading:t}=c(),{foda:s}=T();return e(a,{class:i(n.class,"gap-6"),children:[e(V,{header:"Foundational data",currentValue:s.hash,latestValue:r?.foundationalDataHash??null,loading:t}),e(a,{class:"gap-4",children:[e(l,{children:["Current version: ",o(s.hash)]}),e(l,{style:"small-weak",children:["Server version: ",o(s.serverVersion)]})]}),e(u,{prefix:"Latest version",value:o(r?.foundationalDataHash),loading:t})]})}function j(n){const{data:r,loading:t}=c();return e(a,{class:i(n.class,"gap-8"),children:e(a,{class:"gap-6",children:[e(l,{style:"strong",children:"Server"}),e(I,{}),e(a,{class:"gap-4",children:[e(u,{prefix:"Server version",value:o(r?.serverVersion),loading:t}),e(u,{prefix:"CoreQuery version",value:r?.corequeryPackageVersion??null,loading:t})]})]})})}function I(){const{error:n}=c();return n==null?null:e(x,{type:"error",children:e(l,{children:"Unable to fetch the latest version info from the server."})})}function Z(){return e(E,{...F({title:"Developer info"}),children:e(G,{children:e(a,{class:"px-4 py-8 gap-8",children:[e(z,{}),e(W,{}),e(d,{}),e($,{}),e(d,{}),e(j,{}),e(d,{})]})})})}function z(){const{error:n}=c();return n==null?null:e(x,{type:"error",children:e(l,{children:"Unable to fetch the latest version info from the server."})})}export{Z as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as o,c as s}from"./index-B0c5gglU.js";function c(r){return o("div",{class:s(r.class,"border-b border-soft-border")})}export{c as D};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{j as a,u as e,C as o,T as r}from"./index-B0c5gglU.js";import{P as s}from"./Page-B5vom1oT.js";import{u as i}from"./use-simple-headers-sr6Bsxax.js";function c(){const{appName:t}=a();return e(s,{...i({title:"Home"}),children:e(o,{class:"px-4 py-8 gap-8",children:e(r,{style:"title",children:t})})})}export{c as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as e,C as r,T as l}from"./index-B0c5gglU.js";import{P as a}from"./Page-B5vom1oT.js";function d(){return e(a,{mobileHeader:null,desktopHeader:null,children:e(r,{class:"px-4 py-8 gap-8",children:e(l,{children:"Idk"})})})}export{d as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{i as g,j as p,h as f,d as m,l as h,y,u as e,C as r,T as i,B as x,p as H,L as k}from"./index-B0c5gglU.js";import{P as l}from"./Page-B5vom1oT.js";function b(){const{isHotReloadingEnabled:s}=g(),{frontendVersion:d}=p(),{unregister:t}=f(),{data:o,loading:a,error:c}=m(h,{}),n=!s&&!a&&c==null&&o!=null&&o.frontendVersion!==d;return y(()=>{async function u(){n&&(await t(),window.location.reload())}u()},[n,t]),!a&&!n?e(l,{mobileHeader:null,desktopHeader:null,children:e(r,{class:"px-4 py-8 gap-8",xAlign:"center",yAlign:"center",children:[e(i,{style:"title",align:"center",children:"Page not found"}),e(i,{align:"center",children:"This page doesn't exist, at least not anymore!"}),e(x,{href:"/",text:"Go home",icon:H})]})}):e(l,{mobileHeader:null,desktopHeader:null,children:e(r,{xAlign:"center",yAlign:"center",children:e(k,{})})})}export{b as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as d,c as n,G as r,q as i,P as a}from"./index-B0c5gglU.js";function c(e){return d(r,{class:n(e.class,"not-desktop:hidden"),children:e.children})}function s(e){return d(r,{class:n(e.class,"fixed top-0 left-0 right-0 bg-bg-navbar border-b border-soft-border desktop:hidden"),children:e.children})}function h(e){const{showMobileNav:t}=i(),l=e.centered??!0;return d(r,{class:n("bg-bg min-h-svh",{"pt-12":e.mobileHeader!=null,"not-desktop:pb-18":t,"desktop:grid-rows-[auto_1fr]":e.desktopHeader!=null},"desktop:pt-12"),children:[e.desktopHeader!=null&&d(c,{children:e.desktopHeader}),e.mobileHeader!=null&&d(s,{class:"h-12",children:e.mobileHeader}),l?d(a,{children:e.children}):e.children]})}export{h as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{
|
|
1
|
+
import{u as t,c as s,f as n,T as c,n as g,o as u,t as d,C as r}from"./index-B0c5gglU.js";import{P as v}from"./Page-B5vom1oT.js";import{u as h}from"./use-simple-headers-sr6Bsxax.js";import{D as m}from"./Divider-DHrvJK31.js";const f=["bg-transparent","group-hover:bg-soft-hover","group-active:bg-soft-active"],b=["bg-accent","group-hover:bg-accent-hover","group-active:bg-accent-active"],k=["[--color-fg:var(--color-on-accent)]","[--color-fg-strong:var(--color-on-accent)]","[--color-fg-weak:var(--color-on-accent)]"],C=s(f),w=s(b),S=s(k);function x(e){return t(n,{class:s(e.class,"overflow-hidden rounded-sm border border-accent"),children:e.options.map((a,o)=>t(y,{label:a.label,active:a.value===e.value,last:o===e.options.length-1,onClick:()=>e.onChange(a.value)},a.value))})}function y(e){return t(g,{class:s("relative group h-8",{[S]:e.active,"border-r border-accent":!e.last}),onClick:e.onClick,children:[t("div",{class:s("absolute z-0 top-0 bottom-0 left-0 right-0",{[C]:!e.active,[w]:e.active})}),t(n,{class:"relative z-1 px-6",xAlign:"center",yAlign:"center",children:t(c,{children:e.label})})]})}const B={auto:"Auto",light:"Light",dark:"Dark"},P=d.map(e=>({value:e,label:B[e]}));function T(e){const{settings:a,updateSettings:o}=u();return t(x,{class:e.class,value:a.theme,options:P,onChange:l=>{o(i=>i.with({theme:l}))}})}function z(){return t(v,{...h({title:"Settings"}),children:t(r,{class:"px-4 py-8 gap-8",children:[t(r,{class:"gap-6",children:[t(c,{style:"strong",children:"Theme"}),t(c,{children:`"Auto" means the colour theme should follow your device's/browser's settings.`}),t(T,{class:"self-start"})]}),t(m,{}),t(c,{style:"small-weak",children:"(Settings are saved to your device's/browser's local storage.)"})]})})}export{z as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as t,C as e,T as r}from"./index-B0c5gglU.js";import{P as a}from"./Page-B5vom1oT.js";import{u as s}from"./use-simple-headers-sr6Bsxax.js";function u(){return t(a,{...s({title:"Status"}),children:t(e,{class:"px-4 py-8 gap-8",children:t(r,{children:"LGTM"})})})}export{u as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as t,c as n}from"./index-B0c5gglU.js";function c(r){return t("strong",{class:n(r.class,"text-fg-strong"),children:r.children})}export{c as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as e,C as o,T as n}from"./index-B0c5gglU.js";import{P as i}from"./Page-B5vom1oT.js";import{u as t}from"./use-simple-headers-sr6Bsxax.js";import{S as r}from"./Strong-BxLc3qED.js";function d(){return e(i,{...t({title:"Zen mode"}),children:e(o,{class:"px-4 py-8 gap-8",children:e(n,{children:[e(r,{children:"✨"})," Zen! ",e(r,{children:"✨"})]})})})}export{d as default};
|