From 7865fa2c2d6cd435323d8e03b378eba616508e8a Mon Sep 17 00:00:00 2001 From: June Date: Fri, 16 Jan 2026 08:57:57 +1300 Subject: [PATCH] getting better, now using readOnly property instead of a new view each time --- src/component/calendar.astro | 2 +- src/component/editor.astro | 37 ++++++++++++++++++++++++++---------- src/pages/index.astro | 29 +++++----------------------- 3 files changed, 33 insertions(+), 35 deletions(-) diff --git a/src/component/calendar.astro b/src/component/calendar.astro index 64a5413..4bba72e 100644 --- a/src/component/calendar.astro +++ b/src/component/calendar.astro @@ -25,7 +25,7 @@ let calendar = new Calendar(calendarEl, { }, datesSet: function(info) { // Called when the date range changes (e.g., when navigating months) - console.log(info); + // console.log(info); } }); calendar.render(); diff --git a/src/component/editor.astro b/src/component/editor.astro index f3db6c8..28661a5 100644 --- a/src/component/editor.astro +++ b/src/component/editor.astro @@ -1,11 +1,24 @@ +--- +const { + entry, + editMode +} = Astro.props +--- -
+ + + - export function getHTML() { - return quill.getSemanticHTML() - } - \ No newline at end of file + +
+
+
\ No newline at end of file diff --git a/src/pages/index.astro b/src/pages/index.astro index 4ecd3f0..1d65b64 100644 --- a/src/pages/index.astro +++ b/src/pages/index.astro @@ -3,31 +3,12 @@ import "../styles/global.css" import Layout from "../component/core/layout.astro" import Calendar from "../component/calendar.astro" import Editor from "../component/editor.astro" + + +const res = await fetch(new URL('/api/entry?id=5', Astro.url)) +const en = await res.json() --- -
@@ -37,7 +18,7 @@ import Editor from "../component/editor.astro"
\ No newline at end of file