corequery 0.15.0 → 0.16.0
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 +2 -1
- package/server/dist/server/config/config.d.ts +2 -0
- package/server/dist/server/config/helpers/create-canonical-lines-serving-stop-algorithm.d.ts +29 -0
- package/server/dist/server/config/helpers/create-canonical-lines-serving-stop-algorithm.js +49 -0
- package/server/dist/server/config/helpers/create-canonical-lines-serving-stop-algorithm.js.map +1 -0
- package/server/dist/server/config/helpers/index.d.ts +1 -0
- package/server/dist/server/config/helpers/index.js +2 -0
- package/server/dist/server/config/helpers/index.js.map +1 -0
- package/server/dist/server/config/index.d.ts +1 -0
- package/server/dist/server/config/index.js +1 -0
- package/server/dist/server/config/index.js.map +1 -1
- package/server/dist/server/config/types/get-canonical-lines-serving-stop-config-func.d.ts +1 -0
- package/server/dist/server/config/types/get-canonical-lines-serving-stop-config-func.js +2 -0
- package/server/dist/server/config/types/get-canonical-lines-serving-stop-config-func.js.map +1 -0
- package/server/dist/server/config/types/index.d.ts +1 -0
- package/server/dist/server/config/types/index.js +1 -0
- package/server/dist/server/config/types/index.js.map +1 -1
- package/server/dist/server/config/types/line-config.d.ts +7 -3
- package/server/dist/server/corequery.js +2 -3
- package/server/dist/server/corequery.js.map +1 -1
- package/server/dist/server/data/color.d.ts +7 -0
- package/server/dist/server/data/color.js +38 -0
- package/server/dist/server/data/color.js.map +1 -0
- package/server/dist/server/data/index.d.ts +2 -0
- package/server/dist/server/data/index.js +2 -0
- package/server/dist/server/data/index.js.map +1 -1
- package/server/dist/server/data/line-collection.d.ts +1 -1
- package/server/dist/server/data/line-collection.js +2 -2
- package/server/dist/server/data/line-collection.js.map +1 -1
- package/server/dist/server/data/line.d.ts +7 -1
- package/server/dist/server/data/line.js +10 -1
- package/server/dist/server/data/line.js.map +1 -1
- package/server/dist/server/data/route.d.ts +24 -0
- package/server/dist/server/data/route.js +32 -0
- package/server/dist/server/data/route.js.map +1 -0
- package/server/dist/server/data/stop-collection.d.ts +2 -2
- package/server/dist/server/data/stop-collection.js +2 -2
- package/server/dist/server/data/stop-collection.js.map +1 -1
- package/server/dist/server/data/stop.d.ts +3 -1
- package/server/dist/server/data/stop.js +5 -1
- package/server/dist/server/data/stop.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 +7 -0
- 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 +5 -0
- package/web/dist/assets/{About-BFmupfrO.js → About-B4-dkQWr.js} +1 -1
- package/web/dist/assets/AdminControls-CzU02gqN.js +1 -0
- package/web/dist/assets/{Alert-z6J53giC.js → Alert-IVv67CZ1.js} +1 -1
- package/web/dist/assets/{Debug-Bkf-Nw9K.js → Debug-D3jL5PaF.js} +1 -1
- package/web/dist/assets/{Divider-DJ6uswe9.js → Divider-Be0m4WgQ.js} +1 -1
- package/web/dist/assets/Home-BPoVw8gT.js +1 -0
- package/web/dist/assets/{Line-Bg7BQnU0.js → Line-E2TOnCOo.js} +1 -1
- package/web/dist/assets/{Markdown-B6EZeNxe.js → Markdown-C8fLva6C.js} +1 -1
- package/web/dist/assets/Nearby-C4nB11U5.js +1 -0
- package/web/dist/assets/NotFound-CzT6M9J8.js +1 -0
- package/web/dist/assets/NotFoundPage-DBDabcv_.js +1 -0
- package/web/dist/assets/{Page-C9THvpAd.js → Page-CEn9SSvt.js} +1 -1
- package/web/dist/assets/{Settings-7E3Ad2Rh.js → Settings-pye1MxCr.js} +1 -1
- package/web/dist/assets/Status-D_1UU9CO.js +1 -0
- package/web/dist/assets/Stop-CsAwhg3q.js +1 -0
- package/web/dist/assets/{Strong-K90MsLPz.js → Strong-D9f5KEpX.js} +1 -1
- package/web/dist/assets/ZenMode-CGoCJmvB.js +1 -0
- package/web/dist/assets/index-BwSq_h7e.js +41 -0
- package/web/dist/assets/index-CQqh1NYO.css +1 -0
- package/web/dist/assets/{use-simple-headers-Bkz5G0sQ.js → use-simple-headers-DWUUdRcU.js} +1 -1
- package/web/dist/index.html +2 -2
- package/web/dist/sw.js +1 -1
- package/web/dist/assets/AdminControls-DRQVbbFF.js +0 -1
- package/web/dist/assets/Home-DxLVjl1t.js +0 -1
- package/web/dist/assets/Nearby-95aVniRH.js +0 -1
- package/web/dist/assets/NotFound-WGmiD1Io.js +0 -1
- package/web/dist/assets/NotFoundPage-DBGOigud.js +0 -1
- package/web/dist/assets/Status-D2INI5os.js +0 -1
- package/web/dist/assets/Stop-CmYssZxC.js +0 -1
- package/web/dist/assets/ZenMode-BzljIRpx.js +0 -1
- package/web/dist/assets/index-CBLaQsgM.css +0 -1
- package/web/dist/assets/index-Dz6ZgGML.js +0 -41
|
@@ -29,6 +29,7 @@ export const stopFodaSchema = z.object({
|
|
|
29
29
|
id: z.number(),
|
|
30
30
|
name: z.string(),
|
|
31
31
|
urlPath: z.string(),
|
|
32
|
+
canonicalLinesServingStop: z.number().array().readonly(),
|
|
32
33
|
// To avoid users needing to send their location to the server, we send the
|
|
33
34
|
// locations of each stop to them instead, and do the maths client-side.
|
|
34
35
|
location: z
|
|
@@ -63,6 +64,12 @@ export const lineFodaSchema = z.object({
|
|
|
63
64
|
id: z.number(),
|
|
64
65
|
name: z.string(),
|
|
65
66
|
urlPath: z.string(),
|
|
67
|
+
color: z
|
|
68
|
+
.object({
|
|
69
|
+
lightModeHexCode: z.string(),
|
|
70
|
+
darkModeHexCode: z.string(),
|
|
71
|
+
})
|
|
72
|
+
.nullable(),
|
|
66
73
|
// To the above point. It's probably good to include line diagrams in the
|
|
67
74
|
// foundational data, so navigation (by clicking through to a stop via the
|
|
68
75
|
// line page) isn't blocked by an API call.
|
|
@@ -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;
|
|
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,Q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KAAK,EAAE;IAC7B,WAAW,EAAE,iBAAiB;IAC9B,WAAW,EAAE,qBAAqB;IAClC,MAAM,EAAE,gBAAgB;CACzB,CAAC,CAAC"}
|
|
@@ -14,6 +14,7 @@ declare const resultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
14
14
|
id: z.ZodNumber;
|
|
15
15
|
name: z.ZodString;
|
|
16
16
|
urlPath: z.ZodString;
|
|
17
|
+
canonicalLinesServingStop: z.ZodReadonly<z.ZodArray<z.ZodNumber>>;
|
|
17
18
|
location: z.ZodNullable<z.ZodObject<{
|
|
18
19
|
latitude: z.ZodNumber;
|
|
19
20
|
longitude: z.ZodNumber;
|
|
@@ -23,6 +24,10 @@ declare const resultSchema: z.ZodUnion<readonly [z.ZodObject<{
|
|
|
23
24
|
id: z.ZodNumber;
|
|
24
25
|
name: z.ZodString;
|
|
25
26
|
urlPath: z.ZodString;
|
|
27
|
+
color: z.ZodNullable<z.ZodObject<{
|
|
28
|
+
lightModeHexCode: z.ZodString;
|
|
29
|
+
darkModeHexCode: z.ZodString;
|
|
30
|
+
}, z.z.core.$strip>>;
|
|
26
31
|
}, z.z.core.$strip>>;
|
|
27
32
|
terminology: z.ZodObject<{
|
|
28
33
|
stop: z.ZodEnum<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as m,a as u,b as p,c as h,d as s,C as l,T as d}from"./index-
|
|
1
|
+
import{u as m,a as u,b as p,c as h,d as s,C as l,T as d}from"./index-BwSq_h7e.js";import{T as a,A as w}from"./Alert-IVv67CZ1.js";import{M as x,I as f}from"./Markdown-C8fLva6C.js";import{P as e}from"./Page-CEn9SSvt.js";import{u as v}from"./use-simple-headers-DWUUdRcU.js";import{D as k}from"./Divider-Be0m4WgQ.js";import"./Strong-D9f5KEpX.js";function T(){const{appName:c}=m(),{foda:i}=u(),{data:r,loading:o,error:n}=p(h,{}),t=v({title:`About ${c}`});return o?s(e,{...t,children:s(l,{class:"px-4 py-8",children:[s(a,{class:"w-[30%] text-xl"}),s("div",{class:"h-8"}),s(a,{class:"w-full text-md"}),s("div",{class:"h-3"}),s(a,{class:"w-full text-md"}),s("div",{class:"h-3"}),s(a,{class:"w-[60%] text-md"}),s("div",{class:"h-12"}),s(a,{class:"w-[40%] text-lg"}),s("div",{class:"h-8"}),s(a,{class:"w-full text-md"}),s("div",{class:"h-3"}),s(a,{class:"w-full text-md"}),s("div",{class:"h-3"}),s(a,{class:"w-[20%] text-md"}),s("div",{class:"h-12"}),s(a,{class:"w-[50%] text-lg"}),s("div",{class:"h-8"}),s(a,{class:"w-full text-md"}),s("div",{class:"h-3"}),s(a,{class:"w-[80%] text-md"})]})}):n!=null||r==null?s(e,{...t,children:s(l,{class:"px-4 py-8",children:s(w,{type:"error",children:s(d,{children:"Unable to load the about page."})})})}):s(e,{...t,children:s(l,{class:"px-4 py-8 gap-12",children:[s(x,{markdown:r.primaryMarkdown}),s(l,{class:"gap-8",children:[s(k,{}),s(d,{as:"p",style:"small-weak",children:s(f,{markdown:i.footerPrimaryMarkdown})})]})]})})}export{T as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as e,C as r,T as a}from"./index-BwSq_h7e.js";import{P as o}from"./Page-CEn9SSvt.js";import{u as t}from"./use-simple-headers-DWUUdRcU.js";function i(){return e(o,{...t({title:"Admin controls"}),children:e(r,{class:"px-4 py-8 gap-8",children:e(a,{children:"Maybe the real admin controls were the friends we made along the way?"})})})}export{i as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as e,e as r,j as a,U as s,g as i,G as g}from"./index-
|
|
1
|
+
import{d as e,e as r,j as a,U as s,g as i,G as g}from"./index-BwSq_h7e.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 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",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 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",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:d,success:u}[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-icon-lg"})}),l.children]})}export{v as A,x as T,h as V};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{X as P,x as A,d as e,T as l,e as i,G as f,g as h,R as g,f as R,M as S,B as k,L as D,h as H,C as a,u as v,b as B,i as L,a as T}from"./index-
|
|
1
|
+
import{X as P,x as A,d as e,T as l,e as i,G as f,g as h,R as g,f as R,M as S,B as k,L as D,h as H,C as a,u as v,b as B,i as L,a as T}from"./index-BwSq_h7e.js";import{P as E}from"./Page-CEn9SSvt.js";import{u as F}from"./use-simple-headers-DWUUdRcU.js";import{D as d}from"./Divider-Be0m4WgQ.js";import{T as p,V as m,A as x}from"./Alert-IVv67CZ1.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 I(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(X,{}),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 X(){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(j,{}),e(W,{}),e(d,{}),e($,{}),e(d,{}),e(I,{}),e(d,{})]})})})}function j(){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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as s,e as o}from"./index-
|
|
1
|
+
import{d as s,e as o}from"./index-BwSq_h7e.js";function d(r){return s("div",{class:o(r.class,"border-b border-soft-border")})}export{d as D};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as r,d as a,C as e}from"./index-BwSq_h7e.js";import{P as m}from"./Page-CEn9SSvt.js";import{u as n}from"./use-simple-headers-DWUUdRcU.js";import{M as t}from"./Markdown-C8fLva6C.js";import"./Strong-D9f5KEpX.js";function u(){const{foda:o}=r();return a(m,{...n({title:"Home"}),children:a(e,{class:"px-4 py-8 gap-12",children:a(t,{markdown:o.landingPage.primaryMarkdown})})})}export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{n as i,a as r,d as n,
|
|
1
|
+
import{n as i,a as r,d as n,p as l,C as s,T as u}from"./index-BwSq_h7e.js";import{P as m}from"./Page-CEn9SSvt.js";import{u as f}from"./use-simple-headers-DWUUdRcU.js";import{N as d}from"./NotFoundPage-DBDabcv_.js";function C(){const{params:{id:a}}=i(),{foda:e}=r(),o=e.lines.find(t=>t.urlPath===a)??null;return o===null?n(d,{afterConfirming:"foundational-data-version"}):n(c,{line:o})}function c(a){const{formatLine:e}=l();return n(m,{...f({title:e(a.line.name)}),children:n(s,{class:"px-4 py-8 gap-8",children:n(u,{children:e(a.line.name)})})})}export{C as default};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{d as r,S as d,e as u,T as a,k as h,C as k}from"./index-
|
|
1
|
+
import{d as r,S as d,e as u,T as a,k as h,C as k}from"./index-BwSq_h7e.js";import{S as x}from"./Strong-D9f5KEpX.js";const g=/\[([^[\]]+)\]\(([^()]+)\)/,w=/\*\*(.+?)\*\*/,T=/\*([^*]+)\*/,y=/_([^_]+)_/;function m(t,n){const l=[];let e=t;for(;e.length>0;){const i=C(e);if(i==null){l.push(e);break}i.index>0&&l.push(e.slice(0,i.index));const c=m(i.innerContent,n);l.push(i.wrap(r(d,{children:c}),n)),e=e.slice(i.index+i.fullMatch.length)}return l}function C(t){const n=[b(t),M(t),o(t,T),o(t,y)];let l=null;for(const e of n)e!=null&&(l==null||e.index<l.index)&&(l=e);return l}function b(t){const n=t.match(g);if(n==null||n.index==null||n[1]==null||n[2]==null)return null;const l=n[2];return!l.startsWith("https://")&&!l.startsWith("/")?null:{index:n.index,fullMatch:n[0],innerContent:n[1],wrap:(e,i)=>i.link(e,l)}}function M(t){const n=t.match(w);return n==null||n.index==null||n[1]==null?null:{index:n.index,fullMatch:n[0],innerContent:n[1],wrap:(l,e)=>e.bold(l)}}function o(t,n){const l=t.match(n);return l==null||l.index==null||l[1]==null?null:{index:l.index,fullMatch:l[0],innerContent:l[1],wrap:(e,i)=>i.italic(e)}}function I(t){return r("em",{class:u(t.class),children:t.children})}function S(t){const n=u("text-accent-text inline underline",t.class);return t.onClick!=null?r("span",{class:n,onClick:t.onClick,children:t.children}):t.href!=null?r("a",{class:n,href:t.href,children:t.children}):r("span",{class:n,children:t.children})}const s={bold:t=>r(x,{children:t}),italic:t=>r(I,{children:t}),link:(t,n)=>r(S,{href:n,children:t})},P={h1:{render:(t,n)=>r(a,{as:"h1",style:"title",children:t},n),marginTop:"mt-12"},h2:{render:(t,n)=>r(a,{as:"h2",style:"subtitle",children:t},n),marginTop:"mt-12"},h3:{render:(t,n)=>r(a,{as:"h3",style:"strong",children:t},n),marginTop:"mt-12"},p:{render:(t,n)=>r(a,{as:"p",children:t},n),marginTop:"mt-8"},bold:s.bold,italic:s.italic,link:s.link};function _(t){const n=t.style??s,l=h(()=>m(t.markdown,n),[t.markdown,n]);return r(d,{children:l})}function B(t){return t.split(`
|
|
2
2
|
`).map(n=>n.replace(/[\r\t]/g,"").trim()).filter(n=>n.length>0).map(n=>{const l=n.match(/^### (.+)$/);if(l!=null&&l[1]!=null)return{kind:"h3",content:l[1]};const e=n.match(/^## (.+)$/);if(e!=null&&e[1]!=null)return{kind:"h2",content:e[1]};const i=n.match(/^# (.+)$/);return i!=null&&i[1]!=null?{kind:"h1",content:i[1]}:{kind:"p",content:n}})}function L(t){const n=t.style??P,l=h(()=>B(t.markdown).map((e,i)=>{const c=n[e.kind],f=i===0?"":c.marginTop;return r("div",{class:f,children:c.render(r(_,{style:n,markdown:e.content}),i)},i)}),[t.markdown,n]);return r(k,{class:u(t.class),children:l})}export{_ as I,L as M};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as e,C as r,T as a}from"./index-BwSq_h7e.js";import{P as l}from"./Page-CEn9SSvt.js";function n(){return e(l,{mobileHeader:null,desktopHeader:null,children:e(r,{class:"px-4 py-8 gap-8",children:e(a,{children:"Idk"})})})}export{n as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as o}from"./index-BwSq_h7e.js";import{N as r}from"./NotFoundPage-DBDabcv_.js";import"./Page-CEn9SSvt.js";function f(){return o(r,{afterConfirming:"frontend-version"})}export{f as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{h as H,u as w,f as A,a as D,b,i as k,q as P,y as g,r as B,F as L,d as n,C as p,L as S,T as y,B as T,s as E,v as I}from"./index-BwSq_h7e.js";import{P as m}from"./Page-CEn9SSvt.js";function R({afterConfirming:i}){const{isHotReloadingEnabled:v}=H(),{frontendVersion:x}=w(),{unregister:r}=A(),{foda:e,updateFoda:l}=D(),{callApi:d}=I(),{data:a,loading:t,error:u}=b(k,{}),[F,c]=P(!1),o=i==="frontend-version"&&!v&&!t&&u==null&&a!=null&&a.frontendVersion!==x,f=i==="foundational-data-version"&&!t&&u==null&&a!=null&&a.foundationalDataHash!==e.hash;return g(()=>{if(!o)return;async function s(){await r(),window.location.reload()}s()},[o,r]),g(()=>{if(!f)return;async function s(){c(!0);try{const h=await d(B,{hash:e.hash});h.result==="outdated"&&l(new L(h.foundationalData))}catch{}finally{c(!1)}}s()},[f,d,e.hash,l]),t||o||F?n(m,{mobileHeader:null,desktopHeader:null,children:n(p,{xAlign:"center",yAlign:"center",children:n(S,{})})}):n(m,{mobileHeader:null,desktopHeader:null,children:n(p,{class:"px-4 py-8 gap-8",xAlign:"center",yAlign:"center",children:[n(y,{style:"title",align:"center",children:"Page not found"}),n(y,{align:"center",children:"This page doesn't exist, at least not anymore!"}),n(T,{href:"/",text:"Go home",icon:E})]})})}export{R as N};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d,e as n,G as r,
|
|
1
|
+
import{d,e as n,G as r,w as a,P as i}from"./index-BwSq_h7e.js";function s(e){return d(r,{class:n(e.class,"not-desktop:hidden"),children:e.children})}function c(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}=a(),l=e.centered??!0;return d(r,{class:n("bg-bg min-h-svh",{"pt-14":e.mobileHeader!=null,"not-desktop:pb-18":t,"desktop:grid-rows-[auto_1fr]":e.desktopHeader!=null},"desktop:pt-12"),children:[e.desktopHeader!=null&&d(s,{children:e.desktopHeader}),e.mobileHeader!=null&&d(c,{class:"h-14",children:e.mobileHeader}),l?d(i,{children:e.children}):e.children]})}export{h as P};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as t,e as s,R as l,T as c,l as g,m as u,t as d,C as r}from"./index-
|
|
1
|
+
import{d as t,e as s,R as l,T as c,l as g,m as u,t as d,C as r}from"./index-BwSq_h7e.js";import{P as v}from"./Page-CEn9SSvt.js";import{u as h}from"./use-simple-headers-DWUUdRcU.js";import{D as m}from"./Divider-Be0m4WgQ.js";const b=["bg-transparent","group-hover:bg-soft-hover","group-active:bg-soft-active"],f=["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(b),w=s(f),S=s(k);function x(e){return t(l,{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(l,{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:n=>{o(i=>i.with({theme:n}))}})}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{d as t,C as a,T as e}from"./index-BwSq_h7e.js";import{P as r}from"./Page-CEn9SSvt.js";import{u as s}from"./use-simple-headers-DWUUdRcU.js";function u(){return t(r,{...s({title:"Status"}),children:t(a,{class:"px-4 py-8 gap-8",children:t(e,{children:"LGTM"})})})}export{u as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{n as l,a as r,d as a,C as u,T as f,o as c}from"./index-BwSq_h7e.js";import{P as d}from"./Page-CEn9SSvt.js";import{u as p}from"./use-simple-headers-DWUUdRcU.js";import{N as m}from"./NotFoundPage-DBDabcv_.js";function g(n,e,t,o){if(n.length===0)return"";if(n.length===1)return n[0];if(n.length===2)return`${n[0]}${o}${n[1]}`;const i=n.slice(0,-1).join(e),s=n[n.length-1];return`${i}${t}${s}`}function h(n){return g(n,", ",", and "," and ")}function v(){const{params:{id:n}}=l(),{foda:e}=r(),t=e.stops.find(o=>o.urlPath===n)??null;return t===null?a(m,{afterConfirming:"foundational-data-version"}):a(S,{stop:t})}function S(n){const{foda:e}=r();return a(d,{...p({title:n.stop.name}),children:a(u,{class:"px-4 py-8 gap-8",children:a(f,{children:[h(n.stop.canonicalLinesServingStop.map(t=>e.lines.find(o=>o.id===t)?.name??null).filter(c).sort((t,o)=>t.localeCompare(o)))," ",n.stop.canonicalLinesServingStop.length===1?"Line":"lines"]})})})}export{v as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{d as s,e as t}from"./index-
|
|
1
|
+
import{d as s,e as t}from"./index-BwSq_h7e.js";function c(r){return s("strong",{class:t(r.class,"text-fg-strong"),children:r.children})}export{c as S};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{d as e,C as o,T as n}from"./index-BwSq_h7e.js";import{P as a}from"./Page-CEn9SSvt.js";import{u as i}from"./use-simple-headers-DWUUdRcU.js";import{S as r}from"./Strong-D9f5KEpX.js";function d(){return e(a,{...i({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};
|