- Change project title from "Atitlán Directory" to "Ariège Hub" in index.html - Update app title in meta tags for PWA support - Add @tanstack/vue-table dependency for enhanced table management - Refactor ConnectionStatus component to improve status variant logic - Enhance useEvents composable for better error handling and sorting - Add 'events' translation to Spanish and French locales - Create a new Pinia store for Nostr state management
22 lines
No EOL
430 B
TypeScript
22 lines
No EOL
430 B
TypeScript
import { defineStore } from 'pinia'
|
|
import { ref } from 'vue'
|
|
|
|
export const useNostrStore = defineStore('nostr', () => {
|
|
const isConnected = ref(false)
|
|
const relayUrls = ref<string[]>([])
|
|
|
|
function setConnected(value: boolean) {
|
|
isConnected.value = value
|
|
}
|
|
|
|
function setRelayUrls(urls: string[]) {
|
|
relayUrls.value = urls
|
|
}
|
|
|
|
return {
|
|
isConnected,
|
|
relayUrls,
|
|
setConnected,
|
|
setRelayUrls,
|
|
}
|
|
})
|