From 99d7ba8bbcd4b23815540d7bb40c687190f3f016 Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 21 Jun 2024 17:23:04 +0100 Subject: [PATCH] replaced ti-upload --- packages/frontend/src/components/MkDrive.vue | 2 +- .../src/pages/custom-emojis-manager.vue | 2 +- .../src/pages/settings/import-export.vue | 20 +++++++++---------- packages/frontend/src/scripts/select-file.ts | 2 +- packages/frontend/vite.config.ts | 1 + 5 files changed, 14 insertions(+), 13 deletions(-) diff --git a/packages/frontend/src/components/MkDrive.vue b/packages/frontend/src/components/MkDrive.vue index 4c2a31fc10..a9717b4fb7 100644 --- a/packages/frontend/src/components/MkDrive.vue +++ b/packages/frontend/src/components/MkDrive.vue @@ -623,7 +623,7 @@ function getMenu() { type: 'label', }, { text: i18n.ts.upload, - icon: 'ph-upload ph-bold ph-lg', + icon: 'ti ti-upload', action: () => { selectLocalFile(); }, }, { text: i18n.ts.fromUrl, diff --git a/packages/frontend/src/pages/custom-emojis-manager.vue b/packages/frontend/src/pages/custom-emojis-manager.vue index 28528a93e3..b58de09c22 100644 --- a/packages/frontend/src/pages/custom-emojis-manager.vue +++ b/packages/frontend/src/pages/custom-emojis-manager.vue @@ -206,7 +206,7 @@ const menu = (ev: MouseEvent) => { }); }, }, { - icon: 'ph-upload ph-bold ph-lg', + icon: 'ti ti-upload', text: i18n.ts.import, action: async () => { const file = await selectFile(ev.currentTarget ?? ev.target); diff --git a/packages/frontend/src/pages/settings/import-export.vue b/packages/frontend/src/pages/settings/import-export.vue index dd86c5a647..4122b1b6a5 100644 --- a/packages/frontend/src/pages/settings/import-export.vue +++ b/packages/frontend/src/pages/settings/import-export.vue @@ -62,11 +62,11 @@ SPDX-License-Identifier: AGPL-3.0-only - + {{ i18n.ts._exportOrImport.withReplies }} - {{ i18n.ts.import }} + {{ i18n.ts.import }} @@ -80,8 +80,8 @@ SPDX-License-Identifier: AGPL-3.0-only - - {{ i18n.ts.import }} + + {{ i18n.ts.import }} @@ -95,8 +95,8 @@ SPDX-License-Identifier: AGPL-3.0-only - - {{ i18n.ts.import }} + + {{ i18n.ts.import }} @@ -110,8 +110,8 @@ SPDX-License-Identifier: AGPL-3.0-only - - {{ i18n.ts.import }} + + {{ i18n.ts.import }} @@ -125,8 +125,8 @@ SPDX-License-Identifier: AGPL-3.0-only - - {{ i18n.ts.import }} + + {{ i18n.ts.import }} diff --git a/packages/frontend/src/scripts/select-file.ts b/packages/frontend/src/scripts/select-file.ts index 486b15dd00..9aa38178b2 100644 --- a/packages/frontend/src/scripts/select-file.ts +++ b/packages/frontend/src/scripts/select-file.ts @@ -93,7 +93,7 @@ function select(src: any, label: string | null, multiple: boolean): Promise chooseFileFromPc(multiple, keepOriginal.value).then(files => res(files)), }, { text: i18n.ts.fromDrive, diff --git a/packages/frontend/vite.config.ts b/packages/frontend/vite.config.ts index cf73cd4b02..f49ac3d297 100644 --- a/packages/frontend/vite.config.ts +++ b/packages/frontend/vite.config.ts @@ -183,6 +183,7 @@ export function getConfig(): UserConfig { 'ti ti-trash': 'ph-trash ph-bold ph-lg', 'ti ti-id': 'ph-identification-card ph-bold ph-lg', 'ti ti-cloud': 'ph-cloud ph-bold ph-lg', + 'ti ti-upload': 'ph-upload ph-bold ph-lg', }, }), ...process.env.NODE_ENV === 'production'