From 720f2556b294c146696879ae7dce5830474c61b6 Mon Sep 17 00:00:00 2001 From: caipira113 Date: Wed, 18 Dec 2024 02:56:07 +0900 Subject: [PATCH] feat(frontend): PostForm specific UI --- packages/frontend/src/boot/main-boot.ts | 1 + packages/frontend/src/navbar.ts | 7 + packages/frontend/src/ui/note.vue | 505 ++++++++++++++++++++++++ 3 files changed, 513 insertions(+) create mode 100644 packages/frontend/src/ui/note.vue diff --git a/packages/frontend/src/boot/main-boot.ts b/packages/frontend/src/boot/main-boot.ts index 2187acd851ce..d7de09e8c6cb 100644 --- a/packages/frontend/src/boot/main-boot.ts +++ b/packages/frontend/src/boot/main-boot.ts @@ -30,6 +30,7 @@ export async function mainBoot() { !$i ? defineAsyncComponent(() => import('@/ui/visitor.vue')) : ui === 'deck' ? defineAsyncComponent(() => import('@/ui/deck.vue')) : ui === 'classic' ? defineAsyncComponent(() => import('@/ui/classic.vue')) : + ui === 'note' ? defineAsyncComponent(() => import('@/ui/note.vue')) : defineAsyncComponent(() => import('@/ui/universal.vue')), )); diff --git a/packages/frontend/src/navbar.ts b/packages/frontend/src/navbar.ts index cd204c4a6de3..ec87e25aa730 100644 --- a/packages/frontend/src/navbar.ts +++ b/packages/frontend/src/navbar.ts @@ -146,6 +146,13 @@ export const navbarItemDef = reactive({ miLocalStorage.setItem('ui', 'classic'); unisonReload(); }, + }, { + text: i18n.ts.note, + active: ui === 'note', + action: () => { + miLocalStorage.setItem('ui', 'note'); + unisonReload(); + } }], ev.currentTarget ?? ev.target); }, }, diff --git a/packages/frontend/src/ui/note.vue b/packages/frontend/src/ui/note.vue new file mode 100644 index 000000000000..da2e065d04e5 --- /dev/null +++ b/packages/frontend/src/ui/note.vue @@ -0,0 +1,505 @@ + + + + + + + + +