@stacksjs/ts-cloud 0.9.1 → 0.9.3
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/dist/aws/index.js +10 -2
- package/dist/bin/chunk-09nwf2gy.js +34 -0
- package/dist/bin/chunk-14cwr6eh.js +70 -0
- package/dist/bin/chunk-271gk1n2.js +6 -0
- package/dist/bin/chunk-38pq971s.js +2 -0
- package/dist/bin/chunk-3gykfyq4.js +37 -0
- package/dist/bin/chunk-3r4fb59r.js +3 -0
- package/dist/bin/chunk-41x17hw1.js +1 -0
- package/dist/bin/chunk-4vrqm9h0.js +2 -0
- package/dist/bin/chunk-57y1zxbf.js +3 -0
- package/dist/bin/chunk-598yf4bs.js +1 -0
- package/dist/bin/chunk-8v7ddyvf.js +1 -0
- package/dist/bin/chunk-92mea34a.js +1 -0
- package/dist/bin/chunk-9pvsff8g.js +1 -0
- package/dist/bin/chunk-9v39615t.js +1 -0
- package/dist/bin/chunk-avm7tnwe.js +1 -0
- package/dist/bin/chunk-ax9mr6wm.js +44 -0
- package/dist/bin/chunk-axhnkn5g.js +2 -0
- package/dist/bin/chunk-b5gd39s8.js +512 -0
- package/dist/bin/chunk-b9qbp8j1.js +1 -0
- package/dist/bin/chunk-bz828v8q.js +3 -0
- package/dist/bin/chunk-c1vcdgvr.js +1 -0
- package/dist/bin/chunk-ctd2vg9w.js +2 -0
- package/dist/bin/chunk-dbgffky8.js +1 -0
- package/dist/bin/chunk-dwr30vbv.js +1 -0
- package/dist/bin/chunk-e3xrwh9z.js +1 -0
- package/dist/bin/chunk-fhc6ntvd.js +2 -0
- package/dist/bin/chunk-fpm59y25.js +6 -0
- package/dist/bin/chunk-fvbxvq6b.js +1 -0
- package/dist/bin/chunk-fy8j3y8p.js +92 -0
- package/dist/bin/chunk-fz21b57w.js +1 -0
- package/dist/bin/chunk-gavvf0pg.js +141 -0
- package/dist/bin/chunk-ggn7ax8p.js +4 -0
- package/dist/bin/chunk-gpe2prkm.js +1 -0
- package/dist/bin/chunk-gqf6jsmy.js +1 -0
- package/dist/bin/chunk-h5pa5men.js +2 -0
- package/dist/bin/chunk-hm08xdxf.js +2 -0
- package/dist/bin/chunk-hzgz13nf.js +1 -0
- package/dist/bin/chunk-hzqw8xm5.js +111 -0
- package/dist/bin/chunk-j703btc5.js +50 -0
- package/dist/bin/chunk-jpjamjey.js +6935 -0
- package/dist/bin/chunk-m2zwtapr.js +1 -0
- package/dist/bin/chunk-m669wtgr.js +1 -0
- package/dist/bin/chunk-mh0kdzqp.js +2 -0
- package/dist/bin/chunk-mr0atd2s.js +2 -0
- package/dist/bin/chunk-ngcyftm2.js +1 -0
- package/dist/bin/chunk-p66ptpmr.js +2 -0
- package/dist/bin/chunk-p8q9bq9g.js +1 -0
- package/dist/bin/chunk-r3kv0vm9.js +6 -0
- package/dist/bin/chunk-r9hjwcj9.js +6 -0
- package/dist/bin/chunk-rtczra13.js +1 -0
- package/dist/bin/chunk-ry030a6b.js +1507 -0
- package/dist/bin/chunk-rytk89az.js +60 -0
- package/dist/bin/chunk-sgyffpgm.js +581 -0
- package/dist/bin/chunk-vek8a0w6.js +1 -0
- package/dist/bin/chunk-waayf9ay.js +2 -0
- package/dist/bin/chunk-ynjvbphf.js +8 -0
- package/dist/bin/chunk-yv9sth30.js +1 -0
- package/dist/bin/cli.js +417 -10597
- package/dist/bin/dashboard-server.js +1 -6998
- package/dist/{chunk-hg7rhrgd.js → chunk-1c8dbv57.js} +5 -1
- package/dist/{chunk-5nr95wpj.js → chunk-728jvrr0.js} +3 -3
- package/dist/{chunk-ws47smxr.js → chunk-k4px0bnv.js} +2 -2
- package/dist/{chunk-hygwq9y2.js → chunk-q0st3se8.js} +2 -2
- package/dist/{chunk-atbgd8wz.js → chunk-qr803fye.js} +112 -1
- package/dist/deploy/attach-credentials.d.ts +57 -0
- package/dist/deploy/index.js +4 -4
- package/dist/deploy/site-ports.d.ts +151 -0
- package/dist/deploy/site-target.d.ts +24 -1
- package/dist/dns/declared-records.d.ts +87 -0
- package/dist/dns/declared-records.test.d.ts +1 -0
- package/dist/dns/index.d.ts +2 -0
- package/dist/dns/index.js +10 -2
- package/dist/drivers/index.js +1 -1
- package/dist/index.d.ts +2 -1
- package/dist/index.js +13 -5
- package/dist/ui/404.html +16 -548
- package/dist/ui/_stx/chunk.5ddb5087.js +90 -0
- package/dist/ui/_stx/chunk.9fd39d5b.js +86 -0
- package/dist/ui/_stx/chunk.d5301f79.js +119 -0
- package/dist/ui/_stx/crosswind.222ed683.css +1 -0
- package/dist/ui/_stx/crosswind.616c25f3.css +1 -0
- package/dist/ui/_stx/crosswind.80baa894.css +320 -0
- package/dist/ui/_stx/crosswind.906ee17c.css +1 -0
- package/dist/ui/_stx/crosswind.996ed49e.css +1 -0
- package/dist/ui/_stx/crosswind.b7a99a5c.css +1 -0
- package/dist/ui/_stx/router.fa5bc4dc.js +4 -0
- package/dist/ui/_stx/runtime.c696d17a.js +1 -0
- package/dist/ui/_stx/style.448ab192.css +1 -0
- package/dist/ui/accept-invitation.html +2 -1133
- package/dist/ui/access-denied.html +7 -1130
- package/dist/ui/account/automation.html +12 -1134
- package/dist/ui/account/security.html +13 -1136
- package/dist/ui/applications/compose.html +12 -1134
- package/dist/ui/applications/new.html +13 -1137
- package/dist/ui/data/backups.html +91 -1136
- package/dist/ui/data/services.html +89 -1136
- package/dist/ui/data/volumes.html +61 -1136
- package/dist/ui/index.html +60 -1136
- package/dist/ui/infrastructure/topology.html +128 -1135
- package/dist/ui/integrations.html +13 -1138
- package/dist/ui/operations/alerts.html +59 -1136
- package/dist/ui/operations/configuration.html +13 -1135
- package/dist/ui/operations/jobs.html +87 -1136
- package/dist/ui/operations/maintenance.html +12 -1134
- package/dist/ui/operations/observability.html +93 -1136
- package/dist/ui/operations/previews.html +12 -1134
- package/dist/ui/operations/queue.html +12 -1134
- package/dist/ui/operations/regions.html +12 -1134
- package/dist/ui/operations/releases.html +12 -1134
- package/dist/ui/operations/spend.html +65 -1136
- package/dist/ui/operations/workloads.html +115 -1136
- package/dist/ui/robots.txt +2 -0
- package/dist/ui/security.html +24 -1136
- package/dist/ui/server/actions.html +67 -1138
- package/dist/ui/server/activity.html +7 -1130
- package/dist/ui/server/capacity.html +12 -1134
- package/dist/ui/server/database.html +166 -1135
- package/dist/ui/server/deployments.html +60 -1136
- package/dist/ui/server/diagnostics.html +7 -1130
- package/dist/ui/server/firewall.html +286 -1212
- package/dist/ui/server/fleet.html +45 -1136
- package/dist/ui/server/logs.html +34 -1135
- package/dist/ui/server/metrics.html +124 -1140
- package/dist/ui/server/security.html +7 -1130
- package/dist/ui/server/services.html +46 -1133
- package/dist/ui/server/sites.html +287 -1137
- package/dist/ui/server/ssh-keys.html +62 -1135
- package/dist/ui/server/team.html +155 -1136
- package/dist/ui/server/terminal.html +97 -1183
- package/dist/ui/serverless/alarms.html +62 -1135
- package/dist/ui/serverless/assets.html +47 -1132
- package/dist/ui/serverless/cost.html +7 -1130
- package/dist/ui/serverless/data.html +46 -1135
- package/dist/ui/serverless/deployments.html +47 -1132
- package/dist/ui/serverless/firewall.html +7 -1130
- package/dist/ui/serverless/functions.html +50 -1136
- package/dist/ui/serverless/logs.html +34 -1135
- package/dist/ui/serverless/metrics.html +7 -1130
- package/dist/ui/serverless/queues.html +58 -1135
- package/dist/ui/serverless/secrets.html +62 -1136
- package/dist/ui/serverless/traces.html +12 -1134
- package/dist/ui/serverless.html +64 -1137
- package/dist/ui-src/pages/server/firewall.stx +14 -14
- package/package.json +3 -3
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
;(function(){
|
|
2
|
+
window.__composables = window.__composables || {};
|
|
3
|
+
var __c = window.__composables;
|
|
4
|
+
var __stx = window.stx || {};
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class DashboardRequestError extends Error {
|
|
8
|
+
status;
|
|
9
|
+
payload;
|
|
10
|
+
constructor(message, status, payload) {
|
|
11
|
+
super(message);
|
|
12
|
+
this.status = status;
|
|
13
|
+
this.payload = payload;
|
|
14
|
+
this.name = "DashboardRequestError";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
async function requestJson(url, init) {
|
|
18
|
+
const response = await fetch(url, init);
|
|
19
|
+
const text = await response.text();
|
|
20
|
+
let payload = {};
|
|
21
|
+
if (text) {
|
|
22
|
+
try {
|
|
23
|
+
payload = JSON.parse(text);
|
|
24
|
+
} catch {
|
|
25
|
+
payload = {
|
|
26
|
+
error: text.replace(/<[^>]+>/g, " ").replace(/\s+/g, " ").trim().slice(0, 500)
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
if (!response.ok || payload.ok === false) {
|
|
31
|
+
const message = typeof payload.error === "string" && payload.error.trim() ? payload.error : `Request failed with HTTP ${response.status}.`;
|
|
32
|
+
throw new DashboardRequestError(message, response.status, payload);
|
|
33
|
+
}
|
|
34
|
+
return payload;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
function servedWithoutApi(error) {
|
|
39
|
+
const status = error?.status;
|
|
40
|
+
return status === 404 || status === 405 || status === 501;
|
|
41
|
+
}
|
|
42
|
+
function usePolling(task, intervalMs, options = {}) {
|
|
43
|
+
const pollingState = state("loading");
|
|
44
|
+
const pollingError = state("");
|
|
45
|
+
const lastUpdatedAt = state(null);
|
|
46
|
+
const isSnapshot = state(false);
|
|
47
|
+
const pollingLabel = derived(() => pollingState());
|
|
48
|
+
const interval = useInterval(intervalMs);
|
|
49
|
+
async function refresh() {
|
|
50
|
+
try {
|
|
51
|
+
await task();
|
|
52
|
+
pollingState.set("live");
|
|
53
|
+
pollingError.set("");
|
|
54
|
+
isSnapshot.set(false);
|
|
55
|
+
lastUpdatedAt.set(new Date);
|
|
56
|
+
} catch (error) {
|
|
57
|
+
if (options.snapshotWhenApiMissing && servedWithoutApi(error)) {
|
|
58
|
+
isSnapshot.set(true);
|
|
59
|
+
pollingState.set("snapshot");
|
|
60
|
+
pollingError.set("");
|
|
61
|
+
interval.pause();
|
|
62
|
+
return;
|
|
63
|
+
}
|
|
64
|
+
pollingState.set("stale");
|
|
65
|
+
pollingError.set(error instanceof Error ? error.message : String(error));
|
|
66
|
+
}
|
|
67
|
+
}
|
|
68
|
+
interval.subscribe(refresh);
|
|
69
|
+
onMount(() => {
|
|
70
|
+
refresh();
|
|
71
|
+
});
|
|
72
|
+
return { pollingState, pollingError, pollingLabel, lastUpdatedAt, isSnapshot, refresh };
|
|
73
|
+
}
|
|
74
|
+
try { __c["DashboardRequestError"] = DashboardRequestError; } catch (e) {}
|
|
75
|
+
try { __c["requestJson"] = requestJson; } catch (e) {}
|
|
76
|
+
try { __c["usePolling"] = usePolling; } catch (e) {}
|
|
77
|
+
var __names = ["DashboardRequestError","requestJson","usePolling"];
|
|
78
|
+
for (var __i = 0; __i < __names.length; __i++) {
|
|
79
|
+
var __n = __names[__i];
|
|
80
|
+
if (!(__n in __c)) continue;
|
|
81
|
+
var __takenByBuiltin = !!(window.stx && __n in window.stx);
|
|
82
|
+
if (__takenByBuiltin || __n in window) {
|
|
83
|
+
console.warn('[stx] composable "' + __n + '" is not available as a bare identifier: '
|
|
84
|
+
+ (__takenByBuiltin ? 'a built-in of that name already exists' : 'window already defines that property')
|
|
85
|
+
+ '. Rename it, or use: import { ' + __n + ' } from "@composables"');
|
|
86
|
+
continue;
|
|
87
|
+
}
|
|
88
|
+
window[__n] = __c[__n];
|
|
89
|
+
}
|
|
90
|
+
})();
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
;(function(){
|
|
2
|
+
window.__composables = window.__composables || {};
|
|
3
|
+
var __c = window.__composables;
|
|
4
|
+
var __stx = window.stx || {};
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
const DANGEROUS_OPERATION = /(?:^|:)(?:delete|disable|destroy|purge|remove|restore|rollback|stop)(?::|$)/i;
|
|
8
|
+
function operationIsDangerous(operation) {
|
|
9
|
+
return operation.danger ?? DANGEROUS_OPERATION.test(operation.operation);
|
|
10
|
+
}
|
|
11
|
+
function useOpConfirm(execute) {
|
|
12
|
+
const opOutput = state("");
|
|
13
|
+
const opShown = state(false);
|
|
14
|
+
const pending = state(null);
|
|
15
|
+
const typed = state("");
|
|
16
|
+
const busy = state(false);
|
|
17
|
+
const confirmInput = useRef("opConfirmInput");
|
|
18
|
+
const confirmTok = derived(() => pending()?.confirm ?? "");
|
|
19
|
+
const confirmVerb = derived(() => pending()?.verb ?? "");
|
|
20
|
+
const confirmDanger = derived(() => pending() ? operationIsDangerous(pending()) : false);
|
|
21
|
+
const confirmLabel = derived(() => pending()?.label ?? (confirmDanger() ? "Confirm operation" : "Run operation"));
|
|
22
|
+
const canRun = derived(() => !!pending() && !busy() && typed() === pending().confirm);
|
|
23
|
+
function askOp(operation, confirm, verb, to, apiConfirm, options = {}) {
|
|
24
|
+
pending.set({ ...options, operation, confirm, verb, to: to ?? null, apiConfirm: apiConfirm || confirm });
|
|
25
|
+
typed.set("");
|
|
26
|
+
confirmInput.current?.focus();
|
|
27
|
+
confirmInput.current?.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
28
|
+
}
|
|
29
|
+
function cancelOp() {
|
|
30
|
+
if (busy())
|
|
31
|
+
return;
|
|
32
|
+
pending.set(null);
|
|
33
|
+
typed.set("");
|
|
34
|
+
}
|
|
35
|
+
async function runOp() {
|
|
36
|
+
const operation = pending();
|
|
37
|
+
if (!operation || busy() || typed() !== operation.confirm)
|
|
38
|
+
return;
|
|
39
|
+
busy.set(true);
|
|
40
|
+
opShown.set(true);
|
|
41
|
+
opOutput.set(`Running ${operation.operation}...`);
|
|
42
|
+
try {
|
|
43
|
+
const result = await execute(operation);
|
|
44
|
+
opOutput.set(typeof result === "string" ? result : result.output);
|
|
45
|
+
pending.set(null);
|
|
46
|
+
typed.set("");
|
|
47
|
+
} catch (error) {
|
|
48
|
+
opOutput.set(`FAILED ${operation.operation}
|
|
49
|
+
|
|
50
|
+
${error instanceof Error ? error.message : String(error)}`);
|
|
51
|
+
} finally {
|
|
52
|
+
busy.set(false);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
opOutput,
|
|
57
|
+
opShown,
|
|
58
|
+
pending,
|
|
59
|
+
typed,
|
|
60
|
+
busy,
|
|
61
|
+
confirmTok,
|
|
62
|
+
confirmVerb,
|
|
63
|
+
confirmDanger,
|
|
64
|
+
confirmLabel,
|
|
65
|
+
canRun,
|
|
66
|
+
askOp,
|
|
67
|
+
cancelOp,
|
|
68
|
+
runOp
|
|
69
|
+
};
|
|
70
|
+
}
|
|
71
|
+
try { __c["operationIsDangerous"] = operationIsDangerous; } catch (e) {}
|
|
72
|
+
try { __c["useOpConfirm"] = useOpConfirm; } catch (e) {}
|
|
73
|
+
var __names = ["operationIsDangerous","useOpConfirm"];
|
|
74
|
+
for (var __i = 0; __i < __names.length; __i++) {
|
|
75
|
+
var __n = __names[__i];
|
|
76
|
+
if (!(__n in __c)) continue;
|
|
77
|
+
var __takenByBuiltin = !!(window.stx && __n in window.stx);
|
|
78
|
+
if (__takenByBuiltin || __n in window) {
|
|
79
|
+
console.warn('[stx] composable "' + __n + '" is not available as a bare identifier: '
|
|
80
|
+
+ (__takenByBuiltin ? 'a built-in of that name already exists' : 'window already defines that property')
|
|
81
|
+
+ '. Rename it, or use: import { ' + __n + ' } from "@composables"');
|
|
82
|
+
continue;
|
|
83
|
+
}
|
|
84
|
+
window[__n] = __c[__n];
|
|
85
|
+
}
|
|
86
|
+
})();
|
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
;(function(){
|
|
2
|
+
window.__composables = window.__composables || {};
|
|
3
|
+
var __c = window.__composables;
|
|
4
|
+
var __stx = window.stx || {};
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class DashboardRequestError extends Error {
|
|
8
|
+
status;
|
|
9
|
+
payload;
|
|
10
|
+
constructor(message, status, payload) {
|
|
11
|
+
super(message);
|
|
12
|
+
this.status = status;
|
|
13
|
+
this.payload = payload;
|
|
14
|
+
this.name = "DashboardRequestError";
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
async function requestJson(url, init) {
|
|
18
|
+
const response = await fetch(url, init);
|
|
19
|
+
const text = await response.text();
|
|
20
|
+
let payload = {};
|
|
21
|
+
if (text) {
|
|
22
|
+
try {
|
|
23
|
+
payload = JSON.parse(text);
|
|
24
|
+
} catch {
|
|
25
|
+
payload = {
|
|
26
|
+
error: text.replace(/<[^>]+>/g, " ").replace(/\s+/g, " ").trim().slice(0, 500)
|
|
27
|
+
};
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
if (!response.ok || payload.ok === false) {
|
|
31
|
+
const message = typeof payload.error === "string" && payload.error.trim() ? payload.error : `Request failed with HTTP ${response.status}.`;
|
|
32
|
+
throw new DashboardRequestError(message, response.status, payload);
|
|
33
|
+
}
|
|
34
|
+
return payload;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
|
|
38
|
+
const DANGEROUS_OPERATION = /(?:^|:)(?:delete|disable|destroy|purge|remove|restore|rollback|stop)(?::|$)/i;
|
|
39
|
+
function operationIsDangerous(operation) {
|
|
40
|
+
return operation.danger ?? DANGEROUS_OPERATION.test(operation.operation);
|
|
41
|
+
}
|
|
42
|
+
function useOpConfirm(execute) {
|
|
43
|
+
const opOutput = state("");
|
|
44
|
+
const opShown = state(false);
|
|
45
|
+
const pending = state(null);
|
|
46
|
+
const typed = state("");
|
|
47
|
+
const busy = state(false);
|
|
48
|
+
const confirmInput = useRef("opConfirmInput");
|
|
49
|
+
const confirmTok = derived(() => pending()?.confirm ?? "");
|
|
50
|
+
const confirmVerb = derived(() => pending()?.verb ?? "");
|
|
51
|
+
const confirmDanger = derived(() => pending() ? operationIsDangerous(pending()) : false);
|
|
52
|
+
const confirmLabel = derived(() => pending()?.label ?? (confirmDanger() ? "Confirm operation" : "Run operation"));
|
|
53
|
+
const canRun = derived(() => !!pending() && !busy() && typed() === pending().confirm);
|
|
54
|
+
function askOp(operation, confirm, verb, to, apiConfirm, options = {}) {
|
|
55
|
+
pending.set({ ...options, operation, confirm, verb, to: to ?? null, apiConfirm: apiConfirm || confirm });
|
|
56
|
+
typed.set("");
|
|
57
|
+
confirmInput.current?.focus();
|
|
58
|
+
confirmInput.current?.scrollIntoView({ behavior: "smooth", block: "nearest" });
|
|
59
|
+
}
|
|
60
|
+
function cancelOp() {
|
|
61
|
+
if (busy())
|
|
62
|
+
return;
|
|
63
|
+
pending.set(null);
|
|
64
|
+
typed.set("");
|
|
65
|
+
}
|
|
66
|
+
async function runOp() {
|
|
67
|
+
const operation = pending();
|
|
68
|
+
if (!operation || busy() || typed() !== operation.confirm)
|
|
69
|
+
return;
|
|
70
|
+
busy.set(true);
|
|
71
|
+
opShown.set(true);
|
|
72
|
+
opOutput.set(`Running ${operation.operation}...`);
|
|
73
|
+
try {
|
|
74
|
+
const result = await execute(operation);
|
|
75
|
+
opOutput.set(typeof result === "string" ? result : result.output);
|
|
76
|
+
pending.set(null);
|
|
77
|
+
typed.set("");
|
|
78
|
+
} catch (error) {
|
|
79
|
+
opOutput.set(`FAILED ${operation.operation}
|
|
80
|
+
|
|
81
|
+
${error instanceof Error ? error.message : String(error)}`);
|
|
82
|
+
} finally {
|
|
83
|
+
busy.set(false);
|
|
84
|
+
}
|
|
85
|
+
}
|
|
86
|
+
return {
|
|
87
|
+
opOutput,
|
|
88
|
+
opShown,
|
|
89
|
+
pending,
|
|
90
|
+
typed,
|
|
91
|
+
busy,
|
|
92
|
+
confirmTok,
|
|
93
|
+
confirmVerb,
|
|
94
|
+
confirmDanger,
|
|
95
|
+
confirmLabel,
|
|
96
|
+
canRun,
|
|
97
|
+
askOp,
|
|
98
|
+
cancelOp,
|
|
99
|
+
runOp
|
|
100
|
+
};
|
|
101
|
+
}
|
|
102
|
+
try { __c["DashboardRequestError"] = DashboardRequestError; } catch (e) {}
|
|
103
|
+
try { __c["requestJson"] = requestJson; } catch (e) {}
|
|
104
|
+
try { __c["operationIsDangerous"] = operationIsDangerous; } catch (e) {}
|
|
105
|
+
try { __c["useOpConfirm"] = useOpConfirm; } catch (e) {}
|
|
106
|
+
var __names = ["DashboardRequestError","requestJson","operationIsDangerous","useOpConfirm"];
|
|
107
|
+
for (var __i = 0; __i < __names.length; __i++) {
|
|
108
|
+
var __n = __names[__i];
|
|
109
|
+
if (!(__n in __c)) continue;
|
|
110
|
+
var __takenByBuiltin = !!(window.stx && __n in window.stx);
|
|
111
|
+
if (__takenByBuiltin || __n in window) {
|
|
112
|
+
console.warn('[stx] composable "' + __n + '" is not available as a bare identifier: '
|
|
113
|
+
+ (__takenByBuiltin ? 'a built-in of that name already exists' : 'window already defines that property')
|
|
114
|
+
+ '. Rename it, or use: import { ' + __n + ' } from "@composables"');
|
|
115
|
+
continue;
|
|
116
|
+
}
|
|
117
|
+
window[__n] = __c[__n];
|
|
118
|
+
}
|
|
119
|
+
})();
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/* stx role tokens — override any of these to re-theme by meaning. */ :root { --stx-fg: oklch(21% 0.034 264.665); --stx-fg-strong: oklch(37.3% 0.034 259.733); --stx-fg-muted: oklch(44.6% 0.03 256.802); --stx-fg-soft: oklch(55.1% 0.027 264.364); --stx-fg-subtle: oklch(70.7% 0.022 261.325); --stx-surface: oklch(98.5% 0.002 247.839); --stx-surface-raised: oklch(96.7% 0.003 264.542); --stx-surface-sunken: oklch(92.8% 0.006 264.531); --stx-line: oklch(92.8% 0.006 264.531); --stx-line-strong: oklch(87.2% 0.01 258.338); --stx-accent: oklch(51.1% 0.262 276.966); --stx-info: oklch(54.6% 0.245 262.881); --stx-danger: oklch(57.7% 0.245 27.325); --stx-success: oklch(62.7% 0.194 149.214); --stx-warning: oklch(79.5% 0.184 86.047); --stx-accent-solid: oklch(51.1% 0.262 276.966); --stx-info-solid: oklch(54.6% 0.245 262.881); --stx-danger-solid: oklch(57.7% 0.245 27.325); --stx-success-solid: oklch(62.7% 0.194 149.214); } .dark { --stx-fg: oklch(96.7% 0.003 264.542); --stx-fg-strong: oklch(87.2% 0.01 258.338); --stx-fg-muted: oklch(70.7% 0.022 261.325); --stx-fg-soft: oklch(70.7% 0.022 261.325); --stx-fg-subtle: oklch(55.1% 0.027 264.364); --stx-surface: oklch(27.8% 0.033 256.848); --stx-surface-raised: oklch(37.3% 0.034 259.733); --stx-surface-sunken: oklch(37.3% 0.034 259.733); --stx-line: oklch(37.3% 0.034 259.733); --stx-line-strong: oklch(44.6% 0.03 256.802); --stx-accent: oklch(67.3% 0.182 276.935); --stx-info: oklch(70.7% 0.165 254.624); --stx-danger: oklch(70.4% 0.191 22.216); --stx-success: oklch(79.2% 0.209 151.711); --stx-warning: oklch(85.2% 0.199 91.936); --stx-accent-solid: oklch(58.5% 0.233 277.117); --stx-info-solid: oklch(62.3% 0.214 259.815); --stx-danger-solid: oklch(63.7% 0.237 25.331); --stx-success-solid: oklch(72.3% 0.219 149.579); } @layer cw-base { /* ! Tailwind CSS Preflight | MIT License | https://tailwindcss.com */ /* The fallback is a neutral grey, not currentColor. currentColor makes every border whose colour was never set take the TEXT colour, which is near-black on a light page and near-white on a dark one. That is never what an author means by a divider: the divide-* and border-width utilities set a width and no colour, so a plain divide-y rendered as a heavy black rule instead of a hairline. It also punished the obvious workaround. Setting border-color on a parent does not reach divide-* children, because divide targets "> :not([hidden]) ~ :not([hidden])" and the child declaration from this block wins. Tailwind preflight resolves this the same way (its default is gray-200). --border-color stays the escape hatch: set it once on :root, or per theme, and every uncoloured border follows. */ *, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: var(--border-color, #e5e7eb); } ::before, ::after { --cw-content: ''; } html, :host { line-height: 1.5; -webkit-text-size-adjust: 100%; -moz-tab-size: 4; tab-size: 4; font-family: ui-sans-serif, system-ui, sans-serif; font-feature-settings: normal; font-variation-settings: normal; -webkit-tap-highlight-color: transparent; } body { margin: 0; line-height: inherit; } hr { height: 0; color: inherit; border-top-width: 1px; } abbr:where([title]) { text-decoration: underline dotted; } h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; } a { color: inherit; text-decoration: inherit; } b, strong { font-weight: bolder; } code, kbd, samp, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-feature-settings: normal; font-variation-settings: normal; font-size: 1em; } small { font-size: 80%; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } table { text-indent: 0; border-color: var(--border-color, inherit); border-collapse: collapse; } button, input, optgroup, select, textarea { font-family: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; margin: 0; padding: 0; } button, select { text-transform: none; } button, input:where([type='button']), input:where([type='reset']), input:where([type='submit']) { -webkit-appearance: button; background-color: transparent; background-image: none; } :-moz-focusring { outline: auto; } :-moz-ui-invalid { box-shadow: none; } progress { vertical-align: baseline; } ::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; } [type='search'] { -webkit-appearance: textfield; outline-offset: -2px; } ::-webkit-search-decoration { -webkit-appearance: none; } ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } summary { display: list-item; } blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre { margin: 0; } fieldset { margin: 0; padding: 0; } legend { padding: 0; } ol, ul, menu { list-style: none; margin: 0; padding: 0; } dialog { padding: 0; } textarea { resize: vertical; } input::placeholder, textarea::placeholder { opacity: 1; color: color-mix(in oklab, currentColor 50%, transparent); } button, [role="button"] { cursor: pointer; } :disabled { cursor: default; } img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; } img, video { max-width: 100%; height: auto; } [hidden] { display: none; } } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; } .hidden { display: none; }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/* stx role tokens — override any of these to re-theme by meaning. */ :root { --stx-fg: oklch(21% 0.034 264.665); --stx-fg-strong: oklch(37.3% 0.034 259.733); --stx-fg-muted: oklch(44.6% 0.03 256.802); --stx-fg-soft: oklch(55.1% 0.027 264.364); --stx-fg-subtle: oklch(70.7% 0.022 261.325); --stx-surface: oklch(98.5% 0.002 247.839); --stx-surface-raised: oklch(96.7% 0.003 264.542); --stx-surface-sunken: oklch(92.8% 0.006 264.531); --stx-line: oklch(92.8% 0.006 264.531); --stx-line-strong: oklch(87.2% 0.01 258.338); --stx-accent: oklch(51.1% 0.262 276.966); --stx-info: oklch(54.6% 0.245 262.881); --stx-danger: oklch(57.7% 0.245 27.325); --stx-success: oklch(62.7% 0.194 149.214); --stx-warning: oklch(79.5% 0.184 86.047); --stx-accent-solid: oklch(51.1% 0.262 276.966); --stx-info-solid: oklch(54.6% 0.245 262.881); --stx-danger-solid: oklch(57.7% 0.245 27.325); --stx-success-solid: oklch(62.7% 0.194 149.214); } .dark { --stx-fg: oklch(96.7% 0.003 264.542); --stx-fg-strong: oklch(87.2% 0.01 258.338); --stx-fg-muted: oklch(70.7% 0.022 261.325); --stx-fg-soft: oklch(70.7% 0.022 261.325); --stx-fg-subtle: oklch(55.1% 0.027 264.364); --stx-surface: oklch(27.8% 0.033 256.848); --stx-surface-raised: oklch(37.3% 0.034 259.733); --stx-surface-sunken: oklch(37.3% 0.034 259.733); --stx-line: oklch(37.3% 0.034 259.733); --stx-line-strong: oklch(44.6% 0.03 256.802); --stx-accent: oklch(67.3% 0.182 276.935); --stx-info: oklch(70.7% 0.165 254.624); --stx-danger: oklch(70.4% 0.191 22.216); --stx-success: oklch(79.2% 0.209 151.711); --stx-warning: oklch(85.2% 0.199 91.936); --stx-accent-solid: oklch(58.5% 0.233 277.117); --stx-info-solid: oklch(62.3% 0.214 259.815); --stx-danger-solid: oklch(63.7% 0.237 25.331); --stx-success-solid: oklch(72.3% 0.219 149.579); } @layer cw-base { /* ! Tailwind CSS Preflight | MIT License | https://tailwindcss.com */ /* The fallback is a neutral grey, not currentColor. currentColor makes every border whose colour was never set take the TEXT colour, which is near-black on a light page and near-white on a dark one. That is never what an author means by a divider: the divide-* and border-width utilities set a width and no colour, so a plain divide-y rendered as a heavy black rule instead of a hairline. It also punished the obvious workaround. Setting border-color on a parent does not reach divide-* children, because divide targets "> :not([hidden]) ~ :not([hidden])" and the child declaration from this block wins. Tailwind preflight resolves this the same way (its default is gray-200). --border-color stays the escape hatch: set it once on :root, or per theme, and every uncoloured border follows. */ *, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: var(--border-color, #e5e7eb); } ::before, ::after { --cw-content: ''; } html, :host { line-height: 1.5; -webkit-text-size-adjust: 100%; -moz-tab-size: 4; tab-size: 4; font-family: ui-sans-serif, system-ui, sans-serif; font-feature-settings: normal; font-variation-settings: normal; -webkit-tap-highlight-color: transparent; } body { margin: 0; line-height: inherit; } hr { height: 0; color: inherit; border-top-width: 1px; } abbr:where([title]) { text-decoration: underline dotted; } h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; } a { color: inherit; text-decoration: inherit; } b, strong { font-weight: bolder; } code, kbd, samp, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-feature-settings: normal; font-variation-settings: normal; font-size: 1em; } small { font-size: 80%; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } table { text-indent: 0; border-color: var(--border-color, inherit); border-collapse: collapse; } button, input, optgroup, select, textarea { font-family: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; margin: 0; padding: 0; } button, select { text-transform: none; } button, input:where([type='button']), input:where([type='reset']), input:where([type='submit']) { -webkit-appearance: button; background-color: transparent; background-image: none; } :-moz-focusring { outline: auto; } :-moz-ui-invalid { box-shadow: none; } progress { vertical-align: baseline; } ::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; } [type='search'] { -webkit-appearance: textfield; outline-offset: -2px; } ::-webkit-search-decoration { -webkit-appearance: none; } ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } summary { display: list-item; } blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre { margin: 0; } fieldset { margin: 0; padding: 0; } legend { padding: 0; } ol, ul, menu { list-style: none; margin: 0; padding: 0; } dialog { padding: 0; } textarea { resize: vertical; } input::placeholder, textarea::placeholder { opacity: 1; color: color-mix(in oklab, currentColor 50%, transparent); } button, [role="button"] { cursor: pointer; } :disabled { cursor: default; } img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; } img, video { max-width: 100%; height: auto; } [hidden] { display: none; } } .ease-out { transition-timing-function: cubic-bezier(0, 0, 0.2, 1); } .ease-in { transition-timing-function: cubic-bezier(0.4, 0, 1, 1); }
|
|
@@ -0,0 +1,320 @@
|
|
|
1
|
+
|
|
2
|
+
/* stx role tokens — override any of these to re-theme by meaning. */
|
|
3
|
+
:root {
|
|
4
|
+
--stx-fg: oklch(21% 0.034 264.665);
|
|
5
|
+
--stx-fg-strong: oklch(37.3% 0.034 259.733);
|
|
6
|
+
--stx-fg-muted: oklch(44.6% 0.03 256.802);
|
|
7
|
+
--stx-fg-soft: oklch(55.1% 0.027 264.364);
|
|
8
|
+
--stx-fg-subtle: oklch(70.7% 0.022 261.325);
|
|
9
|
+
--stx-surface: oklch(98.5% 0.002 247.839);
|
|
10
|
+
--stx-surface-raised: oklch(96.7% 0.003 264.542);
|
|
11
|
+
--stx-surface-sunken: oklch(92.8% 0.006 264.531);
|
|
12
|
+
--stx-line: oklch(92.8% 0.006 264.531);
|
|
13
|
+
--stx-line-strong: oklch(87.2% 0.01 258.338);
|
|
14
|
+
--stx-accent: oklch(51.1% 0.262 276.966);
|
|
15
|
+
--stx-info: oklch(54.6% 0.245 262.881);
|
|
16
|
+
--stx-danger: oklch(57.7% 0.245 27.325);
|
|
17
|
+
--stx-success: oklch(62.7% 0.194 149.214);
|
|
18
|
+
--stx-warning: oklch(79.5% 0.184 86.047);
|
|
19
|
+
--stx-accent-solid: oklch(51.1% 0.262 276.966);
|
|
20
|
+
--stx-info-solid: oklch(54.6% 0.245 262.881);
|
|
21
|
+
--stx-danger-solid: oklch(57.7% 0.245 27.325);
|
|
22
|
+
--stx-success-solid: oklch(62.7% 0.194 149.214);
|
|
23
|
+
}
|
|
24
|
+
.dark {
|
|
25
|
+
--stx-fg: oklch(96.7% 0.003 264.542);
|
|
26
|
+
--stx-fg-strong: oklch(87.2% 0.01 258.338);
|
|
27
|
+
--stx-fg-muted: oklch(70.7% 0.022 261.325);
|
|
28
|
+
--stx-fg-soft: oklch(70.7% 0.022 261.325);
|
|
29
|
+
--stx-fg-subtle: oklch(55.1% 0.027 264.364);
|
|
30
|
+
--stx-surface: oklch(27.8% 0.033 256.848);
|
|
31
|
+
--stx-surface-raised: oklch(37.3% 0.034 259.733);
|
|
32
|
+
--stx-surface-sunken: oklch(37.3% 0.034 259.733);
|
|
33
|
+
--stx-line: oklch(37.3% 0.034 259.733);
|
|
34
|
+
--stx-line-strong: oklch(44.6% 0.03 256.802);
|
|
35
|
+
--stx-accent: oklch(67.3% 0.182 276.935);
|
|
36
|
+
--stx-info: oklch(70.7% 0.165 254.624);
|
|
37
|
+
--stx-danger: oklch(70.4% 0.191 22.216);
|
|
38
|
+
--stx-success: oklch(79.2% 0.209 151.711);
|
|
39
|
+
--stx-warning: oklch(85.2% 0.199 91.936);
|
|
40
|
+
--stx-accent-solid: oklch(58.5% 0.233 277.117);
|
|
41
|
+
--stx-info-solid: oklch(62.3% 0.214 259.815);
|
|
42
|
+
--stx-danger-solid: oklch(63.7% 0.237 25.331);
|
|
43
|
+
--stx-success-solid: oklch(72.3% 0.219 149.579);
|
|
44
|
+
}
|
|
45
|
+
@layer cw-base {
|
|
46
|
+
/*
|
|
47
|
+
! Tailwind CSS Preflight | MIT License | https://tailwindcss.com
|
|
48
|
+
*/
|
|
49
|
+
|
|
50
|
+
/*
|
|
51
|
+
The fallback is a neutral grey, not currentColor.
|
|
52
|
+
|
|
53
|
+
currentColor makes every border whose colour was never set take the TEXT
|
|
54
|
+
colour, which is near-black on a light page and near-white on a dark one.
|
|
55
|
+
That is never what an author means by a divider: the divide-* and
|
|
56
|
+
border-width utilities set a width and no colour, so a plain divide-y
|
|
57
|
+
rendered as a heavy black rule instead of a hairline.
|
|
58
|
+
|
|
59
|
+
It also punished the obvious workaround. Setting border-color on a parent
|
|
60
|
+
does not reach divide-* children, because divide targets
|
|
61
|
+
"> :not([hidden]) ~ :not([hidden])" and the child declaration from this
|
|
62
|
+
block wins.
|
|
63
|
+
|
|
64
|
+
Tailwind preflight resolves this the same way (its default is gray-200).
|
|
65
|
+
--border-color stays the escape hatch: set it once on :root, or per
|
|
66
|
+
theme, and every uncoloured border follows.
|
|
67
|
+
*/
|
|
68
|
+
*,
|
|
69
|
+
::before,
|
|
70
|
+
::after {
|
|
71
|
+
box-sizing: border-box;
|
|
72
|
+
border-width: 0;
|
|
73
|
+
border-style: solid;
|
|
74
|
+
border-color: var(--border-color, #e5e7eb);
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
::before,
|
|
78
|
+
::after {
|
|
79
|
+
--cw-content: '';
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
html,
|
|
83
|
+
:host {
|
|
84
|
+
line-height: 1.5;
|
|
85
|
+
-webkit-text-size-adjust: 100%;
|
|
86
|
+
-moz-tab-size: 4;
|
|
87
|
+
tab-size: 4;
|
|
88
|
+
font-family: ui-sans-serif, system-ui, sans-serif;
|
|
89
|
+
font-feature-settings: normal;
|
|
90
|
+
font-variation-settings: normal;
|
|
91
|
+
-webkit-tap-highlight-color: transparent;
|
|
92
|
+
}
|
|
93
|
+
|
|
94
|
+
body {
|
|
95
|
+
margin: 0;
|
|
96
|
+
line-height: inherit;
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
hr {
|
|
100
|
+
height: 0;
|
|
101
|
+
color: inherit;
|
|
102
|
+
border-top-width: 1px;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
abbr:where([title]) {
|
|
106
|
+
text-decoration: underline dotted;
|
|
107
|
+
}
|
|
108
|
+
|
|
109
|
+
h1,
|
|
110
|
+
h2,
|
|
111
|
+
h3,
|
|
112
|
+
h4,
|
|
113
|
+
h5,
|
|
114
|
+
h6 {
|
|
115
|
+
font-size: inherit;
|
|
116
|
+
font-weight: inherit;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
a {
|
|
120
|
+
color: inherit;
|
|
121
|
+
text-decoration: inherit;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
b,
|
|
125
|
+
strong {
|
|
126
|
+
font-weight: bolder;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
code,
|
|
130
|
+
kbd,
|
|
131
|
+
samp,
|
|
132
|
+
pre {
|
|
133
|
+
font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
|
|
134
|
+
font-feature-settings: normal;
|
|
135
|
+
font-variation-settings: normal;
|
|
136
|
+
font-size: 1em;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
small {
|
|
140
|
+
font-size: 80%;
|
|
141
|
+
}
|
|
142
|
+
|
|
143
|
+
sub,
|
|
144
|
+
sup {
|
|
145
|
+
font-size: 75%;
|
|
146
|
+
line-height: 0;
|
|
147
|
+
position: relative;
|
|
148
|
+
vertical-align: baseline;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
sub {
|
|
152
|
+
bottom: -0.25em;
|
|
153
|
+
}
|
|
154
|
+
|
|
155
|
+
sup {
|
|
156
|
+
top: -0.5em;
|
|
157
|
+
}
|
|
158
|
+
|
|
159
|
+
table {
|
|
160
|
+
text-indent: 0;
|
|
161
|
+
border-color: var(--border-color, inherit);
|
|
162
|
+
border-collapse: collapse;
|
|
163
|
+
}
|
|
164
|
+
|
|
165
|
+
button,
|
|
166
|
+
input,
|
|
167
|
+
optgroup,
|
|
168
|
+
select,
|
|
169
|
+
textarea {
|
|
170
|
+
font-family: inherit;
|
|
171
|
+
font-feature-settings: inherit;
|
|
172
|
+
font-variation-settings: inherit;
|
|
173
|
+
font-size: 100%;
|
|
174
|
+
font-weight: inherit;
|
|
175
|
+
line-height: inherit;
|
|
176
|
+
letter-spacing: inherit;
|
|
177
|
+
color: inherit;
|
|
178
|
+
margin: 0;
|
|
179
|
+
padding: 0;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
button,
|
|
183
|
+
select {
|
|
184
|
+
text-transform: none;
|
|
185
|
+
}
|
|
186
|
+
|
|
187
|
+
button,
|
|
188
|
+
input:where([type='button']),
|
|
189
|
+
input:where([type='reset']),
|
|
190
|
+
input:where([type='submit']) {
|
|
191
|
+
-webkit-appearance: button;
|
|
192
|
+
background-color: transparent;
|
|
193
|
+
background-image: none;
|
|
194
|
+
}
|
|
195
|
+
|
|
196
|
+
:-moz-focusring {
|
|
197
|
+
outline: auto;
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
:-moz-ui-invalid {
|
|
201
|
+
box-shadow: none;
|
|
202
|
+
}
|
|
203
|
+
|
|
204
|
+
progress {
|
|
205
|
+
vertical-align: baseline;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
::-webkit-inner-spin-button,
|
|
209
|
+
::-webkit-outer-spin-button {
|
|
210
|
+
height: auto;
|
|
211
|
+
}
|
|
212
|
+
|
|
213
|
+
[type='search'] {
|
|
214
|
+
-webkit-appearance: textfield;
|
|
215
|
+
outline-offset: -2px;
|
|
216
|
+
}
|
|
217
|
+
|
|
218
|
+
::-webkit-search-decoration {
|
|
219
|
+
-webkit-appearance: none;
|
|
220
|
+
}
|
|
221
|
+
|
|
222
|
+
::-webkit-file-upload-button {
|
|
223
|
+
-webkit-appearance: button;
|
|
224
|
+
font: inherit;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
summary {
|
|
228
|
+
display: list-item;
|
|
229
|
+
}
|
|
230
|
+
|
|
231
|
+
blockquote,
|
|
232
|
+
dl,
|
|
233
|
+
dd,
|
|
234
|
+
h1,
|
|
235
|
+
h2,
|
|
236
|
+
h3,
|
|
237
|
+
h4,
|
|
238
|
+
h5,
|
|
239
|
+
h6,
|
|
240
|
+
hr,
|
|
241
|
+
figure,
|
|
242
|
+
p,
|
|
243
|
+
pre {
|
|
244
|
+
margin: 0;
|
|
245
|
+
}
|
|
246
|
+
|
|
247
|
+
fieldset {
|
|
248
|
+
margin: 0;
|
|
249
|
+
padding: 0;
|
|
250
|
+
}
|
|
251
|
+
|
|
252
|
+
legend {
|
|
253
|
+
padding: 0;
|
|
254
|
+
}
|
|
255
|
+
|
|
256
|
+
ol,
|
|
257
|
+
ul,
|
|
258
|
+
menu {
|
|
259
|
+
list-style: none;
|
|
260
|
+
margin: 0;
|
|
261
|
+
padding: 0;
|
|
262
|
+
}
|
|
263
|
+
|
|
264
|
+
dialog {
|
|
265
|
+
padding: 0;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
textarea {
|
|
269
|
+
resize: vertical;
|
|
270
|
+
}
|
|
271
|
+
|
|
272
|
+
input::placeholder,
|
|
273
|
+
textarea::placeholder {
|
|
274
|
+
opacity: 1;
|
|
275
|
+
color: color-mix(in oklab, currentColor 50%, transparent);
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
button,
|
|
279
|
+
[role="button"] {
|
|
280
|
+
cursor: pointer;
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
:disabled {
|
|
284
|
+
cursor: default;
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
img,
|
|
288
|
+
svg,
|
|
289
|
+
video,
|
|
290
|
+
canvas,
|
|
291
|
+
audio,
|
|
292
|
+
iframe,
|
|
293
|
+
embed,
|
|
294
|
+
object {
|
|
295
|
+
display: block;
|
|
296
|
+
vertical-align: middle;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
img,
|
|
300
|
+
video {
|
|
301
|
+
max-width: 100%;
|
|
302
|
+
height: auto;
|
|
303
|
+
}
|
|
304
|
+
|
|
305
|
+
[hidden] {
|
|
306
|
+
display: none;
|
|
307
|
+
}
|
|
308
|
+
}
|
|
309
|
+
|
|
310
|
+
.sr-only {
|
|
311
|
+
position: absolute;
|
|
312
|
+
width: 1px;
|
|
313
|
+
height: 1px;
|
|
314
|
+
padding: 0;
|
|
315
|
+
margin: -1px;
|
|
316
|
+
overflow: hidden;
|
|
317
|
+
clip: rect(0, 0, 0, 0);
|
|
318
|
+
white-space: nowrap;
|
|
319
|
+
border-width: 0;
|
|
320
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/* stx role tokens — override any of these to re-theme by meaning. */ :root { --stx-fg: oklch(21% 0.034 264.665); --stx-fg-strong: oklch(37.3% 0.034 259.733); --stx-fg-muted: oklch(44.6% 0.03 256.802); --stx-fg-soft: oklch(55.1% 0.027 264.364); --stx-fg-subtle: oklch(70.7% 0.022 261.325); --stx-surface: oklch(98.5% 0.002 247.839); --stx-surface-raised: oklch(96.7% 0.003 264.542); --stx-surface-sunken: oklch(92.8% 0.006 264.531); --stx-line: oklch(92.8% 0.006 264.531); --stx-line-strong: oklch(87.2% 0.01 258.338); --stx-accent: oklch(51.1% 0.262 276.966); --stx-info: oklch(54.6% 0.245 262.881); --stx-danger: oklch(57.7% 0.245 27.325); --stx-success: oklch(62.7% 0.194 149.214); --stx-warning: oklch(79.5% 0.184 86.047); --stx-accent-solid: oklch(51.1% 0.262 276.966); --stx-info-solid: oklch(54.6% 0.245 262.881); --stx-danger-solid: oklch(57.7% 0.245 27.325); --stx-success-solid: oklch(62.7% 0.194 149.214); } .dark { --stx-fg: oklch(96.7% 0.003 264.542); --stx-fg-strong: oklch(87.2% 0.01 258.338); --stx-fg-muted: oklch(70.7% 0.022 261.325); --stx-fg-soft: oklch(70.7% 0.022 261.325); --stx-fg-subtle: oklch(55.1% 0.027 264.364); --stx-surface: oklch(27.8% 0.033 256.848); --stx-surface-raised: oklch(37.3% 0.034 259.733); --stx-surface-sunken: oklch(37.3% 0.034 259.733); --stx-line: oklch(37.3% 0.034 259.733); --stx-line-strong: oklch(44.6% 0.03 256.802); --stx-accent: oklch(67.3% 0.182 276.935); --stx-info: oklch(70.7% 0.165 254.624); --stx-danger: oklch(70.4% 0.191 22.216); --stx-success: oklch(79.2% 0.209 151.711); --stx-warning: oklch(85.2% 0.199 91.936); --stx-accent-solid: oklch(58.5% 0.233 277.117); --stx-info-solid: oklch(62.3% 0.214 259.815); --stx-danger-solid: oklch(63.7% 0.237 25.331); --stx-success-solid: oklch(72.3% 0.219 149.579); } @layer cw-base { /* ! Tailwind CSS Preflight | MIT License | https://tailwindcss.com */ /* The fallback is a neutral grey, not currentColor. currentColor makes every border whose colour was never set take the TEXT colour, which is near-black on a light page and near-white on a dark one. That is never what an author means by a divider: the divide-* and border-width utilities set a width and no colour, so a plain divide-y rendered as a heavy black rule instead of a hairline. It also punished the obvious workaround. Setting border-color on a parent does not reach divide-* children, because divide targets "> :not([hidden]) ~ :not([hidden])" and the child declaration from this block wins. Tailwind preflight resolves this the same way (its default is gray-200). --border-color stays the escape hatch: set it once on :root, or per theme, and every uncoloured border follows. */ *, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: var(--border-color, #e5e7eb); } ::before, ::after { --cw-content: ''; } html, :host { line-height: 1.5; -webkit-text-size-adjust: 100%; -moz-tab-size: 4; tab-size: 4; font-family: ui-sans-serif, system-ui, sans-serif; font-feature-settings: normal; font-variation-settings: normal; -webkit-tap-highlight-color: transparent; } body { margin: 0; line-height: inherit; } hr { height: 0; color: inherit; border-top-width: 1px; } abbr:where([title]) { text-decoration: underline dotted; } h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; } a { color: inherit; text-decoration: inherit; } b, strong { font-weight: bolder; } code, kbd, samp, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-feature-settings: normal; font-variation-settings: normal; font-size: 1em; } small { font-size: 80%; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } table { text-indent: 0; border-color: var(--border-color, inherit); border-collapse: collapse; } button, input, optgroup, select, textarea { font-family: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; margin: 0; padding: 0; } button, select { text-transform: none; } button, input:where([type='button']), input:where([type='reset']), input:where([type='submit']) { -webkit-appearance: button; background-color: transparent; background-image: none; } :-moz-focusring { outline: auto; } :-moz-ui-invalid { box-shadow: none; } progress { vertical-align: baseline; } ::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; } [type='search'] { -webkit-appearance: textfield; outline-offset: -2px; } ::-webkit-search-decoration { -webkit-appearance: none; } ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } summary { display: list-item; } blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre { margin: 0; } fieldset { margin: 0; padding: 0; } legend { padding: 0; } ol, ul, menu { list-style: none; margin: 0; padding: 0; } dialog { padding: 0; } textarea { resize: vertical; } input::placeholder, textarea::placeholder { opacity: 1; color: color-mix(in oklab, currentColor 50%, transparent); } button, [role="button"] { cursor: pointer; } :disabled { cursor: default; } img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; } img, video { max-width: 100%; height: auto; } [hidden] { display: none; } } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/* stx role tokens — override any of these to re-theme by meaning. */ :root { --stx-fg: oklch(21% 0.034 264.665); --stx-fg-strong: oklch(37.3% 0.034 259.733); --stx-fg-muted: oklch(44.6% 0.03 256.802); --stx-fg-soft: oklch(55.1% 0.027 264.364); --stx-fg-subtle: oklch(70.7% 0.022 261.325); --stx-surface: oklch(98.5% 0.002 247.839); --stx-surface-raised: oklch(96.7% 0.003 264.542); --stx-surface-sunken: oklch(92.8% 0.006 264.531); --stx-line: oklch(92.8% 0.006 264.531); --stx-line-strong: oklch(87.2% 0.01 258.338); --stx-accent: oklch(51.1% 0.262 276.966); --stx-info: oklch(54.6% 0.245 262.881); --stx-danger: oklch(57.7% 0.245 27.325); --stx-success: oklch(62.7% 0.194 149.214); --stx-warning: oklch(79.5% 0.184 86.047); --stx-accent-solid: oklch(51.1% 0.262 276.966); --stx-info-solid: oklch(54.6% 0.245 262.881); --stx-danger-solid: oklch(57.7% 0.245 27.325); --stx-success-solid: oklch(62.7% 0.194 149.214); } .dark { --stx-fg: oklch(96.7% 0.003 264.542); --stx-fg-strong: oklch(87.2% 0.01 258.338); --stx-fg-muted: oklch(70.7% 0.022 261.325); --stx-fg-soft: oklch(70.7% 0.022 261.325); --stx-fg-subtle: oklch(55.1% 0.027 264.364); --stx-surface: oklch(27.8% 0.033 256.848); --stx-surface-raised: oklch(37.3% 0.034 259.733); --stx-surface-sunken: oklch(37.3% 0.034 259.733); --stx-line: oklch(37.3% 0.034 259.733); --stx-line-strong: oklch(44.6% 0.03 256.802); --stx-accent: oklch(67.3% 0.182 276.935); --stx-info: oklch(70.7% 0.165 254.624); --stx-danger: oklch(70.4% 0.191 22.216); --stx-success: oklch(79.2% 0.209 151.711); --stx-warning: oklch(85.2% 0.199 91.936); --stx-accent-solid: oklch(58.5% 0.233 277.117); --stx-info-solid: oklch(62.3% 0.214 259.815); --stx-danger-solid: oklch(63.7% 0.237 25.331); --stx-success-solid: oklch(72.3% 0.219 149.579); } @layer cw-base { /* ! Tailwind CSS Preflight | MIT License | https://tailwindcss.com */ /* The fallback is a neutral grey, not currentColor. currentColor makes every border whose colour was never set take the TEXT colour, which is near-black on a light page and near-white on a dark one. That is never what an author means by a divider: the divide-* and border-width utilities set a width and no colour, so a plain divide-y rendered as a heavy black rule instead of a hairline. It also punished the obvious workaround. Setting border-color on a parent does not reach divide-* children, because divide targets "> :not([hidden]) ~ :not([hidden])" and the child declaration from this block wins. Tailwind preflight resolves this the same way (its default is gray-200). --border-color stays the escape hatch: set it once on :root, or per theme, and every uncoloured border follows. */ *, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: var(--border-color, #e5e7eb); } ::before, ::after { --cw-content: ''; } html, :host { line-height: 1.5; -webkit-text-size-adjust: 100%; -moz-tab-size: 4; tab-size: 4; font-family: ui-sans-serif, system-ui, sans-serif; font-feature-settings: normal; font-variation-settings: normal; -webkit-tap-highlight-color: transparent; } body { margin: 0; line-height: inherit; } hr { height: 0; color: inherit; border-top-width: 1px; } abbr:where([title]) { text-decoration: underline dotted; } h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; } a { color: inherit; text-decoration: inherit; } b, strong { font-weight: bolder; } code, kbd, samp, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-feature-settings: normal; font-variation-settings: normal; font-size: 1em; } small { font-size: 80%; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } table { text-indent: 0; border-color: var(--border-color, inherit); border-collapse: collapse; } button, input, optgroup, select, textarea { font-family: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; margin: 0; padding: 0; } button, select { text-transform: none; } button, input:where([type='button']), input:where([type='reset']), input:where([type='submit']) { -webkit-appearance: button; background-color: transparent; background-image: none; } :-moz-focusring { outline: auto; } :-moz-ui-invalid { box-shadow: none; } progress { vertical-align: baseline; } ::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; } [type='search'] { -webkit-appearance: textfield; outline-offset: -2px; } ::-webkit-search-decoration { -webkit-appearance: none; } ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } summary { display: list-item; } blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre { margin: 0; } fieldset { margin: 0; padding: 0; } legend { padding: 0; } ol, ul, menu { list-style: none; margin: 0; padding: 0; } dialog { padding: 0; } textarea { resize: vertical; } input::placeholder, textarea::placeholder { opacity: 1; color: color-mix(in oklab, currentColor 50%, transparent); } button, [role="button"] { cursor: pointer; } :disabled { cursor: default; } img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; } img, video { max-width: 100%; height: auto; } [hidden] { display: none; } } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; } .ring { --cw-ring-offset-shadow: var(--cw-ring-inset,) 0 0 0 var(--cw-ring-offset-width, 0px) var(--cw-ring-offset-color, #fff); --cw-ring-shadow: var(--cw-ring-inset,) 0 0 0 calc(3px + var(--cw-ring-offset-width, 0px)) var(--cw-ring-color, rgba(59, 130, 246, 0.5)); box-shadow: var(--cw-ring-offset-shadow), var(--cw-ring-shadow), var(--cw-shadow, 0 0 #0000); }
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
/* stx role tokens — override any of these to re-theme by meaning. */ :root { --stx-fg: oklch(21% 0.034 264.665); --stx-fg-strong: oklch(37.3% 0.034 259.733); --stx-fg-muted: oklch(44.6% 0.03 256.802); --stx-fg-soft: oklch(55.1% 0.027 264.364); --stx-fg-subtle: oklch(70.7% 0.022 261.325); --stx-surface: oklch(98.5% 0.002 247.839); --stx-surface-raised: oklch(96.7% 0.003 264.542); --stx-surface-sunken: oklch(92.8% 0.006 264.531); --stx-line: oklch(92.8% 0.006 264.531); --stx-line-strong: oklch(87.2% 0.01 258.338); --stx-accent: oklch(51.1% 0.262 276.966); --stx-info: oklch(54.6% 0.245 262.881); --stx-danger: oklch(57.7% 0.245 27.325); --stx-success: oklch(62.7% 0.194 149.214); --stx-warning: oklch(79.5% 0.184 86.047); --stx-accent-solid: oklch(51.1% 0.262 276.966); --stx-info-solid: oklch(54.6% 0.245 262.881); --stx-danger-solid: oklch(57.7% 0.245 27.325); --stx-success-solid: oklch(62.7% 0.194 149.214); } .dark { --stx-fg: oklch(96.7% 0.003 264.542); --stx-fg-strong: oklch(87.2% 0.01 258.338); --stx-fg-muted: oklch(70.7% 0.022 261.325); --stx-fg-soft: oklch(70.7% 0.022 261.325); --stx-fg-subtle: oklch(55.1% 0.027 264.364); --stx-surface: oklch(27.8% 0.033 256.848); --stx-surface-raised: oklch(37.3% 0.034 259.733); --stx-surface-sunken: oklch(37.3% 0.034 259.733); --stx-line: oklch(37.3% 0.034 259.733); --stx-line-strong: oklch(44.6% 0.03 256.802); --stx-accent: oklch(67.3% 0.182 276.935); --stx-info: oklch(70.7% 0.165 254.624); --stx-danger: oklch(70.4% 0.191 22.216); --stx-success: oklch(79.2% 0.209 151.711); --stx-warning: oklch(85.2% 0.199 91.936); --stx-accent-solid: oklch(58.5% 0.233 277.117); --stx-info-solid: oklch(62.3% 0.214 259.815); --stx-danger-solid: oklch(63.7% 0.237 25.331); --stx-success-solid: oklch(72.3% 0.219 149.579); } @layer cw-base { /* ! Tailwind CSS Preflight | MIT License | https://tailwindcss.com */ /* The fallback is a neutral grey, not currentColor. currentColor makes every border whose colour was never set take the TEXT colour, which is near-black on a light page and near-white on a dark one. That is never what an author means by a divider: the divide-* and border-width utilities set a width and no colour, so a plain divide-y rendered as a heavy black rule instead of a hairline. It also punished the obvious workaround. Setting border-color on a parent does not reach divide-* children, because divide targets "> :not([hidden]) ~ :not([hidden])" and the child declaration from this block wins. Tailwind preflight resolves this the same way (its default is gray-200). --border-color stays the escape hatch: set it once on :root, or per theme, and every uncoloured border follows. */ *, ::before, ::after { box-sizing: border-box; border-width: 0; border-style: solid; border-color: var(--border-color, #e5e7eb); } ::before, ::after { --cw-content: ''; } html, :host { line-height: 1.5; -webkit-text-size-adjust: 100%; -moz-tab-size: 4; tab-size: 4; font-family: ui-sans-serif, system-ui, sans-serif; font-feature-settings: normal; font-variation-settings: normal; -webkit-tap-highlight-color: transparent; } body { margin: 0; line-height: inherit; } hr { height: 0; color: inherit; border-top-width: 1px; } abbr:where([title]) { text-decoration: underline dotted; } h1, h2, h3, h4, h5, h6 { font-size: inherit; font-weight: inherit; } a { color: inherit; text-decoration: inherit; } b, strong { font-weight: bolder; } code, kbd, samp, pre { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace; font-feature-settings: normal; font-variation-settings: normal; font-size: 1em; } small { font-size: 80%; } sub, sup { font-size: 75%; line-height: 0; position: relative; vertical-align: baseline; } sub { bottom: -0.25em; } sup { top: -0.5em; } table { text-indent: 0; border-color: var(--border-color, inherit); border-collapse: collapse; } button, input, optgroup, select, textarea { font-family: inherit; font-feature-settings: inherit; font-variation-settings: inherit; font-size: 100%; font-weight: inherit; line-height: inherit; letter-spacing: inherit; color: inherit; margin: 0; padding: 0; } button, select { text-transform: none; } button, input:where([type='button']), input:where([type='reset']), input:where([type='submit']) { -webkit-appearance: button; background-color: transparent; background-image: none; } :-moz-focusring { outline: auto; } :-moz-ui-invalid { box-shadow: none; } progress { vertical-align: baseline; } ::-webkit-inner-spin-button, ::-webkit-outer-spin-button { height: auto; } [type='search'] { -webkit-appearance: textfield; outline-offset: -2px; } ::-webkit-search-decoration { -webkit-appearance: none; } ::-webkit-file-upload-button { -webkit-appearance: button; font: inherit; } summary { display: list-item; } blockquote, dl, dd, h1, h2, h3, h4, h5, h6, hr, figure, p, pre { margin: 0; } fieldset { margin: 0; padding: 0; } legend { padding: 0; } ol, ul, menu { list-style: none; margin: 0; padding: 0; } dialog { padding: 0; } textarea { resize: vertical; } input::placeholder, textarea::placeholder { opacity: 1; color: color-mix(in oklab, currentColor 50%, transparent); } button, [role="button"] { cursor: pointer; } :disabled { cursor: default; } img, svg, video, canvas, audio, iframe, embed, object { display: block; vertical-align: middle; } img, video { max-width: 100%; height: auto; } [hidden] { display: none; } } .sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border-width: 0; } .grid { display: grid; }
|