Enhance SvelteKit project by adding new API routes for dark mode toggling, updating existing route parameters, and improving type definitions. Refactor component imports and optimize asset handling for better performance and maintainability.
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m29s

This commit is contained in:
eewing
2026-02-18 14:16:38 -06:00
parent a3db68e8fc
commit cfff9de0e6
574 changed files with 21605 additions and 1702 deletions
@@ -0,0 +1 @@
import"./Bzak7iHL.js";import{p as mt,i as f,s as r,o as n,w as l,x as o,j as a,q as u,v as i,h as ft,g as v,m as vt,y as L,k as T,l as B}from"./DScGFiBY.js";import{c as d}from"./B5gxx3nr.js";import{B as c}from"./CcEFwafz.js";import{D as $t,a as ht,b as pt,c as _t,I as xt,d as wt}from"./Do7CCxfs.js";import{B as gt}from"./DTML-ACl.js";import{g as q}from"./BuAKAdPx.js";var Pt=B("<!> <!>",1),kt=B("<!> <!>",1),bt=B('<main class="flex min-h-screen flex-col items-center justify-center gap-6 p-6 sm:p-8"><h1 class="w-full max-w-xs text-center text-2xl font-semibold">Stackq</h1> <div class="flex w-full max-w-xs flex-col gap-3"><!> <a href="/transactions/new" class="block"><!></a> <a href="/receipts/new" class="block"><!></a> <!></div> <div class="w-full max-w-xs border-t pt-4"></div> <div class="flex w-full max-w-xs flex-col gap-2"><a href="/items" class="block"><!></a> <a href="/transactions" class="block"><!></a> <a href="/receipts" class="block"><!></a> <a href="/accounts" class="block"><!></a></div></main> <!> <!>',1);function jt(W,$){mt($,!0);let m=L(!1),h=L(!1);const z=T(()=>{var t;return((t=$.data)==null?void 0:t.items)??[]}),E=T(()=>{var t;return((t=$.data)==null?void 0:t.itemsForParent)??[]});function G(){u(m,!1),q("/items")}function J(t){const s=t.trim(),e=v(z).find(A=>(A.SKU??"").trim()===s);e?q("/items/"+e.id):q("/items?q="+encodeURIComponent(s))}var F=bt(),p=f(F),_=r(n(p),2),N=n(_);c(N,{class:"h-16 min-h-16 w-full",onclick:()=>u(h,!0),children:(t,s)=>{l();var e=o("Scan");a(t,e)},$$slots:{default:!0}});var x=r(N,2),M=n(x);c(M,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var e=o("New transaction");a(t,e)},$$slots:{default:!0}}),i(x);var w=r(x,2),Q=n(w);c(Q,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var e=o("New receipt");a(t,e)},$$slots:{default:!0}}),i(w);var V=r(w,2);c(V,{class:"h-16 min-h-16 w-full",variant:"outline",onclick:()=>u(m,!0),children:(t,s)=>{l();var e=o("New Item");a(t,e)},$$slots:{default:!0}}),i(_);var R=r(_,4),g=n(R),X=n(g);c(X,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var e=o("Items");a(t,e)},$$slots:{default:!0}}),i(g);var P=r(g,2),Y=n(P);c(Y,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var e=o("Transactions");a(t,e)},$$slots:{default:!0}}),i(P);var k=r(P,2),Z=n(k);c(Z,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var e=o("Receipts");a(t,e)},$$slots:{default:!0}}),i(k);var y=r(k,2),tt=n(y);c(tt,{class:"h-16 min-h-16 w-full",variant:"outline",children:(t,s)=>{l();var e=o("Accounts");a(t,e)},$$slots:{default:!0}}),i(y),i(R),i(p);var j=r(p,2);d(j,()=>wt,(t,s)=>{s(t,{get open(){return v(m)},set open(e){u(m,e,!0)},children:(e,A)=>{var C=ft(),at=f(C);d(at,()=>$t,(st,rt)=>{rt(st,{class:"max-h-[90dvh] w-[calc(100vw-2rem)] max-w-[500px] overflow-y-auto rounded-lg sm:w-full",children:(lt,Dt)=>{var O=kt(),U=f(O);d(U,()=>ht,(nt,it)=>{it(nt,{children:(ct,St)=>{var H=Pt(),K=f(H);d(K,()=>pt,(b,D)=>{D(b,{children:(S,dt)=>{l();var I=o("New item");a(S,I)},$$slots:{default:!0}})});var ut=r(K,2);d(ut,()=>_t,(b,D)=>{D(b,{children:(S,dt)=>{l();var I=o("Add a new Stackq item.");a(S,I)},$$slots:{default:!0}})}),a(ct,H)},$$slots:{default:!0}})});var ot=r(U,2);xt(ot,{get itemsForParent(){return v(E)},action:"/items?/create",submitLabel:"Create",onSuccess:G}),a(lt,O)},$$slots:{default:!0}})}),a(e,C)},$$slots:{default:!0}})});var et=r(j,2);gt(et,{onResult:J,title:"Scan to look up item",get open(){return v(h)},set open(t){u(h,t,!0)}}),a(W,F),vt()}export{jt as default};