Refactor environment variable declarations, enhance image handling in item forms, and update asset references in SvelteKit project for improved functionality and performance.
CI / build (push) Has been skipped
CI / deploy (push) Successful in 1m53s

This commit is contained in:
eewing
2026-02-17 15:13:03 -06:00
parent 9022114c8d
commit 7ac169c1e4
238 changed files with 35126 additions and 1344 deletions
@@ -4,11 +4,11 @@ var _layout_ts = /*#__PURE__*/Object.freeze({
const index = 0;
let component_cache;
const component = async () => component_cache ??= (await import('./_layout.svelte-Ectc0goa.js')).default;
const component = async () => component_cache ??= (await import('./_layout.svelte-CBQcLaNr.js')).default;
const universal_id = "src/routes/+layout.ts";
const imports = ["_app/immutable/nodes/0.DZETcxWC.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DAt58MA1.js","_app/immutable/chunks/MIlO0V30.js"];
const stylesheets = ["_app/immutable/assets/0.BgdOWdGt.css"];
const imports = ["_app/immutable/nodes/0.BbNusdVr.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DAt58MA1.js","_app/immutable/chunks/MIlO0V30.js"];
const stylesheets = ["_app/immutable/assets/0.EFPCDS6k.css"];
const fonts = [];
export { component, fonts, imports, index, stylesheets, _layout_ts as universal, universal_id };
//# sourceMappingURL=0-Boxr_tZz.js.map
//# sourceMappingURL=0-BG3ac_Ii.js.map
@@ -1 +1 @@
{"version":3,"file":"0-Boxr_tZz.js","sources":["../../../.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["import * as universal from '../entries/pages/_layout.ts.js';\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport { universal };\nexport const universal_id = \"src/routes/+layout.ts\";\nexport const imports = [\"_app/immutable/nodes/0.DZETcxWC.js\",\"_app/immutable/chunks/Bzak7iHL.js\",\"_app/immutable/chunks/DAt58MA1.js\",\"_app/immutable/chunks/MIlO0V30.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.BgdOWdGt.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE;AAElG,MAAC,YAAY,GAAG;AAChB,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5J,MAAC,WAAW,GAAG,CAAC,sCAAsC;AACtD,MAAC,KAAK,GAAG;;;;"}
{"version":3,"file":"0-BG3ac_Ii.js","sources":["../../../.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["import * as universal from '../entries/pages/_layout.ts.js';\n\nexport const index = 0;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;\nexport { universal };\nexport const universal_id = \"src/routes/+layout.ts\";\nexport const imports = [\"_app/immutable/nodes/0.BbNusdVr.js\",\"_app/immutable/chunks/Bzak7iHL.js\",\"_app/immutable/chunks/DAt58MA1.js\",\"_app/immutable/chunks/MIlO0V30.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.EFPCDS6k.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE;AAElG,MAAC,YAAY,GAAG;AAChB,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5J,MAAC,WAAW,GAAG,CAAC,sCAAsC;AACtD,MAAC,KAAK,GAAG;;;;"}
@@ -1,9 +1,9 @@
const index = 1;
let component_cache;
const component = async () => component_cache ??= (await import('./error.svelte-RymJGne7.js')).default;
const imports = ["_app/immutable/nodes/1.DMG02OYc.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DAt58MA1.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/BXb9cfiV.js"];
const component = async () => component_cache ??= (await import('./error.svelte-BRgFNICv.js')).default;
const imports = ["_app/immutable/nodes/1.BSDMq5ii.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DAt58MA1.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/BU_acMKx.js"];
const stylesheets = [];
const fonts = [];
export { component, fonts, imports, index, stylesheets };
//# sourceMappingURL=1-DsWIPMw0.js.map
//# sourceMappingURL=1-DQKtEeGl.js.map
@@ -1 +1 @@
{"version":3,"file":"1-DsWIPMw0.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.DMG02OYc.js\",\"_app/immutable/chunks/Bzak7iHL.js\",\"_app/immutable/chunks/DAt58MA1.js\",\"_app/immutable/chunks/MIlO0V30.js\",\"_app/immutable/chunks/BMmwim-G.js\",\"_app/immutable/chunks/Dt2zEVER.js\",\"_app/immutable/chunks/BXb9cfiV.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE;AACpG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACxQ,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
{"version":3,"file":"1-DQKtEeGl.js","sources":["../../../.svelte-kit/adapter-node/nodes/1.js"],"sourcesContent":["\n\nexport const index = 1;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.BSDMq5ii.js\",\"_app/immutable/chunks/Bzak7iHL.js\",\"_app/immutable/chunks/DAt58MA1.js\",\"_app/immutable/chunks/MIlO0V30.js\",\"_app/immutable/chunks/BMmwim-G.js\",\"_app/immutable/chunks/Dt2zEVER.js\",\"_app/immutable/chunks/BU_acMKx.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAsC,CAAC,EAAE;AACpG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACxQ,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
@@ -1,9 +1,9 @@
const index = 2;
let component_cache;
const component = async () => component_cache ??= (await import('./_page.svelte-C3pCwICc.js')).default;
const component = async () => component_cache ??= (await import('./_page.svelte-BoMrJaXS.js')).default;
const imports = ["_app/immutable/nodes/2.B-LkGsse.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DAt58MA1.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/CINS0kDe.js","_app/immutable/chunks/De4R2cbq.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/znVx7SEM.js"];
const stylesheets = [];
const fonts = [];
export { component, fonts, imports, index, stylesheets };
//# sourceMappingURL=2-f2aeE3wg.js.map
//# sourceMappingURL=2-D3BraRNb.js.map
@@ -1 +1 @@
{"version":3,"file":"2-f2aeE3wg.js","sources":["../../../.svelte-kit/adapter-node/nodes/2.js"],"sourcesContent":["\n\nexport const index = 2;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/2.B-LkGsse.js\",\"_app/immutable/chunks/Bzak7iHL.js\",\"_app/immutable/chunks/DAt58MA1.js\",\"_app/immutable/chunks/MIlO0V30.js\",\"_app/immutable/chunks/CINS0kDe.js\",\"_app/immutable/chunks/De4R2cbq.js\",\"_app/immutable/chunks/D6Mj8HfB.js\",\"_app/immutable/chunks/Dt2zEVER.js\",\"_app/immutable/chunks/znVx7SEM.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAkC,CAAC,EAAE;AAChG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAChV,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
{"version":3,"file":"2-D3BraRNb.js","sources":["../../../.svelte-kit/adapter-node/nodes/2.js"],"sourcesContent":["\n\nexport const index = 2;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/2.B-LkGsse.js\",\"_app/immutable/chunks/Bzak7iHL.js\",\"_app/immutable/chunks/DAt58MA1.js\",\"_app/immutable/chunks/MIlO0V30.js\",\"_app/immutable/chunks/CINS0kDe.js\",\"_app/immutable/chunks/De4R2cbq.js\",\"_app/immutable/chunks/D6Mj8HfB.js\",\"_app/immutable/chunks/Dt2zEVER.js\",\"_app/immutable/chunks/znVx7SEM.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":"AAEY,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAkC,CAAC,EAAE;AAChG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAChV,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
File diff suppressed because one or more lines are too long
@@ -34,9 +34,11 @@ const actions = {
const Has_Parent = parseBool(form.get("Has_Parent"));
const Parent = form.get("Parent")?.trim() ?? "";
const Stock = parseBool(form.get("Stock"));
const imageFileCreate = form.get("Image");
const hasImage = imageFileCreate && imageFileCreate.size > 0;
if (!Item) return fail(400, { error: "Item name is required", form: "create" });
try {
await locals.pb.collection(COLLECTION).create({
const body = {
Item,
SKU,
Description,
@@ -48,7 +50,9 @@ const actions = {
Has_Parent: !!Has_Parent,
Parent: Parent || null,
Stock: !!Stock
});
};
if (hasImage) body.Image = imageFileCreate;
await locals.pb.collection(COLLECTION).create(body);
} catch (e) {
const message = e && typeof e === "object" && "message" in e ? String(e.message) : "Create failed";
return fail(500, { error: message, form: "create" });
@@ -70,9 +74,11 @@ const actions = {
const Has_Parent = parseBool(form.get("Has_Parent"));
const Parent = form.get("Parent")?.trim() ?? "";
const Stock = parseBool(form.get("Stock"));
const Image = form.get("Image");
const imageFile = Image && Image.size > 0 ? Image : void 0;
if (!Item) return fail(400, { error: "Item name is required", form: "update" });
try {
await locals.pb.collection(COLLECTION).update(id, {
const body = {
Item,
SKU,
Description,
@@ -84,7 +90,9 @@ const actions = {
Has_Parent: !!Has_Parent,
Parent: Parent || null,
Stock: !!Stock
});
};
if (imageFile) body.Image = imageFile;
await locals.pb.collection(COLLECTION).update(id, body);
} catch (e) {
const message = e && typeof e === "object" && "message" in e ? String(e.message) : "Update failed";
return fail(500, { error: message, form: "update" });
@@ -113,11 +121,11 @@ var _page_server_ts = /*#__PURE__*/Object.freeze({
const index = 4;
let component_cache;
const component = async () => component_cache ??= (await import('./_page.svelte-DSua_Zvy.js')).default;
const component = async () => component_cache ??= (await import('./_page.svelte-DV7w38Ax.js')).default;
const server_id = "src/routes/items/+page.server.ts";
const imports = ["_app/immutable/nodes/4.BhfvMQ1L.js","_app/immutable/chunks/hxRy_pid.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DBvDeCtH.js","_app/immutable/chunks/De4R2cbq.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/znVx7SEM.js"];
const imports = ["_app/immutable/nodes/4.CiQuz_-G.js","_app/immutable/chunks/D1I5yNUo.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DBvDeCtH.js","_app/immutable/chunks/De4R2cbq.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/znVx7SEM.js"];
const stylesheets = [];
const fonts = [];
export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
//# sourceMappingURL=4-C1zk_dEb.js.map
//# sourceMappingURL=4-CfV0vtB3.js.map
File diff suppressed because one or more lines are too long
@@ -40,9 +40,9 @@ const index = 5;
let component_cache;
const component = async () => component_cache ??= (await import('./_page.svelte-3rk2vnq3.js')).default;
const server_id = "src/routes/login/+page.server.ts";
const imports = ["_app/immutable/nodes/5.Cf_DU5yu.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DBvDeCtH.js"];
const imports = ["_app/immutable/nodes/5.CncCf1V5.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/DBvDeCtH.js"];
const stylesheets = [];
const fonts = [];
export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
//# sourceMappingURL=5-DDffnZxb.js.map
//# sourceMappingURL=5-BHOJrLRF.js.map
@@ -1 +1 @@
{"version":3,"file":"5-DDffnZxb.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/login/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/5.js"],"sourcesContent":["import { fail, redirect } from \"@sveltejs/kit\";\nfunction safeRedirectTo(searchParams) {\n const to = searchParams.get(\"redirectTo\");\n if (!to || typeof to !== \"string\") return \"/items\";\n if (!to.startsWith(\"/\") || to.startsWith(\"//\")) return \"/items\";\n return to;\n}\nconst load = ({ url, locals }) => {\n if (locals.user) {\n throw redirect(303, safeRedirectTo(url.searchParams));\n }\n};\nconst actions = {\n login: async ({ request, locals, url }) => {\n const data = await request.formData();\n const email = data.get(\"email\")?.trim() ?? \"\";\n const password = data.get(\"password\") ?? \"\";\n if (!email || !password) {\n return fail(400, { error: \"Email and password are required.\", email });\n }\n try {\n await locals.pb.collection(\"users\").authWithPassword(email, password);\n } catch (err) {\n const message = err && typeof err === \"object\" && \"message\" in err ? String(err.message) : \"Invalid email or password.\";\n return fail(401, { error: message, email });\n }\n const redirectTo = safeRedirectTo(url.searchParams);\n throw redirect(303, redirectTo);\n }\n};\nexport {\n actions,\n load\n};\n","import * as server from '../entries/pages/login/_page.server.ts.js';\n\nexport const index = 5;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/login/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/login/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/5.Cf_DU5yu.js\",\"_app/immutable/chunks/DPCugUAM.js\",\"_app/immutable/chunks/MIlO0V30.js\",\"_app/immutable/chunks/D6Mj8HfB.js\",\"_app/immutable/chunks/Bzak7iHL.js\",\"_app/imm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,EAAE,QAAQ,CAAC;AAC3E,IAAI,CAAC,CAAC,OAAO,GAAG,EAAE;AAClB,MAAM,MAAM,OAAO,GAAG,GAAG,IAAI,OAAO,GAAG,KAAK,QAAQ,IAAI,SAAS,IAAI,GAAG,GAAG,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,GAAG,4BAA4B;AAC7H,MAAM,OAAO,IAAI,CAAC,GAAG,EAAE,EAAE,KAAK,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;AACjD,IAAI;AACJ,IAAI,MAAM,UAAU,GAAG,cAAc,CAAC,GAAG,CAAC,YAAY,CAAC;AACvD,IAAI,MAAM,QAAQ,CAAC,GAAG,EAAE,UAAU,CAAC;AACnC,EAAE;AACF,CAAC;;;;;;;;AC3BW,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAwC,CAAC,EAAE;AAEtG,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACpO,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
{"version":3,"file":"5-BHOJrLRF.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/login/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/5.js"],"sourcesContent":["import { fail, redirect } from \"@sveltejs/kit\";\nfunction safeRedirectTo(searchParams) {\n const to = searchParams.get(\"redirectTo\");\n if (!to || typeof to !== \"string\") return \"/items\";\n if (!to.startsWith(\"/\") || to.startsWith(\"//\")) return \"/items\";\n return to;\n}\nconst load = ({ url, locals }) => {\n if (locals.user) {\n throw redirect(303, safeRedirectTo(url.searchParams));\n }\n};\nconst actions = {\n login: async ({ request, locals, url }) => {\n const data = await request.formData();\n const email = data.get(\"email\")?.trim() ?? \"\";\n const password = data.get(\"password\") ?? \"\";\n if (!email || !password) {\n return fail(400, { error: \"Email and password are required.\", email });\n }\n try {\n await locals.pb.collection(\"users\").authWithPassword(email, password);\n } catch (err) {\n const message = err && typeof err === \"object\" && \"message\" in err ? String(err.message) : \"Invalid email or password.\";\n return fail(401, { error: message, email });\n }\n const redirectTo = safeRedirectTo(url.searchParams);\n throw redirect(303, redirectTo);\n }\n};\nexport {\n actions,\n load\n};\n","import * as server from '../entries/pages/login/_page.server.ts.js';\n\nexport const index = 5;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/login/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/login/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/5.CncCf1V5.js\",\"_app/immutable/chunks/DPCugUAM.js\",\"_app/immutable/chunks/MIlO0V30.js\",\"_app/immutable/chunks/D6Mj8HfB.js\",\"_app/immutable/chunks/Bzak7iHL.js\",\"_app/immutable/chunks/DBvDeCtH.js\"];\nexport const stylesheets = [];\nexport const fonts = [];\n"],"names":[],"mappings":";;AACA,SAAS,cAAc,CAAC,YAAY,EAAE;AACtC,EAAE,MAAM,EAAE,GAAG,YAAY,CAAC,GAAG,CAAC,YAAY,CAAC;AAC3C,EAAE,IAAI,CAAC,EAAE,IAAI,OAAO,EAAE,KAAK,QAAQ,EAAE,OAAO,QAAQ;AACpD,EAAE,IAAI,CAAC,EAAE,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,EAAE,CAAC,UAAU,CAAC,IAAI,CAAC,EAAE,OAAO,QAAQ;AACjE,EAAE,OAAO,EAAE;AACX;AACA,MAAM,IAAI,GAAG,CAAC,EAAE,GAAG,EAAE,MAAM,EAAE,KAAK;AAClC,EAAE,IAAI,MAAM,CAAC,IAAI,EAAE;AACnB,IAAI,MAAM,QAAQ,CAAC,GAAG,EAAE,cAAc,CAAC,GAAG,CAAC,YAAY,CAAC,CAAC;AACzD,EAAE;AACF,CAAC;AACD,MAAM,OAAO,GAAG;AAChB,EAAE,KAAK,EAAE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,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AACpO,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
@@ -1,4 +1,4 @@
import { c as slot } from './index-Cd32JeF5.js';
import { c as slot } from './index-DV2ddKt_.js';
import 'clsx';
function _layout($$renderer, $$props) {
@@ -8,4 +8,4 @@ function _layout($$renderer, $$props) {
}
export { _layout as default };
//# sourceMappingURL=_layout.svelte-Ectc0goa.js.map
//# sourceMappingURL=_layout.svelte-CBQcLaNr.js.map
@@ -1 +1 @@
{"version":3,"file":"_layout.svelte-Ectc0goa.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.svelte.js"],"sourcesContent":["import { s as slot } from \"../../chunks/index.js\";\nfunction _layout($$renderer, $$props) {\n $$renderer.push(`<!--[-->`);\n slot($$renderer, $$props, \"default\", {});\n $$renderer.push(`<!--]-->`);\n}\nexport {\n _layout as default\n};\n"],"names":[],"mappings":";;;AACA,SAAS,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE;AACtC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAC7B,EAAE,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,CAAC;AAC1C,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAC7B;;;;"}
{"version":3,"file":"_layout.svelte-CBQcLaNr.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.svelte.js"],"sourcesContent":["import { s as slot } from \"../../chunks/index.js\";\nfunction _layout($$renderer, $$props) {\n $$renderer.push(`<!--[-->`);\n slot($$renderer, $$props, \"default\", {});\n $$renderer.push(`<!--]-->`);\n}\nexport {\n _layout as default\n};\n"],"names":[],"mappings":";;;AACA,SAAS,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE;AACtC,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAC7B,EAAE,IAAI,CAAC,UAAU,EAAE,OAAO,EAAE,SAAS,EAAE,EAAE,CAAC;AAC1C,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAC7B;;;;"}
@@ -1,5 +1,5 @@
import 'clsx';
import { a6 as attributes, a7 as clsx, a8 as bind_props } from './index-Cd32JeF5.js';
import { a6 as attributes, a7 as clsx, a8 as bind_props } from './index-DV2ddKt_.js';
import { c as cn, t as tv } from './index-DWasNFG9.js';
import 'tailwind-merge';
@@ -89,4 +89,4 @@ function _page($$renderer) {
}
export { _page as default };
//# sourceMappingURL=_page.svelte-C3pCwICc.js.map
//# sourceMappingURL=_page.svelte-BoMrJaXS.js.map
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
import { a9 as head, d as escape_html, a6 as attributes, a7 as clsx, a8 as bind_props, aa as ensure_array_like, ab as element } from './index-Cd32JeF5.js';
import { a9 as head, d as escape_html, a6 as attributes, a7 as clsx, a8 as bind_props, aa as ensure_array_like, ab as attr, ac as element } from './index-DV2ddKt_.js';
import { c as cn, t as tv } from './index-DWasNFG9.js';
import 'clsx';
import 'tailwind-merge';
@@ -222,6 +222,12 @@ function _page($$renderer, $$props) {
}
}
const items = data?.items ?? [];
const PB_BASE = "https://pocketbase.ccllc.pro";
const COLLECTION = "Stackq_Items";
function imageUrl(item) {
if (!item.Image) return null;
return `${PB_BASE}/api/files/${COLLECTION}/${item.id}/${item.Image}`;
}
head("rk8na7", $$renderer2, ($$renderer3) => {
$$renderer3.title(($$renderer4) => {
$$renderer4.push(`<title>Items Stackq</title>`);
@@ -244,6 +250,14 @@ function _page($$renderer, $$props) {
$$renderer6.push("<!---->");
Table_row?.($$renderer6, {
children: ($$renderer7) => {
$$renderer7.push("<!---->");
Table_head?.($$renderer7, {
children: ($$renderer8) => {
$$renderer8.push(`<!---->Image`);
},
$$slots: { default: true }
});
$$renderer7.push(`<!----> `);
$$renderer7.push("<!---->");
Table_head?.($$renderer7, {
children: ($$renderer8) => {
@@ -370,7 +384,7 @@ function _page($$renderer, $$props) {
children: ($$renderer7) => {
$$renderer7.push("<!---->");
Table_cell?.($$renderer7, {
colspan: "13",
colspan: "14",
class: "h-24 text-center text-muted-foreground",
children: ($$renderer8) => {
$$renderer8.push(`<!---->No items.`);
@@ -391,6 +405,22 @@ function _page($$renderer, $$props) {
$$renderer6.push("<!---->");
Table_row?.($$renderer6, {
children: ($$renderer7) => {
$$renderer7.push("<!---->");
Table_cell?.($$renderer7, {
class: "w-16",
children: ($$renderer8) => {
if (imageUrl(item)) {
$$renderer8.push("<!--[-->");
$$renderer8.push(`<img${attr("src", imageUrl(item))} alt="" class="size-14 rounded border object-cover" loading="lazy"/>`);
} else {
$$renderer8.push("<!--[!-->");
$$renderer8.push(`<span class="text-muted-foreground text-xs">—</span>`);
}
$$renderer8.push(`<!--]-->`);
},
$$slots: { default: true }
});
$$renderer7.push(`<!----> `);
$$renderer7.push("<!---->");
Table_cell?.($$renderer7, {
class: "font-medium",
@@ -614,4 +644,4 @@ function _page($$renderer, $$props) {
}
export { _page as default };
//# sourceMappingURL=_page.svelte-DSua_Zvy.js.map
//# sourceMappingURL=_page.svelte-DV7w38Ax.js.map
File diff suppressed because one or more lines are too long
@@ -1,6 +1,6 @@
import { d as escape_html, f as getContext, n as noop } from './index-Cd32JeF5.js';
import { d as escape_html, f as getContext, n as noop } from './index-DV2ddKt_.js';
import 'clsx';
import { l as writable } from './exports-DzT6WcEV.js';
import { l as writable } from './exports-t4TpQnRz.js';
function create_updated_store() {
const { set, subscribe } = writable(false);
@@ -43,4 +43,4 @@ function Error$1($$renderer, $$props) {
}
export { Error$1 as default };
//# sourceMappingURL=error.svelte-RymJGne7.js.map
//# sourceMappingURL=error.svelte-BRgFNICv.js.map
@@ -1 +1 @@
{"version":3,"file":"error.svelte-RymJGne7.js","sources":["../../../.svelte-kit/adapter-node/entries/fallbacks/error.svelte.js"],"sourcesContent":["import { n as noop, g as getContext, e as escape_html } from \"../../chunks/index.js\";\nimport \"clsx\";\nimport { w as writable } from \"../../chunks/exports.js\";\nimport \"@sveltejs/kit/internal/server\";\nimport \"../../chunks/root.js\";\nimport \"@sveltejs/kit/internal\";\nimport \"../../chunks/utils.js\";\nfunction create_updated_store() {\n const { set, subscribe } = writable(false);\n {\n return {\n subscribe,\n // eslint-disable-next-line @typescript-eslint/require-await\n check: async () => false\n };\n }\n}\nconst is_legacy = noop.toString().includes(\"$$\") || /function \\w+\\(\\) \\{\\}/.test(noop.toString());\nif (is_legacy) {\n ({\n data: {},\n form: null,\n error: null,\n params: {},\n route: { id: null },\n state: {},\n status: -1,\n url: new URL(\"https://example.com\")\n });\n}\nconst stores = {\n updated: /* @__PURE__ */ create_updated_store()\n};\n({\n check: stores.updated.check\n});\nfunction context() {\n return getContext(\"__request__\");\n}\nconst page$1 = {\n get error() {\n return context().page.error;\n },\n get status() {\n return context().page.status;\n }\n};\nconst page = page$1;\nfunction Error$1($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n $$renderer2.push(`<h1>${escape_html(page.status)}</h1> <p>${escape_html(page.error?.message)}</p>`);\n });\n}\nexport {\n Error$1 as default\n};\n"],"names":[],"mappings":";;;;AAOA,SAAS,oBAAoB,GAAG;AAChC,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC;AAC5C,EAAE;AACF,IAAI,OAAO;AACX,MAAM,SAAS;AACf;AACA,MAAM,KAAK,EAAE,YAAY;AACzB,KAAK;AACL,EAAE;AACF;AACA,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;AACjG,IAAI,SAAS,EAAE;AACf,EAAE,CAAC;AACH,IAOI,GAAG,EAAE,IAAI,GAAG,CAAC,qBAAqB;AACtC,GAAG;AACH;AACA,MAAM,MAAM,GAAG;AACf,EAAE,OAAO,kBAAkB,oBAAoB;AAC/C,CAAC;AACD,CAAC;AACD,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC;AACxB,CAAC;AACD,SAAS,OAAO,GAAG;AACnB,EAAE,OAAO,UAAU,CAAC,aAAa,CAAC;AAClC;AACA,MAAM,MAAM,GAAG;AACf,EAAE,IAAI,KAAK,GAAG;AACd,IAAI,OAAO,OAAO,EAAE,CAAC,IAAI,CAAC,KAAK;AAC/B,EAAE,CAAC;AACH,EAAE,IAAI,MAAM,GAAG;AACf,IAAI,OAAO,OAAO,EAAE,CAAC,IAAI,CAAC,MAAM;AAChC,EAAE;AACF,CAAC;AACD,MAAM,IAAI,GAAG,MAAM;AACnB,SAAS,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE;AACtC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AACvG,EAAE,CAAC,CAAC;AACJ;;;;"}
{"version":3,"file":"error.svelte-BRgFNICv.js","sources":["../../../.svelte-kit/adapter-node/entries/fallbacks/error.svelte.js"],"sourcesContent":["import { n as noop, g as getContext, e as escape_html } from \"../../chunks/index.js\";\nimport \"clsx\";\nimport { w as writable } from \"../../chunks/exports.js\";\nimport \"@sveltejs/kit/internal/server\";\nimport \"../../chunks/root.js\";\nimport \"@sveltejs/kit/internal\";\nimport \"../../chunks/utils.js\";\nfunction create_updated_store() {\n const { set, subscribe } = writable(false);\n {\n return {\n subscribe,\n // eslint-disable-next-line @typescript-eslint/require-await\n check: async () => false\n };\n }\n}\nconst is_legacy = noop.toString().includes(\"$$\") || /function \\w+\\(\\) \\{\\}/.test(noop.toString());\nif (is_legacy) {\n ({\n data: {},\n form: null,\n error: null,\n params: {},\n route: { id: null },\n state: {},\n status: -1,\n url: new URL(\"https://example.com\")\n });\n}\nconst stores = {\n updated: /* @__PURE__ */ create_updated_store()\n};\n({\n check: stores.updated.check\n});\nfunction context() {\n return getContext(\"__request__\");\n}\nconst page$1 = {\n get error() {\n return context().page.error;\n },\n get status() {\n return context().page.status;\n }\n};\nconst page = page$1;\nfunction Error$1($$renderer, $$props) {\n $$renderer.component(($$renderer2) => {\n $$renderer2.push(`<h1>${escape_html(page.status)}</h1> <p>${escape_html(page.error?.message)}</p>`);\n });\n}\nexport {\n Error$1 as default\n};\n"],"names":[],"mappings":";;;;AAOA,SAAS,oBAAoB,GAAG;AAChC,EAAE,MAAM,EAAE,GAAG,EAAE,SAAS,EAAE,GAAG,QAAQ,CAAC,KAAK,CAAC;AAC5C,EAAE;AACF,IAAI,OAAO;AACX,MAAM,SAAS;AACf;AACA,MAAM,KAAK,EAAE,YAAY;AACzB,KAAK;AACL,EAAE;AACF;AACA,MAAM,SAAS,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;AACjG,IAAI,SAAS,EAAE;AACf,EAAE,CAAC;AACH,IAOI,GAAG,EAAE,IAAI,GAAG,CAAC,qBAAqB;AACtC,GAAG;AACH;AACA,MAAM,MAAM,GAAG;AACf,EAAE,OAAO,kBAAkB,oBAAoB;AAC/C,CAAC;AACD,CAAC;AACD,EAAE,KAAK,EAAE,MAAM,CAAC,OAAO,CAAC;AACxB,CAAC;AACD,SAAS,OAAO,GAAG;AACnB,EAAE,OAAO,UAAU,CAAC,aAAa,CAAC;AAClC;AACA,MAAM,MAAM,GAAG;AACf,EAAE,IAAI,KAAK,GAAG;AACd,IAAI,OAAO,OAAO,EAAE,CAAC,IAAI,CAAC,KAAK;AAC/B,EAAE,CAAC;AACH,EAAE,IAAI,MAAM,GAAG;AACf,IAAI,OAAO,OAAO,EAAE,CAAC,IAAI,CAAC,MAAM;AAChC,EAAE;AACF,CAAC;AACD,MAAM,IAAI,GAAG,MAAM;AACnB,SAAS,OAAO,CAAC,UAAU,EAAE,OAAO,EAAE;AACtC,EAAE,UAAU,CAAC,SAAS,CAAC,CAAC,WAAW,KAAK;AACxC,IAAI,WAAW,CAAC,IAAI,CAAC,CAAC,IAAI,EAAE,WAAW,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC,SAAS,EAAE,WAAW,CAAC,IAAI,CAAC,KAAK,EAAE,OAAO,CAAC,CAAC,IAAI,CAAC,CAAC;AACvG,EAAE,CAAC,CAAC;AACJ;;;;"}
File diff suppressed because one or more lines are too long
@@ -1,4 +1,4 @@
import { r as render, L as LEGACY_PROPS, h as define_property, C as CONNECTED, R as REACTION_RAN, E as ERROR_VALUE, j as COMMENT_NODE, H as HYDRATION_START, k as HYDRATION_ERROR, S as STATE_SYMBOL, o as object_prototype, l as array_prototype, U as UNINITIALIZED, m as get_descriptor, p as DERIVED, q as DIRTY, M as MAYBE_DIRTY, t as is_extensible, v as get_prototype_of, w as is_array, x as CLEAN, I as INERT, y as EFFECT, B as BLOCK_EFFECT, z as deferred, W as WAS_MARKED, A as DESTROYED, F as MANAGED_EFFECT, G as run_all, J as BRANCH_EFFECT, K as ROOT_EFFECT, N as RENDER_EFFECT, O as HEAD_EFFECT, P as ASYNC, Q as REACTION_IS_UPDATING, T as EFFECT_PRESERVED, V as EFFECT_TRANSPARENT, X as BOUNDARY_EFFECT, Y as includes, Z as index_of, _ as STALE_REACTION, n as noop, $ as EAGER_EFFECT, a0 as array_from, a1 as is_passive_event, a2 as setContext, a3 as HYDRATION_END, a4 as HYDRATION_START_ELSE, a5 as USER_EFFECT } from './index-Cd32JeF5.js';
import { r as render, L as LEGACY_PROPS, h as define_property, C as CONNECTED, R as REACTION_RAN, E as ERROR_VALUE, j as COMMENT_NODE, H as HYDRATION_START, k as HYDRATION_ERROR, S as STATE_SYMBOL, o as object_prototype, l as array_prototype, U as UNINITIALIZED, m as get_descriptor, p as DERIVED, q as DIRTY, M as MAYBE_DIRTY, t as is_extensible, v as get_prototype_of, w as is_array, x as CLEAN, I as INERT, y as EFFECT, B as BLOCK_EFFECT, z as deferred, W as WAS_MARKED, A as DESTROYED, F as MANAGED_EFFECT, G as run_all, J as BRANCH_EFFECT, K as ROOT_EFFECT, N as RENDER_EFFECT, O as HEAD_EFFECT, P as ASYNC, Q as REACTION_IS_UPDATING, T as EFFECT_PRESERVED, V as EFFECT_TRANSPARENT, X as BOUNDARY_EFFECT, Y as includes, Z as index_of, _ as STALE_REACTION, n as noop, $ as EAGER_EFFECT, a0 as array_from, a1 as is_passive_event, a2 as setContext, a3 as HYDRATION_END, a4 as HYDRATION_START_ELSE, a5 as USER_EFFECT } from './index-DV2ddKt_.js';
import 'clsx';
const DEV = false;
@@ -2899,4 +2899,4 @@ const validate_layout_server_exports = validator(valid_layout_server_exports);
const validate_page_server_exports = validator(valid_page_server_exports);
export { DEV as D, disable_search as a, base64_decode as b, decode_params as c, decode_pathname as d, validate_layout_exports as e, validate_page_server_exports as f, validate_page_exports as g, text_encoder as h, resolve as i, get_relative_path as j, base64_encode as k, writable as l, make_trackable as m, normalize_path as n, readable as o, root as r, text_decoder as t, validate_layout_server_exports as v, with_request_store as w };
//# sourceMappingURL=exports-DzT6WcEV.js.map
//# sourceMappingURL=exports-t4TpQnRz.js.map
File diff suppressed because one or more lines are too long
@@ -1622,5 +1622,5 @@ function ensure_array_like(array_like_or_iterator) {
return [];
}
export { EAGER_EFFECT as $, DESTROYED as A, BLOCK_EFFECT as B, CONNECTED as C, DevalueError as D, ERROR_VALUE as E, MANAGED_EFFECT as F, run_all as G, HYDRATION_START as H, INERT as I, BRANCH_EFFECT as J, ROOT_EFFECT as K, LEGACY_PROPS as L, MAYBE_DIRTY as M, RENDER_EFFECT as N, HEAD_EFFECT as O, ASYNC as P, REACTION_IS_UPDATING as Q, REACTION_RAN as R, STATE_SYMBOL as S, EFFECT_PRESERVED as T, UNINITIALIZED as U, EFFECT_TRANSPARENT as V, WAS_MARKED as W, BOUNDARY_EFFECT as X, includes as Y, index_of as Z, STALE_REACTION as _, is_plain_object as a, array_from as a0, is_passive_event as a1, setContext as a2, HYDRATION_END as a3, HYDRATION_START_ELSE as a4, USER_EFFECT as a5, attributes as a6, clsx as a7, bind_props as a8, head as a9, ensure_array_like as aa, element as ab, stringify_string as b, slot as c, escape_html as d, enumerable_symbols as e, getContext as f, get_type as g, define_property as h, is_primitive as i, COMMENT_NODE as j, HYDRATION_ERROR as k, array_prototype as l, get_descriptor as m, noop as n, object_prototype as o, DERIVED as p, DIRTY as q, render as r, stringify_key as s, is_extensible as t, uneval as u, get_prototype_of as v, is_array as w, CLEAN as x, EFFECT as y, deferred as z };
//# sourceMappingURL=index-Cd32JeF5.js.map
export { EAGER_EFFECT as $, DESTROYED as A, BLOCK_EFFECT as B, CONNECTED as C, DevalueError as D, ERROR_VALUE as E, MANAGED_EFFECT as F, run_all as G, HYDRATION_START as H, INERT as I, BRANCH_EFFECT as J, ROOT_EFFECT as K, LEGACY_PROPS as L, MAYBE_DIRTY as M, RENDER_EFFECT as N, HEAD_EFFECT as O, ASYNC as P, REACTION_IS_UPDATING as Q, REACTION_RAN as R, STATE_SYMBOL as S, EFFECT_PRESERVED as T, UNINITIALIZED as U, EFFECT_TRANSPARENT as V, WAS_MARKED as W, BOUNDARY_EFFECT as X, includes as Y, index_of as Z, STALE_REACTION as _, is_plain_object as a, array_from as a0, is_passive_event as a1, setContext as a2, HYDRATION_END as a3, HYDRATION_START_ELSE as a4, USER_EFFECT as a5, attributes as a6, clsx as a7, bind_props as a8, head as a9, ensure_array_like as aa, attr as ab, element as ac, stringify_string as b, slot as c, escape_html as d, enumerable_symbols as e, getContext as f, get_type as g, define_property as h, is_primitive as i, COMMENT_NODE as j, HYDRATION_ERROR as k, array_prototype as l, get_descriptor as m, noop as n, object_prototype as o, DERIVED as p, DIRTY as q, render as r, stringify_key as s, is_extensible as t, uneval as u, get_prototype_of as v, is_array as w, CLEAN as x, EFFECT as y, deferred as z };
//# sourceMappingURL=index-DV2ddKt_.js.map
File diff suppressed because one or more lines are too long
+3 -3
View File
@@ -1,6 +1,6 @@
import { w as with_request_store, t as text_decoder, b as base64_decode, r as root, d as decode_pathname, D as DEV, n as normalize_path, a as disable_search, c as decode_params, v as validate_layout_server_exports, e as validate_layout_exports, f as validate_page_server_exports, g as validate_page_exports, h as text_encoder, i as resolve, m as make_trackable, j as get_relative_path, k as base64_encode, l as writable, o as readable } from './chunks/exports-DzT6WcEV.js';
import { w as with_request_store, t as text_decoder, b as base64_decode, r as root, d as decode_pathname, D as DEV, n as normalize_path, a as disable_search, c as decode_params, v as validate_layout_server_exports, e as validate_layout_exports, f as validate_page_server_exports, g as validate_page_exports, h as text_encoder, i as resolve, m as make_trackable, j as get_relative_path, k as base64_encode, l as writable, o as readable } from './chunks/exports-t4TpQnRz.js';
import { H as HttpError, j as json, t as text, S as SvelteKitError, R as Redirect, e as error, A as ActionFailure } from './chunks/index-B2LGyy1l.js';
import { D as DevalueError, i as is_primitive, g as get_type, a as is_plain_object, e as enumerable_symbols, s as stringify_key, b as stringify_string, u as uneval } from './chunks/index-Cd32JeF5.js';
import { D as DevalueError, i as is_primitive, g as get_type, a as is_plain_object, e as enumerable_symbols, s as stringify_key, b as stringify_string, u as uneval } from './chunks/index-DV2ddKt_.js';
import 'clsx';
/**
@@ -1254,7 +1254,7 @@ const options = {
<div class="error">
<span class="status">` + status + '</span>\n <div class="message">\n <h1>' + message + "</h1>\n </div>\n </div>\n </body>\n</html>\n"
},
version_hash: "5hw1yq"
version_hash: "1clozn7"
};
async function get_hooks() {
let handle;
File diff suppressed because one or more lines are too long
+6 -6
View File
@@ -10,14 +10,14 @@ return {
assets: new Set([]),
mimeTypes: {},
_: {
client: {start:"_app/immutable/entry/start.C2MVIkwD.js",app:"_app/immutable/entry/app.BsFk1HrO.js",imports:["_app/immutable/entry/start.C2MVIkwD.js","_app/immutable/chunks/BXb9cfiV.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/entry/app.BsFk1HrO.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/znVx7SEM.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
client: {start:"_app/immutable/entry/start.lYj2oyFl.js",app:"_app/immutable/entry/app.xKzg9ha8.js",imports:["_app/immutable/entry/start.lYj2oyFl.js","_app/immutable/chunks/BU_acMKx.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/entry/app.xKzg9ha8.js","_app/immutable/chunks/DPCugUAM.js","_app/immutable/chunks/MIlO0V30.js","_app/immutable/chunks/D6Mj8HfB.js","_app/immutable/chunks/BMmwim-G.js","_app/immutable/chunks/Dt2zEVER.js","_app/immutable/chunks/Bzak7iHL.js","_app/immutable/chunks/znVx7SEM.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
nodes: [
__memo(() => import('./chunks/0-Boxr_tZz.js')),
__memo(() => import('./chunks/1-DsWIPMw0.js')),
__memo(() => import('./chunks/2-f2aeE3wg.js')),
__memo(() => import('./chunks/0-BG3ac_Ii.js')),
__memo(() => import('./chunks/1-DQKtEeGl.js')),
__memo(() => import('./chunks/2-D3BraRNb.js')),
__memo(() => import('./chunks/3-DEGBOxIZ.js')),
__memo(() => import('./chunks/4-C1zk_dEb.js')),
__memo(() => import('./chunks/5-DDffnZxb.js'))
__memo(() => import('./chunks/4-CfV0vtB3.js')),
__memo(() => import('./chunks/5-BHOJrLRF.js'))
],
remotes: {
+1 -1
View File
@@ -1 +1 @@
{"version":3,"file":"manifest.js","sources":["../../.svelte-kit/adapter-node/manifest.js"],"sourcesContent":["export const manifest = (() => {\nfunction __memo(fn) {\n\tlet value;\n\treturn () => value ??= (value = fn());\n}\n\nreturn {\n\tappDir: \"_app\",\n\tappPath: \"_app\",\n\tassets: new Set([]),\n\tmimeTypes: {},\n\t_: {\n\t\tclient: {start:\"_app/immutable/entry/start.C2MVIkwD.js\",app:\"_app/immutable/entry/app.BsFk1HrO.js\",imports:[\"_app/immutable/entry/start.C2MVIkwD.js\",\"_app/immutable/chunks/BXb9cfiV.js\",\"_app/immutable/chunks/BMmwim-G.js\",\"_app/immutable/chunks/MIlO0V30.js\",\"_app/immutable/chunks/Dt2zEVER.js\",\"_app/immutable/entry/app.BsFk1HrO.js\",\"_app/immutable/chunks/DPCugUAM.js\",\"_app/immutable/chunks/MIlO0V30.js\",\"_app/immutable/chunks/D6Mj8HfB.js\",\"_app/immutable/chunks/BMmwim-G.js\",\"_app/immutable/chunks/Dt2zEVER.js\",\"_app/immutable/chunks/Bzak7iHL.js\",\"_app/immutable/chunks/znVx7SEM.js\"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},\n\t\tnodes: [\n\t\t\t__memo(() => import('./nodes/0.js')),\n\t\t\t__memo(() => import('./nodes/1.js')),\n\t\t\t__memo(() => import('./nodes/2.js')),\n\t\t\t__memo(() => import('./nodes/3.js')),\n\t\t\t__memo(() => import('./nodes/4.js')),\n\t\t\t__memo(() => import('./nodes/5.js'))\n\t\t],\n\t\tremotes: {\n\t\t\t\n\t\t},\n\t\troutes: [\n\t\t\t{\n\t\t\t\tid: \"/\",\n\t\t\t\tpattern: /^\\/$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 2 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/items\",\n\t\t\t\tpattern: /^\\/items\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 4 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/login\",\n\t\t\t\tpattern: /^\\/login\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 5 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/logout\",\n\t\t\t\tpattern: /^\\/logout\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 3 },\n\t\t\t\tendpoint: null\n\t\t\t}\n\t\t],\n\t\tprerendered_routes: new Set([]),\n\t\tmatchers: async () => {\n\t\t\t\n\t\t\treturn { };\n\t\t},\n\t\tserver_assets: {}\n\t}\n}\n})();\n\nexport const prerendered = new Set([]);\n\nexport const base = \"\";"],"names":[],"mappings":"AAAY,MAAC,QAAQ,GAAG,CAAC,MAAM;AAC/B,SAAS,MAAM,CAAC,EAAE,EAAE;AACpB,CAAC,IAAI,KAAK;AACV,CAAC,OAAO,MAAM,KAAK,MAAM,KAAK,GAAG,EAAE,EAAE,CAAC;AACtC;;AAEA,OAAO;AACP,CAAC,MAAM,EAAE,MAAM;AACf,CAAC,OAAO,EAAE,MAAM;AAChB,CAAC,MAAM,EAAE,IAAI,GAAG,CAAC,EAAE,CAAC;AACpB,CAAC,SAAS,EAAE,EAAE;AACd,CAAC,CAAC,EAAE;AACJ,EAAE,MAAM,EAAE,CAAC,KAAK,CAAC,wCAAwC,CAAC,GAAG,CAAC,sCAAsC,CAAC,OAAO,CAAC,CAAC,wCAAwC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,sCAAsC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,CAAC,WAAW,CAAC,EAAE,CAAC,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAAC,KAAK,CAA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IAAI,EAAE,EAAE,SAAS;AACjB,IAAI,OAAO,EAAE,eAAe;AAC5B,IAAI,MAAM,EAAE,EAAE;AACd,IAAI,IAAI,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC,EAAE,EAAE,IAAI,EAAE,CAAC,EAAE;AAClD,IAAI,QAAQ,EAAE;AACd;AACA,GAAG;AACH,EAAE,kBAAkB,EAAE,IAAI,GAAG,CAAC,EAAE,CAAC;AACjC,EAAE,QAAQ,EAAE,YAAY;AACxB;AACA,GAAG,OAAO,IAAI;AACd,EAAE,CAAC;AACH,EAAE,aAAa,EAAE;AACjB;AACA;AACA,CAAC;;AAEW,MAAC,WAAW,GAAG,IAAI,GAAG,CAAC,EAAE;;AAEzB,MAAC,IAAI,GAAG;;;;"}
{"version":3,"file":"manifest.js","sources":["../../.svelte-kit/adapter-node/manifest.js"],"sourcesContent":["export const manifest = (() => {\nfunction __memo(fn) {\n\tlet value;\n\treturn () => value ??= (value = fn());\n}\n\nreturn {\n\tappDir: \"_app\",\n\tappPath: \"_app\",\n\tassets: new Set([]),\n\tmimeTypes: {},\n\t_: {\n\t\tclient: {start:\"_app/immutable/entry/start.lYj2oyFl.js\",app:\"_app/immutable/entry/app.xKzg9ha8.js\",imports:[\"_app/immutable/entry/start.lYj2oyFl.js\",\"_app/immutable/chunks/BU_acMKx.js\",\"_app/immutable/chunks/BMmwim-G.js\",\"_app/immutable/chunks/MIlO0V30.js\",\"_app/immutable/chunks/Dt2zEVER.js\",\"_app/immutable/entry/app.xKzg9ha8.js\",\"_app/immutable/chunks/DPCugUAM.js\",\"_app/immutable/chunks/MIlO0V30.js\",\"_app/immutable/chunks/D6Mj8HfB.js\",\"_app/immutable/chunks/BMmwim-G.js\",\"_app/immutable/chunks/Dt2zEVER.js\",\"_app/immutable/chunks/Bzak7iHL.js\",\"_app/immutable/chunks/znVx7SEM.js\"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},\n\t\tnodes: [\n\t\t\t__memo(() => import('./nodes/0.js')),\n\t\t\t__memo(() => import('./nodes/1.js')),\n\t\t\t__memo(() => import('./nodes/2.js')),\n\t\t\t__memo(() => import('./nodes/3.js')),\n\t\t\t__memo(() => import('./nodes/4.js')),\n\t\t\t__memo(() => import('./nodes/5.js'))\n\t\t],\n\t\tremotes: {\n\t\t\t\n\t\t},\n\t\troutes: [\n\t\t\t{\n\t\t\t\tid: \"/\",\n\t\t\t\tpattern: /^\\/$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 2 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/items\",\n\t\t\t\tpattern: /^\\/items\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 4 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/login\",\n\t\t\t\tpattern: /^\\/login\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 5 },\n\t\t\t\tendpoint: null\n\t\t\t},\n\t\t\t{\n\t\t\t\tid: \"/logout\",\n\t\t\t\tpattern: /^\\/logout\\/?$/,\n\t\t\t\tparams: [],\n\t\t\t\tpage: { layouts: [0,], errors: [1,], leaf: 3 },\n\t\t\t\tendpoint: null\n\t\t\t}\n\t\t],\n\t\tprerendered_routes: new Set([]),\n\t\tmatchers: async () => {\n\t\t\t\n\t\t\treturn { };\n\t\t},\n\t\tserver_assets: {}\n\t}\n}\n})();\n\nexport const prerendered = new Set([]);\n\nexport const base = \"\";"],"names":[],"mappings":"AAAY,MAAC,QAAQ,GAAG,CAAC,MAAM;AAC/B,SAAS,MAAM,CAAC,EAAE,EAAE;AACpB,CAAC,IAAI,KAAK;AACV,CAAC,OAAO,MAAM,KAAK,MAAM,KAAK,GAAG,EAAE,EAAE,CAAC;AACtC;;AAEA,OAAO;AACP,CAAC,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