feat: Sprint 3 — settings page with tabs/toggles/devices/danger-zone, brief page

This commit is contained in:
swanadiva
2026-07-07 13:31:13 +07:00
parent c4b0d7d8c0
commit c5ac07e27f
10 changed files with 438 additions and 11 deletions
+13
View File
@@ -0,0 +1,13 @@
document.addEventListener('alpine:init', () => {
Alpine.data('switchToggle', (initial) => ({
on: initial,
toggle() {
this.on = !this.on;
this.$el.classList.toggle('active', this.on);
this.$nextTick(() => {
const hidden = this.$el.nextElementSibling;
if (hidden) hidden.value = this.on ? 'on' : '';
});
}
}));
});