From 858d9c57013d780201d5a7ac771f15826380b1c2 Mon Sep 17 00:00:00 2001 From: nakasyou Date: Wed, 27 Sep 2023 20:18:19 +0900 Subject: [PATCH] app to islands --- src/components/Footer.astro | 10 ++++++++-- src/{app => islands}/camera/index.tsx | 0 src/{app => islands}/camera/utils/Camera.tsx | 0 src/{app => islands}/note/components/ImageNote.tsx | 0 src/{app => islands}/note/components/ScanDialog.tsx | 0 src/{app => islands}/note/components/TextNote.tsx | 0 src/{app => islands}/note/const/sheetClasses.ts | 0 src/{app => islands}/note/index.tsx | 0 src/{app => islands}/note/utils/classListAll.ts | 0 src/{app => islands}/note/utils/range.ts | 0 .../note/utils/tiptap-plugin-imagenote.ts | 0 src/{app => islands}/note/utils/tiptap-plugin-sheet.ts | 0 src/{app => islands}/note/utils/useActiveElement.ts | 0 src/{app => islands}/note/utils/useWindowSize.ts | 0 src/pages/404.astro | 10 +++++----- src/pages/notes/[noteid].astro | 2 +- 16 files changed, 14 insertions(+), 8 deletions(-) rename src/{app => islands}/camera/index.tsx (100%) rename src/{app => islands}/camera/utils/Camera.tsx (100%) rename src/{app => islands}/note/components/ImageNote.tsx (100%) rename src/{app => islands}/note/components/ScanDialog.tsx (100%) rename src/{app => islands}/note/components/TextNote.tsx (100%) rename src/{app => islands}/note/const/sheetClasses.ts (100%) rename src/{app => islands}/note/index.tsx (100%) rename src/{app => islands}/note/utils/classListAll.ts (100%) rename src/{app => islands}/note/utils/range.ts (100%) rename src/{app => islands}/note/utils/tiptap-plugin-imagenote.ts (100%) rename src/{app => islands}/note/utils/tiptap-plugin-sheet.ts (100%) rename src/{app => islands}/note/utils/useActiveElement.ts (100%) rename src/{app => islands}/note/utils/useWindowSize.ts (100%) diff --git a/src/components/Footer.astro b/src/components/Footer.astro index 2f9bd2fe..4767ff1d 100644 --- a/src/components/Footer.astro +++ b/src/components/Footer.astro @@ -5,9 +5,15 @@ import { ---
-
- +
+
+
SOCIAL
+
+ +
+
+
© 2023 Shotaro Nakamura. MIT LICENSED.
diff --git a/src/app/camera/index.tsx b/src/islands/camera/index.tsx similarity index 100% rename from src/app/camera/index.tsx rename to src/islands/camera/index.tsx diff --git a/src/app/camera/utils/Camera.tsx b/src/islands/camera/utils/Camera.tsx similarity index 100% rename from src/app/camera/utils/Camera.tsx rename to src/islands/camera/utils/Camera.tsx diff --git a/src/app/note/components/ImageNote.tsx b/src/islands/note/components/ImageNote.tsx similarity index 100% rename from src/app/note/components/ImageNote.tsx rename to src/islands/note/components/ImageNote.tsx diff --git a/src/app/note/components/ScanDialog.tsx b/src/islands/note/components/ScanDialog.tsx similarity index 100% rename from src/app/note/components/ScanDialog.tsx rename to src/islands/note/components/ScanDialog.tsx diff --git a/src/app/note/components/TextNote.tsx b/src/islands/note/components/TextNote.tsx similarity index 100% rename from src/app/note/components/TextNote.tsx rename to src/islands/note/components/TextNote.tsx diff --git a/src/app/note/const/sheetClasses.ts b/src/islands/note/const/sheetClasses.ts similarity index 100% rename from src/app/note/const/sheetClasses.ts rename to src/islands/note/const/sheetClasses.ts diff --git a/src/app/note/index.tsx b/src/islands/note/index.tsx similarity index 100% rename from src/app/note/index.tsx rename to src/islands/note/index.tsx diff --git a/src/app/note/utils/classListAll.ts b/src/islands/note/utils/classListAll.ts similarity index 100% rename from src/app/note/utils/classListAll.ts rename to src/islands/note/utils/classListAll.ts diff --git a/src/app/note/utils/range.ts b/src/islands/note/utils/range.ts similarity index 100% rename from src/app/note/utils/range.ts rename to src/islands/note/utils/range.ts diff --git a/src/app/note/utils/tiptap-plugin-imagenote.ts b/src/islands/note/utils/tiptap-plugin-imagenote.ts similarity index 100% rename from src/app/note/utils/tiptap-plugin-imagenote.ts rename to src/islands/note/utils/tiptap-plugin-imagenote.ts diff --git a/src/app/note/utils/tiptap-plugin-sheet.ts b/src/islands/note/utils/tiptap-plugin-sheet.ts similarity index 100% rename from src/app/note/utils/tiptap-plugin-sheet.ts rename to src/islands/note/utils/tiptap-plugin-sheet.ts diff --git a/src/app/note/utils/useActiveElement.ts b/src/islands/note/utils/useActiveElement.ts similarity index 100% rename from src/app/note/utils/useActiveElement.ts rename to src/islands/note/utils/useActiveElement.ts diff --git a/src/app/note/utils/useWindowSize.ts b/src/islands/note/utils/useWindowSize.ts similarity index 100% rename from src/app/note/utils/useWindowSize.ts rename to src/islands/note/utils/useWindowSize.ts diff --git a/src/pages/404.astro b/src/pages/404.astro index 0824ec81..2a34d422 100644 --- a/src/pages/404.astro +++ b/src/pages/404.astro @@ -2,14 +2,14 @@ import PageLayout from '../layouts/Page.astro' --- -
+
404
Not found....
-
-
-

やあ、そこの学習者よ。道を間違えてしまったようだな。ここには何もない。引き返すんだ、学習者よ

- 引き返す +
+

やあ、そこの学習者よ。道を間違えてしまったようだな。ここには何もない。引き返すんだ、学習者よ

+ 引き返す +
diff --git a/src/pages/notes/[noteid].astro b/src/pages/notes/[noteid].astro index e041d5af..83fc40b1 100644 --- a/src/pages/notes/[noteid].astro +++ b/src/pages/notes/[noteid].astro @@ -1,6 +1,6 @@ --- import Base from "../../layouts/Base.astro" -import NanohaNoteApp from "../../app/note/index.tsx" +import NanohaNoteApp from "../../islands/note" ---