diff --git a/src/lib/website/EditableProfile.svelte b/src/lib/website/EditableProfile.svelte --- a/src/lib/website/EditableProfile.svelte +++ b/src/lib/website/EditableProfile.svelte @@ -3,10 +3,8 @@ import { getImage, compressImage, getProfilePosition } from '$lib/helper'; import PlainTextEditor from '$lib/components/PlainTextEditor.svelte'; import MarkdownTextEditor from '$lib/components/MarkdownTextEditor.svelte'; - import { Avatar, Button } from '@foxui/core'; - import { getIsMobile } from './context'; + import { Avatar } from '@foxui/core'; import MadeWithBlento from './MadeWithBlento.svelte'; - import { SelectThemePopover } from '$lib/components/select-theme'; let { data = $bindable(), hideBlento = false }: { data: WebsiteData; hideBlento?: boolean } = $props(); diff --git a/src/routes/[handle=handle]/[[page]]/copy/+page.svelte b/src/routes/[handle=handle]/[[page]]/copy/+page.svelte new file mode 100644 --- /dev/null +++ b/src/routes/[handle=handle]/[[page]]/copy/+page.svelte @@ -0,0 +1,252 @@ + + +
+
+ {#if user.isLoggedIn} +

Copy Page

+ +
+
+ Source Page +
+
+ {sourceHandle}/{sourcePage || 'main'} +
+

{sourceCards.length} cards

+
+ +
+ + +
+ + {#if error} +
+ {error} +
+ {/if} + + {#if success} +
+ Page copied successfully! Redirecting... +
+ {/if} + +
+ + Cancel + + +
+ {:else} +

+ You must be signed in to copy a page! +

+ +
+ +
+ {/if} +
+