@axerity/cli 0.2.0 → 0.2.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/bin/axerity.js +40 -7
- package/dist/client/_app/immutable/assets/{0.jCJXzoiy.css → 0.Dg-buelk.css} +1 -1
- package/dist/client/_app/immutable/chunks/{m89wIWMZ.js → BwAxNIj-.js} +1 -1
- package/dist/client/_app/immutable/chunks/XWPeu0-3.js +3 -0
- package/dist/client/_app/immutable/entry/{app.BxBJhrll.js → app.CGMB3jFt.js} +2 -2
- package/dist/client/_app/immutable/entry/start.BDNu-EJ9.js +1 -0
- package/dist/client/_app/immutable/nodes/{0.C7MOOY8s.js → 0.BxhbqtaZ.js} +1 -1
- package/dist/client/_app/immutable/nodes/{1.C1SZKZS6.js → 1.B4TewVhv.js} +1 -1
- package/dist/client/_app/immutable/nodes/{2.C9w6NQmI.js → 2.BPCM5dz-.js} +12 -12
- package/dist/client/_app/version.json +1 -1
- package/dist/openapi.js +381 -0
- package/dist/server/chunks/{0-lMxIppsX.js → 0-CDoF42ve.js} +7 -7
- package/dist/server/chunks/{0-lMxIppsX.js.map → 0-CDoF42ve.js.map} +1 -1
- package/dist/server/chunks/1-Cwr6HuHi.js +9 -0
- package/dist/server/chunks/{1-CyLqCHnY.js.map → 1-Cwr6HuHi.js.map} +1 -1
- package/dist/server/chunks/{2-B-CcMKoh.js → 2-Dw7fZUFS.js} +6 -6
- package/dist/server/chunks/{2-B-CcMKoh.js.map → 2-Dw7fZUFS.js.map} +1 -1
- package/dist/server/chunks/{Icon-B5VFrlh0.js → Icon-DWMR8969.js} +3 -3
- package/dist/server/chunks/{Icon-B5VFrlh0.js.map → Icon-DWMR8969.js.map} +1 -1
- package/dist/server/chunks/{_error.svelte-COifK9P1.js → _error.svelte-P4N1kqTl.js} +4 -4
- package/dist/server/chunks/{_error.svelte-COifK9P1.js.map → _error.svelte-P4N1kqTl.js.map} +1 -1
- package/dist/server/chunks/{_layout.svelte-DTQwWfEr.js → _layout.svelte-BTBEwfcw.js} +5 -3
- package/dist/server/chunks/_layout.svelte-BTBEwfcw.js.map +1 -0
- package/dist/server/chunks/{_page.svelte-gMTRy91w.js → _page.svelte-Cptr7ukD.js} +86 -63
- package/dist/server/chunks/_page.svelte-Cptr7ukD.js.map +1 -0
- package/dist/server/chunks/{_server.ts-DlaxEvWB.js → _server.ts-BAJ42WyN.js} +4 -4
- package/dist/server/chunks/{_server.ts-DlaxEvWB.js.map → _server.ts-BAJ42WyN.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-BBt3KS4Z.js → _server.ts-BE-48bA-.js} +4 -4
- package/dist/server/chunks/{_server.ts-BBt3KS4Z.js.map → _server.ts-BE-48bA-.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-BtzVXaCw.js → _server.ts-B_slxyu1.js} +4 -4
- package/dist/server/chunks/{_server.ts-BtzVXaCw.js.map → _server.ts-B_slxyu1.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-BuKSyj8m.js → _server.ts-Cc95JV_B.js} +4 -4
- package/dist/server/chunks/{_server.ts-BuKSyj8m.js.map → _server.ts-Cc95JV_B.js.map} +1 -1
- package/dist/server/chunks/_server.ts-DCmmcmIB.js +247 -0
- package/dist/server/chunks/_server.ts-DCmmcmIB.js.map +1 -0
- package/dist/server/chunks/{_server.ts-Cfw-nQ4-.js → _server.ts-On3guN6K.js} +4 -4
- package/dist/server/chunks/{_server.ts-Cfw-nQ4-.js.map → _server.ts-On3guN6K.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-T58MO2wL.js → _server.ts-bQCAkPKC.js} +3 -3
- package/dist/server/chunks/{_server.ts-T58MO2wL.js.map → _server.ts-bQCAkPKC.js.map} +1 -1
- package/dist/server/chunks/{_server.ts-BaIDzhzq.js → _server.ts-tv3Kikl1.js} +3 -3
- package/dist/server/chunks/{_server.ts-BaIDzhzq.js.map → _server.ts-tv3Kikl1.js.map} +1 -1
- package/dist/server/chunks/{content-store-DPJsj8gD.js → content-store-CAwA7UVl.js} +2 -2
- package/dist/server/chunks/{content-store-DPJsj8gD.js.map → content-store-CAwA7UVl.js.map} +1 -1
- package/dist/server/chunks/{exports-ZnEJ4gG9.js → exports-D-KZn-NB.js} +2 -2
- package/dist/server/chunks/{exports-ZnEJ4gG9.js.map → exports-D-KZn-NB.js.map} +1 -1
- package/dist/server/chunks/{hooks.server-nz527EC9.js → hooks.server-BkPmWByS.js} +3 -3
- package/dist/server/chunks/{hooks.server-nz527EC9.js.map → hooks.server-BkPmWByS.js.map} +1 -1
- package/dist/server/chunks/{internal-CvDbuC7W.js → internal-CJex3uyE.js} +3 -3
- package/dist/server/chunks/{internal-CvDbuC7W.js.map → internal-CJex3uyE.js.map} +1 -1
- package/dist/server/chunks/{site-BfALkgJ-.js → site-NP7fRB5N.js} +14 -8
- package/dist/server/chunks/site-NP7fRB5N.js.map +1 -0
- package/dist/server/index.js +2 -2
- package/dist/server/manifest.js +14 -14
- package/dist/server/manifest.js.map +1 -1
- package/package.json +5 -4
- package/runtime/crawl.js +11 -1
- package/runtime/openapi.js +24 -0
- package/runtime/serve.js +9 -0
- package/runtime/static.js +76 -0
- package/dist/client/_app/immutable/chunks/v97jXyQK.js +0 -3
- package/dist/client/_app/immutable/entry/start.mAPciu1x.js +0 -1
- package/dist/client/og-image.png +0 -0
- package/dist/server/chunks/1-CyLqCHnY.js +0 -9
- package/dist/server/chunks/_layout.svelte-DTQwWfEr.js.map +0 -1
- package/dist/server/chunks/_page.svelte-gMTRy91w.js.map +0 -1
- package/dist/server/chunks/_server.ts-DnjaLdrg.js +0 -195
- package/dist/server/chunks/_server.ts-DnjaLdrg.js.map +0 -1
- package/dist/server/chunks/site-BfALkgJ-.js.map +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":"
|
|
1
|
+
{"version":"1780380374908"}
|
package/dist/openapi.js
ADDED
|
@@ -0,0 +1,381 @@
|
|
|
1
|
+
import { existsSync, mkdirSync, readFileSync, rmSync, writeFileSync } from "node:fs";
|
|
2
|
+
import { dirname, join } from "node:path";
|
|
3
|
+
import { parse } from "yaml";
|
|
4
|
+
//#region src/lib/openapi/generate.ts
|
|
5
|
+
var METHODS = [
|
|
6
|
+
"get",
|
|
7
|
+
"post",
|
|
8
|
+
"put",
|
|
9
|
+
"patch",
|
|
10
|
+
"delete"
|
|
11
|
+
];
|
|
12
|
+
var METHOD_ICON = {
|
|
13
|
+
get: "arrow-down-to-line",
|
|
14
|
+
post: "plus",
|
|
15
|
+
put: "pencil",
|
|
16
|
+
patch: "pencil",
|
|
17
|
+
delete: "trash-2"
|
|
18
|
+
};
|
|
19
|
+
var isObject = (value) => typeof value === "object" && value !== null;
|
|
20
|
+
var escapeText = (text) => text.replace(/[<{}]/g, (c) => ({
|
|
21
|
+
"<": "<",
|
|
22
|
+
"{": "{",
|
|
23
|
+
"}": "}"
|
|
24
|
+
})[c] ?? c);
|
|
25
|
+
function slugify(value) {
|
|
26
|
+
return value.replace(/\{[^}]+\}/g, (m) => m.slice(1, -1)).replace(/[^a-zA-Z0-9]+/g, "-").replace(/^-+|-+$/g, "").toLowerCase();
|
|
27
|
+
}
|
|
28
|
+
var refName = (ref) => ref.slice(ref.lastIndexOf("/") + 1);
|
|
29
|
+
function resolve(spec, node) {
|
|
30
|
+
let current = node;
|
|
31
|
+
const seen = /* @__PURE__ */ new Set();
|
|
32
|
+
while (isObject(current) && typeof current.$ref === "string" && !seen.has(current.$ref)) {
|
|
33
|
+
seen.add(current.$ref);
|
|
34
|
+
current = current.$ref.replace(/^#\//, "").split("/").reduce((acc, key) => isObject(acc) ? acc[key] : void 0, spec);
|
|
35
|
+
}
|
|
36
|
+
return current ?? {};
|
|
37
|
+
}
|
|
38
|
+
function composed(spec, schema) {
|
|
39
|
+
const s = resolve(spec, schema);
|
|
40
|
+
if (!s.allOf) return s;
|
|
41
|
+
const merged = {
|
|
42
|
+
type: "object",
|
|
43
|
+
properties: {},
|
|
44
|
+
required: []
|
|
45
|
+
};
|
|
46
|
+
for (const part of [...s.allOf, s]) {
|
|
47
|
+
const r = resolve(spec, part);
|
|
48
|
+
Object.assign(merged.properties, r.properties);
|
|
49
|
+
if (r.required) merged.required.push(...r.required);
|
|
50
|
+
}
|
|
51
|
+
return merged;
|
|
52
|
+
}
|
|
53
|
+
var baseType = (type) => Array.isArray(type) ? type.find((t) => t !== "null") : type;
|
|
54
|
+
function typeLabel(spec, schema) {
|
|
55
|
+
if (!schema) return "any";
|
|
56
|
+
if (schema.$ref) return refName(schema.$ref);
|
|
57
|
+
if (schema.oneOf || schema.anyOf) {
|
|
58
|
+
const variants = (schema.oneOf ?? schema.anyOf).map((v) => typeLabel(spec, v));
|
|
59
|
+
return [...new Set(variants)].join(" or ");
|
|
60
|
+
}
|
|
61
|
+
if (schema.enum) return "enum";
|
|
62
|
+
const type = baseType(schema.type);
|
|
63
|
+
if (type === "array") return `array of ${schema.items?.$ref ? refName(schema.items.$ref) : typeLabel(spec, schema.items)}`;
|
|
64
|
+
return schema.format ?? type ?? "object";
|
|
65
|
+
}
|
|
66
|
+
function describe(schema) {
|
|
67
|
+
const lines = [];
|
|
68
|
+
if (schema.description) lines.push(schema.description);
|
|
69
|
+
const notes = [];
|
|
70
|
+
if (schema.enum) notes.push(`one of ${schema.enum.map((v) => `\`${v}\``).join(", ")}`);
|
|
71
|
+
if (schema.format && !schema.description?.includes(schema.format)) notes.push(`format \`${schema.format}\``);
|
|
72
|
+
if (schema.pattern) notes.push(`pattern \`${schema.pattern}\``);
|
|
73
|
+
if (schema.minLength !== void 0 || schema.maxLength !== void 0) notes.push(`length ${schema.minLength ?? 0}–${schema.maxLength ?? "∞"}`);
|
|
74
|
+
if (schema.minimum !== void 0 || schema.maximum !== void 0) notes.push(`range ${schema.minimum ?? "−∞"}–${schema.maximum ?? "∞"}`);
|
|
75
|
+
if (schema.default !== void 0 && typeof schema.default !== "object") notes.push(`defaults to \`${schema.default}\``);
|
|
76
|
+
if (schema.readOnly) notes.push("read-only");
|
|
77
|
+
if (schema.writeOnly) notes.push("write-only");
|
|
78
|
+
if (schema.deprecated) notes.push("deprecated");
|
|
79
|
+
if (notes.length) lines.push(`(${notes.join(", ")})`);
|
|
80
|
+
return lines.join(" ");
|
|
81
|
+
}
|
|
82
|
+
function attrs(spec, name, schema, required) {
|
|
83
|
+
const parts = [`name="${name}"`, `type="${typeLabel(spec, schema)}"`];
|
|
84
|
+
if (required) parts.push("required");
|
|
85
|
+
if (schema.deprecated) parts.push("deprecated");
|
|
86
|
+
if (schema.default !== void 0 && typeof schema.default !== "object") parts.push(`default="${String(schema.default).replace(/"/g, """)}"`);
|
|
87
|
+
return parts.join(" ");
|
|
88
|
+
}
|
|
89
|
+
function fields(spec, schema, group, component, depth = 0) {
|
|
90
|
+
const resolved = composed(spec, schema);
|
|
91
|
+
const props = resolved.properties ?? {};
|
|
92
|
+
const required = new Set(resolved.required ?? []);
|
|
93
|
+
const out = [];
|
|
94
|
+
for (const [name, raw] of Object.entries(props)) {
|
|
95
|
+
const isRef = typeof raw.$ref === "string";
|
|
96
|
+
const prop = composed(spec, raw);
|
|
97
|
+
const link = isRef ? ` typeLink="/${group}/schemas/${slugify(refName(raw.$ref))}"` : "";
|
|
98
|
+
const labelSchema = isRef ? { $ref: raw.$ref } : prop;
|
|
99
|
+
out.push(`<${component} ${attrs(spec, name, labelSchema, required.has(name))}${link}>`, "");
|
|
100
|
+
out.push(escapeText(describe(prop)) || "No description.", "");
|
|
101
|
+
const inlineObject = !isRef && (baseType(prop.type) === "object" || prop.properties);
|
|
102
|
+
const arrayItem = !isRef && baseType(prop.type) === "array" ? composed(spec, prop.items ?? {}) : null;
|
|
103
|
+
if (inlineObject && depth < 3) out.push("<Expandable title=\"properties\">", "", fields(spec, prop, group, component, depth + 1), "</Expandable>", "");
|
|
104
|
+
else if (arrayItem && arrayItem.properties && !prop.items?.$ref && depth < 3) out.push("<Expandable title=\"items\">", "", fields(spec, arrayItem, group, component, depth + 1), "</Expandable>", "");
|
|
105
|
+
out.push(`</${component}>`, "");
|
|
106
|
+
}
|
|
107
|
+
return out.join("\n");
|
|
108
|
+
}
|
|
109
|
+
function sample(spec, schema, depth = 0) {
|
|
110
|
+
const s = composed(spec, schema ?? {});
|
|
111
|
+
if (depth > 5) return null;
|
|
112
|
+
if (s.example !== void 0) return s.example;
|
|
113
|
+
if (s.default !== void 0) return s.default;
|
|
114
|
+
if (s.enum) return s.enum[0];
|
|
115
|
+
if (s.oneOf || s.anyOf) return sample(spec, (s.oneOf ?? s.anyOf)[0], depth + 1);
|
|
116
|
+
const type = baseType(s.type);
|
|
117
|
+
if (type === "array") return [sample(spec, s.items, depth + 1)].filter((v) => v !== null);
|
|
118
|
+
if (type === "object" || s.properties) {
|
|
119
|
+
const obj = {};
|
|
120
|
+
for (const [name, prop] of Object.entries(s.properties ?? {})) obj[name] = sample(spec, prop, depth + 1);
|
|
121
|
+
return obj;
|
|
122
|
+
}
|
|
123
|
+
if (type === "integer" || type === "number") return 0;
|
|
124
|
+
if (type === "boolean") return true;
|
|
125
|
+
if (s.format === "date-time") return "2024-01-01T00:00:00Z";
|
|
126
|
+
return type === "string" ? "string" : null;
|
|
127
|
+
}
|
|
128
|
+
function pickMedia(spec, body) {
|
|
129
|
+
const content = resolve(spec, body ?? {}).content;
|
|
130
|
+
if (!content) return void 0;
|
|
131
|
+
return content["application/json"] ?? content[Object.keys(content)[0]];
|
|
132
|
+
}
|
|
133
|
+
function bodyExample(spec, media) {
|
|
134
|
+
if (!media) return void 0;
|
|
135
|
+
if (media.example !== void 0) return media.example;
|
|
136
|
+
const named = media.examples && Object.values(media.examples)[0];
|
|
137
|
+
if (named && named.value !== void 0) return named.value;
|
|
138
|
+
return media.schema ? sample(spec, media.schema) : void 0;
|
|
139
|
+
}
|
|
140
|
+
var yamlLine = (text) => JSON.stringify(text.split("\n")[0]);
|
|
141
|
+
var SCRIPT_IMPORT = " import { Api, Endpoint, ParamField, ResponseField, RequestExample, ResponseExample, ObjectExample, Expandable } from '$lib';";
|
|
142
|
+
function frontmatter(title, description, method, icon) {
|
|
143
|
+
return [
|
|
144
|
+
"---",
|
|
145
|
+
`title: ${yamlLine(title)}`,
|
|
146
|
+
...description ? [`description: ${yamlLine(description)}`] : [],
|
|
147
|
+
"layout: api",
|
|
148
|
+
...method ? [`method: ${method}`] : [],
|
|
149
|
+
`icon: ${icon}`,
|
|
150
|
+
"---",
|
|
151
|
+
"",
|
|
152
|
+
"<script>",
|
|
153
|
+
SCRIPT_IMPORT,
|
|
154
|
+
"<\/script>",
|
|
155
|
+
""
|
|
156
|
+
];
|
|
157
|
+
}
|
|
158
|
+
function describeScheme(name, scheme, scopes) {
|
|
159
|
+
if (scheme.type === "http" && scheme.scheme === "bearer") return `a bearer token${scheme.bearerFormat ? ` (${scheme.bearerFormat})` : ""}`;
|
|
160
|
+
if (scheme.type === "http" && scheme.scheme === "basic") return "HTTP basic auth";
|
|
161
|
+
if (scheme.type === "apiKey") return `an API key in the ${scheme.in} \`${scheme.name}\``;
|
|
162
|
+
if (scheme.type === "oauth2") {
|
|
163
|
+
const flowScopes = Object.keys(Object.values(scheme.flows ?? {})[0]?.scopes ?? {});
|
|
164
|
+
const all = scopes.length ? scopes : flowScopes;
|
|
165
|
+
return `OAuth2${all.length ? ` (scopes ${all.map((s) => `\`${s}\``).join(", ")})` : ""}`;
|
|
166
|
+
}
|
|
167
|
+
if (scheme.type === "openIdConnect") return "OpenID Connect";
|
|
168
|
+
return name;
|
|
169
|
+
}
|
|
170
|
+
function authLines(spec, op) {
|
|
171
|
+
const reqs = op.security ?? spec.security;
|
|
172
|
+
if (!reqs?.length) return [];
|
|
173
|
+
const schemes = spec.components?.securitySchemes ?? {};
|
|
174
|
+
const alternatives = reqs.filter((r) => Object.keys(r).length).map((r) => Object.entries(r).map(([n, scopes]) => schemes[n] ? describeScheme(n, schemes[n], scopes) : n).join(" and "));
|
|
175
|
+
if (!alternatives.length) return [];
|
|
176
|
+
const optional = reqs.some((r) => Object.keys(r).length === 0);
|
|
177
|
+
return [
|
|
178
|
+
"## Authentication",
|
|
179
|
+
"",
|
|
180
|
+
escapeText(`Requires ${alternatives.join(" or ")}.${optional ? " Authentication is optional." : ""}`),
|
|
181
|
+
""
|
|
182
|
+
];
|
|
183
|
+
}
|
|
184
|
+
function operationPage(spec, specBaseUrl, group, path, method, op, pathItem, defaultTag = "default") {
|
|
185
|
+
const tag = slugify(op.tags?.[0] ?? defaultTag);
|
|
186
|
+
const title = op.summary ?? op.operationId ?? `${method.toUpperCase()} ${path}`;
|
|
187
|
+
const description = op.description ?? op.summary ?? "";
|
|
188
|
+
const pathExpr = path.includes("{") ? `path={'${path}'}` : `path="${path}"`;
|
|
189
|
+
const baseUrl = op.servers?.[0]?.url ?? pathItem?.servers?.[0]?.url ?? specBaseUrl;
|
|
190
|
+
const lines = [
|
|
191
|
+
...frontmatter(title, description, method.toUpperCase(), METHOD_ICON[method] ?? "code"),
|
|
192
|
+
`# ${escapeText(title)}`,
|
|
193
|
+
"",
|
|
194
|
+
...op.deprecated ? ["> This operation is deprecated.", ""] : [],
|
|
195
|
+
...description ? [escapeText(description), ""] : [],
|
|
196
|
+
"<Api>",
|
|
197
|
+
"",
|
|
198
|
+
`<Endpoint method="${method.toUpperCase()}" ${pathExpr} baseUrl="${baseUrl}" />`,
|
|
199
|
+
""
|
|
200
|
+
];
|
|
201
|
+
lines.push(...authLines(spec, op));
|
|
202
|
+
const paramMap = /* @__PURE__ */ new Map();
|
|
203
|
+
for (const p of [...pathItem?.parameters ?? [], ...op.parameters ?? []].map((x) => resolve(spec, x))) paramMap.set(`${p.in}:${p.name}`, p);
|
|
204
|
+
const params = [...paramMap.values()];
|
|
205
|
+
const groups = {
|
|
206
|
+
path: "Path parameters",
|
|
207
|
+
query: "Query parameters",
|
|
208
|
+
header: "Header parameters",
|
|
209
|
+
cookie: "Cookie parameters"
|
|
210
|
+
};
|
|
211
|
+
for (const where of Object.keys(groups)) {
|
|
212
|
+
const list = params.filter((p) => p.in === where);
|
|
213
|
+
if (!list.length) continue;
|
|
214
|
+
lines.push(`## ${groups[where]}`, "");
|
|
215
|
+
for (const p of list) {
|
|
216
|
+
lines.push(`<ParamField ${attrs(spec, p.name, p.schema ?? {}, p.required)}>`, "");
|
|
217
|
+
lines.push(escapeText(describe(p.schema ?? {}) || p.description || "") || "No description.", "");
|
|
218
|
+
lines.push("</ParamField>", "");
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
const reqContent = resolve(spec, op.requestBody ?? {}).content ?? {};
|
|
222
|
+
const reqTypes = Object.keys(reqContent);
|
|
223
|
+
const reqKey = reqContent["application/json"] ? "application/json" : reqTypes[0];
|
|
224
|
+
const reqMedia = reqKey ? reqContent[reqKey] : void 0;
|
|
225
|
+
if (reqMedia?.schema) {
|
|
226
|
+
lines.push("## Body parameters", "");
|
|
227
|
+
if (reqTypes.length > 1) lines.push(`Accepts ${reqTypes.map((t) => `\`${t}\``).join(", ")}.`, "");
|
|
228
|
+
lines.push(fields(spec, reqMedia.schema, group, "ParamField"));
|
|
229
|
+
}
|
|
230
|
+
const reqExample = bodyExample(spec, reqMedia);
|
|
231
|
+
const curl = [`curl -X ${method.toUpperCase()} ${baseUrl}${path.replace(/\{([^}]+)\}/g, ":$1")}`, reqExample !== void 0 ? ` -H "Content-Type: ${reqKey}" \\\n -d '${JSON.stringify(reqExample)}'` : ""].filter(Boolean).join(" \\\n");
|
|
232
|
+
lines.push("<RequestExample title=\"cURL\">", "", "```bash", curl, "```", "", "</RequestExample>", "");
|
|
233
|
+
const responses = Object.entries(op.responses ?? {}).sort(([a], [b]) => a.localeCompare(b));
|
|
234
|
+
for (const [code, raw] of responses) {
|
|
235
|
+
const response = resolve(spec, raw);
|
|
236
|
+
const media = pickMedia(spec, response);
|
|
237
|
+
lines.push(`## Response \`${code}\``, "");
|
|
238
|
+
if (response.description) lines.push(escapeText(response.description), "");
|
|
239
|
+
if (response.headers) {
|
|
240
|
+
lines.push("Headers:", "");
|
|
241
|
+
for (const [hname, hraw] of Object.entries(response.headers)) {
|
|
242
|
+
const h = resolve(spec, hraw);
|
|
243
|
+
const desc = h.description ? ` — ${escapeText(h.description)}` : "";
|
|
244
|
+
lines.push(`- \`${hname}\` ${typeLabel(spec, h.schema)}${desc}`);
|
|
245
|
+
}
|
|
246
|
+
lines.push("");
|
|
247
|
+
}
|
|
248
|
+
if (media?.schema) lines.push(fields(spec, media.schema, group, "ResponseField"));
|
|
249
|
+
const example = bodyExample(spec, media);
|
|
250
|
+
if (example !== void 0) lines.push(`<ResponseExample title="${code}">`, "", "```json", JSON.stringify(example, null, 2), "```", "", "</ResponseExample>", "");
|
|
251
|
+
}
|
|
252
|
+
lines.push("</Api>", "");
|
|
253
|
+
return {
|
|
254
|
+
tag,
|
|
255
|
+
slug: slugify(op.operationId ?? `${method}-${path}`),
|
|
256
|
+
body: lines.join("\n")
|
|
257
|
+
};
|
|
258
|
+
}
|
|
259
|
+
function schemaPage(spec, group, name, schema) {
|
|
260
|
+
const resolved = composed(spec, schema);
|
|
261
|
+
return [
|
|
262
|
+
...frontmatter(name, resolved.description ?? `The ${name} object.`, "", "box"),
|
|
263
|
+
`# ${escapeText(name)}`,
|
|
264
|
+
"",
|
|
265
|
+
...resolved.description ? [escapeText(resolved.description), ""] : [],
|
|
266
|
+
"<Api>",
|
|
267
|
+
"",
|
|
268
|
+
"## Attributes",
|
|
269
|
+
"",
|
|
270
|
+
fields(spec, resolved, group, "ResponseField"),
|
|
271
|
+
"<ObjectExample title={`" + name + "`}>",
|
|
272
|
+
"",
|
|
273
|
+
"```json",
|
|
274
|
+
JSON.stringify(sample(spec, resolved), null, 2),
|
|
275
|
+
"```",
|
|
276
|
+
"",
|
|
277
|
+
"</ObjectExample>",
|
|
278
|
+
"",
|
|
279
|
+
"</Api>",
|
|
280
|
+
""
|
|
281
|
+
].join("\n");
|
|
282
|
+
}
|
|
283
|
+
var titleCase = (value) => value.replace(/(^|\s)\S/g, (c) => c.toUpperCase());
|
|
284
|
+
async function loadSpec(spec) {
|
|
285
|
+
let text;
|
|
286
|
+
if (/^https?:\/\//.test(spec)) text = await (await fetch(spec)).text();
|
|
287
|
+
else text = readFileSync(spec, "utf8");
|
|
288
|
+
text = text.trim();
|
|
289
|
+
return text.startsWith("{") ? JSON.parse(text) : parse(text);
|
|
290
|
+
}
|
|
291
|
+
async function generateOne(source, contentRoot) {
|
|
292
|
+
const spec = await loadSpec(source.spec);
|
|
293
|
+
const baseUrl = spec.servers?.[0]?.url ?? "";
|
|
294
|
+
const group = source.output || (source.title ? slugify(source.title) : "api-reference");
|
|
295
|
+
const root = join(contentRoot, group);
|
|
296
|
+
rmSync(root, {
|
|
297
|
+
recursive: true,
|
|
298
|
+
force: true
|
|
299
|
+
});
|
|
300
|
+
const byTag = /* @__PURE__ */ new Map();
|
|
301
|
+
const collect = (entries, defaultTag) => {
|
|
302
|
+
for (const [path, item] of Object.entries(entries ?? {})) for (const method of METHODS) {
|
|
303
|
+
const op = item[method];
|
|
304
|
+
if (!op) continue;
|
|
305
|
+
const page = operationPage(spec, baseUrl, group, path, method, op, item, defaultTag);
|
|
306
|
+
if (!byTag.has(page.tag)) byTag.set(page.tag, []);
|
|
307
|
+
byTag.get(page.tag).push(page);
|
|
308
|
+
}
|
|
309
|
+
};
|
|
310
|
+
collect(spec.paths, "default");
|
|
311
|
+
collect(spec.webhooks, "webhooks");
|
|
312
|
+
const written = [];
|
|
313
|
+
const write = (file, content) => {
|
|
314
|
+
mkdirSync(dirname(file), { recursive: true });
|
|
315
|
+
writeFileSync(file, content);
|
|
316
|
+
written.push(file);
|
|
317
|
+
};
|
|
318
|
+
const tags = [...byTag.keys()];
|
|
319
|
+
const schemas = Object.entries(spec.components?.schemas ?? {});
|
|
320
|
+
const sections = [...tags, ...schemas.length ? ["schemas"] : []];
|
|
321
|
+
const tagTitle = (t) => titleCase(spec.tags?.find((x) => slugify(x.name) === t)?.name ?? t);
|
|
322
|
+
write(join(root, "meta.json"), JSON.stringify({
|
|
323
|
+
title: source.title ?? spec.info?.title ?? "API Reference",
|
|
324
|
+
icon: "code",
|
|
325
|
+
pages: sections
|
|
326
|
+
}, null, " "));
|
|
327
|
+
for (const [tag, pages] of byTag) {
|
|
328
|
+
write(join(root, tag, "meta.json"), JSON.stringify({
|
|
329
|
+
title: tagTitle(tag),
|
|
330
|
+
pages: pages.map((p) => p.slug)
|
|
331
|
+
}, null, " "));
|
|
332
|
+
for (const page of pages) write(join(root, tag, `${page.slug}.md`), page.body);
|
|
333
|
+
}
|
|
334
|
+
if (schemas.length) {
|
|
335
|
+
write(join(root, "schemas", "meta.json"), JSON.stringify({
|
|
336
|
+
title: "Schemas",
|
|
337
|
+
icon: "box",
|
|
338
|
+
pages: schemas.map(([name]) => slugify(name))
|
|
339
|
+
}, null, " "));
|
|
340
|
+
for (const [name, schema] of schemas) write(join(root, "schemas", `${slugify(name)}.md`), schemaPage(spec, group, name, schema));
|
|
341
|
+
}
|
|
342
|
+
return written;
|
|
343
|
+
}
|
|
344
|
+
function ignoreGenerated(contentRoot, groups) {
|
|
345
|
+
const file = ".gitignore";
|
|
346
|
+
const start = "# axerity:openapi (generated)";
|
|
347
|
+
const end = "# end axerity:openapi";
|
|
348
|
+
const esc = (s) => s.replace(/[.*+?^${}()|[\]\\]/g, "\\$&");
|
|
349
|
+
const block = [
|
|
350
|
+
start,
|
|
351
|
+
...groups.map((g) => `${contentRoot}/${g}`),
|
|
352
|
+
end
|
|
353
|
+
].join("\n");
|
|
354
|
+
let content = existsSync(file) ? readFileSync(file, "utf8") : "";
|
|
355
|
+
content = content.replace(new RegExp(`\\n*${esc(start)}[\\s\\S]*?${esc(end)}\\n*`, "g"), "\n");
|
|
356
|
+
if (groups.length) content = `${content.replace(/\n+$/, "")}\n\n${block}\n`;
|
|
357
|
+
writeFileSync(file, content);
|
|
358
|
+
}
|
|
359
|
+
/**
|
|
360
|
+
* Generate one or more API references (local file or URL, JSON or YAML) into the
|
|
361
|
+
* content folder. An array of sources produces a separate group per spec.
|
|
362
|
+
*/
|
|
363
|
+
async function generateApiDocs(openapi, contentRoot) {
|
|
364
|
+
const sources = (openapi ? Array.isArray(openapi) ? openapi : [openapi] : []).map((o) => typeof o === "string" ? { spec: o } : o);
|
|
365
|
+
const written = [];
|
|
366
|
+
const groups = [];
|
|
367
|
+
for (const source of sources) {
|
|
368
|
+
if (!source.spec) continue;
|
|
369
|
+
if (!/^https?:\/\//.test(source.spec) && !existsSync(source.spec)) continue;
|
|
370
|
+
groups.push(source.output || (source.title ? slugify(source.title) : "api-reference"));
|
|
371
|
+
try {
|
|
372
|
+
written.push(...await generateOne(source, contentRoot));
|
|
373
|
+
} catch (error) {
|
|
374
|
+
console.warn(`[axerity] OpenAPI generation failed for ${source.spec}:`, error);
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
if (!process.env.AXERITY_MOUNTED) ignoreGenerated(contentRoot, groups);
|
|
378
|
+
return written;
|
|
379
|
+
}
|
|
380
|
+
//#endregion
|
|
381
|
+
export { generateApiDocs };
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { g as getSite } from './site-
|
|
2
|
-
import { g as getNav } from './content-store-
|
|
3
|
-
import './internal-
|
|
1
|
+
import { g as getSite } from './site-NP7fRB5N.js';
|
|
2
|
+
import { g as getNav } from './content-store-CAwA7UVl.js';
|
|
3
|
+
import './internal-CJex3uyE.js';
|
|
4
4
|
import '@sveltejs/kit/internal/server';
|
|
5
5
|
import 'node:fs';
|
|
6
6
|
import 'node:path';
|
|
@@ -30,11 +30,11 @@ var _layout_server_ts = /*#__PURE__*/Object.freeze({
|
|
|
30
30
|
|
|
31
31
|
const index = 0;
|
|
32
32
|
let component_cache;
|
|
33
|
-
const component = async () => component_cache ??= (await import('./_layout.svelte-
|
|
33
|
+
const component = async () => component_cache ??= (await import('./_layout.svelte-BTBEwfcw.js')).default;
|
|
34
34
|
const server_id = "src/routes/+layout.server.ts";
|
|
35
|
-
const imports = ["_app/immutable/nodes/0.
|
|
36
|
-
const stylesheets = ["_app/immutable/assets/0.
|
|
35
|
+
const imports = ["_app/immutable/nodes/0.BxhbqtaZ.js","_app/immutable/chunks/wCc4pE4l.js","_app/immutable/chunks/XWPeu0-3.js","_app/immutable/chunks/xihTtKlq.js"];
|
|
36
|
+
const stylesheets = ["_app/immutable/assets/0.Dg-buelk.css"];
|
|
37
37
|
const fonts = ["_app/immutable/assets/geist-cyrillic-ext-wght-normal.DjL33-gN.woff2","_app/immutable/assets/geist-cyrillic-wght-normal.BEAKL7Jp.woff2","_app/immutable/assets/geist-vietnamese-wght-normal.6IgcOCM7.woff2","_app/immutable/assets/geist-latin-ext-wght-normal.DC-KSUi6.woff2","_app/immutable/assets/geist-latin-wght-normal.BgDaEnEv.woff2","_app/immutable/assets/geist-mono-cyrillic-ext-wght-normal.I4S5GZfc.woff2","_app/immutable/assets/geist-mono-cyrillic-wght-normal.BmXc_FBt.woff2","_app/immutable/assets/geist-mono-symbols2-wght-normal.GZpp1pK2.woff2","_app/immutable/assets/geist-mono-vietnamese-wght-normal.D8KDMBhC.woff2","_app/immutable/assets/geist-mono-latin-ext-wght-normal.DrnZ1wKl.woff2","_app/immutable/assets/geist-mono-latin-wght-normal.B_7UjwxQ.woff2"];
|
|
38
38
|
|
|
39
39
|
export { component, fonts, imports, index, _layout_server_ts as server, server_id, stylesheets };
|
|
40
|
-
//# sourceMappingURL=0-
|
|
40
|
+
//# sourceMappingURL=0-CDoF42ve.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"0-
|
|
1
|
+
{"version":3,"file":"0-CDoF42ve.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_layout.server.ts.js","../../../.svelte-kit/adapter-node/nodes/0.js"],"sourcesContent":["import { t as getSite } from \"../../chunks/site.js\";\nimport { a as getNav } from \"../../chunks/content-store.js\";\n//#region src/routes/+layout.server.ts\nvar load = () => {\n\treturn {\n\t\tnav: getNav(),\n\t\tsite: getSite()\n\t};\n};\n//#endregion\nexport { load };\n","import * as server from '../entries/pages/_layout.server.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 { server };\nexport const server_id = \"src/routes/+layout.server.ts\";\nexport const imports = [\"_app/immutable/nodes/0.BxhbqtaZ.js\",\"_app/immutable/chunks/wCc4pE4l.js\",\"_app/immutable/chunks/XWPeu0-3.js\",\"_app/immutable/chunks/xihTtKlq.js\"];\nexport const stylesheets = [\"_app/immutable/assets/0.Dg-buelk.css\"];\nexport const fonts = [\"_app/immutable/assets/geist-cyrillic-ext-wght-normal.DjL33-gN.woff2\",\"_app/immutable/assets/geist-cyrillic-wght-normal.BEAKL7Jp.woff2\",\"_app/immutable/assets/geist-vietnamese-wght-normal.6IgcOCM7.woff2\",\"_app/immutable/assets/geist-latin-ext-wght-normal.DC-KSUi6.woff2\",\"_app/immutable/assets/geist-latin-wght-normal.BgDaEnEv.woff2\",\"_app/immutable/assets/geist-mono-cyrillic-ext-wght-normal.I4S5GZfc.woff2\",\"_app/immutable/assets/geist-mono-cyrillic-wght-normal.BmXc_FBt.woff2\",\"_app/immutable/assets/geist-mono-symbols2-wght-normal.GZpp1pK2.woff2\",\"_app/immutable/assets/geist-mono-vietnamese-wght-normal.D8KDMBhC.woff2\",\"_app/immutable/assets/geist-mono-latin-ext-wght-normal.DrnZ1wKl.woff2\",\"_app/immutable/assets/geist-mono-latin-wght-normal.B_7UjwxQ.woff2\"];\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;AAEA;AACA,IAAI,IAAI,GAAG,MAAM;AACjB,CAAC,OAAO;AACR,EAAE,GAAG,EAAE,MAAM,EAAE;AACf,EAAE,IAAI,EAAE,OAAO;AACf,EAAE;AACF,CAAC;;;;;;;ACNW,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,8BAAoC,CAAC,EAAE;AAElG,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAC5J,MAAC,WAAW,GAAG,CAAC,sCAAsC;AACtD,MAAC,KAAK,GAAG,CAAC,qEAAqE,CAAC,iEAAiE,CAAC,mEAAmE,CAAC,kEAAkE,CAAC,8DAA8D,CAAC,0EAA0E,CAAC,sEAAsE,CAAC,sEAAsE,CAAC,wEAAwE,CAAC,uEAAuE,CAAC,mEAAmE;;;;"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
const index = 1;
|
|
2
|
+
let component_cache;
|
|
3
|
+
const component = async () => component_cache ??= (await import('./_error.svelte-P4N1kqTl.js')).default;
|
|
4
|
+
const imports = ["_app/immutable/nodes/1.B4TewVhv.js","_app/immutable/chunks/wCc4pE4l.js","_app/immutable/chunks/BwAxNIj-.js","_app/immutable/chunks/XWPeu0-3.js","_app/immutable/chunks/xihTtKlq.js"];
|
|
5
|
+
const stylesheets = [];
|
|
6
|
+
const fonts = [];
|
|
7
|
+
|
|
8
|
+
export { component, fonts, imports, index, stylesheets };
|
|
9
|
+
//# sourceMappingURL=1-Cwr6HuHi.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"1-
|
|
1
|
+
{"version":3,"file":"1-Cwr6HuHi.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/pages/_error.svelte.js')).default;\nexport const imports = [\"_app/immutable/nodes/1.B4TewVhv.js\",\"_app/immutable/chunks/wCc4pE4l.js\",\"_app/immutable/chunks/BwAxNIj-.js\",\"_app/immutable/chunks/XWPeu0-3.js\",\"_app/immutable/chunks/xihTtKlq.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,6BAAmC,CAAC,EAAE;AACjG,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAChM,MAAC,WAAW,GAAG;AACf,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { g as base } from './internal-
|
|
1
|
+
import { g as base } from './internal-CJex3uyE.js';
|
|
2
2
|
import '@sveltejs/kit/internal/server';
|
|
3
|
-
import { g as getSite } from './site-
|
|
4
|
-
import { d as render } from './content-store-
|
|
3
|
+
import { g as getSite } from './site-NP7fRB5N.js';
|
|
4
|
+
import { d as render } from './content-store-CAwA7UVl.js';
|
|
5
5
|
import { redirect, error } from '@sveltejs/kit';
|
|
6
6
|
import 'node:fs';
|
|
7
7
|
import 'node:path';
|
|
@@ -44,11 +44,11 @@ var _page_server_ts = /*#__PURE__*/Object.freeze({
|
|
|
44
44
|
|
|
45
45
|
const index = 2;
|
|
46
46
|
let component_cache;
|
|
47
|
-
const component = async () => component_cache ??= (await import('./_page.svelte-
|
|
47
|
+
const component = async () => component_cache ??= (await import('./_page.svelte-Cptr7ukD.js')).default;
|
|
48
48
|
const server_id = "src/routes/[...slug=docpage]/+page.server.ts";
|
|
49
|
-
const imports = ["_app/immutable/nodes/2.
|
|
49
|
+
const imports = ["_app/immutable/nodes/2.BPCM5dz-.js","_app/immutable/chunks/wCc4pE4l.js","_app/immutable/chunks/XWPeu0-3.js","_app/immutable/chunks/BwAxNIj-.js","_app/immutable/chunks/xihTtKlq.js"];
|
|
50
50
|
const stylesheets = ["_app/immutable/assets/2.DZRzHaE1.css"];
|
|
51
51
|
const fonts = [];
|
|
52
52
|
|
|
53
53
|
export { component, fonts, imports, index, _page_server_ts as server, server_id, stylesheets };
|
|
54
|
-
//# sourceMappingURL=2-
|
|
54
|
+
//# sourceMappingURL=2-Dw7fZUFS.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"2-
|
|
1
|
+
{"version":3,"file":"2-Dw7fZUFS.js","sources":["../../../.svelte-kit/adapter-node/chunks/content.js","../../../.svelte-kit/adapter-node/entries/pages/_...slug_docpage_/_page.server.ts.js","../../../.svelte-kit/adapter-node/nodes/2.js"],"sourcesContent":["import { Tt as base } from \"./environment.js\";\nimport \"./paths.js\";\n//#region src/lib/content/index.ts\nvar stripBase = (path) => base && path.startsWith(base) ? path.slice(base.length) : path;\nvar versionPathsOf = (site) => (site.versions ?? []).map((v) => stripBase(v.href)).filter((href) => href && href !== \"/\");\nvar isVersioned = (site) => versionPathsOf(site).length > 0;\nvar defaultVersionPathOf = (site) => versionPathsOf(site)[0] ?? \"\";\nfunction pathInVersion(site, pathname, versionPath) {\n\tconst versionPaths = versionPathsOf(site);\n\tconst current = versionPaths.find((vp) => stripBase(pathname) === vp || stripBase(pathname).startsWith(`${vp}/`)) ?? versionPaths[0] ?? \"\";\n\treturn base + `${versionPath}${stripBase(pathname).slice(current.length)}`;\n}\n//#endregion\nexport { isVersioned as n, pathInVersion as r, defaultVersionPathOf as t };\n","import { Tt as base } from \"../../../chunks/environment.js\";\nimport \"../../../chunks/paths.js\";\nimport { t as getSite } from \"../../../chunks/site.js\";\nimport { s as render } from \"../../../chunks/content-store.js\";\nimport { n as isVersioned, t as defaultVersionPathOf } from \"../../../chunks/content.js\";\nimport { error, redirect } from \"@sveltejs/kit\";\n//#region src/routes/[...slug=docpage]/+page.server.ts\nvar load = async ({ params }) => {\n\tconst slug = params.slug;\n\tconst site = getSite();\n\tif (!slug && isVersioned(site)) redirect(307, `${base}${defaultVersionPathOf(site)}`);\n\tconst page = await render(slug);\n\tif (!page) error(404, \"Page not found\");\n\treturn {\n\t\tdoc: page.doc,\n\t\tfrontmatter: page.frontmatter,\n\t\ttoc: page.toc,\n\t\tsourcePath: page.sourcePath\n\t};\n};\n//#endregion\nexport { load };\n","import * as server from '../entries/pages/_...slug_docpage_/_page.server.ts.js';\n\nexport const index = 2;\nlet component_cache;\nexport const component = async () => component_cache ??= (await import('../entries/pages/_...slug_docpage_/_page.svelte.js')).default;\nexport { server };\nexport const server_id = \"src/routes/[...slug=docpage]/+page.server.ts\";\nexport const imports = [\"_app/immutable/nodes/2.BPCM5dz-.js\",\"_app/immutable/chunks/wCc4pE4l.js\",\"_app/immutable/chunks/XWPeu0-3.js\",\"_app/immutable/chunks/BwAxNIj-.js\",\"_app/immutable/chunks/xihTtKlq.js\"];\nexport const stylesheets = [\"_app/immutable/assets/2.DZRzHaE1.css\"];\nexport const fonts = [];\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;AAEA;AACA,IAAI,SAAS,GAAG,CAAC,IAAI,KAAK,IAAI,IAAI,IAAI,CAAC,UAAU,CAAC,IAAI,CAAC,GAAG,IAAI,CAAC,KAAK,CAAC,IAAI,CAAC,MAAM,CAAC,GAAG,IAAI;AACxF,IAAI,cAAc,GAAG,CAAC,IAAI,KAAK,CAAC,IAAI,CAAC,QAAQ,IAAI,EAAE,EAAE,GAAG,CAAC,CAAC,CAAC,KAAK,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,CAAC,CAAC,MAAM,CAAC,CAAC,IAAI,KAAK,IAAI,IAAI,IAAI,KAAK,GAAG,CAAC;AACzH,IAAI,WAAW,GAAG,CAAC,IAAI,KAAK,cAAc,CAAC,IAAI,CAAC,CAAC,MAAM,GAAG,CAAC;AAC3D,IAAI,oBAAoB,GAAG,CAAC,IAAI,KAAK,cAAc,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC,IAAI,EAAE;;ACAlE;AACA,IAAI,IAAI,GAAG,OAAO,EAAE,MAAM,EAAE,KAAK;AACjC,CAAC,MAAM,IAAI,GAAG,MAAM,CAAC,IAAI;AACzB,CAAC,MAAM,IAAI,GAAG,OAAO,EAAE;AACvB,CAAC,IAAI,CAAC,IAAI,IAAI,WAAW,CAAC,IAAI,CAAC,EAAE,QAAQ,CAAC,GAAG,EAAE,CAAC,EAAE,IAAI,CAAC,EAAE,oBAAoB,CAAC,IAAI,CAAC,CAAC,CAAC,CAAC;AACtF,CAAC,MAAM,IAAI,GAAG,MAAM,MAAM,CAAC,IAAI,CAAC;AAChC,CAAC,IAAI,CAAC,IAAI,EAAE,KAAK,CAAC,GAAG,EAAE,gBAAgB,CAAC;AACxC,CAAC,OAAO;AACR,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG;AACf,EAAE,WAAW,EAAE,IAAI,CAAC,WAAW;AAC/B,EAAE,GAAG,EAAE,IAAI,CAAC,GAAG;AACf,EAAE,UAAU,EAAE,IAAI,CAAC;AACnB,EAAE;AACF,CAAC;;;;;;;ACjBW,MAAC,KAAK,GAAG;AACrB,IAAI,eAAe;AACP,MAAC,SAAS,GAAG,YAAY,eAAe,KAAK,CAAC,MAAM,OAAO,4BAAoD,CAAC,EAAE;AAElH,MAAC,SAAS,GAAG;AACb,MAAC,OAAO,GAAG,CAAC,oCAAoC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC,CAAC,mCAAmC;AAChM,MAAC,WAAW,GAAG,CAAC,sCAAsC;AACtD,MAAC,KAAK,GAAG;;;;"}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import { f as attributes, h as clsx, m as ensure_array_like, l as element, q as getContext, j as derived, v as index_server_exports, B as noop } from './internal-
|
|
2
|
-
import './exports-
|
|
1
|
+
import { f as attributes, h as clsx, m as ensure_array_like, l as element, q as getContext, j as derived, v as index_server_exports, B as noop } from './internal-CJex3uyE.js';
|
|
2
|
+
import './exports-D-KZn-NB.js';
|
|
3
3
|
import '@sveltejs/kit/internal/server';
|
|
4
4
|
import '@sveltejs/kit/internal';
|
|
5
5
|
|
|
@@ -183,4 +183,4 @@ function Icon($$renderer, $$props) {
|
|
|
183
183
|
}
|
|
184
184
|
|
|
185
185
|
export { Icon as I, afterNavigate as a, page as p };
|
|
186
|
-
//# sourceMappingURL=Icon-
|
|
186
|
+
//# sourceMappingURL=Icon-DWMR8969.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Icon-B5VFrlh0.js","sources":["../../../.svelte-kit/adapter-node/chunks/Icon.js"],"sourcesContent":["import { L as writable, X as clsx, a as index_server_exports, d as attributes, f as derived, it as noop, m as ensure_array_like, ot as getContext, p as element } from \"./environment.js\";\nimport { b as noop$1 } from \"./shared.js\";\nimport \"./exports.js\";\nimport \"./routing.js\";\nimport \"./paths.js\";\nimport \"@sveltejs/kit/internal\";\nvar PRELOAD_PRIORITIES = {\n\ttap: 1,\n\thover: 2,\n\tviewport: 3,\n\teager: 4,\n\toff: -1,\n\tfalse: -1\n};\n({ ...PRELOAD_PRIORITIES }), PRELOAD_PRIORITIES.hover;\n/** @param {any} value */\nfunction notifiable_store(value) {\n\tconst store = writable(value);\n\tlet ready = true;\n\tfunction notify() {\n\t\tready = true;\n\t\tstore.update((val) => val);\n\t}\n\t/** @param {any} new_value */\n\tfunction set(new_value) {\n\t\tready = false;\n\t\tstore.set(new_value);\n\t}\n\t/** @param {(value: any) => void} run */\n\tfunction subscribe(run) {\n\t\t/** @type {any} */\n\t\tlet old_value;\n\t\treturn store.subscribe((new_value) => {\n\t\t\tif (old_value === void 0 || ready && new_value !== old_value) run(old_value = new_value);\n\t\t});\n\t}\n\treturn {\n\t\tnotify,\n\t\tset,\n\t\tsubscribe\n\t};\n}\nvar updated_listener = { v: noop$1 };\nfunction create_updated_store() {\n\tconst { set, subscribe } = writable(false);\n\treturn {\n\t\tsubscribe,\n\t\tcheck: async () => false\n\t};\n}\nvar navigating$1;\nvar updated$1;\nvar is_legacy = noop.toString().includes(\"$$\") || /function \\w+\\(\\) \\{\\}/.test(noop.toString());\nvar placeholder_url = \"a:\";\nif (is_legacy) {\n\tnew URL(placeholder_url);\n\tnavigating$1 = { current: null };\n\tupdated$1 = { current: false };\n} else {\n\tnew class Page {\n\t\tdata = {};\n\t\tform = null;\n\t\terror = null;\n\t\tparams = {};\n\t\troute = { id: null };\n\t\tstate = {};\n\t\tstatus = -1;\n\t\turl = new URL(placeholder_url);\n\t}();\n\tnavigating$1 = new class Navigating {\n\t\tcurrent = null;\n\t}();\n\tupdated$1 = new class Updated {\n\t\tcurrent = false;\n\t}();\n\tupdated_listener.v = () => updated$1.current = true;\n}\n//#endregion\n//#region node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.0_@typescript-eslin_144874e05ce89b6a0c4285e1e3093454/node_modules/@sveltejs/kit/src/runtime/client/client.js\n/** @import { CacheEntry } from './remote-functions/cache.svelte.js' */\n/** @import { Query } from './remote-functions/query/instance.svelte.js' */\n/** @import { LiveQuery } from './remote-functions/query-live/instance.svelte.js' */\nvar { onMount, tick } = index_server_exports;\nvar stores = {\n\turl: /* @__PURE__ */ notifiable_store({}),\n\tpage: /* @__PURE__ */ notifiable_store({}),\n\tnavigating: /* @__PURE__ */ writable(null),\n\tupdated: /* @__PURE__ */ create_updated_store()\n};\n/** @type {Set<(navigation: import('@sveltejs/kit').AfterNavigate) => void>} */\nvar after_navigate_callbacks = /* @__PURE__ */ new Set();\n/**\n* @template {Function} T\n* @param {Set<T>} callbacks\n* @param {T} callback\n*/\nfunction add_navigation_callback(callbacks, callback) {\n\tonMount(() => {\n\t\tcallbacks.add(callback);\n\t\treturn () => {\n\t\t\tcallbacks.delete(callback);\n\t\t};\n\t});\n}\n/**\n* A lifecycle function that runs the supplied `callback` when the current component mounts, and also whenever we navigate to a URL.\n*\n* `afterNavigate` must be called during a component initialization. It remains active as long as the component is mounted.\n* @param {(navigation: import('@sveltejs/kit').AfterNavigate) => void} callback\n* @returns {void}\n*/\nfunction afterNavigate(callback) {\n\tadd_navigation_callback(after_navigate_callbacks, callback);\n}\nObject.defineProperty({\n\tget from() {\n\t\treturn navigating$1.current ? navigating$1.current.from : null;\n\t},\n\tget to() {\n\t\treturn navigating$1.current ? navigating$1.current.to : null;\n\t},\n\tget type() {\n\t\treturn navigating$1.current ? navigating$1.current.type : null;\n\t},\n\tget willUnload() {\n\t\treturn navigating$1.current ? navigating$1.current.willUnload : null;\n\t},\n\tget delta() {\n\t\treturn navigating$1.current ? navigating$1.current.delta : null;\n\t},\n\tget complete() {\n\t\treturn navigating$1.current ? navigating$1.current.complete : null;\n\t}\n}, \"current\", { get() {\n\tthrow new Error(\"Replace navigating.current.<prop> with navigating.<prop>\");\n} });\nstores.updated.check;\n//#endregion\n//#region node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.0_@typescript-eslin_144874e05ce89b6a0c4285e1e3093454/node_modules/@sveltejs/kit/src/runtime/app/state/server.js\nfunction context() {\n\treturn getContext(\"__request__\");\n}\n//#endregion\n//#region node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.0_@typescript-eslin_144874e05ce89b6a0c4285e1e3093454/node_modules/@sveltejs/kit/src/runtime/app/state/index.js\n/**\n* A read-only reactive object with information about the current page, serving several use cases:\n* - retrieving the combined `data` of all pages/layouts anywhere in your component tree (also see [loading data](https://svelte.dev/docs/kit/load))\n* - retrieving the current value of the `form` prop anywhere in your component tree (also see [form actions](https://svelte.dev/docs/kit/form-actions))\n* - retrieving the page state that was set through `goto`, `pushState` or `replaceState` (also see [goto](https://svelte.dev/docs/kit/$app-navigation#goto) and [shallow routing](https://svelte.dev/docs/kit/shallow-routing))\n* - retrieving metadata such as the URL you're on, the current route and its parameters, and whether or not there was an error\n*\n* ```svelte\n* <!--- file: +layout.svelte --->\n* <script>\n* \timport { page } from '$app/state';\n* <\\/script>\n*\n* <p>Currently at {page.url.pathname}</p>\n*\n* {#if page.error}\n* \t<span class=\"red\">Problem detected</span>\n* {:else}\n* \t<span class=\"small\">All systems operational</span>\n* {/if}\n* ```\n*\n* Changes to `page` are available exclusively with runes. (The legacy reactivity syntax will not reflect any changes)\n*\n* ```svelte\n* <!--- file: +page.svelte --->\n* <script>\n* \timport { page } from '$app/state';\n* \tconst id = $derived(page.params.id); // This will correctly update id for usage on this page\n* \t$: badId = page.params.id; // Do not use; will never update after initial load\n* <\\/script>\n* ```\n*\n* On the server, values can only be read during rendering (in other words _not_ in e.g. `load` functions). In the browser, the values can be read at any time.\n*\n* @type {import('@sveltejs/kit').Page}\n*/\nvar page = {\n\tget data() {\n\t\treturn context().page.data;\n\t},\n\tget error() {\n\t\treturn context().page.error;\n\t},\n\tget form() {\n\t\treturn context().page.form;\n\t},\n\tget params() {\n\t\treturn context().page.params;\n\t},\n\tget route() {\n\t\treturn context().page.route;\n\t},\n\tget state() {\n\t\treturn context().page.state;\n\t},\n\tget status() {\n\t\treturn context().page.status;\n\t},\n\tget url() {\n\t\treturn context().page.url;\n\t}\n};\n//#endregion\n//#region node_modules/.pnpm/@lucide+svelte@1.17.0_svelte@5.56.0_@typescript-eslint+types@8.60.0_/node_modules/@lucide/svelte/dist/defaultAttributes.js\n/**\n* @file\n* @license @lucide/svelte v1.17.0 - ISC\n*\n* This source code is licensed under the ISC license.\n* See the LICENSE file in the root directory of this source tree.\n*/\nvar defaultAttributes = {\n\txmlns: \"http://www.w3.org/2000/svg\",\n\twidth: 24,\n\theight: 24,\n\tviewBox: \"0 0 24 24\",\n\tfill: \"none\",\n\tstroke: \"currentColor\",\n\t\"stroke-width\": 2,\n\t\"stroke-linecap\": \"round\",\n\t\"stroke-linejoin\": \"round\"\n};\n//#endregion\n//#region node_modules/.pnpm/@lucide+svelte@1.17.0_svelte@5.56.0_@typescript-eslint+types@8.60.0_/node_modules/@lucide/svelte/dist/utils/hasA11yProp.js\n/**\n* @file\n* @license @lucide/svelte v1.17.0 - ISC\n*\n* This source code is licensed under the ISC license.\n* See the LICENSE file in the root directory of this source tree.\n*/\n/**\n* Check if a component has an accessibility prop\n*\n* @param {object} props\n* @returns {boolean} Whether the component has an accessibility prop\n*/\nvar hasA11yProp = (props) => {\n\tfor (const prop in props) if (prop.startsWith(\"aria-\") || prop === \"role\" || prop === \"title\") return true;\n\treturn false;\n};\n//#endregion\n//#region node_modules/.pnpm/@lucide+svelte@1.17.0_svelte@5.56.0_@typescript-eslint+types@8.60.0_/node_modules/@lucide/svelte/dist/context.js\n/**\n* @file\n* @license @lucide/svelte v1.17.0 - ISC\n*\n* This source code is licensed under the ISC license.\n* See the LICENSE file in the root directory of this source tree.\n*/\nvar LucideContext = Symbol(\"lucide-context\");\nvar getLucideContext = () => getContext(LucideContext);\n//#endregion\n//#region node_modules/.pnpm/@lucide+svelte@1.17.0_svelte@5.56.0_@typescript-eslint+types@8.60.0_/node_modules/@lucide/svelte/dist/Icon.svelte\nfunction Icon($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\tconst globalProps = getLucideContext() ?? {};\n\t\tconst { name, color = globalProps.color ?? \"currentColor\", size = globalProps.size ?? 24, strokeWidth = globalProps.strokeWidth ?? 2, absoluteStrokeWidth = globalProps.absoluteStrokeWidth ?? false, iconNode = [], children, $$slots, $$events, ...props } = $$props;\n\t\tconst calculatedStrokeWidth = derived(() => absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth);\n\t\t$$renderer.push(`<svg${attributes({\n\t\t\t...defaultAttributes,\n\t\t\t...!children && !hasA11yProp(props) && { \"aria-hidden\": \"true\" },\n\t\t\t...props,\n\t\t\twidth: size,\n\t\t\theight: size,\n\t\t\tstroke: color,\n\t\t\t\"stroke-width\": calculatedStrokeWidth(),\n\t\t\tclass: clsx([\n\t\t\t\t\"lucide-icon lucide\",\n\t\t\t\tglobalProps.class,\n\t\t\t\tname && `lucide-${name}`,\n\t\t\t\tprops.class\n\t\t\t])\n\t\t}, void 0, void 0, void 0, 3)}><!--[-->`);\n\t\tconst each_array = ensure_array_like(iconNode);\n\t\tfor (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {\n\t\t\tlet [tag, attrs] = each_array[$$index];\n\t\t\telement($$renderer, tag, () => {\n\t\t\t\t$$renderer.push(`${attributes({ ...attrs }, void 0, void 0, void 0, 3)}`);\n\t\t\t});\n\t\t}\n\t\t$$renderer.push(`<!--]-->`);\n\t\tchildren?.($$renderer);\n\t\t$$renderer.push(`<!----></svg>`);\n\t});\n}\n//#endregion\nexport { page as n, afterNavigate as r, Icon as t };\n"],"names":[],"mappings":";;;;;AAoDA,IAAI,SAAS,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;AAC/F,IAAI,eAAe,GAAG,IAAI;AAC1B,IAAI,SAAS,EAAE;AACf,CAAC,IAAI,GAAG,CAAC,eAAe,CAAC;AAGzB;AAmBA;AACA;AACA;AACA;AACA;AACA,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,oBAAoB;AAO5C;AACA,IAAI,wBAAwB,mBAAmB,IAAI,GAAG,EAAE;AACxD;AACA;AACA;AACA;AACA;AACA,SAAS,uBAAuB,CAAC,SAAS,EAAE,QAAQ,EAAE;AACtD,CAAC,OAAO,CAAC,MAAM;AACf,EAAE,SAAS,CAAC,GAAG,CAAC,QAAQ,CAAC;AACzB,EAAE,OAAO,MAAM;AACf,GAAG,SAAS,CAAC,MAAM,CAAC,QAAQ,CAAC;AAC7B,EAAE,CAAC;AACH,CAAC,CAAC,CAAC;AACH;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAAS,aAAa,CAAC,QAAQ,EAAE;AACjC,CAAC,uBAAuB,CAAC,wBAAwB,EAAE,QAAQ,CAAC;AAC5D;AAwBA;AACA;AACA,SAAS,OAAO,GAAG;AACnB,CAAC,OAAO,UAAU,CAAC,aAAa,CAAC;AACjC;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACG,IAAC,IAAI,GAAG;AACX,CAAC,IAAI,IAAI,GAA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,MAAM,UAAU,GAAG,iBAAiB,CAAC,QAAQ,CAAC;AAChD,EAAE,KAAK,IAAI,OAAO,GAAG,CAAC,EAAE,QAAQ,GAAG,UAAU,CAAC,MAAM,EAAE,OAAO,GAAG,QAAQ,EAAE,OAAO,EAAE,EAAE;AACrF,GAAG,IAAI,CAAC,GAAG,EAAE,KAAK,CAAC,GAAG,UAAU,CAAC,OAAO,CAAC;AACzC,GAAG,OAAO,CAAC,UAAU,EAAE,GAAG,EAAE,MAAM;AAClC,IAAI,UAAU,CAAC,IAAI,CAAC,CAAC,EAAE,UAAU,CAAC,EAAE,GAAG,KAAK,EAAE,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,EAAE,CAAC,CAAC,CAAC,CAAC,CAAC;AAC7E,GAAG,CAAC,CAAC;AACL,EAAE;AACF,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAC7B,EAAE,QAAQ,GAAG,UAAU,CAAC;AACxB,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,CAAC;AAClC,CAAC,CAAC,CAAC;AACH;;;;"}
|
|
1
|
+
{"version":3,"file":"Icon-DWMR8969.js","sources":["../../../.svelte-kit/adapter-node/chunks/Icon.js"],"sourcesContent":["import { L as writable, X as clsx, a as index_server_exports, d as attributes, f as derived, it as noop, m as ensure_array_like, ot as getContext, p as element } from \"./environment.js\";\nimport { b as noop$1 } from \"./shared.js\";\nimport \"./exports.js\";\nimport \"./routing.js\";\nimport \"./paths.js\";\nimport \"@sveltejs/kit/internal\";\nvar PRELOAD_PRIORITIES = {\n\ttap: 1,\n\thover: 2,\n\tviewport: 3,\n\teager: 4,\n\toff: -1,\n\tfalse: -1\n};\n({ ...PRELOAD_PRIORITIES }), PRELOAD_PRIORITIES.hover;\n/** @param {any} value */\nfunction notifiable_store(value) {\n\tconst store = writable(value);\n\tlet ready = true;\n\tfunction notify() {\n\t\tready = true;\n\t\tstore.update((val) => val);\n\t}\n\t/** @param {any} new_value */\n\tfunction set(new_value) {\n\t\tready = false;\n\t\tstore.set(new_value);\n\t}\n\t/** @param {(value: any) => void} run */\n\tfunction subscribe(run) {\n\t\t/** @type {any} */\n\t\tlet old_value;\n\t\treturn store.subscribe((new_value) => {\n\t\t\tif (old_value === void 0 || ready && new_value !== old_value) run(old_value = new_value);\n\t\t});\n\t}\n\treturn {\n\t\tnotify,\n\t\tset,\n\t\tsubscribe\n\t};\n}\nvar updated_listener = { v: noop$1 };\nfunction create_updated_store() {\n\tconst { set, subscribe } = writable(false);\n\treturn {\n\t\tsubscribe,\n\t\tcheck: async () => false\n\t};\n}\nvar navigating$1;\nvar updated$1;\nvar is_legacy = noop.toString().includes(\"$$\") || /function \\w+\\(\\) \\{\\}/.test(noop.toString());\nvar placeholder_url = \"a:\";\nif (is_legacy) {\n\tnew URL(placeholder_url);\n\tnavigating$1 = { current: null };\n\tupdated$1 = { current: false };\n} else {\n\tnew class Page {\n\t\tdata = {};\n\t\tform = null;\n\t\terror = null;\n\t\tparams = {};\n\t\troute = { id: null };\n\t\tstate = {};\n\t\tstatus = -1;\n\t\turl = new URL(placeholder_url);\n\t}();\n\tnavigating$1 = new class Navigating {\n\t\tcurrent = null;\n\t}();\n\tupdated$1 = new class Updated {\n\t\tcurrent = false;\n\t}();\n\tupdated_listener.v = () => updated$1.current = true;\n}\n//#endregion\n//#region node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.0_@typescript-eslin_144874e05ce89b6a0c4285e1e3093454/node_modules/@sveltejs/kit/src/runtime/client/client.js\n/** @import { CacheEntry } from './remote-functions/cache.svelte.js' */\n/** @import { Query } from './remote-functions/query/instance.svelte.js' */\n/** @import { LiveQuery } from './remote-functions/query-live/instance.svelte.js' */\nvar { onMount, tick } = index_server_exports;\nvar stores = {\n\turl: /* @__PURE__ */ notifiable_store({}),\n\tpage: /* @__PURE__ */ notifiable_store({}),\n\tnavigating: /* @__PURE__ */ writable(null),\n\tupdated: /* @__PURE__ */ create_updated_store()\n};\n/** @type {Set<(navigation: import('@sveltejs/kit').AfterNavigate) => void>} */\nvar after_navigate_callbacks = /* @__PURE__ */ new Set();\n/**\n* @template {Function} T\n* @param {Set<T>} callbacks\n* @param {T} callback\n*/\nfunction add_navigation_callback(callbacks, callback) {\n\tonMount(() => {\n\t\tcallbacks.add(callback);\n\t\treturn () => {\n\t\t\tcallbacks.delete(callback);\n\t\t};\n\t});\n}\n/**\n* A lifecycle function that runs the supplied `callback` when the current component mounts, and also whenever we navigate to a URL.\n*\n* `afterNavigate` must be called during a component initialization. It remains active as long as the component is mounted.\n* @param {(navigation: import('@sveltejs/kit').AfterNavigate) => void} callback\n* @returns {void}\n*/\nfunction afterNavigate(callback) {\n\tadd_navigation_callback(after_navigate_callbacks, callback);\n}\nObject.defineProperty({\n\tget from() {\n\t\treturn navigating$1.current ? navigating$1.current.from : null;\n\t},\n\tget to() {\n\t\treturn navigating$1.current ? navigating$1.current.to : null;\n\t},\n\tget type() {\n\t\treturn navigating$1.current ? navigating$1.current.type : null;\n\t},\n\tget willUnload() {\n\t\treturn navigating$1.current ? navigating$1.current.willUnload : null;\n\t},\n\tget delta() {\n\t\treturn navigating$1.current ? navigating$1.current.delta : null;\n\t},\n\tget complete() {\n\t\treturn navigating$1.current ? navigating$1.current.complete : null;\n\t}\n}, \"current\", { get() {\n\tthrow new Error(\"Replace navigating.current.<prop> with navigating.<prop>\");\n} });\nstores.updated.check;\n//#endregion\n//#region node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.0_@typescript-eslin_144874e05ce89b6a0c4285e1e3093454/node_modules/@sveltejs/kit/src/runtime/app/state/server.js\nfunction context() {\n\treturn getContext(\"__request__\");\n}\n//#endregion\n//#region node_modules/.pnpm/@sveltejs+kit@2.61.1_@sveltejs+vite-plugin-svelte@7.1.2_svelte@5.56.0_@typescript-eslin_144874e05ce89b6a0c4285e1e3093454/node_modules/@sveltejs/kit/src/runtime/app/state/index.js\n/**\n* A read-only reactive object with information about the current page, serving several use cases:\n* - retrieving the combined `data` of all pages/layouts anywhere in your component tree (also see [loading data](https://svelte.dev/docs/kit/load))\n* - retrieving the current value of the `form` prop anywhere in your component tree (also see [form actions](https://svelte.dev/docs/kit/form-actions))\n* - retrieving the page state that was set through `goto`, `pushState` or `replaceState` (also see [goto](https://svelte.dev/docs/kit/$app-navigation#goto) and [shallow routing](https://svelte.dev/docs/kit/shallow-routing))\n* - retrieving metadata such as the URL you're on, the current route and its parameters, and whether or not there was an error\n*\n* ```svelte\n* <!--- file: +layout.svelte --->\n* <script>\n* \timport { page } from '$app/state';\n* <\\/script>\n*\n* <p>Currently at {page.url.pathname}</p>\n*\n* {#if page.error}\n* \t<span class=\"red\">Problem detected</span>\n* {:else}\n* \t<span class=\"small\">All systems operational</span>\n* {/if}\n* ```\n*\n* Changes to `page` are available exclusively with runes. (The legacy reactivity syntax will not reflect any changes)\n*\n* ```svelte\n* <!--- file: +page.svelte --->\n* <script>\n* \timport { page } from '$app/state';\n* \tconst id = $derived(page.params.id); // This will correctly update id for usage on this page\n* \t$: badId = page.params.id; // Do not use; will never update after initial load\n* <\\/script>\n* ```\n*\n* On the server, values can only be read during rendering (in other words _not_ in e.g. `load` functions). In the browser, the values can be read at any time.\n*\n* @type {import('@sveltejs/kit').Page}\n*/\nvar page = {\n\tget data() {\n\t\treturn context().page.data;\n\t},\n\tget error() {\n\t\treturn context().page.error;\n\t},\n\tget form() {\n\t\treturn context().page.form;\n\t},\n\tget params() {\n\t\treturn context().page.params;\n\t},\n\tget route() {\n\t\treturn context().page.route;\n\t},\n\tget state() {\n\t\treturn context().page.state;\n\t},\n\tget status() {\n\t\treturn context().page.status;\n\t},\n\tget url() {\n\t\treturn context().page.url;\n\t}\n};\n//#endregion\n//#region node_modules/.pnpm/@lucide+svelte@1.17.0_svelte@5.56.0_@typescript-eslint+types@8.60.0_/node_modules/@lucide/svelte/dist/defaultAttributes.js\n/**\n* @file\n* @license @lucide/svelte v1.17.0 - ISC\n*\n* This source code is licensed under the ISC license.\n* See the LICENSE file in the root directory of this source tree.\n*/\nvar defaultAttributes = {\n\txmlns: \"http://www.w3.org/2000/svg\",\n\twidth: 24,\n\theight: 24,\n\tviewBox: \"0 0 24 24\",\n\tfill: \"none\",\n\tstroke: \"currentColor\",\n\t\"stroke-width\": 2,\n\t\"stroke-linecap\": \"round\",\n\t\"stroke-linejoin\": \"round\"\n};\n//#endregion\n//#region node_modules/.pnpm/@lucide+svelte@1.17.0_svelte@5.56.0_@typescript-eslint+types@8.60.0_/node_modules/@lucide/svelte/dist/utils/hasA11yProp.js\n/**\n* @file\n* @license @lucide/svelte v1.17.0 - ISC\n*\n* This source code is licensed under the ISC license.\n* See the LICENSE file in the root directory of this source tree.\n*/\n/**\n* Check if a component has an accessibility prop\n*\n* @param {object} props\n* @returns {boolean} Whether the component has an accessibility prop\n*/\nvar hasA11yProp = (props) => {\n\tfor (const prop in props) if (prop.startsWith(\"aria-\") || prop === \"role\" || prop === \"title\") return true;\n\treturn false;\n};\n//#endregion\n//#region node_modules/.pnpm/@lucide+svelte@1.17.0_svelte@5.56.0_@typescript-eslint+types@8.60.0_/node_modules/@lucide/svelte/dist/context.js\n/**\n* @file\n* @license @lucide/svelte v1.17.0 - ISC\n*\n* This source code is licensed under the ISC license.\n* See the LICENSE file in the root directory of this source tree.\n*/\nvar LucideContext = Symbol(\"lucide-context\");\nvar getLucideContext = () => getContext(LucideContext);\n//#endregion\n//#region node_modules/.pnpm/@lucide+svelte@1.17.0_svelte@5.56.0_@typescript-eslint+types@8.60.0_/node_modules/@lucide/svelte/dist/Icon.svelte\nfunction Icon($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\tconst globalProps = getLucideContext() ?? {};\n\t\tconst { name, color = globalProps.color ?? \"currentColor\", size = globalProps.size ?? 24, strokeWidth = globalProps.strokeWidth ?? 2, absoluteStrokeWidth = globalProps.absoluteStrokeWidth ?? false, iconNode = [], children, $$slots, $$events, ...props } = $$props;\n\t\tconst calculatedStrokeWidth = derived(() => absoluteStrokeWidth ? Number(strokeWidth) * 24 / Number(size) : strokeWidth);\n\t\t$$renderer.push(`<svg${attributes({\n\t\t\t...defaultAttributes,\n\t\t\t...!children && !hasA11yProp(props) && { \"aria-hidden\": \"true\" },\n\t\t\t...props,\n\t\t\twidth: size,\n\t\t\theight: size,\n\t\t\tstroke: color,\n\t\t\t\"stroke-width\": calculatedStrokeWidth(),\n\t\t\tclass: clsx([\n\t\t\t\t\"lucide-icon lucide\",\n\t\t\t\tglobalProps.class,\n\t\t\t\tname && `lucide-${name}`,\n\t\t\t\tprops.class\n\t\t\t])\n\t\t}, void 0, void 0, void 0, 3)}><!--[-->`);\n\t\tconst each_array = ensure_array_like(iconNode);\n\t\tfor (let $$index = 0, $$length = each_array.length; $$index < $$length; $$index++) {\n\t\t\tlet [tag, attrs] = each_array[$$index];\n\t\t\telement($$renderer, tag, () => {\n\t\t\t\t$$renderer.push(`${attributes({ ...attrs }, void 0, void 0, void 0, 3)}`);\n\t\t\t});\n\t\t}\n\t\t$$renderer.push(`<!--]-->`);\n\t\tchildren?.($$renderer);\n\t\t$$renderer.push(`<!----></svg>`);\n\t});\n}\n//#endregion\nexport { page as n, afterNavigate as r, Icon as t };\n"],"names":[],"mappings":";;;;;AAoDA,IAAI,SAAS,GAAG,IAAI,CAAC,QAAQ,EAAE,CAAC,QAAQ,CAAC,IAAI,CAAC,IAAI,uBAAuB,CAAC,IAAI,CAAC,IAAI,CAAC,QAAQ,EAAE,CAAC;AAC/F,IAAI,eAAe,GAAG,IAAI;AAC1B,IAAI,SAAS,EAAE;AACf,CAAC,IAAI,GAAG,CAAC,eAAe,CAAC;AAGzB;AAmBA;AACA;AACA;AACA;AACA;AACA,IAAI,EAAE,OAAO,EAAE,IAAI,EAAE,GAAG,oBAAoB;AAO5C;AACA,IAAI,wBAAwB,mBAAmB,IAAI,GAAG,EAAE;AACxD;AACA;AACA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,IAAI,CAAC,CAAC,QAAQ,CAAC,CAAC;AAC7B,EAAE,QAAQ,GAAG,UAAU,CAAC;AACxB,EAAE,UAAU,CAAC,IAAI,CAAC,CAAC,aAAa,CAAC,CAAC;AAClC,CAAC,CAAC,CAAC;AACH;;;;"}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { t as head, o as escape_html, j as derived, R as spread_props } from './internal-
|
|
2
|
-
import { p as page, I as Icon } from './Icon-
|
|
3
|
-
import './exports-
|
|
1
|
+
import { t as head, o as escape_html, j as derived, R as spread_props } from './internal-CJex3uyE.js';
|
|
2
|
+
import { p as page, I as Icon } from './Icon-DWMR8969.js';
|
|
3
|
+
import './exports-D-KZn-NB.js';
|
|
4
4
|
import '@sveltejs/kit/internal';
|
|
5
5
|
import '@sveltejs/kit/internal/server';
|
|
6
6
|
|
|
@@ -45,4 +45,4 @@ function _error($$renderer, $$props) {
|
|
|
45
45
|
}
|
|
46
46
|
|
|
47
47
|
export { _error as default };
|
|
48
|
-
//# sourceMappingURL=_error.svelte-
|
|
48
|
+
//# sourceMappingURL=_error.svelte-P4N1kqTl.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"_error.svelte-
|
|
1
|
+
{"version":3,"file":"_error.svelte-P4N1kqTl.js","sources":["../../../.svelte-kit/adapter-node/entries/pages/_error.svelte.js"],"sourcesContent":["import { Z as escape_html, _ as spread_props, f as derived, h as head } from \"../../chunks/environment.js\";\nimport { n as page, t as Icon } from \"../../chunks/Icon.js\";\n//#region node_modules/.pnpm/@lucide+svelte@1.17.0_svelte@5.56.0_@typescript-eslint+types@8.60.0_/node_modules/@lucide/svelte/dist/icons/house.svelte\nfunction House($$renderer, $$props) {\n\tlet { $$slots, $$events, ...props } = $$props;\n\tIcon($$renderer, spread_props([\n\t\t{ name: \"house\" },\n\t\tprops,\n\t\t{ iconNode: [[\"path\", { \"d\": \"M15 21v-8a1 1 0 0 0-1-1h-4a1 1 0 0 0-1 1v8\" }], [\"path\", { \"d\": \"M3 10a2 2 0 0 1 .709-1.528l7-6a2 2 0 0 1 2.582 0l7 6A2 2 0 0 1 21 10v9a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2z\" }]] }\n\t]));\n}\n//#endregion\n//#region node_modules/.pnpm/@lucide+svelte@1.17.0_svelte@5.56.0_@typescript-eslint+types@8.60.0_/node_modules/@lucide/svelte/dist/icons/book-open.svelte\nfunction Book_open($$renderer, $$props) {\n\tlet { $$slots, $$events, ...props } = $$props;\n\tIcon($$renderer, spread_props([\n\t\t{ name: \"book-open\" },\n\t\tprops,\n\t\t{ iconNode: [[\"path\", { \"d\": \"M12 7v14\" }], [\"path\", { \"d\": \"M3 18a1 1 0 0 1-1-1V4a1 1 0 0 1 1-1h5a4 4 0 0 1 4 4 4 4 0 0 1 4-4h5a1 1 0 0 1 1 1v13a1 1 0 0 1-1 1h-6a3 3 0 0 0-3 3 3 3 0 0 0-3-3z\" }]] }\n\t]));\n}\n//#endregion\n//#region src/routes/+error.svelte\nfunction _error($$renderer, $$props) {\n\t$$renderer.component(($$renderer) => {\n\t\tconst siteName = derived(() => page.data.site?.name ?? \"Axerity\");\n\t\tconst status = derived(() => page.status);\n\t\tconst heading = derived(() => status() === 404 ? \"Page not found\" : \"Something went wrong\");\n\t\tconst message = derived(() => status() === 404 ? \"Sorry, we couldn't find the page you're looking for. It may have been moved or removed.\" : page.error?.message ?? \"An unexpected error occurred.\");\n\t\thead(\"1j96wlh\", $$renderer, ($$renderer) => {\n\t\t\t$$renderer.title(($$renderer) => {\n\t\t\t\t$$renderer.push(`<title>${escape_html(status())} · ${escape_html(siteName())}</title>`);\n\t\t\t});\n\t\t});\n\t\t$$renderer.push(`<div class=\"flex min-h-screen flex-col items-center justify-center gap-4 bg-bg px-6 text-center\"><p class=\"font-mono text-[5rem] leading-none font-bold text-border-strong select-none sm:text-[7rem]\">${escape_html(status())}</p> <h1 class=\"text-2xl font-bold tracking-tight text-fg sm:text-3xl\">${escape_html(heading())}</h1> <p class=\"max-w-md text-fg-muted\">${escape_html(message())}</p> <div class=\"mt-3 flex flex-wrap items-center justify-center gap-3\"><a href=\"/\" class=\"inline-flex items-center gap-2 rounded-md bg-accent px-4 py-2 text-sm font-medium text-accent-contrast transition hover:opacity-90\">`);\n\t\tBook_open($$renderer, { size: 16 });\n\t\t$$renderer.push(`<!----> Back to docs</a> <a href=\"/\" class=\"inline-flex items-center gap-2 rounded-md border border-border px-4 py-2 text-sm font-medium text-fg-muted transition hover:border-border-strong hover:text-fg\">`);\n\t\tHouse($$renderer, { size: 16 });\n\t\t$$renderer.push(`<!----> Home</a></div></div>`);\n\t});\n}\n//#endregion\nexport { _error as default };\n"],"names":[],"mappings":";;;;;;AAEA;AACA,SAAS,KAAK,CAAC,UAAU,EAAE,OAAO,EAAE;AACpC,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,GAAG,OAAO;AAC9C,CAAC,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC;AAC/B,EAAE,EAAE,IAAI,EAAE,OAAO,EAAE;AACnB,EAAE,KAAK;AACP,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,4CAA4C,EAAE,CAAC,EAAE,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,uGAAuG,EAAE,CAAC,CAAC;AAC3M,EAAE,CAAC,CAAC;AACJ;AACA;AACA;AACA,SAAS,SAAS,CAAC,UAAU,EAAE,OAAO,EAAE;AACxC,CAAC,IAAI,EAAE,OAAO,EAAE,QAAQ,EAAE,GAAG,KAAK,EAAE,GAAG,OAAO;AAC9C,CAAC,IAAI,CAAC,UAAU,EAAE,YAAY,CAAC;AAC/B,EAAE,EAAE,IAAI,EAAE,WAAW,EAAE;AACvB,EAAE,KAAK;AACP,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC,MAAM,EAAE,EAAE,GAAG,EAAE,UAAU,EAAE,CAAC,EAAE,CAAC,MAAM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