From e84844b4aef89dfff49bf043e3e07a4740b510fe Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 21 Jun 2024 17:17:26 +0100 Subject: [PATCH] replaced ti-id --- packages/frontend/src/components/MkDrive.folder.vue | 2 +- packages/frontend/src/scripts/get-drive-file-menu.ts | 2 +- packages/frontend/src/scripts/get-note-menu.ts | 2 +- packages/frontend/src/scripts/get-user-menu.ts | 2 +- packages/frontend/vite.config.ts | 1 + 5 files changed, 5 insertions(+), 4 deletions(-) diff --git a/packages/frontend/src/components/MkDrive.folder.vue b/packages/frontend/src/components/MkDrive.folder.vue index a47c4e7c20..1691e01c4a 100644 --- a/packages/frontend/src/components/MkDrive.folder.vue +++ b/packages/frontend/src/components/MkDrive.folder.vue @@ -274,7 +274,7 @@ function onContextmenu(ev: MouseEvent) { }]; if (defaultStore.state.devMode) { menu = menu.concat([{ type: 'divider' }, { - icon: 'ph-identification-card ph-bold ph-lg', + icon: 'ti ti-id', text: i18n.ts.copyFolderId, action: () => { copyToClipboard(props.folder.id); diff --git a/packages/frontend/src/scripts/get-drive-file-menu.ts b/packages/frontend/src/scripts/get-drive-file-menu.ts index b33e713d6a..4785c34930 100644 --- a/packages/frontend/src/scripts/get-drive-file-menu.ts +++ b/packages/frontend/src/scripts/get-drive-file-menu.ts @@ -128,7 +128,7 @@ export function getDriveFileMenu(file: Misskey.entities.DriveFile, folder?: Miss if (defaultStore.state.devMode) { menu = menu.concat([{ type: 'divider' }, { - icon: 'ph-identification-card ph-bold ph-lg', + icon: 'ti ti-id', text: i18n.ts.copyFileId, action: () => { copyToClipboard(file.id); diff --git a/packages/frontend/src/scripts/get-note-menu.ts b/packages/frontend/src/scripts/get-note-menu.ts index 9101976ea0..9daf4c4505 100644 --- a/packages/frontend/src/scripts/get-note-menu.ts +++ b/packages/frontend/src/scripts/get-note-menu.ts @@ -505,7 +505,7 @@ export function getNoteMenu(props: { if (defaultStore.state.devMode) { menu = menu.concat([{ type: "divider" }, { - icon: 'ph-identification-card ph-bold ph-lg', + icon: 'ti ti-id', text: i18n.ts.copyNoteId, action: () => { copyToClipboard(appearNote.id); diff --git a/packages/frontend/src/scripts/get-user-menu.ts b/packages/frontend/src/scripts/get-user-menu.ts index c418c3d218..10bb3c216c 100644 --- a/packages/frontend/src/scripts/get-user-menu.ts +++ b/packages/frontend/src/scripts/get-user-menu.ts @@ -354,7 +354,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter if (defaultStore.state.devMode) { menu = menu.concat([{ type: 'divider' }, { - icon: 'ph-identification-card ph-bold ph-lg', + icon: 'ti ti-id', text: i18n.ts.copyUserId, action: () => { copyToClipboard(user.id); diff --git a/packages/frontend/vite.config.ts b/packages/frontend/vite.config.ts index bccaf348ff..37d1175d04 100644 --- a/packages/frontend/vite.config.ts +++ b/packages/frontend/vite.config.ts @@ -181,6 +181,7 @@ export function getConfig(): UserConfig { 'ti ti-app-window': 'ph-app-window ph-bold ph-lg', 'ti ti-forms': 'ph-textbox ph-bold ph-lg', 'ti ti-trash': 'ph-trash ph-bold ph-lg', + 'ti ti-id': 'ph-identification-card ph-bold ph-lg', }, }), ...process.env.NODE_ENV === 'production'