token-usage-dashboard 1.0.12 → 1.0.14
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/build/adapter-node.js +11 -0
- package/build/client/_app/immutable/chunks/B0VWrXPj.js +1 -0
- package/build/client/_app/immutable/chunks/B0VWrXPj.js.br +0 -0
- package/build/client/_app/immutable/chunks/B0VWrXPj.js.gz +0 -0
- package/build/client/_app/immutable/chunks/BaNbYf_w.js +1 -0
- package/build/client/_app/immutable/chunks/BaNbYf_w.js.br +0 -0
- package/build/client/_app/immutable/chunks/BaNbYf_w.js.gz +0 -0
- package/build/client/_app/immutable/chunks/CbiRHTcG.js +1 -0
- package/build/client/_app/immutable/chunks/CbiRHTcG.js.br +0 -0
- package/build/client/_app/immutable/chunks/CbiRHTcG.js.gz +0 -0
- package/build/client/_app/immutable/chunks/DTingiCe.js +3 -0
- package/build/client/_app/immutable/chunks/DTingiCe.js.br +0 -0
- package/build/client/_app/immutable/chunks/DTingiCe.js.gz +0 -0
- package/build/client/_app/immutable/chunks/ssd4Rw-g.js +3 -0
- package/build/client/_app/immutable/chunks/ssd4Rw-g.js.br +0 -0
- package/build/client/_app/immutable/chunks/ssd4Rw-g.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CRLWmGVY.js +2 -0
- package/build/client/_app/immutable/entry/app.CRLWmGVY.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CRLWmGVY.js.gz +0 -0
- package/build/client/_app/immutable/entry/payload.DSmR2FwN.js +1 -0
- package/build/client/_app/immutable/entry/payload.DSmR2FwN.js.br +0 -0
- package/build/client/_app/immutable/entry/payload.DSmR2FwN.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CzGx2BYz.js +2 -0
- package/build/client/_app/immutable/entry/start.CzGx2BYz.js.br +0 -0
- package/build/client/_app/immutable/entry/start.CzGx2BYz.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.BBGTwdwd.js +1 -0
- package/build/client/_app/immutable/nodes/0.BBGTwdwd.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.BBGTwdwd.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.Cy2JV0fN.js +1 -0
- package/build/client/_app/immutable/nodes/1.Cy2JV0fN.js.br +2 -0
- package/build/client/_app/immutable/nodes/1.Cy2JV0fN.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.CRMPKkcX.js +2 -0
- package/build/client/_app/immutable/nodes/2.CRMPKkcX.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.CRMPKkcX.js.gz +0 -0
- package/build/client/_app/version.json +1 -1
- package/build/client/_app/version.json.br +0 -0
- package/build/client/_app/version.json.gz +0 -0
- package/build/handler.js +1 -22
- package/build/index.js +1 -145
- package/build/server/.vite/manifest.json +271 -0
- package/build/server/_app/immutable/assets/_layout.CZ6VMqH1.css +1 -0
- package/build/server/_app/immutable/assets/_page.CZocdpCk.css +1 -0
- package/build/server/adapter-env.js +2 -0
- package/build/server/adapter-index.js +74 -0
- package/build/server/adapter-node-env.js +63 -0
- package/build/server/adapter-node-handler.js +584 -0
- package/build/server/chunks/config.js +10 -0
- package/build/server/chunks/functions.js +30 -0
- package/build/server/chunks/index-server.js +2 -0
- package/build/server/chunks/instance.js +3546 -0
- package/build/server/chunks/internal.js +3323 -0
- package/build/server/chunks/navigation.js +16 -0
- package/build/server/chunks/{chunks/queries.js-BEdRnpMa.js → queries.js} +9 -9
- package/build/server/chunks/{chunks/range.js-CiCoLGqh.js → range.js} +3 -2
- package/build/server/chunks/{chunks/refresh.js-0W7-GwaH.js → refresh.js} +7 -7
- package/build/server/chunks/{chunks/request.js-BF7n7fZo.js → request.js} +5 -5
- package/build/server/chunks/server-errors.js +489 -0
- package/build/server/chunks/server.js +9 -0
- package/build/server/chunks/server2.js +1504 -0
- package/build/server/chunks/shared.js +84 -0
- package/build/server/chunks/uneval.js +537 -0
- package/build/server/entries/endpoints/api/refresh/_server.ts.js +12 -0
- package/build/server/entries/endpoints/api/settings/_server.ts.js +15 -0
- package/build/server/entries/endpoints/api/usage/_server.ts.js +8 -0
- package/build/server/entries/fallbacks/error.svelte.js +47 -0
- package/build/server/entries/hooks.server.js +10 -0
- package/build/server/{chunks/entries/pages/_layout.svelte.js-C9kkUOBf.js → entries/pages/_layout.svelte.js} +4 -2
- package/build/server/entries/pages/_page.server.ts.js +12 -0
- package/build/server/{chunks/entries/pages/_page.svelte.js-BqU3UuBL.js → entries/pages/_page.svelte.js} +64 -27
- package/build/server/env.js +2 -0
- package/build/server/handler.js +2 -0
- package/build/server/index.js +67 -0
- package/build/server/manifest-full.js +58 -0
- package/build/server/manifest.js +58 -0
- package/build/server/nodes/0.js +8 -0
- package/build/server/nodes/1.js +8 -0
- package/build/server/nodes/2.js +10 -0
- package/build/server/remote-entry.js +1564 -0
- package/build/server/server.js +60 -0
- package/package.json +8 -8
- package/build/client/_app/immutable/chunks/Dsm7b1TR.js +0 -3
- package/build/client/_app/immutable/chunks/Dsm7b1TR.js.br +0 -0
- package/build/client/_app/immutable/chunks/Dsm7b1TR.js.gz +0 -0
- package/build/client/_app/immutable/chunks/G5wHZJy8.js +0 -2
- package/build/client/_app/immutable/chunks/G5wHZJy8.js.br +0 -0
- package/build/client/_app/immutable/chunks/G5wHZJy8.js.gz +0 -0
- package/build/client/_app/immutable/chunks/xihTtKlq.js +0 -1
- package/build/client/_app/immutable/chunks/xihTtKlq.js.br +0 -1
- package/build/client/_app/immutable/chunks/xihTtKlq.js.gz +0 -0
- package/build/client/_app/immutable/entry/app.CuA0PQ3L.js +0 -2
- package/build/client/_app/immutable/entry/app.CuA0PQ3L.js.br +0 -0
- package/build/client/_app/immutable/entry/app.CuA0PQ3L.js.gz +0 -0
- package/build/client/_app/immutable/entry/start.CV_ip-Hp.js +0 -1
- package/build/client/_app/immutable/entry/start.CV_ip-Hp.js.br +0 -1
- package/build/client/_app/immutable/entry/start.CV_ip-Hp.js.gz +0 -0
- package/build/client/_app/immutable/nodes/0.PGglbI9f.js +0 -1
- package/build/client/_app/immutable/nodes/0.PGglbI9f.js.br +0 -0
- package/build/client/_app/immutable/nodes/0.PGglbI9f.js.gz +0 -0
- package/build/client/_app/immutable/nodes/1.CTCsoy2V.js +0 -1
- package/build/client/_app/immutable/nodes/1.CTCsoy2V.js.br +0 -0
- package/build/client/_app/immutable/nodes/1.CTCsoy2V.js.gz +0 -0
- package/build/client/_app/immutable/nodes/2.DBV8nX84.js +0 -2
- package/build/client/_app/immutable/nodes/2.DBV8nX84.js.br +0 -0
- package/build/client/_app/immutable/nodes/2.DBV8nX84.js.gz +0 -0
- package/build/env.js +0 -70
- package/build/server/chunks/chunks/client.js-BQauTa0m.js +0 -28
- package/build/server/chunks/chunks/env.js-l0sNRNKZ.js +0 -2
- package/build/server/chunks/chunks/exports.js-Bbyr-JtB.js +0 -349
- package/build/server/chunks/chunks/internal.js-U26BXAw4.js +0 -1202
- package/build/server/chunks/chunks/internal2.js-BlXt2rfE.js +0 -22
- package/build/server/chunks/chunks/server.js-UOanU7fq.js +0 -5527
- package/build/server/chunks/chunks/shared.js-Dg3Ewm8t.js +0 -255
- package/build/server/chunks/chunks/utils.js-DUDFXVFd.js +0 -1049
- package/build/server/chunks/entries/endpoints/api/refresh/_server.ts.js-CcG44vTx.js +0 -21
- package/build/server/chunks/entries/endpoints/api/settings/_server.ts.js-B0LWCQis.js +0 -24
- package/build/server/chunks/entries/endpoints/api/usage/_server.ts.js-CJGTdjik.js +0 -17
- package/build/server/chunks/entries/fallbacks/error.svelte.js-BdtN0SJD.js +0 -68
- package/build/server/chunks/entries/hooks.server.js-_Fcw_IVA.js +0 -16
- package/build/server/chunks/entries/pages/_page.server.ts.js-BBibcAZP.js +0 -17
- package/build/server/chunks/handler-D8S2N5vX.js +0 -1475
- package/build/server/chunks/index.js-BDweEDAt.js +0 -3972
- package/build/server/chunks/manifest.js-CUe1IdHJ.js +0 -63
- package/build/server/chunks/nodes/0.js-7EReDAeT.js +0 -9
- package/build/server/chunks/nodes/1.js-MVTzwi8l.js +0 -9
- package/build/server/chunks/nodes/2.js-C7xGlKUF.js +0 -20
- package/build/shims.js +0 -33
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import "../../chunks/server-errors.js";
|
|
2
|
+
import { p as escape_html, u as getContext } from "../../chunks/server2.js";
|
|
3
|
+
import "../../chunks/index-server.js";
|
|
4
|
+
//#region node_modules/@sveltejs/kit/src/runtime/app/state/server.js
|
|
5
|
+
function context() {
|
|
6
|
+
return getContext("__request__");
|
|
7
|
+
}
|
|
8
|
+
var page = {
|
|
9
|
+
get data() {
|
|
10
|
+
return context().page.data;
|
|
11
|
+
},
|
|
12
|
+
get error() {
|
|
13
|
+
return context().page.error;
|
|
14
|
+
},
|
|
15
|
+
get form() {
|
|
16
|
+
return context().page.form;
|
|
17
|
+
},
|
|
18
|
+
get params() {
|
|
19
|
+
return context().page.params;
|
|
20
|
+
},
|
|
21
|
+
get route() {
|
|
22
|
+
return context().page.route;
|
|
23
|
+
},
|
|
24
|
+
get shallow() {
|
|
25
|
+
return context().page.shallow;
|
|
26
|
+
},
|
|
27
|
+
get state() {
|
|
28
|
+
return context().page.state;
|
|
29
|
+
},
|
|
30
|
+
get status() {
|
|
31
|
+
return context().page.status;
|
|
32
|
+
},
|
|
33
|
+
get url() {
|
|
34
|
+
return context().page.url;
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
//#endregion
|
|
38
|
+
//#region node_modules/@sveltejs/kit/src/runtime/components/error.svelte
|
|
39
|
+
function Error($$renderer, $$props) {
|
|
40
|
+
$$renderer.component(($$renderer) => {
|
|
41
|
+
$$renderer.push(`<h1>${escape_html(page.status)}</h1> <p>${escape_html(page.error?.message)}</p>`);
|
|
42
|
+
});
|
|
43
|
+
}
|
|
44
|
+
//#endregion
|
|
45
|
+
export { Error as default };
|
|
46
|
+
|
|
47
|
+
//# sourceMappingURL=error.svelte.js.map
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { i as settings } from "../chunks/queries.js";
|
|
2
|
+
import { t as boot } from "../chunks/refresh.js";
|
|
3
|
+
//#region src/hooks.server.ts
|
|
4
|
+
boot();
|
|
5
|
+
/** Stamped on <html> so a dark install doesn't flash white before hydration. */
|
|
6
|
+
var handle = ({ event, resolve }) => resolve(event, { transformPageChunk: ({ html }) => html.replace("%aiusage.theme%", settings().theme === "auto" ? "" : settings().theme) });
|
|
7
|
+
//#endregion
|
|
8
|
+
export { handle };
|
|
9
|
+
|
|
10
|
+
//# sourceMappingURL=hooks.server.js.map
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
+
import "../../chunks/server2.js";
|
|
1
2
|
//#region src/routes/+layout.svelte
|
|
2
3
|
function _layout($$renderer, $$props) {
|
|
3
4
|
let { children } = $$props;
|
|
4
5
|
children($$renderer);
|
|
5
6
|
$$renderer.push(`<!---->`);
|
|
6
7
|
}
|
|
7
|
-
|
|
8
|
+
//#endregion
|
|
8
9
|
export { _layout as default };
|
|
9
|
-
|
|
10
|
+
|
|
11
|
+
//# sourceMappingURL=_layout.svelte.js.map
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { i as settings, n as usage, u as config } from "../../chunks/queries.js";
|
|
2
|
+
import { t as filtersFrom } from "../../chunks/request.js";
|
|
3
|
+
//#region src/routes/+page.server.ts
|
|
4
|
+
var load = ({ url }) => ({
|
|
5
|
+
usage: usage(filtersFrom(url)),
|
|
6
|
+
settings: settings(),
|
|
7
|
+
paths: { db: config.dbPath }
|
|
8
|
+
});
|
|
9
|
+
//#endregion
|
|
10
|
+
export { load };
|
|
11
|
+
|
|
12
|
+
//# sourceMappingURL=_page.server.ts.js.map
|
|
@@ -1,11 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import '../../chunks/shared.js-Dg3Ewm8t.js';
|
|
6
|
-
import '../../chunks/exports.js-Bbyr-JtB.js';
|
|
7
|
-
import '../../chunks/utils.js-DUDFXVFd.js';
|
|
8
|
-
|
|
1
|
+
import { i as RATES, n as rangeLabel, s as THEMES, t as RANGES } from "../../chunks/range.js";
|
|
2
|
+
import { a as element, d as attr, f as run, i as derived, l as stringify, n as attr_style, o as ensure_array_like, p as escape_html, r as bind_props, s as head, t as attr_class } from "../../chunks/server2.js";
|
|
3
|
+
import "../../chunks/index-server.js";
|
|
4
|
+
import "../../chunks/navigation.js";
|
|
9
5
|
//#region src/lib/components/Panel.svelte
|
|
10
6
|
function Panel($$renderer, $$props) {
|
|
11
7
|
let { title, hint, span = 12, actions, children } = $$props;
|
|
@@ -40,6 +36,8 @@ function MultiSelect($$renderer, $$props) {
|
|
|
40
36
|
$$renderer.component(($$renderer) => {
|
|
41
37
|
let { label, options, selected = void 0, format = (value) => value } = $$props;
|
|
42
38
|
let open = false;
|
|
39
|
+
let query = "";
|
|
40
|
+
derived(() => options.filter((option) => format(option).toLowerCase().includes(query.toLowerCase())));
|
|
43
41
|
$$renderer.push(`<div class="select svelte-vbwhwd"><button type="button"${attr_class("trigger svelte-vbwhwd", void 0, { "on": selected.length > 0 })}${attr("aria-expanded", open)}>${escape_html(label)} `);
|
|
44
42
|
if (selected.length) $$renderer.push(`<!--[0--><b class="num svelte-vbwhwd">${escape_html(selected.length)}</b>`);
|
|
45
43
|
else $$renderer.push("<!--[-1-->");
|
|
@@ -511,6 +509,11 @@ function Meter($$renderer, $$props) {
|
|
|
511
509
|
let { window: meter } = $$props;
|
|
512
510
|
const stale = derived(() => !!meter.resets_at && meter.resets_at < Date.now());
|
|
513
511
|
const tone = derived(() => stale() ? "text-faint" : meter.used_percent >= 90 ? "bad" : meter.used_percent >= 70 ? "warn" : "good");
|
|
512
|
+
derived(() => [
|
|
513
|
+
meter.detail,
|
|
514
|
+
meter.resets_at ? `resets ${relative(meter.resets_at)}` : "",
|
|
515
|
+
`seen ${relative(meter.seen_at)}`
|
|
516
|
+
].filter(Boolean).join(" - "));
|
|
514
517
|
$$renderer.push(`<div${attr_class("meter svelte-tlhxud", void 0, { "stale": stale() })}><div class="top svelte-tlhxud"><span class="name svelte-tlhxud">${escape_html(meter.label)}</span> <span class="num pct svelte-tlhxud"${attr_style(`color: var(--${tone()})`)}>${escape_html(Math.round(meter.used_percent))}%</span></div> <div class="track svelte-tlhxud" role="meter"${attr("aria-valuenow", Math.round(meter.used_percent))} aria-valuemin="0" aria-valuemax="100"${attr("aria-label", meter.label)}><span${attr_style(`width: ${stringify(Math.min(100, meter.used_percent))}%; background: var(--${tone()})`)} class="svelte-tlhxud"></span></div> <span class="reset svelte-tlhxud">`);
|
|
515
518
|
if (stale()) $$renderer.push(`<!--[0-->window has turned over, last read ${escape_html(relative(meter.seen_at))}`);
|
|
516
519
|
else if (meter.resets_at) $$renderer.push(`<!--[1-->resets ${escape_html(relative(meter.resets_at))}`);
|
|
@@ -705,7 +708,7 @@ var COLUMNS = [
|
|
|
705
708
|
];
|
|
706
709
|
function Sessions($$renderer, $$props) {
|
|
707
710
|
$$renderer.component(($$renderer) => {
|
|
708
|
-
let { rows, hidden} = $$props;
|
|
711
|
+
let { rows, hidden, onpick } = $$props;
|
|
709
712
|
let sortBy = "ran";
|
|
710
713
|
const columns = derived(() => COLUMNS.filter((column) => !hidden.includes(column.id) && (column.id !== "name" || rows.some((row) => row.name))));
|
|
711
714
|
const sorted = derived(() => {
|
|
@@ -947,18 +950,19 @@ function _page($$renderer, $$props) {
|
|
|
947
950
|
projects: projects.join(",")
|
|
948
951
|
}).toString());
|
|
949
952
|
let showing = run(() => query());
|
|
953
|
+
const post = (path, body = {}) => fetch(path, {
|
|
954
|
+
method: "POST",
|
|
955
|
+
headers: { "content-type": "application/json" },
|
|
956
|
+
body: JSON.stringify(body)
|
|
957
|
+
});
|
|
950
958
|
async function save(patch) {
|
|
951
|
-
const response = await
|
|
952
|
-
method: "POST",
|
|
953
|
-
headers: { "content-type": "application/json" },
|
|
954
|
-
body: JSON.stringify(patch)
|
|
955
|
-
});
|
|
959
|
+
const response = await post("/api/settings", patch);
|
|
956
960
|
if (response.ok) saved = await response.json();
|
|
957
961
|
}
|
|
958
962
|
async function rescan() {
|
|
959
963
|
busy = true;
|
|
960
964
|
try {
|
|
961
|
-
const response = await
|
|
965
|
+
const response = await post(`/api/refresh?${showing}`);
|
|
962
966
|
if (response.ok) usage = await response.json();
|
|
963
967
|
} finally {
|
|
964
968
|
busy = false;
|
|
@@ -1157,7 +1161,9 @@ function _page($$renderer, $$props) {
|
|
|
1157
1161
|
metric,
|
|
1158
1162
|
oldest: usage.oldest
|
|
1159
1163
|
});
|
|
1160
|
-
}
|
|
1164
|
+
},
|
|
1165
|
+
$$slots: { default: true }
|
|
1166
|
+
});
|
|
1161
1167
|
$$renderer.push(`<!----> `);
|
|
1162
1168
|
Panel($$renderer, {
|
|
1163
1169
|
title: "Plan windows",
|
|
@@ -1174,7 +1180,9 @@ function _page($$renderer, $$props) {
|
|
|
1174
1180
|
$$renderer.push(`<!--]--></div>`);
|
|
1175
1181
|
} else $$renderer.push(`<!--[-1--><p class="empty svelte-1uha8ag">No plan windows yet. Sign in with Claude Code or run Codex once and they turn up here.</p>`);
|
|
1176
1182
|
$$renderer.push(`<!--]-->`);
|
|
1177
|
-
}
|
|
1183
|
+
},
|
|
1184
|
+
$$slots: { default: true }
|
|
1185
|
+
});
|
|
1178
1186
|
$$renderer.push(`<!----> `);
|
|
1179
1187
|
{
|
|
1180
1188
|
function actions($$renderer) {
|
|
@@ -1208,7 +1216,12 @@ function _page($$renderer, $$props) {
|
|
|
1208
1216
|
keys: trendKeys(),
|
|
1209
1217
|
metric
|
|
1210
1218
|
});
|
|
1211
|
-
}
|
|
1219
|
+
},
|
|
1220
|
+
$$slots: {
|
|
1221
|
+
actions: true,
|
|
1222
|
+
default: true
|
|
1223
|
+
}
|
|
1224
|
+
});
|
|
1212
1225
|
}
|
|
1213
1226
|
$$renderer.push(`<!----> `);
|
|
1214
1227
|
{
|
|
@@ -1274,7 +1287,12 @@ function _page($$renderer, $$props) {
|
|
|
1274
1287
|
});
|
|
1275
1288
|
}
|
|
1276
1289
|
$$renderer.push(`<!--]-->`);
|
|
1277
|
-
}
|
|
1290
|
+
},
|
|
1291
|
+
$$slots: {
|
|
1292
|
+
actions: true,
|
|
1293
|
+
default: true
|
|
1294
|
+
}
|
|
1295
|
+
});
|
|
1278
1296
|
}
|
|
1279
1297
|
$$renderer.push(`<!----> `);
|
|
1280
1298
|
{
|
|
@@ -1309,7 +1327,12 @@ function _page($$renderer, $$props) {
|
|
|
1309
1327
|
active: projects,
|
|
1310
1328
|
onpick: (id) => projects = toggle(projects, id)
|
|
1311
1329
|
});
|
|
1312
|
-
}
|
|
1330
|
+
},
|
|
1331
|
+
$$slots: {
|
|
1332
|
+
actions: true,
|
|
1333
|
+
default: true
|
|
1334
|
+
}
|
|
1335
|
+
});
|
|
1313
1336
|
}
|
|
1314
1337
|
$$renderer.push(`<!----> `);
|
|
1315
1338
|
Panel($$renderer, {
|
|
@@ -1319,7 +1342,9 @@ function _page($$renderer, $$props) {
|
|
|
1319
1342
|
children: ($$renderer) => {
|
|
1320
1343
|
Split($$renderer, { parts: mix() });
|
|
1321
1344
|
$$renderer.push(`<!----> <p class="aside svelte-1uha8ag">${escape_html(cacheShare().toFixed(0))}% of everything counted was served from cache.</p>`);
|
|
1322
|
-
}
|
|
1345
|
+
},
|
|
1346
|
+
$$slots: { default: true }
|
|
1347
|
+
});
|
|
1323
1348
|
$$renderer.push(`<!----> `);
|
|
1324
1349
|
Panel($$renderer, {
|
|
1325
1350
|
title: "When you work",
|
|
@@ -1327,7 +1352,9 @@ function _page($$renderer, $$props) {
|
|
|
1327
1352
|
hint: "Local time, over the range above",
|
|
1328
1353
|
children: ($$renderer) => {
|
|
1329
1354
|
Clock($$renderer, { points: usage.clock });
|
|
1330
|
-
}
|
|
1355
|
+
},
|
|
1356
|
+
$$slots: { default: true }
|
|
1357
|
+
});
|
|
1331
1358
|
$$renderer.push(`<!----> `);
|
|
1332
1359
|
Panel($$renderer, {
|
|
1333
1360
|
title: "Tools",
|
|
@@ -1339,7 +1366,9 @@ function _page($$renderer, $$props) {
|
|
|
1339
1366
|
active: tools,
|
|
1340
1367
|
onpick: (id) => tools = toggle(tools, id)
|
|
1341
1368
|
});
|
|
1342
|
-
}
|
|
1369
|
+
},
|
|
1370
|
+
$$slots: { default: true }
|
|
1371
|
+
});
|
|
1343
1372
|
$$renderer.push(`<!----> `);
|
|
1344
1373
|
{
|
|
1345
1374
|
function actions($$renderer) {
|
|
@@ -1363,8 +1392,15 @@ function _page($$renderer, $$props) {
|
|
|
1363
1392
|
children: ($$renderer) => {
|
|
1364
1393
|
Sessions($$renderer, {
|
|
1365
1394
|
rows: usage.sessions,
|
|
1366
|
-
hidden: hiddenColumns
|
|
1367
|
-
|
|
1395
|
+
hidden: hiddenColumns,
|
|
1396
|
+
onpick: (project) => projects = toggle(projects, project)
|
|
1397
|
+
});
|
|
1398
|
+
},
|
|
1399
|
+
$$slots: {
|
|
1400
|
+
actions: true,
|
|
1401
|
+
default: true
|
|
1402
|
+
}
|
|
1403
|
+
});
|
|
1368
1404
|
}
|
|
1369
1405
|
$$renderer.push(`<!----></div> <footer class="svelte-1uha8ag"><span>Reads the transcripts already on this machine. Nothing is sent anywhere.</span> <span>`);
|
|
1370
1406
|
if (usage.oldest) $$renderer.push(`<!--[0-->Records from ${escape_html(new Date(usage.oldest).toLocaleDateString("en-GB"))} ·`);
|
|
@@ -1397,6 +1433,7 @@ function _page($$renderer, $$props) {
|
|
|
1397
1433
|
$$renderer.subsume($$inner_renderer);
|
|
1398
1434
|
});
|
|
1399
1435
|
}
|
|
1400
|
-
|
|
1436
|
+
//#endregion
|
|
1401
1437
|
export { _page as default };
|
|
1402
|
-
|
|
1438
|
+
|
|
1439
|
+
//# sourceMappingURL=_page.svelte.js.map
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
import { n as set_building, r as set_prerendering } from "./chunks/server.js";
|
|
2
|
+
import { Xt as set_assets, Zt as enable_verbose_errors, l as set_fix_stack_trace, o as set_manifest, s as set_read_implementation, t as format_response } from "./chunks/internal.js";
|
|
3
|
+
//#region node_modules/@sveltejs/kit/src/runtime/server/index.js
|
|
4
|
+
/**
|
|
5
|
+
* Sets the module-level state the runtime reads, then loads the runtime. Everything that
|
|
6
|
+
* evaluates user code, the env config included, sits behind this import
|
|
7
|
+
* @param {import('types').ServerConfigureOptions} opts
|
|
8
|
+
* @returns {Promise<import('types').ServerInstance>}
|
|
9
|
+
*/
|
|
10
|
+
async function configure({ building, prerendering, manifest, read, assets, fix_stack_trace, env }) {
|
|
11
|
+
if (building) {
|
|
12
|
+
set_building();
|
|
13
|
+
enable_verbose_errors();
|
|
14
|
+
}
|
|
15
|
+
if (prerendering) set_prerendering();
|
|
16
|
+
if (manifest) set_manifest(manifest);
|
|
17
|
+
if (read) set_read_implementation(read);
|
|
18
|
+
if (assets !== void 0) set_assets(assets);
|
|
19
|
+
if (fix_stack_trace) set_fix_stack_trace(fix_stack_trace);
|
|
20
|
+
const instance = await import("./chunks/instance.js");
|
|
21
|
+
if (env) instance.set_env(env);
|
|
22
|
+
return instance;
|
|
23
|
+
}
|
|
24
|
+
/**
|
|
25
|
+
* The `server` object adapters receive from `builder.generateServerInstance`
|
|
26
|
+
* @param {import('types').SSRManifest} manifest
|
|
27
|
+
* @returns {import('@sveltejs/kit').Server}
|
|
28
|
+
*/
|
|
29
|
+
function create_server(manifest) {
|
|
30
|
+
/** @type {import('types').ServerInstance} */
|
|
31
|
+
let server;
|
|
32
|
+
return {
|
|
33
|
+
init: async ({ env, read }) => {
|
|
34
|
+
server = await configure({
|
|
35
|
+
manifest,
|
|
36
|
+
env,
|
|
37
|
+
read
|
|
38
|
+
});
|
|
39
|
+
await server.init();
|
|
40
|
+
},
|
|
41
|
+
/** @type {import('types').ServerInstance['respond']} */
|
|
42
|
+
respond: (request, options) => server.respond(request, options)
|
|
43
|
+
};
|
|
44
|
+
}
|
|
45
|
+
/** @deprecated use the `server` written by `builder.generateServerInstance`, or `configure` */
|
|
46
|
+
var Server = class {
|
|
47
|
+
#server;
|
|
48
|
+
/** @param {import('types').SSRManifest} manifest */
|
|
49
|
+
constructor(manifest) {
|
|
50
|
+
this.#server = create_server(manifest);
|
|
51
|
+
}
|
|
52
|
+
/** @param {import('@sveltejs/kit').ServerInitOptions} opts */
|
|
53
|
+
init(opts) {
|
|
54
|
+
return this.#server.init(opts);
|
|
55
|
+
}
|
|
56
|
+
/**
|
|
57
|
+
* @param {Request} request
|
|
58
|
+
* @param {import('types').InternalRequestOptions} options
|
|
59
|
+
*/
|
|
60
|
+
respond(request, options) {
|
|
61
|
+
return this.#server.respond(request, options);
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
//#endregion
|
|
65
|
+
export { Server, configure, create_server, format_response };
|
|
66
|
+
|
|
67
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export const manifest = (() => {
|
|
2
|
+
function __memo(fn) {
|
|
3
|
+
let value;
|
|
4
|
+
return () => value ??= (value = fn());
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
return {
|
|
8
|
+
app_dir: "_app",
|
|
9
|
+
app_path: "_app",
|
|
10
|
+
assets: new Set(["favicon.svg","robots.txt"]),
|
|
11
|
+
mime_types: {".svg":"image/svg+xml",".txt":"text/plain"},
|
|
12
|
+
client: {start:"_app/immutable/entry/start.CzGx2BYz.js",app:"_app/immutable/entry/app.CRLWmGVY.js",imports:["_app/immutable/entry/start.CzGx2BYz.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/BaNbYf_w.js","_app/immutable/chunks/CbiRHTcG.js","_app/immutable/chunks/ssd4Rw-g.js","_app/immutable/chunks/DTingiCe.js","_app/immutable/chunks/B0VWrXPj.js","_app/immutable/entry/app.CRLWmGVY.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
13
|
+
|
|
14
|
+
nodes: [
|
|
15
|
+
__memo(() => import('./nodes/0.js')),
|
|
16
|
+
__memo(() => import('./nodes/1.js')),
|
|
17
|
+
__memo(() => import('./nodes/2.js'))
|
|
18
|
+
],
|
|
19
|
+
remotes: {
|
|
20
|
+
|
|
21
|
+
},
|
|
22
|
+
routes: [
|
|
23
|
+
{
|
|
24
|
+
id: "/",
|
|
25
|
+
pattern: /^\/$/,
|
|
26
|
+
params: [],
|
|
27
|
+
page: { layouts: [0,], errors: [1,], leaf: 2 },
|
|
28
|
+
endpoint: null
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: "/api/refresh",
|
|
32
|
+
pattern: /^\/api\/refresh\/?$/,
|
|
33
|
+
params: [],
|
|
34
|
+
page: null,
|
|
35
|
+
endpoint: __memo(() => import('./entries/endpoints/api/refresh/_server.ts.js'))
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: "/api/settings",
|
|
39
|
+
pattern: /^\/api\/settings\/?$/,
|
|
40
|
+
params: [],
|
|
41
|
+
page: null,
|
|
42
|
+
endpoint: __memo(() => import('./entries/endpoints/api/settings/_server.ts.js'))
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: "/api/usage",
|
|
46
|
+
pattern: /^\/api\/usage\/?$/,
|
|
47
|
+
params: [],
|
|
48
|
+
page: null,
|
|
49
|
+
endpoint: __memo(() => import('./entries/endpoints/api/usage/_server.ts.js'))
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
prerendered_routes: new Set([]),
|
|
53
|
+
matchers: async () => {
|
|
54
|
+
return {};
|
|
55
|
+
},
|
|
56
|
+
server_assets: {}
|
|
57
|
+
}
|
|
58
|
+
})();
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
export const manifest = (() => {
|
|
2
|
+
function __memo(fn) {
|
|
3
|
+
let value;
|
|
4
|
+
return () => value ??= (value = fn());
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
return {
|
|
8
|
+
app_dir: "_app",
|
|
9
|
+
app_path: "_app",
|
|
10
|
+
assets: new Set(["favicon.svg","robots.txt"]),
|
|
11
|
+
mime_types: {".svg":"image/svg+xml",".txt":"text/plain"},
|
|
12
|
+
client: {start:"_app/immutable/entry/start.CzGx2BYz.js",app:"_app/immutable/entry/app.CRLWmGVY.js",imports:["_app/immutable/entry/start.CzGx2BYz.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/BaNbYf_w.js","_app/immutable/chunks/CbiRHTcG.js","_app/immutable/chunks/ssd4Rw-g.js","_app/immutable/chunks/DTingiCe.js","_app/immutable/chunks/B0VWrXPj.js","_app/immutable/entry/app.CRLWmGVY.js"],stylesheets:[],fonts:[],uses_env_dynamic_public:false},
|
|
13
|
+
|
|
14
|
+
nodes: [
|
|
15
|
+
__memo(() => import('./nodes/0.js')),
|
|
16
|
+
__memo(() => import('./nodes/1.js')),
|
|
17
|
+
__memo(() => import('./nodes/2.js'))
|
|
18
|
+
],
|
|
19
|
+
remotes: {
|
|
20
|
+
|
|
21
|
+
},
|
|
22
|
+
routes: [
|
|
23
|
+
{
|
|
24
|
+
id: "/",
|
|
25
|
+
pattern: /^\/$/,
|
|
26
|
+
params: [],
|
|
27
|
+
page: { layouts: [0,], errors: [1,], leaf: 2 },
|
|
28
|
+
endpoint: null
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
id: "/api/refresh",
|
|
32
|
+
pattern: /^\/api\/refresh\/?$/,
|
|
33
|
+
params: [],
|
|
34
|
+
page: null,
|
|
35
|
+
endpoint: __memo(() => import('./entries/endpoints/api/refresh/_server.ts.js'))
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
id: "/api/settings",
|
|
39
|
+
pattern: /^\/api\/settings\/?$/,
|
|
40
|
+
params: [],
|
|
41
|
+
page: null,
|
|
42
|
+
endpoint: __memo(() => import('./entries/endpoints/api/settings/_server.ts.js'))
|
|
43
|
+
},
|
|
44
|
+
{
|
|
45
|
+
id: "/api/usage",
|
|
46
|
+
pattern: /^\/api\/usage\/?$/,
|
|
47
|
+
params: [],
|
|
48
|
+
page: null,
|
|
49
|
+
endpoint: __memo(() => import('./entries/endpoints/api/usage/_server.ts.js'))
|
|
50
|
+
}
|
|
51
|
+
],
|
|
52
|
+
prerendered_routes: new Set([]),
|
|
53
|
+
matchers: async () => {
|
|
54
|
+
return {};
|
|
55
|
+
},
|
|
56
|
+
server_assets: {}
|
|
57
|
+
}
|
|
58
|
+
})();
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export const index = 0;
|
|
4
|
+
let component_cache;
|
|
5
|
+
export const component = async () => component_cache ??= (await import('../entries/pages/_layout.svelte.js')).default;
|
|
6
|
+
export const imports = ["_app/immutable/nodes/0.BBGTwdwd.js","_app/immutable/chunks/DTingiCe.js"];
|
|
7
|
+
export const stylesheets = ["_app/immutable/assets/0.CZ6VMqH1.css"];
|
|
8
|
+
export const fonts = [];
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
|
|
2
|
+
|
|
3
|
+
export const index = 1;
|
|
4
|
+
let component_cache;
|
|
5
|
+
export const component = async () => component_cache ??= (await import('../entries/fallbacks/error.svelte.js')).default;
|
|
6
|
+
export const imports = ["_app/immutable/nodes/1.Cy2JV0fN.js","_app/immutable/chunks/DTingiCe.js","_app/immutable/chunks/B0VWrXPj.js","_app/immutable/entry/payload.DSmR2FwN.js"];
|
|
7
|
+
export const stylesheets = [];
|
|
8
|
+
export const fonts = [];
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import * as server from '../entries/pages/_page.server.ts.js';
|
|
2
|
+
|
|
3
|
+
export const index = 2;
|
|
4
|
+
let component_cache;
|
|
5
|
+
export const component = async () => component_cache ??= (await import('../entries/pages/_page.svelte.js')).default;
|
|
6
|
+
export { server };
|
|
7
|
+
export const server_id = "src/routes/+page.server.ts";
|
|
8
|
+
export const imports = ["_app/immutable/nodes/2.CRMPKkcX.js","_app/immutable/chunks/DTingiCe.js","_app/immutable/chunks/ssd4Rw-g.js","_app/immutable/entry/payload.DSmR2FwN.js","_app/immutable/chunks/B0VWrXPj.js"];
|
|
9
|
+
export const stylesheets = ["_app/immutable/assets/2.CZocdpCk.css"];
|
|
10
|
+
export const fonts = [];
|