corequery 0.14.1 → 0.14.2
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 +13 -13
- package/web/dist/assets/{About-C7TwGm-9.js → About-CfcrUsiZ.js} +1 -1
- package/web/dist/assets/AdminControls-Dmob4y9A.js +1 -0
- package/web/dist/assets/{Alert-D1TgTDa3.js → Alert-BZkWwXeY.js} +1 -1
- package/web/dist/assets/{Debug-feNxzADF.js → Debug-D9oQDrPU.js} +1 -1
- package/web/dist/assets/{Divider-DHrvJK31.js → Divider-CtxRE7XC.js} +1 -1
- package/web/dist/assets/Home-ztS1ho-i.js +1 -0
- package/web/dist/assets/Nearby-BjjxELnV.js +1 -0
- package/web/dist/assets/{NotFound-C2boF5j_.js → NotFound-DmphRk75.js} +1 -1
- package/web/dist/assets/{Page-B5vom1oT.js → Page-1xak0ANk.js} +1 -1
- package/web/dist/assets/{Settings-CPFXMpKT.js → Settings-BUC4NlRV.js} +1 -1
- package/web/dist/assets/Status-BemKsElR.js +1 -0
- package/web/dist/assets/{Strong-BxLc3qED.js → Strong-DpRkFcr8.js} +1 -1
- package/web/dist/assets/ZenMode-DEVORvf5.js +1 -0
- package/web/dist/assets/{index-B0c5gglU.js → index-O_prf-ho.js} +6 -6
- package/web/dist/assets/{use-simple-headers-sr6Bsxax.js → use-simple-headers-BmXvTlrq.js} +1 -1
- package/web/dist/index.html +1 -1
- package/web/dist/sw.js +1 -1
- package/web/dist/assets/AdminControls-CXHtvDZj.js +0 -1
- package/web/dist/assets/Home-Ppe-FmWN.js +0 -1
- package/web/dist/assets/Nearby-CTaCIyUc.js +0 -1
- package/web/dist/assets/Status-CtalOTlg.js +0 -1
- package/web/dist/assets/ZenMode-CyMySQw9.js +0 -1
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "corequery",
|
|
3
|
-
"version": "0.14.
|
|
3
|
+
"version": "0.14.2",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"server/dist",
|
|
@@ -25,7 +25,7 @@
|
|
|
25
25
|
"bump-check": "bump-check --ignore \"^renovate\\/\""
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@dan-schel/js-utils": "^4.
|
|
28
|
+
"@dan-schel/js-utils": "^4.11.0",
|
|
29
29
|
"express": "^5.2.1",
|
|
30
30
|
"node-html-parser": "^7.1.0",
|
|
31
31
|
"sharp": "^0.34.5",
|
|
@@ -33,11 +33,11 @@
|
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
35
|
"@eslint/js": "9.39.4",
|
|
36
|
-
"@preact/preset-vite": "2.10.
|
|
37
|
-
"@tailwindcss/vite": "4.2.
|
|
36
|
+
"@preact/preset-vite": "2.10.5",
|
|
37
|
+
"@tailwindcss/vite": "4.2.2",
|
|
38
38
|
"@types/express": "5.0.6",
|
|
39
|
-
"@types/node": "24.12.
|
|
40
|
-
"@vitest/coverage-v8": "4.1.
|
|
39
|
+
"@types/node": "24.12.2",
|
|
40
|
+
"@vitest/coverage-v8": "4.1.4",
|
|
41
41
|
"chalk": "5.6.2",
|
|
42
42
|
"clsx": "2.1.1",
|
|
43
43
|
"eslint": "9.39.4",
|
|
@@ -46,18 +46,18 @@
|
|
|
46
46
|
"eslint-plugin-react": "7.37.5",
|
|
47
47
|
"eslint-plugin-react-hooks": "7.0.1",
|
|
48
48
|
"globals": "17.4.0",
|
|
49
|
-
"knip": "5.
|
|
50
|
-
"preact": "10.29.
|
|
49
|
+
"knip": "5.88.1",
|
|
50
|
+
"preact": "10.29.1",
|
|
51
51
|
"preact-iso": "2.11.1",
|
|
52
|
-
"prettier": "3.8.
|
|
53
|
-
"tailwindcss": "4.2.
|
|
52
|
+
"prettier": "3.8.2",
|
|
53
|
+
"tailwindcss": "4.2.2",
|
|
54
54
|
"tsc-alias": "1.8.16",
|
|
55
55
|
"tsx": "4.21.0",
|
|
56
56
|
"typescript": "5.9.3",
|
|
57
|
-
"typescript-eslint": "8.
|
|
58
|
-
"vite": "7.3.
|
|
57
|
+
"typescript-eslint": "8.58.1",
|
|
58
|
+
"vite": "7.3.2",
|
|
59
59
|
"vite-plugin-pwa": "1.2.0",
|
|
60
|
-
"vitest": "4.1.
|
|
60
|
+
"vitest": "4.1.4"
|
|
61
61
|
},
|
|
62
62
|
"author": "dan-schel",
|
|
63
63
|
"description": "A platform for building web apps serving transit information.",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import{u as t,
|
|
1
|
+
import{u as t,S 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-O_prf-ho.js";import{T as i,A as v}from"./Alert-BZkWwXeY.js";import{S as T}from"./Strong-DpRkFcr8.js";import{P as u}from"./Page-1xak0ANk.js";import{u as C}from"./use-simple-headers-BmXvTlrq.js";import{D as M}from"./Divider-CtxRE7XC.js";const P=/\[([^[\]]+)\]\(([^()]+)\)/,S=/\*\*(.+?)\*\*/,I=/\*([^*]+)\*/,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,I),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(S);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
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-O_prf-ho.js";import{P as a}from"./Page-1xak0ANk.js";import{u as t}from"./use-simple-headers-BmXvTlrq.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{u as e,c as r,
|
|
1
|
+
import{u as e,c as r,k as a,U as s,g as i,G as g}from"./index-O_prf-ho.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{
|
|
1
|
+
import{X as P,x as A,u as e,T as l,c 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,i as v,d as B,j as L,b as T}from"./index-O_prf-ho.js";import{P as E}from"./Page-1xak0ANk.js";import{u as F}from"./use-simple-headers-BmXvTlrq.js";import{D as d}from"./Divider-CtxRE7XC.js";import{T as p,V as m,A as x}from"./Alert-BZkWwXeY.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(X,{}),e(W,{}),e(d,{}),e($,{}),e(d,{}),e(j,{}),e(d,{})]})})})}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."})})}export{Z as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as o,c as s}from"./index-
|
|
1
|
+
import{u as o,c as s}from"./index-O_prf-ho.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{i as a,u as e,C as o,T as r}from"./index-O_prf-ho.js";import{P as s}from"./Page-1xak0ANk.js";import{u as i}from"./use-simple-headers-BmXvTlrq.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-O_prf-ho.js";import{P as a}from"./Page-1xak0ANk.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{h as g,i as f,f as p,d as m,j as h,y,u as e,C as r,T as i,B as x,n as H,L as k}from"./index-O_prf-ho.js";import{P as l}from"./Page-1xak0ANk.js";function b(){const{isHotReloadingEnabled:s}=g(),{frontendVersion:d}=f(),{unregister:t}=p(),{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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as d,c as n,G as r,
|
|
1
|
+
import{u as d,c as n,G as r,o as i,P as a}from"./index-O_prf-ho.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{u as t,c as s,
|
|
1
|
+
import{u as t,c as s,R as l,T as c,l as g,m as u,t as d,C as r}from"./index-O_prf-ho.js";import{P as v}from"./Page-1xak0ANk.js";import{u as h}from"./use-simple-headers-BmXvTlrq.js";import{D as m}from"./Divider-CtxRE7XC.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{u as t,C as e,T as r}from"./index-O_prf-ho.js";import{P as a}from"./Page-1xak0ANk.js";import{u as s}from"./use-simple-headers-BmXvTlrq.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};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{u as t,c as n}from"./index-
|
|
1
|
+
import{u as t,c as n}from"./index-O_prf-ho.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-O_prf-ho.js";import{P as i}from"./Page-1xak0ANk.js";import{u as t}from"./use-simple-headers-BmXvTlrq.js";import{S as r}from"./Strong-DpRkFcr8.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};
|