From 0b72513ce57a67f1d9532f78173291ded36b265c Mon Sep 17 00:00:00 2001 From: dakkar Date: Fri, 21 Jun 2024 18:11:47 +0100 Subject: [PATCH] replaced ti-external-link --- packages/frontend/src/components/MkLink.vue | 2 +- packages/frontend/src/components/MkPageWindow.vue | 2 +- packages/frontend/src/components/MkSignupDialog.rules.vue | 6 +++--- packages/frontend/src/components/form/link.vue | 2 +- packages/frontend/src/components/global/MkA.vue | 2 +- packages/frontend/src/components/global/MkUrl.vue | 2 +- packages/frontend/src/pages/admin-file.vue | 2 +- packages/frontend/src/pages/admin/queue.vue | 2 +- packages/frontend/src/pages/instance-info.vue | 2 +- packages/frontend/src/pages/page-editor/page-editor.vue | 2 +- packages/frontend/src/scripts/get-note-menu.ts | 4 ++-- packages/frontend/vite.config.ts | 1 + 12 files changed, 15 insertions(+), 14 deletions(-) diff --git a/packages/frontend/src/components/MkLink.vue b/packages/frontend/src/components/MkLink.vue index 49cbacd1e8..18a979a157 100644 --- a/packages/frontend/src/components/MkLink.vue +++ b/packages/frontend/src/components/MkLink.vue @@ -11,7 +11,7 @@ SPDX-License-Identifier: AGPL-3.0-only @click.stop > - + diff --git a/packages/frontend/src/components/MkPageWindow.vue b/packages/frontend/src/components/MkPageWindow.vue index 1e293b6488..4d89a31439 100644 --- a/packages/frontend/src/components/MkPageWindow.vue +++ b/packages/frontend/src/components/MkPageWindow.vue @@ -121,7 +121,7 @@ const contextmenu = computed(() => ([{ text: i18n.ts.popout, action: popout, }, { - icon: 'ph-arrow-square-out ph-bold ph-lg', + icon: 'ti ti-external-link', text: i18n.ts.openInNewTab, action: () => { window.open(url + windowRouter.getCurrentPath(), '_blank', 'noopener'); diff --git a/packages/frontend/src/components/MkSignupDialog.rules.vue b/packages/frontend/src/components/MkSignupDialog.rules.vue index d1bb9e5fec..251c805401 100644 --- a/packages/frontend/src/components/MkSignupDialog.rules.vue +++ b/packages/frontend/src/components/MkSignupDialog.rules.vue @@ -34,8 +34,8 @@ SPDX-License-Identifier: AGPL-3.0-only
-
{{ i18n.ts.termsOfService }}
-
{{ i18n.ts.privacyPolicy }}
+
{{ i18n.ts.termsOfService }}
+
{{ i18n.ts.privacyPolicy }}
{{ i18n.ts.agree }} @@ -45,7 +45,7 @@ SPDX-License-Identifier: AGPL-3.0-only - {{ i18n.ts.basicNotesBeforeCreateAccount }} + {{ i18n.ts.basicNotesBeforeCreateAccount }} {{ i18n.ts.agree }} diff --git a/packages/frontend/src/components/form/link.vue b/packages/frontend/src/components/form/link.vue index e328192680..164606e1f9 100644 --- a/packages/frontend/src/components/form/link.vue +++ b/packages/frontend/src/components/form/link.vue @@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only - + diff --git a/packages/frontend/src/components/global/MkA.vue b/packages/frontend/src/components/global/MkA.vue index 14fca5b858..7036ac5bb4 100644 --- a/packages/frontend/src/components/global/MkA.vue +++ b/packages/frontend/src/components/global/MkA.vue @@ -67,7 +67,7 @@ function onContextmenu(ev) { router.push(props.to, 'forcePage'); }, }, { type: 'divider' }, { - icon: 'ph-arrow-square-out ph-bold ph-lg', + icon: 'ti ti-external-link', text: i18n.ts.openInNewTab, action: () => { window.open(props.to, '_blank', 'noopener'); diff --git a/packages/frontend/src/components/global/MkUrl.vue b/packages/frontend/src/components/global/MkUrl.vue index 19888ae146..083e163630 100644 --- a/packages/frontend/src/components/global/MkUrl.vue +++ b/packages/frontend/src/components/global/MkUrl.vue @@ -21,7 +21,7 @@ SPDX-License-Identifier: AGPL-3.0-only {{ self ? pathname.substring(1) : pathname }} {{ query }} {{ hash }} - + diff --git a/packages/frontend/src/pages/admin-file.vue b/packages/frontend/src/pages/admin-file.vue index d57d2798c4..dca7ded646 100644 --- a/packages/frontend/src/pages/admin-file.vue +++ b/packages/frontend/src/pages/admin-file.vue @@ -120,7 +120,7 @@ async function toggleIsSensitive(v) { const headerActions = computed(() => [{ text: i18n.ts.openInNewTab, - icon: 'ph-arrow-square-out ph-bold ph-lg', + icon: 'ti ti-external-link', handler: () => { window.open(file.value.url, '_blank', 'noopener'); }, diff --git a/packages/frontend/src/pages/admin/queue.vue b/packages/frontend/src/pages/admin/queue.vue index bd8704bae6..94eac919d1 100644 --- a/packages/frontend/src/pages/admin/queue.vue +++ b/packages/frontend/src/pages/admin/queue.vue @@ -53,7 +53,7 @@ function promoteAllQueues() { const headerActions = computed(() => [{ asFullButton: true, - icon: 'ph-arrow-square-out ph-bold ph-lg', + icon: 'ti ti-external-link', text: i18n.ts.dashboard, handler: () => { window.open(config.url + '/queue', '_blank', 'noopener'); diff --git a/packages/frontend/src/pages/instance-info.vue b/packages/frontend/src/pages/instance-info.vue index 1a9c4497be..a8929a71b0 100644 --- a/packages/frontend/src/pages/instance-info.vue +++ b/packages/frontend/src/pages/instance-info.vue @@ -261,7 +261,7 @@ fetch(); const headerActions = computed(() => [{ text: `https://${props.host}`, - icon: 'ph-arrow-square-out ph-bold ph-lg', + icon: 'ti ti-external-link', handler: () => { window.open(`https://${props.host}`, '_blank', 'noopener'); }, diff --git a/packages/frontend/src/pages/page-editor/page-editor.vue b/packages/frontend/src/pages/page-editor/page-editor.vue index 4ac7569e3d..1f7a8a0889 100644 --- a/packages/frontend/src/pages/page-editor/page-editor.vue +++ b/packages/frontend/src/pages/page-editor/page-editor.vue @@ -8,7 +8,7 @@ SPDX-License-Identifier: AGPL-3.0-only
- {{ i18n.ts._pages.viewPage }} + {{ i18n.ts._pages.viewPage }} {{ i18n.ts.save }} {{ i18n.ts.duplicate }} {{ i18n.ts.delete }} diff --git a/packages/frontend/src/scripts/get-note-menu.ts b/packages/frontend/src/scripts/get-note-menu.ts index 9daf4c4505..ca3f8b62a3 100644 --- a/packages/frontend/src/scripts/get-note-menu.ts +++ b/packages/frontend/src/scripts/get-note-menu.ts @@ -335,7 +335,7 @@ export function getNoteMenu(props: { getCopyNoteOriginLinkMenu(appearNote, 'Copy link (Origin)') : undefined, (appearNote.url || appearNote.uri) ? { - icon: 'ph-arrow-square-out ph-bold ph-lg', + icon: 'ti ti-external-link', text: i18n.ts.showOnRemote, action: () => { window.open(appearNote.url ?? appearNote.uri, '_blank', 'noopener'); @@ -484,7 +484,7 @@ export function getNoteMenu(props: { getCopyNoteOriginLinkMenu(appearNote, 'Copy link (Origin)') : undefined, (appearNote.url || appearNote.uri) ? { - icon: 'ph-arrow-square-out ph-bold ph-lg', + icon: 'ti ti-external-link', text: i18n.ts.showOnRemote, action: () => { window.open(appearNote.url ?? appearNote.uri, '_blank', 'noopener'); diff --git a/packages/frontend/vite.config.ts b/packages/frontend/vite.config.ts index e6a46ea52f..45ed2baa80 100644 --- a/packages/frontend/vite.config.ts +++ b/packages/frontend/vite.config.ts @@ -212,6 +212,7 @@ export function getConfig(): UserConfig { 'ti ti-hash': 'ph-hash ph-bold ph-lg', 'ti ti-hourglass-empty': 'ph-hourglass ph-bold ph-lg', 'ti ti-search': 'ph-magnifying-glass ph-bold ph-lg', + 'ti ti-external-link': 'ph-arrow-square-out ph-bold ph-lg', }, }), ...process.env.NODE_ENV === 'production'