From 712682ea475bb7cd32975983db607956380b6f83 Mon Sep 17 00:00:00 2001 From: dakkar Date: Sat, 22 Jun 2024 13:38:56 +0100 Subject: [PATCH] replaced ti-whirl --- .../frontend/src/components/MkTutorialDialog.Timeline.vue | 2 +- packages/frontend/src/pages/about.vue | 2 +- packages/frontend/src/pages/admin/federation.vue | 2 +- packages/frontend/src/pages/admin/index.vue | 2 +- packages/frontend/src/pages/timeline.vue | 6 +++--- packages/frontend/src/ui/_common_/common.ts | 2 +- packages/frontend/src/ui/deck/tl-column.vue | 2 +- packages/frontend/src/widgets/WidgetFederation.vue | 2 +- packages/frontend/src/widgets/WidgetTimeline.vue | 4 ++-- packages/frontend/vite.config.ts | 3 +-- 10 files changed, 13 insertions(+), 14 deletions(-) diff --git a/packages/frontend/src/components/MkTutorialDialog.Timeline.vue b/packages/frontend/src/components/MkTutorialDialog.Timeline.vue index 11992e00db..a8aa44dea2 100644 --- a/packages/frontend/src/components/MkTutorialDialog.Timeline.vue +++ b/packages/frontend/src/components/MkTutorialDialog.Timeline.vue @@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ i18n.ts._timelines.home }} … {{ i18n.ts._initialTutorial._timeline.home }}
{{ i18n.ts._timelines.local }} … {{ i18n.ts._initialTutorial._timeline.local }}
{{ i18n.ts._timelines.social }} … {{ i18n.ts._initialTutorial._timeline.social }}
-
{{ i18n.ts._timelines.global }} … {{ i18n.ts._initialTutorial._timeline.global }}
+
{{ i18n.ts._timelines.global }} … {{ i18n.ts._initialTutorial._timeline.global }}
{{ i18n.ts._initialTutorial._timeline.description2 }}
diff --git a/packages/frontend/src/pages/about.vue b/packages/frontend/src/pages/about.vue index 4fc1c2570a..2c11e8133e 100644 --- a/packages/frontend/src/pages/about.vue +++ b/packages/frontend/src/pages/about.vue @@ -184,7 +184,7 @@ const headerTabs = computed(() => [{ }, { key: 'federation', title: i18n.ts.federation, - icon: 'ph-globe-hemisphere-west ph-bold ph-lg', + icon: 'ti ti-whirl', }, { key: 'charts', title: i18n.ts.charts, diff --git a/packages/frontend/src/pages/admin/federation.vue b/packages/frontend/src/pages/admin/federation.vue index 33a620c5bf..141de0be34 100644 --- a/packages/frontend/src/pages/admin/federation.vue +++ b/packages/frontend/src/pages/admin/federation.vue @@ -117,7 +117,7 @@ const headerTabs = computed(() => []); definePageMetadata(() => ({ title: i18n.ts.federation, - icon: 'ph-globe-hemisphere-west ph-bold ph-lg', + icon: 'ti ti-whirl', })); diff --git a/packages/frontend/src/pages/admin/index.vue b/packages/frontend/src/pages/admin/index.vue index 098e845dab..32f671200c 100644 --- a/packages/frontend/src/pages/admin/index.vue +++ b/packages/frontend/src/pages/admin/index.vue @@ -142,7 +142,7 @@ const menuDef = computed(() => [{ to: '/admin/avatar-decorations', active: currentPage.value?.route.name === 'avatarDecorations', }, { - icon: 'ph-globe-hemisphere-west ph-bold ph-lg', + icon: 'ti ti-whirl', text: i18n.ts.federation, to: '/admin/federation', active: currentPage.value?.route.name === 'federation', diff --git a/packages/frontend/src/pages/timeline.vue b/packages/frontend/src/pages/timeline.vue index 5cb358cdb5..c9c5ca5a72 100644 --- a/packages/frontend/src/pages/timeline.vue +++ b/packages/frontend/src/pages/timeline.vue @@ -313,7 +313,7 @@ const headerTabs = computed(() => [...(defaultStore.reactiveState.pinnedUserList }] : []), ...(isGlobalTimelineAvailable ? [{ key: 'global', title: i18n.ts._timelines.global, - icon: 'ph-globe-hemisphere-west ph-bold ph-lg', + icon: 'ti ti-whirl', iconOnly: true, }] : []), { icon: 'ti ti-list', @@ -342,14 +342,14 @@ const headerTabsWhenNotLogin = computed(() => [ ...(isGlobalTimelineAvailable ? [{ key: 'global', title: i18n.ts._timelines.global, - icon: 'ph-globe-hemisphere-west ph-bold ph-lg', + icon: 'ti ti-whirl', iconOnly: true, }] : []), ] as Tab[]); definePageMetadata(() => ({ title: i18n.ts.timeline, - icon: src.value === 'local' ? 'ti ti-planet' : src.value === 'social' ? 'ph-rocket-launch ph-bold ph-lg' : src.value === 'global' ? 'ti ti-world' : src.value === 'bubble' ? 'ph-drop ph-bold ph-lg' : 'ti ti-home', + icon: src.value === 'local' ? 'ti ti-planet' : src.value === 'social' ? 'ph-rocket-launch ph-bold ph-lg' : src.value === 'global' ? 'ti ti-whirl' : src.value === 'bubble' ? 'ph-drop ph-bold ph-lg' : 'ti ti-home', })); diff --git a/packages/frontend/src/ui/_common_/common.ts b/packages/frontend/src/ui/_common_/common.ts index 41b0a7b7a0..e2355f1c10 100644 --- a/packages/frontend/src/ui/_common_/common.ts +++ b/packages/frontend/src/ui/_common_/common.ts @@ -57,7 +57,7 @@ export function openInstanceMenu(ev: MouseEvent) { }, { type: 'link', text: i18n.ts.federation, - icon: 'ph-globe-hemisphere-west ph-bold ph-lg', + icon: 'ti ti-whirl', to: '/about#federation', }, { type: 'link', diff --git a/packages/frontend/src/ui/deck/tl-column.vue b/packages/frontend/src/ui/deck/tl-column.vue index a3c6782d2d..6f6d9e112a 100644 --- a/packages/frontend/src/ui/deck/tl-column.vue +++ b/packages/frontend/src/ui/deck/tl-column.vue @@ -10,7 +10,7 @@ SPDX-License-Identifier: AGPL-3.0-only - + {{ column.name }} diff --git a/packages/frontend/src/widgets/WidgetFederation.vue b/packages/frontend/src/widgets/WidgetFederation.vue index ae770f9816..2ea1253c2b 100644 --- a/packages/frontend/src/widgets/WidgetFederation.vue +++ b/packages/frontend/src/widgets/WidgetFederation.vue @@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only @@ -135,7 +135,7 @@ const choose = async (ev) => { action: () => { setSrc('bubble'); }, }, { text: i18n.ts._timelines.global, - icon: 'ph-globe-hemisphere-west ph-bold ph-lg', + icon: 'ti ti-whirl', action: () => { setSrc('global'); }, }, antennaItems.length > 0 ? { type: 'divider' } : undefined, ...antennaItems, listItems.length > 0 ? { type: 'divider' } : undefined, ...listItems], ev.currentTarget ?? ev.target).then(() => { menuOpened.value = false; diff --git a/packages/frontend/vite.config.ts b/packages/frontend/vite.config.ts index 700892fa94..59d46e5e09 100644 --- a/packages/frontend/vite.config.ts +++ b/packages/frontend/vite.config.ts @@ -289,7 +289,6 @@ export function getConfig(): UserConfig { 'ti ti-badge': 'ph-seal-check ph-bold ph-lg', 'ti ti-window-maximize': 'ph-frame-corners ph-bold ph-lg', 'ti ti-password': 'ph-password ph-bold ph-lg', - 'ti ti-key': 'ph-key ph-bold ph-lg', 'ti ti-123': 'ph-numpad ph-bold ph-lg', 'ti ti-world': 'ph-globe-hemisphere-west ph-bold ph-lg', 'ti ti-plug': 'ph-plug ph-bold ph-lg', @@ -329,7 +328,7 @@ export function getConfig(): UserConfig { 'ti ti-ad': 'ph-flag ph-bold ph-lg', 'ti ti-paint': 'ph-paint-roller ph-bold ph-lg', 'ti ti-database': 'ph-database ph-bold ph-lg', - + 'ti ti-whirl': 'ph-globe-hemisphere-west ph-bold ph-lg', }, }), ...process.env.NODE_ENV === 'production'