voting system with nostr added

This commit is contained in:
fsociety
2024-09-29 01:02:04 +02:00
parent a0ef037b2d
commit 354680f702
43 changed files with 3017 additions and 20688 deletions

View File

@@ -1,3 +1,8 @@
import {Alpine, Livewire} from '../../vendor/livewire/livewire/dist/livewire.esm';
import nostrApp from "./nostrApp.js";
import nostrLogin from "./nostrLogin.js";
import './bootstrap';
// Light switcher
@@ -6,3 +11,12 @@ document.documentElement.classList.add('dark');
document.querySelector('html').style.colorScheme = 'dark';
localStorage.setItem('dark-mode', true);
document.dispatchEvent(new CustomEvent('darkMode', { detail: { mode: 'on' } }));
Alpine.store('nostr', {
user: null,
});
Alpine.data('nostrApp', nostrApp);
Alpine.data('nostrLogin', nostrLogin);
Livewire.start();