From 5f8e355bdc65ca7068e9208499cbbd7adb459702 Mon Sep 17 00:00:00 2001 From: silentsilas Date: Fri, 7 Feb 2025 22:57:12 -0500 Subject: [PATCH] split out pad page into its own editor component --- src/lib/components/pad/Editor.svelte | 230 +++++++++++++++++++++++++++ src/routes/(app)/pad/+page.svelte | 226 +------------------------- 2 files changed, 232 insertions(+), 224 deletions(-) create mode 100644 src/lib/components/pad/Editor.svelte diff --git a/src/lib/components/pad/Editor.svelte b/src/lib/components/pad/Editor.svelte new file mode 100644 index 0000000..58d324e --- /dev/null +++ b/src/lib/components/pad/Editor.svelte @@ -0,0 +1,230 @@ + + + + +
+ + + {#if suggestions.length > 0 || rhymes.length > 0} +
+ {#if suggestions.length > 0} +
+

Suggestions

+ {#each suggestions.slice(0, 10) as { word }} + + {/each} +
+ {/if} + + {#if rhymes.length > 0} +
+

Rhymes

+ {#each rhymes.slice(0, 10) as { word }} + + {/each} +
+ {/if} +
+ {/if} +
+ + diff --git a/src/routes/(app)/pad/+page.svelte b/src/routes/(app)/pad/+page.svelte index 46676a7..b380a86 100644 --- a/src/routes/(app)/pad/+page.svelte +++ b/src/routes/(app)/pad/+page.svelte @@ -1,159 +1,7 @@ @@ -161,74 +9,4 @@ - - -
- - - {#if suggestions.length > 0 || rhymes.length > 0} -
- {#if suggestions.length > 0} -
-

Suggestions

- {#each suggestions.slice(0, 10) as { word }} - - {/each} -
- {/if} - - {#if rhymes.length > 0} -
-

Rhymes

- {#each rhymes.slice(0, 10) as { word }} - - {/each} -
- {/if} -
- {/if} -
- - +