Vibecoded CI/CD
Some checks failed
Build and Deploy Lean / build (push) Failing after 16m44s
Build and Deploy Nuxt / build (push) Failing after 48s

This commit is contained in:
2026-10-06 00:23:17 +02:00
parent a57770619e
commit e2c2c66d7f
79 changed files with 6044 additions and 47 deletions

View File

@@ -0,0 +1,17 @@
/* Apply saved theme & accent before first paint to avoid a flash.
*
* This is the desktop build's copy of the inline snippet nuxt.config.ts puts
* in <head> for the web (keep the two in step). Out here as a file because a
* window may be held to a Content Security Policy — see src-tauri/README.md —
* and `script-src 'self'` would have no room for a script written inline in
* the HTML.
* A classic <script src> in <head> still runs before the page paints, so the
* surfaces arrive already the right way round. */
try {
var d = document.documentElement
var s = localStorage.getItem('mathew-theme')
var t = s || (window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches ? 'dark' : 'light')
d.setAttribute('data-theme', t)
var a = localStorage.getItem('mathew-accent')
if (a && a !== 'violet') d.setAttribute('data-accent', a)
} catch (e) {}