From f1bfe9602e6df2c13894c061a44a7e27d409a39b Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 21 Jun 2024 17:12:57 +0100 Subject: [PATCH] replaced ti-forms --- packages/frontend/src/components/MkDrive.folder.vue | 2 +- packages/frontend/src/components/MkDrive.vue | 2 +- packages/frontend/src/components/MkPostFormAttaches.vue | 2 +- packages/frontend/src/pages/settings/2fa.vue | 2 +- packages/frontend/src/pages/settings/preferences-backups.vue | 2 +- packages/frontend/src/scripts/get-drive-file-menu.ts | 2 +- packages/frontend/vite.config.ts | 1 + 7 files changed, 7 insertions(+), 6 deletions(-) diff --git a/packages/frontend/src/components/MkDrive.folder.vue b/packages/frontend/src/components/MkDrive.folder.vue index 6e6e7e4946..2c659a3427 100644 --- a/packages/frontend/src/components/MkDrive.folder.vue +++ b/packages/frontend/src/components/MkDrive.folder.vue @@ -264,7 +264,7 @@ function onContextmenu(ev: MouseEvent) { }, }, { type: 'divider' }, { text: i18n.ts.rename, - icon: 'ph-textbox ph-bold ph-lg', + icon: 'ti ti-forms', action: rename, }, { type: 'divider' }, { text: i18n.ts.delete, diff --git a/packages/frontend/src/components/MkDrive.vue b/packages/frontend/src/components/MkDrive.vue index 90f4ee1dd4..c568aa1837 100644 --- a/packages/frontend/src/components/MkDrive.vue +++ b/packages/frontend/src/components/MkDrive.vue @@ -634,7 +634,7 @@ function getMenu() { type: 'label', }, folder.value ? { text: i18n.ts.renameFolder, - icon: 'ph-textbox ph-bold ph-lg', + icon: 'ti ti-forms', action: () => { if (folder.value) renameFolder(folder.value); }, } : undefined, folder.value ? { text: i18n.ts.deleteFolder, diff --git a/packages/frontend/src/components/MkPostFormAttaches.vue b/packages/frontend/src/components/MkPostFormAttaches.vue index a57c24735f..b2dcc77f25 100644 --- a/packages/frontend/src/components/MkPostFormAttaches.vue +++ b/packages/frontend/src/components/MkPostFormAttaches.vue @@ -137,7 +137,7 @@ function showFileMenu(file: Misskey.entities.DriveFile, ev: MouseEvent): void { const isImage = file.type.startsWith('image/'); os.popupMenu([{ text: i18n.ts.renameFile, - icon: 'ph-textbox ph-bold ph-lg', + icon: 'ti ti-forms', action: () => { rename(file); }, }, { text: file.isSensitive ? i18n.ts.unmarkAsSensitive : i18n.ts.markAsSensitive, diff --git a/packages/frontend/src/pages/settings/2fa.vue b/packages/frontend/src/pages/settings/2fa.vue index 537f03372f..3f31afcfb6 100644 --- a/packages/frontend/src/pages/settings/2fa.vue +++ b/packages/frontend/src/pages/settings/2fa.vue @@ -58,7 +58,7 @@ SPDX-License-Identifier: AGPL-3.0-only
- {{ i18n.ts.rename }} + {{ i18n.ts.rename }} {{ i18n.ts.unregister }}
diff --git a/packages/frontend/src/pages/settings/preferences-backups.vue b/packages/frontend/src/pages/settings/preferences-backups.vue index f73219227b..97bc4cb357 100644 --- a/packages/frontend/src/pages/settings/preferences-backups.vue +++ b/packages/frontend/src/pages/settings/preferences-backups.vue @@ -435,7 +435,7 @@ function menu(ev: MouseEvent, profileId: string) { download: `${profiles.value[profileId].name}.json`, }, { type: 'divider' }, { text: ts.rename, - icon: 'ph-textbox ph-bold ph-lg', + icon: 'ti ti-forms', action: () => rename(profileId), }, { text: ts._preferencesBackups.save, diff --git a/packages/frontend/src/scripts/get-drive-file-menu.ts b/packages/frontend/src/scripts/get-drive-file-menu.ts index deef9e2ac3..d2e7ccf145 100644 --- a/packages/frontend/src/scripts/get-drive-file-menu.ts +++ b/packages/frontend/src/scripts/get-drive-file-menu.ts @@ -85,7 +85,7 @@ export function getDriveFileMenu(file: Misskey.entities.DriveFile, folder?: Miss icon: 'ph-file-text ph-bold ph-lg', }, { type: 'divider' }, { text: i18n.ts.rename, - icon: 'ph-textbox ph-bold ph-lg', + icon: 'ti ti-forms', action: () => rename(file), }, { text: file.isSensitive ? i18n.ts.unmarkAsSensitive : i18n.ts.markAsSensitive, diff --git a/packages/frontend/vite.config.ts b/packages/frontend/vite.config.ts index 0a4c31d7aa..dc5aef4828 100644 --- a/packages/frontend/vite.config.ts +++ b/packages/frontend/vite.config.ts @@ -179,6 +179,7 @@ export function getConfig(): UserConfig { 'ti ti-folder': 'ph-folder ph-bold ph-lg', 'ti ti-folder-plus': 'ph-folder-plus ph-bold ph-lg', 'ti ti-app-window': 'ph-app-window ph-bold ph-lg', + 'ti ti-forms': 'ph-textbox ph-bold ph-lg', }, }), ...process.env.NODE_ENV === 'production'