@cronwatch/sdk 0.11.0 → 0.11.1
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/index.cjs +18 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +18 -2
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -914,6 +914,21 @@ function manifest(base) {
|
|
|
914
914
|
});
|
|
915
915
|
}
|
|
916
916
|
var APP_JS = `"use strict";
|
|
917
|
+
(function () {
|
|
918
|
+
var root = document.documentElement;
|
|
919
|
+
try {
|
|
920
|
+
var stored = localStorage.getItem("cronwatch-theme");
|
|
921
|
+
if (stored === "light" || stored === "dark") root.setAttribute("data-theme", stored);
|
|
922
|
+
} catch (e) {}
|
|
923
|
+
document.addEventListener("keydown", function (event) {
|
|
924
|
+
if (!(event.metaKey || event.ctrlKey) || !event.shiftKey || event.altKey || event.code !== "KeyD") return;
|
|
925
|
+
event.preventDefault();
|
|
926
|
+
var shown = root.getAttribute("data-theme") || (matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
|
|
927
|
+
var next = shown === "dark" ? "light" : "dark";
|
|
928
|
+
root.setAttribute("data-theme", next);
|
|
929
|
+
try { localStorage.setItem("cronwatch-theme", next); } catch (e) {}
|
|
930
|
+
});
|
|
931
|
+
})();
|
|
917
932
|
(function () {
|
|
918
933
|
var script = document.currentScript;
|
|
919
934
|
if (!script || !("serviceWorker" in navigator)) return;
|
|
@@ -1290,7 +1305,8 @@ function weekRunsLimit(job, now) {
|
|
|
1290
1305
|
var h = escapeHtml;
|
|
1291
1306
|
var CSS = `
|
|
1292
1307
|
:root{color-scheme:light dark;--paper:#f4f4f5;--sheet:#fff;--sunk:#fafafa;--rule:#e4e4e7;--rule-2:#d4d4d8;--tick:#909098;--ink:#000;--body:#18181b;--muted:#71717a;--ok:#15803d;--warn:#a16207;--bad:#b91c1c;--serif:"Newsreader",ui-serif,Georgia,Cambria,"Times New Roman",serif;--mono:"IBM Plex Mono",ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;--who:200px}
|
|
1293
|
-
@media(prefers-color-scheme:dark){:root{--paper:#09090b;--sheet:#111113;--sunk:#18181b;--rule:#27272a;--rule-2:#3f3f46;--tick:#66666f;--ink:#fff;--body:#e4e4e7;--muted:#a1a1aa;--ok:#4ade80;--warn:#fbbf24;--bad:#f87171}}
|
|
1308
|
+
@media(prefers-color-scheme:dark){:root:not([data-theme=light]){--paper:#09090b;--sheet:#111113;--sunk:#18181b;--rule:#27272a;--rule-2:#3f3f46;--tick:#66666f;--ink:#fff;--body:#e4e4e7;--muted:#a1a1aa;--ok:#4ade80;--warn:#fbbf24;--bad:#f87171}}
|
|
1309
|
+
:root[data-theme=light]{color-scheme:light}:root[data-theme=dark]{color-scheme:dark;--paper:#09090b;--sheet:#111113;--sunk:#18181b;--rule:#27272a;--rule-2:#3f3f46;--tick:#66666f;--ink:#fff;--body:#e4e4e7;--muted:#a1a1aa;--ok:#4ade80;--warn:#fbbf24;--bad:#f87171}
|
|
1294
1310
|
*{box-sizing:border-box}html{-webkit-text-size-adjust:100%}
|
|
1295
1311
|
body{margin:0;background:var(--paper);color:var(--ink);font:400 16px/1.55 var(--serif);-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
|
|
1296
1312
|
a{color:inherit;text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:.16em;text-decoration-color:var(--rule-2)}a:hover{text-decoration-color:currentColor}
|
|
@@ -1647,7 +1663,7 @@ function messagePage(title, message, base, signIn = false) {
|
|
|
1647
1663
|
}
|
|
1648
1664
|
|
|
1649
1665
|
// src/version.ts
|
|
1650
|
-
var VERSION = "0.11.
|
|
1666
|
+
var VERSION = "0.11.1";
|
|
1651
1667
|
var API_VERSION = 1;
|
|
1652
1668
|
|
|
1653
1669
|
// src/routes/index.ts
|