summaryrefslogtreecommitdiff
path: root/packages/client/src/scripts/get-user-menu.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-12-19 19:01:30 +0900
committerGitHub <noreply@github.com>2022-12-19 19:01:30 +0900
commit917ef465a5520137b478ffcf16af5a9e717d7a40 (patch)
tree875796c757aa058e05ad9d50691f04e16ccd8db0 /packages/client/src/scripts/get-user-menu.ts
parentfix(client): add missing ref for MkButton (#9357) (diff)
downloadmisskey-917ef465a5520137b478ffcf16af5a9e717d7a40.tar.gz
misskey-917ef465a5520137b478ffcf16af5a9e717d7a40.tar.bz2
misskey-917ef465a5520137b478ffcf16af5a9e717d7a40.zip
Use tabler icons (#9354)
* wip * wip * wip * Update style.scss * wip * wip * wip * wip
Diffstat (limited to 'packages/client/src/scripts/get-user-menu.ts')
-rw-r--r--packages/client/src/scripts/get-user-menu.ts28
1 files changed, 14 insertions, 14 deletions
diff --git a/packages/client/src/scripts/get-user-menu.ts b/packages/client/src/scripts/get-user-menu.ts
index 4a5a2d42f0..23f0e11f5b 100644
--- a/packages/client/src/scripts/get-user-menu.ts
+++ b/packages/client/src/scripts/get-user-menu.ts
@@ -153,70 +153,70 @@ export function getUserMenu(user, router: Router = mainRouter) {
}
let menu = [{
- icon: 'fas fa-at',
+ icon: 'ti ti-at',
text: i18n.ts.copyUsername,
action: () => {
copyToClipboard(`@${user.username}@${user.host || host}`);
},
}, {
- icon: 'fas fa-info-circle',
+ icon: 'ti ti-info-circle',
text: i18n.ts.info,
action: () => {
router.push(`/user-info/${user.id}`);
},
}, {
- icon: 'fas fa-envelope',
+ icon: 'ti ti-mail',
text: i18n.ts.sendMessage,
action: () => {
os.post({ specified: user });
},
}, meId !== user.id ? {
type: 'link',
- icon: 'fas fa-comments',
+ icon: 'ti ti-messages',
text: i18n.ts.startMessaging,
to: '/my/messaging/' + Acct.toString(user),
} : undefined, null, {
- icon: 'fas fa-list-ul',
+ icon: 'ti ti-list',
text: i18n.ts.addToList,
action: pushList,
}, meId !== user.id ? {
- icon: 'fas fa-users',
+ icon: 'ti ti-users',
text: i18n.ts.inviteToGroup,
action: inviteGroup,
} : undefined] as any;
if ($i && meId !== user.id) {
menu = menu.concat([null, {
- icon: user.isMuted ? 'fas fa-eye' : 'fas fa-eye-slash',
+ icon: user.isMuted ? 'ti ti-eye' : 'ti ti-eye-off',
text: user.isMuted ? i18n.ts.unmute : i18n.ts.mute,
action: toggleMute,
}, {
- icon: 'fas fa-ban',
+ icon: 'ti ti-ban',
text: user.isBlocking ? i18n.ts.unblock : i18n.ts.block,
action: toggleBlock,
}]);
if (user.isFollowed) {
menu = menu.concat([{
- icon: 'fas fa-unlink',
+ icon: 'ti ti-link-off',
text: i18n.ts.breakFollow,
action: invalidateFollow,
}]);
}
menu = menu.concat([null, {
- icon: 'fas fa-exclamation-circle',
+ icon: 'ti ti-exclamation-circle',
text: i18n.ts.reportAbuse,
action: reportAbuse,
}]);
if (iAmModerator) {
menu = menu.concat([null, {
- icon: 'fas fa-microphone-slash',
+ icon: 'ti ti-microphone-2-off',
text: user.isSilenced ? i18n.ts.unsilence : i18n.ts.silence,
action: toggleSilence,
}, {
- icon: 'fas fa-snowflake',
+ icon: 'ti ti-snowflake',
text: user.isSuspended ? i18n.ts.unsuspend : i18n.ts.suspend,
action: toggleSuspend,
}]);
@@ -225,7 +225,7 @@ export function getUserMenu(user, router: Router = mainRouter) {
if ($i && meId === user.id) {
menu = menu.concat([null, {
- icon: 'fas fa-pencil-alt',
+ icon: 'ti ti-pencil',
text: i18n.ts.editProfile,
action: () => {
router.push('/settings/profile');
@@ -235,7 +235,7 @@ export function getUserMenu(user, router: Router = mainRouter) {
if (userActions.length > 0) {
menu = menu.concat([null, ...userActions.map(action => ({
- icon: 'fas fa-plug',
+ icon: 'ti ti-plug',
text: action.title,
action: () => {
action.handler(user);