Skip to content

Commit

Permalink
feat(frontend): PostForm specific UI
Browse files Browse the repository at this point in the history
  • Loading branch information
caipira113 committed Dec 17, 2024
1 parent a501039 commit 720f255
Show file tree
Hide file tree
Showing 3 changed files with 513 additions and 0 deletions.
1 change: 1 addition & 0 deletions packages/frontend/src/boot/main-boot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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')),
));

Expand Down
7 changes: 7 additions & 0 deletions packages/frontend/src/navbar.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
},
},
Expand Down
Loading

1 comment on commit 720f255

@github-actions
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Chromatic detects changes. Please review the changes on Chromatic.

Please sign in to comment.