Split app/core up into domain-oriented files

This commit is contained in:
Jon Staab
2026-06-08 15:33:38 -07:00
parent ea6b63de53
commit 926b31de78
171 changed files with 2902 additions and 2628 deletions
+7 -8
View File
@@ -23,14 +23,13 @@
import SpaceJoinSettings from "@app/components/SpaceJoinSettings.svelte"
import {pushToast} from "@app/toast"
import {makeSpacePath} from "@app/routes"
import {relaysMostlyRestricted, notificationSettings, parseInviteLink} from "@app/core/state"
import {relaysMostlyRestricted} from "@app/policies"
import {notificationSettings, setSpaceNotifications} from "@app/settings"
import {parseInviteLink} from "@app/invites"
import {Push} from "@app/push"
import {
attemptRelayAccess,
addSpaceMembership,
broadcastUserData,
setSpaceNotifications,
} from "@app/core/commands"
import {attemptRelayAccess} from "@app/relays"
import {addSpace} from "@app/groups"
import {broadcastUserData} from "@app/profiles"
type Props = {
invite: string
@@ -68,7 +67,7 @@
await setSpaceNotifications(url, false)
}
await addSpaceMembership(url)
await addSpace(url)
await goto(makeSpacePath(url), {replaceState: true})
broadcastUserData([url])