feat: add Prettier with go-template and toml plugins, format all files

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-05-08 13:18:05 +02:00
parent b78bc26322
commit 436223913e
36 changed files with 1765 additions and 1178 deletions
+10 -5
View File
@@ -17,7 +17,9 @@
bar.style.width = "100%";
setTimeout(() => {
bar.style.opacity = "0";
setTimeout(() => { bar.style.width = "0"; }, 350);
setTimeout(() => {
bar.style.width = "0";
}, 350);
}, 150);
});
})();
@@ -37,9 +39,11 @@ function initLazyVideos(root) {
observer.unobserve(video);
});
},
{ rootMargin: "300px" }
{ rootMargin: "300px" },
);
(root || document).querySelectorAll("video[data-src]").forEach((v) => observer.observe(v));
(root || document)
.querySelectorAll("video[data-src]")
.forEach((v) => observer.observe(v));
}
initLazyVideos();
@@ -67,7 +71,9 @@ document.body.addEventListener("htmx:historyRestore", () => {
bar.style.width = "100%";
setTimeout(() => {
bar.style.opacity = "0";
setTimeout(() => { bar.style.width = "0"; }, 350);
setTimeout(() => {
bar.style.width = "0";
}, 350);
}, 150);
}
@@ -81,4 +87,3 @@ document.body.addEventListener("htmx:historyRestore", () => {
window.scrollTo({ top: 0, behavior: "instant" });
window.dispatchEvent(new Event("scroll"));
});