From a555b1a04e5ae9ad77209eba7e51826f857b5572 Mon Sep 17 00:00:00 2001 From: Florian <45694132+flo-bit@users.noreply.github.com> Date: Thu, 5 Feb 2026 19:36:40 +0100 Subject: [PATCH] copy page --- src/lib/website/EditableProfile.svelte | 4 +- .../[[page]]/copy/+page.svelte | 252 ++++++++++++++++++ 2 files changed, 253 insertions(+), 3 deletions(-) create mode 100644 src/routes/[handle=handle]/[[page]]/copy/+page.svelte diff --git a/src/lib/website/EditableProfile.svelte b/src/lib/website/EditableProfile.svelte index 7465016..d2d7042 100644 --- 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 index 0000000..b456d15 --- /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} +
+
-- 2.51.2