From b691126bff96aa9a15e0b66381ea734e34ef4531 Mon Sep 17 00:00:00 2001 From: syuilo Date: Tue, 12 Dec 2023 10:26:37 +0900 Subject: [PATCH] =?UTF-8?q?refactor(frontend):=20menu=E3=81=AEdivider?= =?UTF-8?q?=E3=82=92null=E3=81=A7=E8=A1=A8=E7=8F=BE=E3=81=99=E3=82=8B?= =?UTF-8?q?=E3=81=AE=E3=82=92=E3=82=84=E3=82=81=E3=82=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/frontend/src/components/MkDrive.vue | 4 ++-- packages/frontend/src/components/MkMenu.vue | 2 +- packages/frontend/src/components/MkNote.vue | 4 ++-- .../frontend/src/components/MkPopupMenu.vue | 2 +- .../src/components/MkVisitorDashboard.vue | 4 ++-- packages/frontend/src/os.ts | 2 +- packages/frontend/src/pages/notifications.vue | 2 +- .../pages/settings/preferences-backups.vue | 4 ++-- packages/frontend/src/pages/user/home.vue | 2 +- .../src/scripts/get-drive-file-menu.ts | 8 ++++---- .../frontend/src/scripts/get-note-menu.ts | 19 +++++++++---------- .../frontend/src/scripts/get-user-menu.ts | 18 +++++++++--------- packages/frontend/src/types/menu.ts | 2 +- packages/frontend/src/ui/_common_/common.ts | 6 +++--- packages/frontend/src/ui/deck.vue | 2 +- packages/frontend/src/ui/deck/column.vue | 6 +++--- .../frontend/src/widgets/WidgetTimeline.vue | 2 +- 17 files changed, 44 insertions(+), 45 deletions(-) diff --git a/packages/frontend/src/components/MkDrive.vue b/packages/frontend/src/components/MkDrive.vue index 71bb4ecfef..8dff73d994 100644 --- a/packages/frontend/src/components/MkDrive.vue +++ b/packages/frontend/src/components/MkDrive.vue @@ -616,7 +616,7 @@ function getMenu() { type: 'switch', text: i18n.ts.keepOriginalUploading, ref: keepOriginal, - }, null, { + }, { type: 'divider' }, { text: i18n.ts.addFile, type: 'label', }, { @@ -627,7 +627,7 @@ function getMenu() { text: i18n.ts.fromUrl, icon: 'ti ti-link', action: () => { urlUpload(); }, - }, null, { + }, { type: 'divider' }, { text: folder.value ? folder.value.name : i18n.ts.drive, type: 'label', }, folder.value ? { diff --git a/packages/frontend/src/components/MkMenu.vue b/packages/frontend/src/components/MkMenu.vue index 951a0b2815..af0f1ec91b 100644 --- a/packages/frontend/src/components/MkMenu.vue +++ b/packages/frontend/src/components/MkMenu.vue @@ -13,7 +13,7 @@ SPDX-License-Identifier: AGPL-3.0-only @contextmenu.self="e => e.preventDefault()" >