Выпущен 0.1.3: UX convenience pack, unwrap/admin polish и cache-bust статики.
devops-tools/wrapped/wrapped-build/pipeline/head There was a failure building this commit

Добавлены Share/QR PNG, zip all, size meter, PWA-manifest, системная тема и haptic на copy; улучшены success/unwrap и статистика админки (EN/RU).
This commit is contained in:
2026-07-29 11:33:21 +03:00
parent 49df683281
commit 806f2bdb1b
26 changed files with 1317 additions and 136 deletions
+9 -2
View File
@@ -1,8 +1,14 @@
(() => {
const KEY = "wrapped.theme";
function systemTheme() {
return window.matchMedia("(prefers-color-scheme: light)").matches ? "light" : "dark";
}
function preferred() {
return localStorage.getItem(KEY) || "dark";
const stored = localStorage.getItem(KEY);
if (stored === "light" || stored === "dark") return stored;
return systemTheme();
}
function apply(theme) {
@@ -16,7 +22,8 @@
}
function toggle() {
const next = preferred() === "dark" ? "light" : "dark";
const current = document.documentElement.getAttribute("data-theme") || preferred();
const next = current === "dark" ? "light" : "dark";
localStorage.setItem(KEY, next);
apply(next);
}