summaryrefslogtreecommitdiff
path: root/packages/frontend
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2024-06-21 16:19:13 +0100
committerdakkar <dakkar@thenautilus.net>2024-06-22 15:53:13 +0100
commit527bbd036cecd8d5f1fd2deba2c864e2855d0eaa (patch)
treec12ce8afbefdd97eb47d67c662bb93239d2bcf7f /packages/frontend
parentremove our icon classes from a test file (diff)
downloadsharkey-527bbd036cecd8d5f1fd2deba2c864e2855d0eaa.tar.gz
sharkey-527bbd036cecd8d5f1fd2deba2c864e2855d0eaa.tar.bz2
sharkey-527bbd036cecd8d5f1fd2deba2c864e2855d0eaa.zip
replaced ti-users
Diffstat (limited to 'packages/frontend')
-rw-r--r--packages/frontend/src/account.ts2
-rw-r--r--packages/frontend/src/components/MkChannelPreview.vue2
-rw-r--r--packages/frontend/src/pages/admin/index.vue2
-rw-r--r--packages/frontend/src/pages/admin/overview.stats.vue2
-rw-r--r--packages/frontend/src/pages/admin/roles.editor.vue2
-rw-r--r--packages/frontend/src/pages/admin/roles.role.vue2
-rw-r--r--packages/frontend/src/pages/admin/users.vue2
-rw-r--r--packages/frontend/src/pages/channel.vue2
-rw-r--r--packages/frontend/src/pages/explore.vue2
-rw-r--r--packages/frontend/src/pages/instance-info.vue2
-rw-r--r--packages/frontend/src/pages/role.vue2
-rw-r--r--packages/frontend/src/pages/search.vue2
-rw-r--r--packages/frontend/src/pages/settings/accounts.vue2
-rw-r--r--packages/frontend/src/pages/settings/import-export.vue4
-rw-r--r--packages/frontend/src/pages/user/activity.vue2
-rw-r--r--packages/frontend/src/widgets/WidgetUserList.vue2
-rw-r--r--packages/frontend/vite.config.ts3
17 files changed, 19 insertions, 18 deletions
diff --git a/packages/frontend/src/account.ts b/packages/frontend/src/account.ts
index a73f86e5a4..5a67c4e777 100644
--- a/packages/frontend/src/account.ts
+++ b/packages/frontend/src/account.ts
@@ -304,7 +304,7 @@ export async function openAccountMenu(opts: {
}],
}, {
type: 'link' as const,
- icon: 'ph-users ph-bold ph-lg',
+ icon: 'ti ti-users',
text: i18n.ts.manageAccounts,
to: '/settings/accounts',
}, {
diff --git a/packages/frontend/src/components/MkChannelPreview.vue b/packages/frontend/src/components/MkChannelPreview.vue
index 00942ca6fd..ecf6acd962 100644
--- a/packages/frontend/src/components/MkChannelPreview.vue
+++ b/packages/frontend/src/components/MkChannelPreview.vue
@@ -12,7 +12,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<div v-if="channel.isSensitive" class="sensitiveIndicator">{{ i18n.ts.sensitive }}</div>
<div class="status">
<div>
- <i class="ph-users ph-bold ph-lg"></i>
+ <i class="ti ti-users ti-fw"></i>
<I18n :src="i18n.ts._channel.usersCount" tag="span" style="margin-left: 4px;">
<template #n>
<b>{{ channel.usersCount }}</b>
diff --git a/packages/frontend/src/pages/admin/index.vue b/packages/frontend/src/pages/admin/index.vue
index 931b8fa0bc..6bf4c3d6e4 100644
--- a/packages/frontend/src/pages/admin/index.vue
+++ b/packages/frontend/src/pages/admin/index.vue
@@ -112,7 +112,7 @@ const menuDef = computed(() => [{
to: '/admin/overview',
active: currentPage.value?.route.name === 'overview',
}, {
- icon: 'ph-users ph-bold ph-lg',
+ icon: 'ti ti-users',
text: i18n.ts.users,
to: '/admin/users',
active: currentPage.value?.route.name === 'users',
diff --git a/packages/frontend/src/pages/admin/overview.stats.vue b/packages/frontend/src/pages/admin/overview.stats.vue
index d6bfd5cbc0..6fdb0ea96e 100644
--- a/packages/frontend/src/pages/admin/overview.stats.vue
+++ b/packages/frontend/src/pages/admin/overview.stats.vue
@@ -9,7 +9,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkLoading v-if="fetching"/>
<div v-else :class="$style.root">
<div class="item _panel users">
- <div class="icon"><i class="ph-users ph-bold ph-lg"></i></div>
+ <div class="icon"><i class="ti ti-users"></i></div>
<div class="body">
<div class="value">
<MkNumber :value="stats.originalUsersCount" style="margin-right: 0.5em;"/>
diff --git a/packages/frontend/src/pages/admin/roles.editor.vue b/packages/frontend/src/pages/admin/roles.editor.vue
index e47a6e705c..8fb5089053 100644
--- a/packages/frontend/src/pages/admin/roles.editor.vue
+++ b/packages/frontend/src/pages/admin/roles.editor.vue
@@ -39,7 +39,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkSelect>
<MkSelect v-model="role.target" :readonly="readonly">
- <template #label><i class="ph-users ph-bold ph-lg"></i> {{ i18n.ts._role.assignTarget }}</template>
+ <template #label><i class="ti ti-users"></i> {{ i18n.ts._role.assignTarget }}</template>
<template #caption><div v-html="i18n.ts._role.descriptionOfAssignTarget.replaceAll('\n', '<br>')"></div></template>
<option value="manual">{{ i18n.ts._role.manual }}</option>
<option value="conditional">{{ i18n.ts._role.conditional }}</option>
diff --git a/packages/frontend/src/pages/admin/roles.role.vue b/packages/frontend/src/pages/admin/roles.role.vue
index 0e83ee267b..6b9885054e 100644
--- a/packages/frontend/src/pages/admin/roles.role.vue
+++ b/packages/frontend/src/pages/admin/roles.role.vue
@@ -19,7 +19,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<XEditor :modelValue="role" readonly/>
</MkFolder>
<MkFolder v-if="role.target === 'manual'" defaultOpen>
- <template #icon><i class="ph-users ph-bold ph-lg"></i></template>
+ <template #icon><i class="ti ti-users"></i></template>
<template #label>{{ i18n.ts.users }}</template>
<template #suffix>{{ role.usersCount }}</template>
<div class="_gaps">
diff --git a/packages/frontend/src/pages/admin/users.vue b/packages/frontend/src/pages/admin/users.vue
index 0561eb3d8d..8c29542e52 100644
--- a/packages/frontend/src/pages/admin/users.vue
+++ b/packages/frontend/src/pages/admin/users.vue
@@ -140,7 +140,7 @@ const headerTabs = computed(() => []);
definePageMetadata(() => ({
title: i18n.ts.users,
- icon: 'ph-users ph-bold ph-lg',
+ icon: 'ti ti-users',
}));
</script>
diff --git a/packages/frontend/src/pages/channel.vue b/packages/frontend/src/pages/channel.vue
index 5ec26d85b5..16498e3628 100644
--- a/packages/frontend/src/pages/channel.vue
+++ b/packages/frontend/src/pages/channel.vue
@@ -15,7 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkButton v-else v-tooltip="i18n.ts.favorite" asLike class="button" rounded :class="$style.favorite" @click="favorite()"><i class="ti ti-star"></i></MkButton>
<div :style="{ backgroundImage: channel.bannerUrl ? `url(${channel.bannerUrl})` : undefined }" :class="$style.banner">
<div :class="$style.bannerStatus">
- <div><i class="ph-users ph-bold ph-lg"></i><I18n :src="i18n.ts._channel.usersCount" tag="span" style="margin-left: 4px;"><template #n><b>{{ channel.usersCount }}</b></template></I18n></div>
+ <div><i class="ti ti-users ti-fw"></i><I18n :src="i18n.ts._channel.usersCount" tag="span" style="margin-left: 4px;"><template #n><b>{{ channel.usersCount }}</b></template></I18n></div>
<div><i class="ti ti-pencil ti-fw"></i><I18n :src="i18n.ts._channel.notesCount" tag="span" style="margin-left: 4px;"><template #n><b>{{ channel.notesCount }}</b></template></I18n></div>
</div>
<div v-if="channel.isSensitive" :class="$style.sensitiveIndicator">{{ i18n.ts.sensitive }}</div>
diff --git a/packages/frontend/src/pages/explore.vue b/packages/frontend/src/pages/explore.vue
index c599a290f7..62f1fc20e0 100644
--- a/packages/frontend/src/pages/explore.vue
+++ b/packages/frontend/src/pages/explore.vue
@@ -52,7 +52,7 @@ const headerTabs = computed(() => [{
title: i18n.ts.featured,
}, {
key: 'users',
- icon: 'ph-users ph-bold ph-lg',
+ icon: 'ti ti-users',
title: i18n.ts.users,
}, {
key: 'roles',
diff --git a/packages/frontend/src/pages/instance-info.vue b/packages/frontend/src/pages/instance-info.vue
index 913d704056..6ffec43365 100644
--- a/packages/frontend/src/pages/instance-info.vue
+++ b/packages/frontend/src/pages/instance-info.vue
@@ -278,7 +278,7 @@ const headerTabs = computed(() => [{
}, {
key: 'users',
title: i18n.ts.users,
- icon: 'ph-users ph-bold ph-lg',
+ icon: 'ti ti-users',
}, {
key: 'raw',
title: 'Raw',
diff --git a/packages/frontend/src/pages/role.vue b/packages/frontend/src/pages/role.vue
index 9c497583b5..3a4af9d964 100644
--- a/packages/frontend/src/pages/role.vue
+++ b/packages/frontend/src/pages/role.vue
@@ -85,7 +85,7 @@ const users = computed(() => ({
const headerTabs = computed(() => [{
key: 'users',
- icon: 'ph-users ph-bold ph-lg',
+ icon: 'ti ti-users',
title: i18n.ts.users,
}, {
key: 'timeline',
diff --git a/packages/frontend/src/pages/search.vue b/packages/frontend/src/pages/search.vue
index 12a1f7121a..12dfa03671 100644
--- a/packages/frontend/src/pages/search.vue
+++ b/packages/frontend/src/pages/search.vue
@@ -49,7 +49,7 @@ const headerTabs = computed(() => [{
}, {
key: 'user',
title: i18n.ts.users,
- icon: 'ph-users ph-bold ph-lg',
+ icon: 'ti ti-users',
}]);
definePageMetadata(() => ({
diff --git a/packages/frontend/src/pages/settings/accounts.vue b/packages/frontend/src/pages/settings/accounts.vue
index 3c0e359a06..c6a4398d4a 100644
--- a/packages/frontend/src/pages/settings/accounts.vue
+++ b/packages/frontend/src/pages/settings/accounts.vue
@@ -108,7 +108,7 @@ const headerTabs = computed(() => []);
definePageMetadata(() => ({
title: i18n.ts.accounts,
- icon: 'ph-users ph-bold ph-lg',
+ icon: 'ti ti-users',
}));
</script>
diff --git a/packages/frontend/src/pages/settings/import-export.vue b/packages/frontend/src/pages/settings/import-export.vue
index 041870d41b..dd86c5a647 100644
--- a/packages/frontend/src/pages/settings/import-export.vue
+++ b/packages/frontend/src/pages/settings/import-export.vue
@@ -45,7 +45,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkFolder>
</FormSection>
<FormSection>
- <template #label><i class="ph-users ph-bold ph-lg"></i> {{ i18n.ts._exportOrImport.followingList }}</template>
+ <template #label><i class="ti ti-users"></i> {{ i18n.ts._exportOrImport.followingList }}</template>
<div class="_gaps_s">
<MkFolder>
<template #label>{{ i18n.ts.export }}</template>
@@ -71,7 +71,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div>
</FormSection>
<FormSection>
- <template #label><i class="ph-users ph-bold ph-lg"></i> {{ i18n.ts._exportOrImport.userLists }}</template>
+ <template #label><i class="ti ti-users"></i> {{ i18n.ts._exportOrImport.userLists }}</template>
<div class="_gaps_s">
<MkFolder>
<template #label>{{ i18n.ts.export }}</template>
diff --git a/packages/frontend/src/pages/user/activity.vue b/packages/frontend/src/pages/user/activity.vue
index d36fb83616..c8d79ea670 100644
--- a/packages/frontend/src/pages/user/activity.vue
+++ b/packages/frontend/src/pages/user/activity.vue
@@ -15,7 +15,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<XNotes :user="user"/>
</MkFoldableSection>
<MkFoldableSection class="item">
- <template #header><i class="ph-users ph-bold ph-lg"></i> Following</template>
+ <template #header><i class="ti ti-users"></i> Following</template>
<XFollowing :user="user"/>
</MkFoldableSection>
<MkFoldableSection class="item">
diff --git a/packages/frontend/src/widgets/WidgetUserList.vue b/packages/frontend/src/widgets/WidgetUserList.vue
index ac273cc5d5..d9f4dc49ea 100644
--- a/packages/frontend/src/widgets/WidgetUserList.vue
+++ b/packages/frontend/src/widgets/WidgetUserList.vue
@@ -5,7 +5,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template>
<MkContainer :showHeader="widgetProps.showHeader" class="mkw-userList">
- <template #icon><i class="ph-users ph-bold ph-lg"></i></template>
+ <template #icon><i class="ti ti-users"></i></template>
<template #header>{{ list ? list.name : i18n.ts._widgets.userList }}</template>
<template #func="{ buttonStyleClass }"><button class="_button" :class="buttonStyleClass" @click="configure()"><i class="ti ti-settings"></i></button></template>
diff --git a/packages/frontend/vite.config.ts b/packages/frontend/vite.config.ts
index 34976622bb..508dc548b7 100644
--- a/packages/frontend/vite.config.ts
+++ b/packages/frontend/vite.config.ts
@@ -126,7 +126,7 @@ export function getConfig(): UserConfig {
'**/pages/flash/flash.*',
],
}),
- iconsReplace({
+ iconsReplace({
values: {
'ti ti-terminal-2': 'ph-terminal-window ph-bold ph-lg',
'ti ti-download': 'ph-download ph-bold ph-lg',
@@ -161,6 +161,7 @@ export function getConfig(): UserConfig {
'ti ti-eye-off': 'ti ti-eye-exclamation',
'ti ti-eye-exclamation': 'ph-eye-slash ph-bold ph-lg',
'ti ti-lock': 'ph-lock ph-bold ph-lg',
+ 'ti ti-users': 'ph-users ph-bold ph-lg',
},
}),
...process.env.NODE_ENV === 'production'