All modules, configs, paths, and references updated. 836 tests pass, zero warnings. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
41 lines
1.6 KiB
Plaintext
41 lines
1.6 KiB
Plaintext
<!DOCTYPE html>
|
|
<html lang="en" class="h-full">
|
|
<head>
|
|
<meta charset="utf-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
<meta name="csrf-token" content={get_csrf_token()} />
|
|
<.live_title default="Admin" suffix=" · Berrypod">
|
|
{assigns[:page_title]}
|
|
</.live_title>
|
|
<!-- Pre-declare layer order so shop reset < Tailwind base regardless of load order -->
|
|
<style>
|
|
@layer properties, reset, primitives, tokens, theme, base, components, layout, utilities, overrides;
|
|
</style>
|
|
<link phx-track-static rel="stylesheet" href={~p"/assets/css/admin.css"} />
|
|
<link phx-track-static rel="stylesheet" href={~p"/assets/css/shop.css"} />
|
|
<script defer phx-track-static src={~p"/assets/js/app.js"}>
|
|
</script>
|
|
<script>
|
|
(() => {
|
|
const setTheme = (theme) => {
|
|
if (theme === "system") {
|
|
localStorage.removeItem("phx:theme");
|
|
document.documentElement.removeAttribute("data-theme");
|
|
} else {
|
|
localStorage.setItem("phx:theme", theme);
|
|
document.documentElement.setAttribute("data-theme", theme);
|
|
}
|
|
};
|
|
if (!document.documentElement.hasAttribute("data-theme")) {
|
|
setTheme(localStorage.getItem("phx:theme") || "system");
|
|
}
|
|
window.addEventListener("storage", (e) => e.key === "phx:theme" && setTheme(e.newValue || "system"));
|
|
window.addEventListener("phx:set-theme", (e) => setTheme(e.target.dataset.phxTheme));
|
|
})();
|
|
</script>
|
|
</head>
|
|
<body class="h-full">
|
|
{@inner_content}
|
|
</body>
|
|
</html>
|