corequery 0.11.0 → 0.12.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 +13 -13
- package/web/dist/assets/{About-RNYMHtTm.js → About-BDYrRGk5.js} +1 -1
- package/web/dist/assets/Debug-CapjWKSX.js +1 -0
- package/web/dist/assets/Divider-BnyCkMS8.js +1 -0
- package/web/dist/assets/Home-B-wCfJpb.js +1 -0
- package/web/dist/assets/{NotFound-DQr-VzOD.js → NotFound-4y6OU-Zp.js} +1 -1
- package/web/dist/assets/{Page-CkjfP8rn.js → Page-DgtsUkml.js} +1 -1
- package/web/dist/assets/Settings-tdjq61Bb.js +1 -0
- package/web/dist/assets/index-CynqaRua.js +41 -0
- package/web/dist/assets/index-g8QifMMS.css +1 -0
- package/web/dist/assets/{use-simple-headers-DVaC1F_Z.js → use-simple-headers-BrVs9tqw.js} +1 -1
- package/web/dist/index.html +44 -2
- package/web/dist/sw.js +1 -1
- package/web/dist/assets/Debug-D1TumJP7.js +0 -1
- package/web/dist/assets/Home-DL157Zc0.js +0 -1
- package/web/dist/assets/index-BL1_vftv.css +0 -1
- package/web/dist/assets/index-KxZO3Q-Z.js +0 -41
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "corequery",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.12.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"files": [
|
|
6
6
|
"server/dist",
|
|
@@ -25,39 +25,39 @@
|
|
|
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.10.2",
|
|
29
29
|
"express": "^5.2.1",
|
|
30
|
-
"node-html-parser": "^7.0
|
|
30
|
+
"node-html-parser": "^7.1.0",
|
|
31
31
|
"sharp": "^0.34.5",
|
|
32
32
|
"zod": "^4.3.6"
|
|
33
33
|
},
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@eslint/js": "9.39.
|
|
35
|
+
"@eslint/js": "9.39.4",
|
|
36
36
|
"@preact/preset-vite": "2.10.3",
|
|
37
|
-
"@tailwindcss/vite": "4.2.
|
|
37
|
+
"@tailwindcss/vite": "4.2.1",
|
|
38
38
|
"@types/express": "5.0.6",
|
|
39
|
-
"@types/node": "24.
|
|
40
|
-
"@vitest/coverage-v8": "4.0
|
|
39
|
+
"@types/node": "24.12.0",
|
|
40
|
+
"@vitest/coverage-v8": "4.1.0",
|
|
41
41
|
"chalk": "5.6.2",
|
|
42
42
|
"clsx": "2.1.1",
|
|
43
|
-
"eslint": "9.39.
|
|
43
|
+
"eslint": "9.39.4",
|
|
44
44
|
"eslint-config-prettier": "10.1.8",
|
|
45
45
|
"eslint-plugin-prettier": "5.5.5",
|
|
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.
|
|
49
|
+
"knip": "5.86.0",
|
|
50
|
+
"preact": "10.29.0",
|
|
51
51
|
"preact-iso": "2.11.1",
|
|
52
52
|
"prettier": "3.8.1",
|
|
53
|
-
"tailwindcss": "4.2.
|
|
53
|
+
"tailwindcss": "4.2.1",
|
|
54
54
|
"tsc-alias": "1.8.16",
|
|
55
55
|
"tsx": "4.21.0",
|
|
56
56
|
"typescript": "5.9.3",
|
|
57
|
-
"typescript-eslint": "8.
|
|
57
|
+
"typescript-eslint": "8.57.0",
|
|
58
58
|
"vite": "7.3.1",
|
|
59
59
|
"vite-plugin-pwa": "1.2.0",
|
|
60
|
-
"vitest": "4.0
|
|
60
|
+
"vitest": "4.1.0"
|
|
61
61
|
},
|
|
62
62
|
"author": "dan-schel",
|
|
63
63
|
"description": "A platform for building web apps serving transit information.",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{c as u,a as e,u as l,C as t,T as a}from"./index-
|
|
1
|
+
import{c as u,a as e,u as l,C as t,T as a}from"./index-CynqaRua.js";import{P as o}from"./Page-DgtsUkml.js";import{u as r}from"./use-simple-headers-BrVs9tqw.js";function n(i){const s=u("text-accent-text inline underline",i.class);return i.onClick!=null?e("span",{class:s,onClick:i.onClick,children:i.children}):i.href!=null?e("a",{class:s,href:i.href,children:i.children}):e("span",{class:s,children:i.children})}function p(){const{appName:i}=l();return e(o,{...r({title:"About"}),children:e(t,{class:"px-4 py-8 gap-12",children:[e(t,{class:"gap-8",children:[e(a,{style:"title",children:["About ",i]}),e(a,{children:["This is text so long that it needs to wrap. Lorem ipsum dolor sit amet consectetur adipisicing elit. Earum corporis, autem expedita, minus voluptatem ex voluptatum quis illum, quae dicta eius amet soluta consequatur beatae"," ",e(n,{href:"/deleniti-repellendus",children:"deleniti repellendus"}),"? Eos impedit adipisci molestiae similique quae corporis accusantium voluptates? Quod odit est ea id nihil in saepe minus quia tempore illum, dolorum, atque facilis natus delectus ratione omnis mollitia! Eveniet aliquam nam temporibus velit quae iusto facere, earum rerum, voluptate saepe officiis accusamus laboriosam maiores porro."]}),e(a,{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Esse quisquam molestias, cumque distinctio, laborum optio quam aut quasi rem tempora, minima placeat labore dolor maiores expedita pariatur reprehenderit mollitia modi."})]}),e(t,{class:"gap-6",children:[e(a,{style:"subtitle",children:"Mmm, yes"}),e(a,{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Deleniti eos quisquam laborum in eveniet officiis ab, perferendis ipsam natus doloribus, qui ratione sit. Eos eligendi voluptatibus, nesciunt asperiores commodi nemo minima beatae veritatis omnis magnam ipsam minus enim ab dolorem nulla."})]}),e(t,{class:"gap-6",children:[e(a,{style:"subtitle",children:"I simply must agree"}),e(a,{children:"Lorem ipsum dolor sit amet consectetur adipisicing elit. Obcaecati fugiat officia, culpa asperiores architecto recusandae beatae illum aliquam magni ab sed a soluta id quae tenetur. Sit facere iste harum dolorum molestias omnis animi vitae. Expedita voluptatum perspiciatis dolor ex quam, tempore voluptates culpa ab nisi, officia iure reiciendis. Atque quis, amet recusandae quisquam iure fugiat tenetur voluptate harum inventore doloremque deleniti repudiandae, facere, praesentium temporibus quidem modi culpa similique eum ea architecto dolorem? Optio natus officiis, architecto necessitatibus ab accusamus placeat. Similique, ea mollitia excepturi neque nam odit doloremque molestias deleniti praesentium officia veniam dolorem cumque temporibus quos possimus error libero nisi voluptate reiciendis! Officiis dolorem fugit at dignissimos."})]}),e(t,{class:"gap-6",children:[e(a,{style:"subtitle",children:"Good chat"}),e(a,{children:"Lorem ipsum, dolor sit amet consectetur adipisicing elit. Ipsa magni repudiandae tempore? Repellendus, fugit iusto!"})]})]})})}export{p as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as l,c as a,M as k,U as P,g,G as h,R,x as A,T as t,b as m,d as q,e as L,B as S,L as D,f as H,C as o,u as x,h as B,i as M,j as U}from"./index-CynqaRua.js";import{P as E}from"./Page-DgtsUkml.js";import{u as F}from"./use-simple-headers-BrVs9tqw.js";import{D as f}from"./Divider-BnyCkMS8.js";function v(e){return l("div",{class:a(e.class,"flex flex-col justify-center items-stretch"),style:{height:`${e.heightRem}rem`},children:e.children})}function T(e){return l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:l("g",{fill:"none",children:[l("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"}),l("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 I(e){return l("svg",{xmlns:"http://www.w3.org/2000/svg",width:"1em",height:"1em",viewBox:"0 0 24 24",...e,children:l("g",{fill:"none",fillRule:"evenodd",children:[l("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"}),l("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 w(e){const n={info:P,error:k,warning:T,success:I}[e.type],r=e.icon!==void 0?e.icon:n,s={info:"bg-soft-accent",error:"bg-soft-error",warning:"bg-soft-warning",success:"bg-soft-success"}[e.type],d={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)]"]}[e.type];return l(h,{class:a(e.class,s,d,"px-4 py-4.5 rounded-sm gap-2 items-start",{"grid-cols-[auto_1fr]":r!=null}),children:[r!=null&&l(v,{heightRem:g("text-md"),children:l(r,{class:"text-fg text-lg"})}),e.children]})}const y=R(null);function c(){const e=A(y);if(e==null)throw new Error("Foundational data unavailable outside provider.");return e}function O(e){const n={info:"bg-soft-accent",error:"bg-soft-error",warning:"bg-soft-warning",success:"bg-soft-success"}[e.type],r={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)]"}[e.type];return l(h,{class:a(e.class,n,r,"px-2 py-1.5 rounded-full"),children:l(t,{style:"small",children:e.text})})}function W(e){return l("div",{class:a(e.class,"bg-placeholder animate-placeholder-pulse")})}function p(e){return l(W,{...e,class:a(e.class,"h-[1em] -my-[0.13em]")})}function C(e){return l(m,{class:a(e.class,"gap-x-2 gap-y-3"),wrap:!0,children:[l(t,{style:"strong",children:e.header}),e.loading&&l(p,{class:"w-[20%] text-md"}),!e.loading&&e.pillContent!=null&&l(v,{heightRem:g("text-md"),children:l(O,{type:e.pillContent.type,text:e.pillContent.text})})]})}function V(e){return l(C,{class:e.class,header:e.header,pillContent:z(e.currentValue,e.latestValue),loading:e.loading})}function z(e,n){return n==null?null:{text:e===n?"Up to date":"Outdated",type:e===n?"success":"error"}}function u(e){return e.loading?l(h,{class:e.class,children:l(p,{class:"w-[40%] text-md"})}):e.value==null?null:l(t,{class:e.class,children:[e.prefix,": ",e.value]})}function i(e){return e==null?null:e.length<32||!/^[0-9a-f]+$/.test(e)?e:e.slice(0,7)}function Q(e){const{isUpdateAvailable:n,update:r}=q();return n?l(S,{theme:"accent",text:"Refresh & update",class:"self-start",icon:L,onClick:()=>{r()}}):l(m,{class:a(e.class,"gap-2"),children:[l(v,{heightRem:g("text-md"),children:l(D,{})}),l(t,{class:"min-w-0 shrink w-full",children:"Waiting for service worker to install update..."})]})}function $(e){const{isHotReloadingEnabled:n}=H();return n?l(j,{...e}):l(G,{...e})}function j(e){const{data:n,loading:r}=c();return l(o,{class:a(e.class,"gap-6"),children:[l(C,{header:"App version",pillContent:{text:"Development",type:"info"},loading:!1}),l(t,{children:"All frontend code is being served with hot-reloading enabled, not through the PWA. (The below values are meaningless.)"}),l(b,{}),l(u,{prefix:"Latest version",value:n?.frontendVersion.slice(0,8)??null,loading:r})]})}function G(e){const{frontendVersion:n}=x(),{data:r,loading:s}=c(),d=!s&&r!=null&&r?.frontendVersion!==n;return l(o,{class:a(e.class,"gap-8"),children:l(o,{class:"gap-6",children:[l(V,{header:"App version",currentValue:n,latestValue:r?.frontendVersion??null,loading:s}),l(b,{}),l(u,{prefix:"Latest version",value:i(r?.frontendVersion),loading:s}),d&&l(Q,{})]})})}function b(){const{frontendVersion:e,versionsOnLastUpdate:n}=x();return l(o,{class:"gap-4",children:[l(t,{children:["Current version: ",i(e)]}),l(o,{class:"gap-3",children:[l(t,{style:"small-weak",children:["Server version: ",i(n.serverVersion)]}),l(t,{style:"small-weak",children:["CoreQuery version: ",n.corequeryPackageVersion]})]})]})}function Z(e){const n=B(M,{});return l(y.Provider,{value:n,children:e.children})}function _(e){const{data:n,loading:r}=c(),{foda:s}=U();return l(o,{class:a(e.class,"gap-6"),children:[l(V,{header:"Foundational data",currentValue:s.hash,latestValue:n?.foundationalDataHash??null,loading:r}),l(o,{class:"gap-4",children:[l(t,{children:["Current version: ",i(s.hash)]}),l(t,{style:"small-weak",children:["Server version: ",s.serverVersion]})]}),l(u,{prefix:"Latest version",value:i(n?.foundationalDataHash),loading:r})]})}function J(e){const{data:n,loading:r}=c();return l(o,{class:a(e.class,"gap-8"),children:l(o,{class:"gap-6",children:[l(t,{style:"strong",children:"Server"}),l(K,{}),l(o,{class:"gap-4",children:[l(u,{prefix:"Server version",value:i(n?.serverVersion),loading:r}),l(u,{prefix:"CoreQuery version",value:n?.corequeryPackageVersion??null,loading:r})]})]})})}function K(){const{error:e}=c();return e==null?null:l(w,{type:"error",children:l(t,{children:"Unable to fetch the latest version info from the server."})})}function ne(){return l(E,{...F({title:"Developer info"}),children:l(Z,{children:l(o,{class:"px-4 py-8 gap-8",children:[l(N,{}),l($,{}),l(f,{}),l(_,{}),l(f,{}),l(J,{}),l(f,{})]})})})}function N(){const{error:e}=c();return e==null?null:l(w,{type:"error",children:l(t,{children:"Unable to fetch the latest version info from the server."})})}export{ne as default};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as s,c as o}from"./index-CynqaRua.js";function e(r){return s("div",{class:o(r.class,"border-b border-soft-border")})}export{e as D};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{u as t,a as e,C as s,T as o}from"./index-CynqaRua.js";import{P as r}from"./Page-DgtsUkml.js";import{u as i}from"./use-simple-headers-BrVs9tqw.js";function u(){const{appName:a}=t();return e(r,{...i({title:"Home"}),children:e(s,{class:"px-4 py-8 gap-8",children:e(o,{style:"title",children:a})})})}export{u as default};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{f as g,u as f,d as
|
|
1
|
+
import{f as g,u as f,d as m,h as p,i as h,y,a as e,C as r,T as i,B as x,m as H,L as k}from"./index-CynqaRua.js";import{P as l}from"./Page-DgtsUkml.js";function b(){const{isHotReloadingEnabled:s}=g(),{frontendVersion:d}=f(),{unregister:t}=m(),{data:a,loading:o,error:c}=p(h,{}),n=!s&&!o&&c==null&&a!=null&&a.frontendVersion!==d;return y(()=>{async function u(){n&&(await t(),window.location.reload())}u()},[n,t]),!o&&!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{a as d,c as n,G as r,
|
|
1
|
+
import{a as d,c as n,G as r,n as a,P as i}from"./index-CynqaRua.js";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 c(e){return d(r,{class:n(e.class,"not-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-12":e.mobileHeader!=null,"not-desktop:pb-18":t,"desktop:grid-rows-[auto_1fr]":e.desktopHeader!=null},"desktop:pt-12"),children:[e.mobileHeader!=null&&d(s,{class:"h-12",children:e.mobileHeader}),e.desktopHeader!=null&&d(c,{children:e.desktopHeader}),l?d(i,{children:e.children}):e.children]})}export{h as P};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import{a as t,c as s,b as l,T as c,k as g,l as u,t as d,C as r}from"./index-CynqaRua.js";import{P as v}from"./Page-DgtsUkml.js";import{u as h}from"./use-simple-headers-BrVs9tqw.js";import{D as m}from"./Divider-BnyCkMS8.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};
|