2024-08-05 21:45:16 +00:00
|
|
|
<script lang="ts">
|
2024-08-06 20:10:10 +00:00
|
|
|
import "@src/app.css"
|
2025-05-15 17:15:41 +00:00
|
|
|
import "@capacitor-community/safe-area"
|
2025-07-30 22:54:10 +00:00
|
|
|
import {throttle} from "throttle-debounce"
|
2024-08-16 17:50:38 +00:00
|
|
|
import {onMount} from "svelte"
|
2025-01-28 21:04:37 +00:00
|
|
|
import * as nip19 from "nostr-tools/nip19"
|
2025-10-06 18:23:19 +00:00
|
|
|
import {get} from "svelte/store"
|
2025-08-26 16:14:11 +00:00
|
|
|
import {App, type URLOpenListenerEvent} from "@capacitor/app"
|
2024-10-23 16:45:06 +00:00
|
|
|
import {dev} from "$app/environment"
|
2025-01-28 21:04:37 +00:00
|
|
|
import {goto} from "$app/navigation"
|
2025-07-15 18:06:47 +00:00
|
|
|
import {sync, localStorageProvider} from "@welshman/store"
|
2025-10-06 18:23:19 +00:00
|
|
|
import {assoc, call, defer, dissoc, on, sleep, spec, TaskQueue} from "@welshman/lib"
|
2025-04-09 22:32:18 +00:00
|
|
|
import type {TrustedEvent, StampedEvent} from "@welshman/util"
|
2025-09-30 23:11:49 +00:00
|
|
|
import {WRAP} from "@welshman/util"
|
2025-04-11 18:51:15 +00:00
|
|
|
import {Nip46Broker, makeSecret} from "@welshman/signer"
|
2025-09-03 22:29:57 +00:00
|
|
|
import type {Socket, RelayMessage, ClientMessage} from "@welshman/net"
|
2025-09-03 16:02:54 +00:00
|
|
|
import {
|
|
|
|
|
defaultSocketPolicies,
|
|
|
|
|
makeSocketPolicyAuth,
|
|
|
|
|
SocketEvent,
|
|
|
|
|
isRelayEvent,
|
2025-09-03 22:29:57 +00:00
|
|
|
isRelayOk,
|
|
|
|
|
isRelayClosed,
|
|
|
|
|
isClientReq,
|
|
|
|
|
isClientEvent,
|
|
|
|
|
isClientClose,
|
2025-09-03 16:02:54 +00:00
|
|
|
} from "@welshman/net"
|
2024-08-30 23:25:41 +00:00
|
|
|
import {
|
|
|
|
|
repository,
|
|
|
|
|
pubkey,
|
2024-10-23 00:29:43 +00:00
|
|
|
session,
|
2025-07-15 18:06:47 +00:00
|
|
|
sessions,
|
2024-10-23 00:29:43 +00:00
|
|
|
signer,
|
2025-07-30 22:54:10 +00:00
|
|
|
signerLog,
|
2024-10-23 00:29:43 +00:00
|
|
|
dropSession,
|
2025-04-11 18:51:15 +00:00
|
|
|
loginWithNip01,
|
|
|
|
|
loginWithNip46,
|
2025-07-09 16:17:45 +00:00
|
|
|
loadRelaySelections,
|
2025-07-30 22:54:10 +00:00
|
|
|
SignerLogEntryStatus,
|
2024-08-30 23:25:41 +00:00
|
|
|
} from "@welshman/app"
|
2024-10-11 00:09:01 +00:00
|
|
|
import * as lib from "@welshman/lib"
|
|
|
|
|
import * as util from "@welshman/util"
|
2025-06-19 17:22:17 +00:00
|
|
|
import * as feeds from "@welshman/feeds"
|
2025-06-16 23:56:59 +00:00
|
|
|
import * as router from "@welshman/router"
|
2024-11-15 22:03:54 +00:00
|
|
|
import * as welshmanSigner from "@welshman/signer"
|
2024-11-14 00:14:05 +00:00
|
|
|
import * as net from "@welshman/net"
|
2024-09-11 18:09:25 +00:00
|
|
|
import * as app from "@welshman/app"
|
2025-07-30 22:54:10 +00:00
|
|
|
import {nsecDecode} from "@lib/util"
|
2025-09-30 23:11:49 +00:00
|
|
|
import {preferencesStorageProvider} from "@lib/storage"
|
2024-10-15 22:13:11 +00:00
|
|
|
import AppContainer from "@app/components/AppContainer.svelte"
|
|
|
|
|
import ModalContainer from "@app/components/ModalContainer.svelte"
|
2025-10-06 18:23:19 +00:00
|
|
|
import {setupHistory} from "@app/util/history"
|
2025-08-21 22:01:31 +00:00
|
|
|
import {setupTracking} from "@app/util/tracking"
|
|
|
|
|
import {setupAnalytics} from "@app/util/analytics"
|
2025-05-13 21:31:34 +00:00
|
|
|
import {
|
2025-09-03 16:02:54 +00:00
|
|
|
userSettingsValues,
|
|
|
|
|
relaysPendingTrust,
|
2025-05-13 21:31:34 +00:00
|
|
|
ensureUnwrapped,
|
|
|
|
|
canDecrypt,
|
2025-09-03 16:02:54 +00:00
|
|
|
getSetting,
|
2025-09-03 22:29:57 +00:00
|
|
|
relaysMostlyRestricted,
|
2025-08-21 22:01:31 +00:00
|
|
|
} from "@app/core/state"
|
2025-10-06 18:23:19 +00:00
|
|
|
import {syncApplicationData} from "@app/core/sync"
|
2025-08-21 22:01:31 +00:00
|
|
|
import {theme} from "@app/util/theme"
|
|
|
|
|
import {toast, pushToast} from "@app/util/toast"
|
|
|
|
|
import {initializePushNotifications} from "@app/util/push"
|
|
|
|
|
import * as commands from "@app/core/commands"
|
|
|
|
|
import * as requests from "@app/core/requests"
|
|
|
|
|
import * as appState from "@app/core/state"
|
2025-09-30 23:11:49 +00:00
|
|
|
import * as notifications from "@app/util/notifications"
|
|
|
|
|
import * as storage from "@app/util/storage"
|
2025-09-24 17:32:55 +00:00
|
|
|
import NewNotificationSound from "@src/app/components/NewNotificationSound.svelte"
|
2025-09-30 23:11:49 +00:00
|
|
|
|
|
|
|
|
// Migration: delete old indexeddb database
|
2025-10-01 00:04:52 +00:00
|
|
|
indexedDB?.deleteDatabase("flotilla")
|
2024-08-05 21:45:16 +00:00
|
|
|
|
2024-10-23 00:29:43 +00:00
|
|
|
// Migration: old nostrtalk instance used different sessions
|
|
|
|
|
if ($session && !$signer) {
|
|
|
|
|
dropSession($session.pubkey)
|
|
|
|
|
}
|
|
|
|
|
|
2025-06-24 21:15:36 +00:00
|
|
|
// Initialize push notification handler asap
|
|
|
|
|
initializePushNotifications()
|
|
|
|
|
|
2025-02-04 01:21:46 +00:00
|
|
|
const {children} = $props()
|
2025-02-04 00:37:14 +00:00
|
|
|
|
2025-02-04 01:21:46 +00:00
|
|
|
const ready = $state(defer<void>())
|
2024-08-09 00:22:17 +00:00
|
|
|
|
2025-09-30 23:11:49 +00:00
|
|
|
let initialized = false
|
|
|
|
|
|
2024-11-14 00:14:05 +00:00
|
|
|
onMount(async () => {
|
2024-11-15 22:03:54 +00:00
|
|
|
Object.assign(window, {
|
|
|
|
|
get,
|
|
|
|
|
nip19,
|
2025-09-11 21:47:06 +00:00
|
|
|
theme,
|
2024-11-15 22:03:54 +00:00
|
|
|
...lib,
|
|
|
|
|
...welshmanSigner,
|
2025-06-16 23:56:59 +00:00
|
|
|
...router,
|
2024-11-15 22:03:54 +00:00
|
|
|
...util,
|
2025-06-19 17:22:17 +00:00
|
|
|
...feeds,
|
2024-11-15 22:03:54 +00:00
|
|
|
...net,
|
|
|
|
|
...app,
|
2025-02-04 00:37:14 +00:00
|
|
|
...appState,
|
2024-11-15 22:03:54 +00:00
|
|
|
...commands,
|
2024-12-11 00:38:22 +00:00
|
|
|
...requests,
|
2024-11-15 22:03:54 +00:00
|
|
|
...notifications,
|
|
|
|
|
})
|
2024-08-23 20:33:36 +00:00
|
|
|
|
2025-08-29 15:06:50 +00:00
|
|
|
// migrate from localStorage to capacitor Preferences storage if needed
|
|
|
|
|
const runMigration = async () => {
|
|
|
|
|
const isSome = (item: any) => {
|
|
|
|
|
return item !== undefined && item !== null && item !== ""
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const localStoragePubKey = await localStorageProvider.get("pubkey")
|
|
|
|
|
if (isSome(localStoragePubKey)) {
|
|
|
|
|
await preferencesStorageProvider.set("pubkey", localStoragePubKey)
|
|
|
|
|
localStorage.removeItem("pubkey")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const localStorageSessions = await localStorageProvider.get("sessions")
|
|
|
|
|
if (isSome(localStorageSessions)) {
|
|
|
|
|
await preferencesStorageProvider.set("sessions", localStorageSessions)
|
|
|
|
|
localStorage.removeItem("sessions")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const localStorageCanDecrypt = await localStorageProvider.get("canDecrypt")
|
|
|
|
|
if (isSome(localStorageCanDecrypt)) {
|
|
|
|
|
await preferencesStorageProvider.set("canDecrypt", localStorageCanDecrypt)
|
|
|
|
|
localStorage.removeItem("canDecrypt")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const localStorageChecked = await localStorageProvider.get("checked")
|
|
|
|
|
if (isSome(localStorageChecked)) {
|
|
|
|
|
await preferencesStorageProvider.set("checked", localStorageChecked)
|
|
|
|
|
localStorage.removeItem("checked")
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
const localStorageTheme = await localStorageProvider.get("theme")
|
|
|
|
|
if (isSome(localStorageTheme)) {
|
|
|
|
|
await preferencesStorageProvider.set("theme", localStorageTheme)
|
|
|
|
|
localStorage.removeItem("theme")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
await runMigration()
|
|
|
|
|
|
2025-06-19 17:22:17 +00:00
|
|
|
// Listen for navigation messages from service worker
|
2025-06-24 21:15:36 +00:00
|
|
|
navigator.serviceWorker?.addEventListener("message", event => {
|
|
|
|
|
if (event.data && event.data.type === "NAVIGATE") {
|
2025-06-19 17:22:17 +00:00
|
|
|
goto(event.data.url)
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2025-08-26 16:14:11 +00:00
|
|
|
// Listen for deep link events
|
|
|
|
|
App.addListener("appUrlOpen", (event: URLOpenListenerEvent) => {
|
|
|
|
|
const url = new URL(event.url)
|
|
|
|
|
const target = `${url.pathname}${url.search}${url.hash}`
|
|
|
|
|
goto(target, {replaceState: false, noScroll: false})
|
|
|
|
|
})
|
|
|
|
|
|
2025-01-28 21:04:37 +00:00
|
|
|
// Nstart login
|
|
|
|
|
if (window.location.hash?.startsWith("#nostr-login")) {
|
|
|
|
|
const params = new URLSearchParams(window.location.hash.slice(1))
|
|
|
|
|
const login = params.get("nostr-login")
|
|
|
|
|
|
|
|
|
|
let success = false
|
|
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
if (login?.startsWith("bunker://")) {
|
2025-04-11 18:51:15 +00:00
|
|
|
const clientSecret = makeSecret()
|
|
|
|
|
const {signerPubkey, connectSecret, relays} = Nip46Broker.parseBunkerUrl(login)
|
2025-05-07 20:53:58 +00:00
|
|
|
const broker = new Nip46Broker({relays, clientSecret, signerPubkey})
|
2025-04-11 18:51:15 +00:00
|
|
|
const result = await broker.connect(connectSecret, appState.NIP46_PERMS)
|
|
|
|
|
const pubkey = await broker.getPublicKey()
|
|
|
|
|
|
|
|
|
|
// TODO: remove ack result
|
|
|
|
|
if (pubkey && ["ack", connectSecret].includes(result)) {
|
|
|
|
|
loginWithNip46(pubkey, clientSecret, signerPubkey, relays)
|
2025-05-07 20:53:58 +00:00
|
|
|
broker.cleanup()
|
2025-04-11 18:51:15 +00:00
|
|
|
success = true
|
|
|
|
|
}
|
|
|
|
|
} else if (login) {
|
|
|
|
|
loginWithNip01(nsecDecode(login))
|
2025-01-28 21:04:37 +00:00
|
|
|
success = true
|
|
|
|
|
}
|
|
|
|
|
} catch (e) {
|
|
|
|
|
console.error(e)
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (success) {
|
|
|
|
|
goto("/home")
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
2025-05-12 16:35:41 +00:00
|
|
|
// Sync theme
|
|
|
|
|
theme.subscribe($theme => {
|
|
|
|
|
document.body.setAttribute("data-theme", $theme)
|
|
|
|
|
})
|
|
|
|
|
|
2025-05-13 21:31:34 +00:00
|
|
|
// Sync font size
|
2025-09-03 16:02:54 +00:00
|
|
|
userSettingsValues.subscribe($userSettingsValues => {
|
2025-05-13 21:31:34 +00:00
|
|
|
// @ts-ignore
|
2025-09-03 16:02:54 +00:00
|
|
|
document.documentElement.style["font-size"] = `${$userSettingsValues.font_size}rem`
|
2025-05-13 21:31:34 +00:00
|
|
|
})
|
|
|
|
|
|
2025-09-30 23:11:49 +00:00
|
|
|
if (!initialized) {
|
|
|
|
|
initialized = true
|
2025-10-06 18:23:19 +00:00
|
|
|
setupHistory()
|
2024-10-25 21:36:33 +00:00
|
|
|
setupTracking()
|
2024-10-25 21:15:35 +00:00
|
|
|
setupAnalytics()
|
|
|
|
|
|
2025-01-24 17:36:24 +00:00
|
|
|
App.addListener("backButton", () => {
|
|
|
|
|
if (window.history.length > 1) {
|
|
|
|
|
window.history.back()
|
|
|
|
|
} else {
|
|
|
|
|
App.exitApp()
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2025-05-05 17:11:02 +00:00
|
|
|
// Unwrap gift wraps as they come in, but throttled
|
|
|
|
|
const unwrapper = new TaskQueue<TrustedEvent>({batchSize: 10, processItem: ensureUnwrapped})
|
|
|
|
|
|
|
|
|
|
repository.on("update", ({added}) => {
|
|
|
|
|
for (const event of added) {
|
2025-07-09 16:17:45 +00:00
|
|
|
loadRelaySelections(event.pubkey)
|
|
|
|
|
|
|
|
|
|
if ($canDecrypt && event.kind === WRAP) {
|
2025-05-05 17:11:02 +00:00
|
|
|
unwrapper.push(event)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
})
|
|
|
|
|
|
2025-07-15 18:06:47 +00:00
|
|
|
// Sync current pubkey
|
2025-08-29 15:06:50 +00:00
|
|
|
await sync({
|
2025-07-15 18:06:47 +00:00
|
|
|
key: "pubkey",
|
|
|
|
|
store: pubkey,
|
2025-08-29 15:06:50 +00:00
|
|
|
storage: preferencesStorageProvider,
|
2025-07-15 18:06:47 +00:00
|
|
|
})
|
|
|
|
|
|
|
|
|
|
// Sync user sessions
|
2025-08-29 15:06:50 +00:00
|
|
|
await sync({
|
2025-07-15 18:06:47 +00:00
|
|
|
key: "sessions",
|
|
|
|
|
store: sessions,
|
2025-08-29 15:06:50 +00:00
|
|
|
storage: preferencesStorageProvider,
|
2025-07-15 18:06:47 +00:00
|
|
|
})
|
|
|
|
|
|
2025-09-30 23:11:49 +00:00
|
|
|
// Sync application data (relay, events, etc)
|
|
|
|
|
await storage.syncDataStores()
|
2024-08-14 19:46:25 +00:00
|
|
|
|
2025-09-30 23:11:49 +00:00
|
|
|
// Wait 300 ms for any throttled stores to finish
|
2025-04-23 18:05:28 +00:00
|
|
|
sleep(300).then(() => ready.resolve())
|
|
|
|
|
|
2025-04-09 22:32:18 +00:00
|
|
|
defaultSocketPolicies.push(
|
|
|
|
|
makeSocketPolicyAuth({
|
|
|
|
|
sign: (event: StampedEvent) => signer.get()?.sign(event),
|
|
|
|
|
shouldAuth: (socket: Socket) => true,
|
|
|
|
|
}),
|
2025-09-03 16:02:54 +00:00
|
|
|
(socket: Socket) => {
|
|
|
|
|
const buffer: RelayMessage[] = []
|
|
|
|
|
|
|
|
|
|
const unsubscribers = [
|
|
|
|
|
// When the socket goes from untrusted to trusted, receive all buffered messages
|
|
|
|
|
userSettingsValues.subscribe($settings => {
|
|
|
|
|
if ($settings.trusted_relays.includes(socket.url)) {
|
|
|
|
|
for (const message of buffer.splice(0)) {
|
|
|
|
|
socket._recvQueue.push(message)
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
// When we get an event with no signature from an untrusted relay, remove it from
|
|
|
|
|
// the receive queue. If trust status is undefined, buffer it for later.
|
|
|
|
|
on(socket, SocketEvent.Receiving, (message: RelayMessage) => {
|
|
|
|
|
if (isRelayEvent(message) && !message[2]?.sig) {
|
|
|
|
|
const isTrusted = getSetting<string[]>("trusted_relays").includes(socket.url)
|
|
|
|
|
|
|
|
|
|
if (!isTrusted) {
|
|
|
|
|
socket._recvQueue.remove(message)
|
|
|
|
|
buffer.push(message)
|
|
|
|
|
|
|
|
|
|
if (!$relaysPendingTrust.includes(socket.url)) {
|
|
|
|
|
relaysPendingTrust.update($r => [...$r, socket.url])
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
]
|
|
|
|
|
|
2025-09-03 22:29:57 +00:00
|
|
|
return () => {
|
|
|
|
|
unsubscribers.forEach(call)
|
|
|
|
|
}
|
|
|
|
|
},
|
|
|
|
|
function monitorRestrictedResponses(socket: Socket) {
|
|
|
|
|
let total = 0
|
|
|
|
|
let restricted = 0
|
|
|
|
|
let error = ""
|
|
|
|
|
|
|
|
|
|
const pending = new Set<string>()
|
|
|
|
|
|
|
|
|
|
const updateStatus = () =>
|
|
|
|
|
relaysMostlyRestricted.update(
|
|
|
|
|
restricted > total / 2 ? assoc(socket.url, error) : dissoc(socket.url),
|
|
|
|
|
)
|
|
|
|
|
|
|
|
|
|
const unsubscribers = [
|
|
|
|
|
on(socket, SocketEvent.Receive, (message: RelayMessage) => {
|
|
|
|
|
if (isRelayOk(message)) {
|
|
|
|
|
const [_, id, ok, details = ""] = message
|
|
|
|
|
|
|
|
|
|
if (pending.has(id)) {
|
|
|
|
|
pending.delete(id)
|
|
|
|
|
|
|
|
|
|
if (!ok && details.startsWith("restricted: ")) {
|
|
|
|
|
restricted++
|
|
|
|
|
error = details
|
|
|
|
|
updateStatus()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (isRelayClosed(message)) {
|
|
|
|
|
const [_, id, details = ""] = message
|
|
|
|
|
|
|
|
|
|
if (pending.has(id)) {
|
|
|
|
|
pending.delete(id)
|
|
|
|
|
|
|
|
|
|
if (details.startsWith("restricted: ")) {
|
|
|
|
|
restricted++
|
|
|
|
|
error = details
|
|
|
|
|
updateStatus()
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
on(socket, SocketEvent.Send, (message: ClientMessage) => {
|
|
|
|
|
if (isClientReq(message)) {
|
|
|
|
|
total++
|
|
|
|
|
pending.add(message[1])
|
|
|
|
|
updateStatus()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (isClientEvent(message)) {
|
|
|
|
|
total++
|
|
|
|
|
pending.add(message[1].id)
|
|
|
|
|
updateStatus()
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if (isClientClose(message)) {
|
|
|
|
|
pending.delete(message[1])
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
]
|
|
|
|
|
|
2025-09-03 16:02:54 +00:00
|
|
|
return () => {
|
|
|
|
|
unsubscribers.forEach(call)
|
|
|
|
|
}
|
|
|
|
|
},
|
2025-04-09 22:32:18 +00:00
|
|
|
)
|
2024-11-14 00:14:05 +00:00
|
|
|
|
2025-10-06 18:23:19 +00:00
|
|
|
// Load user data, listen for messages, etc
|
|
|
|
|
syncApplicationData()
|
2025-07-30 22:54:10 +00:00
|
|
|
|
2025-09-23 15:34:53 +00:00
|
|
|
// subscribe to badge count for changes
|
2025-09-30 23:11:49 +00:00
|
|
|
notifications.badgeCount.subscribe(notifications.handleBadgeCountChanges)
|
2025-09-23 15:34:53 +00:00
|
|
|
|
2025-07-30 22:54:10 +00:00
|
|
|
// Listen for signer errors, report to user via toast
|
|
|
|
|
signerLog.subscribe(
|
|
|
|
|
throttle(10_000, $log => {
|
|
|
|
|
const recent = $log.slice(-10)
|
|
|
|
|
const success = recent.filter(spec({status: SignerLogEntryStatus.Success}))
|
|
|
|
|
const failure = recent.filter(spec({status: SignerLogEntryStatus.Failure}))
|
|
|
|
|
|
|
|
|
|
if (!$toast && failure.length > 5 && success.length === 0) {
|
|
|
|
|
pushToast({
|
|
|
|
|
theme: "error",
|
|
|
|
|
timeout: 60_000,
|
|
|
|
|
message: "Your signer appears to be unresponsive.",
|
|
|
|
|
action: {
|
|
|
|
|
message: "Details",
|
|
|
|
|
onclick: () => goto("/settings/profile"),
|
|
|
|
|
},
|
|
|
|
|
})
|
|
|
|
|
}
|
|
|
|
|
}),
|
|
|
|
|
)
|
2024-10-15 21:44:21 +00:00
|
|
|
}
|
2024-08-09 00:22:17 +00:00
|
|
|
})
|
2024-08-05 21:45:16 +00:00
|
|
|
</script>
|
|
|
|
|
|
2024-10-23 16:45:06 +00:00
|
|
|
<svelte:head>
|
|
|
|
|
{#if !dev}
|
|
|
|
|
<link rel="manifest" href="/manifest.webmanifest" />
|
|
|
|
|
{/if}
|
|
|
|
|
</svelte:head>
|
|
|
|
|
|
2024-08-14 19:46:25 +00:00
|
|
|
{#await ready}
|
2025-05-12 16:35:41 +00:00
|
|
|
<div></div>
|
2024-08-14 19:46:25 +00:00
|
|
|
{:then}
|
2025-05-12 16:35:41 +00:00
|
|
|
<div>
|
2024-10-15 22:13:11 +00:00
|
|
|
<AppContainer>
|
2025-02-04 00:37:14 +00:00
|
|
|
{@render children()}
|
2024-10-15 22:13:11 +00:00
|
|
|
</AppContainer>
|
|
|
|
|
<ModalContainer />
|
2025-02-03 23:01:42 +00:00
|
|
|
<div class="tippy-target"></div>
|
2025-09-24 17:32:55 +00:00
|
|
|
<NewNotificationSound />
|
2024-08-05 21:45:16 +00:00
|
|
|
</div>
|
2024-08-14 19:46:25 +00:00
|
|
|
{/await}
|