summaryrefslogtreecommitdiff
path: root/packages/frontend/src/scripts
diff options
context:
space:
mode:
authordakkar <dakkar@thenautilus.net>2024-06-22 13:34:55 +0100
committerdakkar <dakkar@thenautilus.net>2024-06-22 15:53:32 +0100
commitdf26b6501d2bcd5bb7f27fc69d9aae4bdd5d0658 (patch)
treeca9f220f8262a2716424d4a68e67b04c8d668d4e /packages/frontend/src/scripts
parentreplaced ti-arrow-back-up ti-quote ti-send (diff)
downloadsharkey-df26b6501d2bcd5bb7f27fc69d9aae4bdd5d0658.tar.gz
sharkey-df26b6501d2bcd5bb7f27fc69d9aae4bdd5d0658.tar.bz2
sharkey-df26b6501d2bcd5bb7f27fc69d9aae4bdd5d0658.zip
replaced a bunch of ti-*
Diffstat (limited to 'packages/frontend/src/scripts')
-rw-r--r--packages/frontend/src/scripts/get-drive-file-menu.ts4
-rw-r--r--packages/frontend/src/scripts/get-note-menu.ts12
-rw-r--r--packages/frontend/src/scripts/get-user-menu.ts14
3 files changed, 15 insertions, 15 deletions
diff --git a/packages/frontend/src/scripts/get-drive-file-menu.ts b/packages/frontend/src/scripts/get-drive-file-menu.ts
index 31164b1878..7aca5f83b2 100644
--- a/packages/frontend/src/scripts/get-drive-file-menu.ts
+++ b/packages/frontend/src/scripts/get-drive-file-menu.ts
@@ -93,11 +93,11 @@ export function getDriveFileMenu(file: Misskey.entities.DriveFile, folder?: Miss
action: () => toggleSensitive(file),
}, {
text: i18n.ts.describeFile,
- icon: 'ph-text-indent ph-bold ph-lg',
+ icon: 'ti ti-text-caption',
action: () => describe(file),
}, ...isImage ? [{
text: i18n.ts.cropImage,
- icon: 'ph-crop ph-bold ph-lg',
+ icon: 'ti ti-crop',
action: () => os.cropImage(file, {
aspectRatio: NaN,
uploadFolder: folder ? folder.id : folder,
diff --git a/packages/frontend/src/scripts/get-note-menu.ts b/packages/frontend/src/scripts/get-note-menu.ts
index 23e40dad69..3851bde534 100644
--- a/packages/frontend/src/scripts/get-note-menu.ts
+++ b/packages/frontend/src/scripts/get-note-menu.ts
@@ -363,7 +363,7 @@ export function getNoteMenu(props: {
}),
{
type: 'parent' as const,
- icon: 'ph-paperclip ph-bold ph-lg',
+ icon: 'ti ti-paperclip',
text: i18n.ts.clip,
children: () => getNoteClipMenu(props),
},
@@ -387,7 +387,7 @@ export function getNoteMenu(props: {
} : undefined,
{
type: 'parent' as const,
- icon: 'ph-user ph-bold ph-lg',
+ icon: 'ti ti-user',
text: i18n.ts.user,
children: async () => {
const user = appearNote.userId === $i?.id ? $i : await misskeyApi('users/show', { userId: appearNote.userId });
@@ -400,7 +400,7 @@ export function getNoteMenu(props: {
...($i.isModerator || $i.isAdmin ? [
{ type: 'divider' },
{
- icon: 'ph-megaphone ph-bold ph-lg',
+ icon: 'ti ti-speakerphone',
text: i18n.ts.promote,
action: promote
}]
@@ -495,7 +495,7 @@ export function getNoteMenu(props: {
if (noteActions.length > 0) {
menu = menu.concat([{ type: "divider" }, ...noteActions.map(action => ({
- icon: 'ph-plug ph-bold ph-lg',
+ icon: 'ti ti-plug',
text: action.title,
action: () => {
action.handler(appearNote);
@@ -578,7 +578,7 @@ export function getRenoteMenu(props: {
},
}, {
text: i18n.ts.inChannelQuote,
- icon: 'ph ph-quotes',
+ icon: 'ti ti-quote',
action: () => {
if (!props.mock) {
os.post({
@@ -624,7 +624,7 @@ export function getRenoteMenu(props: {
},
}, (props.mock) ? undefined : {
text: i18n.ts.quote,
- icon: 'ph ph-quotes',
+ icon: 'ti ti-quote',
action: () => {
os.post({
renote: appearNote,
diff --git a/packages/frontend/src/scripts/get-user-menu.ts b/packages/frontend/src/scripts/get-user-menu.ts
index e485e610fd..906a3f999c 100644
--- a/packages/frontend/src/scripts/get-user-menu.ts
+++ b/packages/frontend/src/scripts/get-user-menu.ts
@@ -153,7 +153,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter
}
let menu = [{
- icon: 'ph-at ph-bold ph-lg',
+ icon: 'ti ti-at',
text: i18n.ts.copyUsername,
action: () => {
copyToClipboard(`@${user.username}@${user.host ?? host}`);
@@ -185,7 +185,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter
copyToClipboard(`${url}/${canonical}`);
},
}, {
- icon: 'ph-envelope ph-bold ph-lg',
+ icon: 'ti ti-mail',
text: i18n.ts.sendMessage,
action: () => {
const canonical = user.host === null ? `@${user.username}` : `@${user.username}@${user.host}`;
@@ -199,7 +199,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter
},
}, {
type: 'parent',
- icon: 'ph-list ph-bold ph-lg',
+ icon: 'ti ti-list',
text: i18n.ts.addToList,
children: async () => {
const lists = await userListsCache.fetch();
@@ -232,7 +232,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter
},
}, {
type: 'parent',
- icon: 'ph-flying-saucer ph-bold ph-lg',
+ icon: 'ti ti-antenna',
text: i18n.ts.addToAntenna,
children: async () => {
const antennas = await antennasCache.fetch();
@@ -263,7 +263,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter
if (iAmModerator) {
menu = menu.concat([{
type: 'parent',
- icon: 'ph-seal-check ph-bold ph-lg',
+ icon: 'ti ti-badges',
text: i18n.ts.roles,
children: async () => {
const roles = await rolesCache.fetch();
@@ -324,7 +324,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter
text: user.isRenoteMuted ? i18n.ts.renoteUnmute : i18n.ts.renoteMute,
action: toggleRenoteMute,
}, {
- icon: 'ph-prohibit ph-bold ph-lg',
+ icon: 'ti ti-ban',
text: user.isBlocking ? i18n.ts.unblock : i18n.ts.block,
action: toggleBlock,
}]);
@@ -374,7 +374,7 @@ export function getUserMenu(user: Misskey.entities.UserDetailed, router: IRouter
if (userActions.length > 0) {
menu = menu.concat([{ type: 'divider' }, ...userActions.map(action => ({
- icon: 'ph-plug ph-bold ph-lg',
+ icon: 'ti ti-plug',
text: action.title,
action: () => {
action.handler(user);