Add space home page
This commit is contained in:
@@ -150,7 +150,7 @@
|
||||
"smile-circle": SmileCircle,
|
||||
server: Server,
|
||||
settings: Settings,
|
||||
'settings-minimalistic': SettingsMinimalistic,
|
||||
"settings-minimalistic": SettingsMinimalistic,
|
||||
"tag-horizontal": TagHorizontal,
|
||||
"trash-bin-2": TrashBin2,
|
||||
"ufo-3": UFO3,
|
||||
|
||||
@@ -24,6 +24,13 @@
|
||||
let timeout: number
|
||||
</script>
|
||||
|
||||
<div role="button" tabindex="0" on:click on:touchstart={onTouchStart} on:touchmove={onTouchMove} on:touchend={onTouchEnd} {...$$props}>
|
||||
<div
|
||||
role="button"
|
||||
tabindex="0"
|
||||
on:click
|
||||
on:touchstart={onTouchStart}
|
||||
on:touchmove={onTouchMove}
|
||||
on:touchend={onTouchEnd}
|
||||
{...$$props}>
|
||||
<slot />
|
||||
</div>
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import type {Writable} from "svelte/store"
|
||||
import {nprofileEncode} from "nostr-tools/nip19"
|
||||
import {SvelteNodeViewRenderer} from "svelte-tiptap"
|
||||
import Placeholder from '@tiptap/extension-placeholder'
|
||||
import Placeholder from "@tiptap/extension-placeholder"
|
||||
import Code from "@tiptap/extension-code"
|
||||
import CodeBlock from "@tiptap/extension-code-block"
|
||||
import Document from "@tiptap/extension-document"
|
||||
@@ -65,7 +65,7 @@ export const getModifiedHardBreakExtension = () =>
|
||||
"Shift-Enter": () => this.editor.commands.setHardBreak(),
|
||||
"Mod-Enter": () => this.editor.commands.setHardBreak(),
|
||||
Enter: () => {
|
||||
if (this.editor.getText({blockSeparator: '\n'}).trim()) {
|
||||
if (this.editor.getText({blockSeparator: "\n"}).trim()) {
|
||||
uploadFiles(this.editor)
|
||||
|
||||
return true
|
||||
|
||||
Reference in New Issue
Block a user