Выпущен 0.1.3: UX convenience pack, unwrap/admin polish и cache-bust статики.

Добавлены Share/QR PNG, zip all, size meter, PWA-manifest, системная тема и haptic на copy; улучшены success/unwrap и статистика админки (EN/RU).
This commit is contained in:
Sergey Antropoff
2026-07-29 11:33:21 +03:00
parent a5b29ee81e
commit 37349afab9
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);
}