From fa6bf5bbacbfa3d4ed5a409ecd2111c255fe30f6 Mon Sep 17 00:00:00 2001 From: Chris Kruining Date: Mon, 3 Mar 2025 11:10:19 +0100 Subject: [PATCH] split formatter page to textarea and editor --- src/routes/(editor)/experimental.tsx | 3 +- ...formatter.module.css => editor.module.css} | 0 .../{formatter.tsx => editor.tsx} | 12 ++--- .../(editor)/experimental/textarea.module.css | 50 +++++++++++++++++++ src/routes/(editor)/experimental/textarea.tsx | 41 +++++++++++++++ 5 files changed, 98 insertions(+), 8 deletions(-) rename src/routes/(editor)/experimental/{formatter.module.css => editor.module.css} (100%) rename src/routes/(editor)/experimental/{formatter.tsx => editor.tsx} (83%) create mode 100644 src/routes/(editor)/experimental/textarea.module.css create mode 100644 src/routes/(editor)/experimental/textarea.tsx diff --git a/src/routes/(editor)/experimental.tsx b/src/routes/(editor)/experimental.tsx index 5ddac59..171a55a 100644 --- a/src/routes/(editor)/experimental.tsx +++ b/src/routes/(editor)/experimental.tsx @@ -17,7 +17,8 @@ export default function Experimental(props: ParentProps) { - + + }> diff --git a/src/routes/(editor)/experimental/formatter.module.css b/src/routes/(editor)/experimental/editor.module.css similarity index 100% rename from src/routes/(editor)/experimental/formatter.module.css rename to src/routes/(editor)/experimental/editor.module.css diff --git a/src/routes/(editor)/experimental/formatter.tsx b/src/routes/(editor)/experimental/editor.tsx similarity index 83% rename from src/routes/(editor)/experimental/formatter.tsx rename to src/routes/(editor)/experimental/editor.tsx index 4c9546a..25e2090 100644 --- a/src/routes/(editor)/experimental/formatter.tsx +++ b/src/routes/(editor)/experimental/editor.tsx @@ -1,8 +1,7 @@ -import { createEffect, createSignal } from "solid-js"; +import { createSignal } from "solid-js"; import { debounce } from "@solid-primitives/scheduled"; -import { Textarea } from "~/components/textarea"; -import css from './formatter.module.css'; import { Editor, useEditor } from "~/features/editor"; +import css from './editor.module.css'; const tempVal = ` # Header @@ -37,11 +36,10 @@ export default function Formatter(props: {}) { return
- {/* - - */} - +