mirror of
https://github.com/Einundzwanzig-Podcast/einundzwanzig-portal.git
synced 2025-12-11 06:46:47 +00:00
22 lines
663 B
JavaScript
22 lines
663 B
JavaScript
import "./components"
|
|
import {Alpine, Livewire} from '../../vendor/livewire/livewire/dist/livewire.esm';
|
|
import {NDKNip07Signer} from "@nostr-dev-kit/ndk";
|
|
import NDKCacheAdapterDexie from "@nostr-dev-kit/ndk-cache-dexie";
|
|
import nostrStart from "./nostr/nostrStart";
|
|
|
|
Alpine.store('ndk', {
|
|
// nostr ndk
|
|
ndk: null,
|
|
// signer
|
|
nip07signer: new NDKNip07Signer(),
|
|
// dexie cache adapter
|
|
dexieAdapter: new NDKCacheAdapterDexie({dbName: 'einundzwanzigNostrDB', expirationTime: 60 * 60 * 24 * 7}),
|
|
// current nostr user
|
|
user: null,
|
|
// hours ago
|
|
explicitRelayUrls: [],
|
|
});
|
|
Alpine.data('nostrStart', nostrStart);
|
|
|
|
Livewire.start();
|