forked from coracle/flotilla
Split app/core up into domain-oriented files
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
import type {NodeViewRendererProps} from "@tiptap/core"
|
||||
import {displayRelayUrl} from "@welshman/util"
|
||||
import {deriveRoom} from "@app/core/state"
|
||||
import {deriveRoom} from "@app/groups"
|
||||
|
||||
export const RoomReferenceNodeView = ({node}: NodeViewRendererProps) => {
|
||||
const dom = document.createElement("span")
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
<script lang="ts">
|
||||
import {displayRelayUrl} from "@welshman/util"
|
||||
import RoomNameWithImage from "@app/components/RoomNameWithImage.svelte"
|
||||
import {splitRoomId} from "@app/core/state"
|
||||
import {splitRoomId} from "@app/groups"
|
||||
|
||||
type Props = {
|
||||
value: string
|
||||
|
||||
@@ -27,14 +27,9 @@ import ProfileSuggestion from "@app/editor/ProfileSuggestion.svelte"
|
||||
import {RoomReferenceExtension} from "@app/editor/RoomReferenceExtension"
|
||||
import RoomSuggestion from "@app/editor/RoomSuggestion.svelte"
|
||||
import {NativeClipboardPasteExtension} from "@app/editor/clipboard"
|
||||
import {uploadFile} from "@app/core/commands"
|
||||
import {
|
||||
deriveSpaceMembers,
|
||||
makeRoomId,
|
||||
splitRoomId,
|
||||
userSpaceUrls,
|
||||
roomsByUrl,
|
||||
} from "@app/core/state"
|
||||
import {uploadFile} from "@app/uploads"
|
||||
import {deriveSpaceMembers} from "@app/members"
|
||||
import {makeRoomId, splitRoomId, userSpaceUrls, roomsByUrl} from "@app/groups"
|
||||
import {pushToast} from "@app/toast"
|
||||
|
||||
export const makeEditor = async ({
|
||||
|
||||
Reference in New Issue
Block a user