@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.d.cts CHANGED
@@ -11,7 +11,7 @@ export { a as AlertChannel, d as AlertDetails, e as AlertType, B as BudgetBreach
11
11
  declare function memory(): Store;
12
12
 
13
13
  /** This release of @cronwatch/sdk. scripts/release.mjs keeps it in step with package.json. */
14
- declare const VERSION = "0.11.0";
14
+ declare const VERSION = "0.11.1";
15
15
 
16
16
  /**
17
17
  * "15m" -> 900000. Accepts a plain number of milliseconds, and compound
package/dist/index.d.ts CHANGED
@@ -11,7 +11,7 @@ export { a as AlertChannel, d as AlertDetails, e as AlertType, B as BudgetBreach
11
11
  declare function memory(): Store;
12
12
 
13
13
  /** This release of @cronwatch/sdk. scripts/release.mjs keeps it in step with package.json. */
14
- declare const VERSION = "0.11.0";
14
+ declare const VERSION = "0.11.1";
15
15
 
16
16
  /**
17
17
  * "15m" -> 900000. Accepts a plain number of milliseconds, and compound
package/dist/index.js CHANGED
@@ -912,6 +912,21 @@ function manifest(base) {
912
912
  });
913
913
  }
914
914
  var APP_JS = `"use strict";
915
+ (function () {
916
+ var root = document.documentElement;
917
+ try {
918
+ var stored = localStorage.getItem("cronwatch-theme");
919
+ if (stored === "light" || stored === "dark") root.setAttribute("data-theme", stored);
920
+ } catch (e) {}
921
+ document.addEventListener("keydown", function (event) {
922
+ if (!(event.metaKey || event.ctrlKey) || !event.shiftKey || event.altKey || event.code !== "KeyD") return;
923
+ event.preventDefault();
924
+ var shown = root.getAttribute("data-theme") || (matchMedia("(prefers-color-scheme: dark)").matches ? "dark" : "light");
925
+ var next = shown === "dark" ? "light" : "dark";
926
+ root.setAttribute("data-theme", next);
927
+ try { localStorage.setItem("cronwatch-theme", next); } catch (e) {}
928
+ });
929
+ })();
915
930
  (function () {
916
931
  var script = document.currentScript;
917
932
  if (!script || !("serviceWorker" in navigator)) return;
@@ -1288,7 +1303,8 @@ function weekRunsLimit(job, now) {
1288
1303
  var h = escapeHtml;
1289
1304
  var CSS = `
1290
1305
  :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}
1291
- @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}}
1306
+ @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}}
1307
+ :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}
1292
1308
  *{box-sizing:border-box}html{-webkit-text-size-adjust:100%}
1293
1309
  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}
1294
1310
  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}
@@ -1645,7 +1661,7 @@ function messagePage(title, message, base, signIn = false) {
1645
1661
  }
1646
1662
 
1647
1663
  // src/version.ts
1648
- var VERSION = "0.11.0";
1664
+ var VERSION = "0.11.1";
1649
1665
  var API_VERSION = 1;
1650
1666
 
1651
1667
  // src/routes/index.ts