Robots, Trusted Types, and various other bits...
All checks were successful
ci/woodpecker/push/ci Pipeline was successful
ci/woodpecker/push/deploy Pipeline was successful

This commit is contained in:
2026-02-06 21:07:57 -03:00
parent a52938f6cf
commit 9db2592cf4
13 changed files with 65 additions and 12 deletions

12
static/assets/js/bootstrap.js vendored Normal file
View File

@@ -0,0 +1,12 @@
(function () {
// Default Trusted Type policy so Svelte hydration can assign to innerHTML under CSP require-trusted-types-for 'script'.
if (typeof window.trustedTypes !== 'undefined' && window.trustedTypes.createPolicy) {
try {
window.trustedTypes.createPolicy('default', { createHTML: function (input) { return input; } });
} catch { /* policy already exists */ }
}
var t = localStorage.getItem('mifi-theme');
if (t === 'light' || t === 'dark') document.documentElement.setAttribute('data-theme', t);
else document.documentElement.removeAttribute('data-theme');
})();

View File

@@ -1,5 +0,0 @@
(function () {
var t = localStorage.getItem('mifi-theme');
if (t === 'light' || t === 'dark') document.documentElement.setAttribute('data-theme', t);
else document.documentElement.removeAttribute('data-theme');
})();

View File

@@ -50,7 +50,7 @@
--color-border: hsl(220 14% 20%);
--color-border-subtle: hsl(220 12% 16%);
--color-primary: hsl(220 55% 62%);
--color-primary-muted: hsl(220 45% 55%);
--color-primary-muted: hsl(220 45% 62%);
--color-secondary: hsl(330 50% 65%);
--color-secondary-muted: hsl(330 42% 58%);
--color-accent: hsl(220 55% 62%);
@@ -93,7 +93,7 @@
--color-border: hsl(220 14% 20%);
--color-border-subtle: hsl(220 12% 16%);
--color-primary: hsl(220 55% 62%);
--color-primary-muted: hsl(220 45% 55%);
--color-primary-muted: hsl(220 45% 62%);
--color-secondary: hsl(330 50% 65%);
--color-secondary-muted: hsl(330 42% 58%);
--color-accent: hsl(220 55% 62%);

View File

@@ -42,7 +42,7 @@
--color-border: hsl(260 15% 22%);
--color-border-subtle: hsl(260 12% 18%);
--color-primary: hsl(262 70% 65%);
--color-primary-muted: hsl(262 50% 58%);
--color-primary-muted: hsl(262 50% 65%);
--color-secondary: hsl(220 25% 68%);
--color-secondary-muted: hsl(220 20% 58%);
--color-accent: hsl(262 70% 65%);
@@ -85,7 +85,7 @@
--color-border: hsl(260 15% 22%);
--color-border-subtle: hsl(260 12% 18%);
--color-primary: hsl(262 70% 65%);
--color-primary-muted: hsl(262 50% 58%);
--color-primary-muted: hsl(262 50% 65%);
--color-secondary: hsl(220 25% 68%);
--color-secondary-muted: hsl(220 20% 58%);
--color-accent: hsl(262 70% 65%);