summaryrefslogtreecommitdiff
path: root/packages/client/src/scripts/get-note-menu.ts
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2022-12-19 13:54:35 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2022-12-19 13:54:35 +0900
commit52cbe07a780c0542912798e1e9bc1b78a63d6806 (patch)
treec89839a6f8952d702387a3e8c7cc021cbdf80d9b /packages/client/src/scripts/get-note-menu.ts
parentwip (diff)
downloadsharkey-52cbe07a780c0542912798e1e9bc1b78a63d6806.tar.gz
sharkey-52cbe07a780c0542912798e1e9bc1b78a63d6806.tar.bz2
sharkey-52cbe07a780c0542912798e1e9bc1b78a63d6806.zip
Revert "wip"
This reverts commit f83bd31fd5fee0bb2209ad0e5359ffa473ffb30e.
Diffstat (limited to 'packages/client/src/scripts/get-note-menu.ts')
-rw-r--r--packages/client/src/scripts/get-note-menu.ts28
1 files changed, 14 insertions, 14 deletions
diff --git a/packages/client/src/scripts/get-note-menu.ts b/packages/client/src/scripts/get-note-menu.ts
index 18926981bc..4826cd70fd 100644
--- a/packages/client/src/scripts/get-note-menu.ts
+++ b/packages/client/src/scripts/get-note-menu.ts
@@ -93,7 +93,7 @@ export function getNoteMenu(props: {
async function clip(): Promise<void> {
const clips = await os.api('clips/list');
os.popupMenu([{
- icon: 'ti ti-plus',
+ icon: 'fas fa-plus',
text: i18n.ts.createNew,
action: async () => {
const { canceled, result } = await os.form(i18n.ts.createNewClip, {
@@ -202,15 +202,15 @@ export function getNoteMenu(props: {
action: unclip,
}, null] : []
), {
- icon: 'ti ti-external-link',
+ icon: 'fas fa-external-link-alt',
text: i18n.ts.details,
action: notedetails,
}, {
- icon: 'ti ti-copy',
+ icon: 'fas fa-copy',
text: i18n.ts.copyContent,
action: copyContent,
}, {
- icon: 'ti ti-link',
+ icon: 'fas fa-link',
text: i18n.ts.copyLink,
action: copyLink,
}, (appearNote.url || appearNote.uri) ? {
@@ -221,27 +221,27 @@ export function getNoteMenu(props: {
},
} : undefined,
{
- icon: 'ti ti-share',
+ icon: 'fas fa-share-alt',
text: i18n.ts.share,
action: share,
},
instance.translatorAvailable ? {
- icon: 'ti ti-language-hiragana',
+ icon: 'fas fa-language',
text: i18n.ts.translate,
action: translate,
} : undefined,
null,
statePromise.then(state => state.isFavorited ? {
- icon: 'ti ti-star',
+ icon: 'fas fa-star',
text: i18n.ts.unfavorite,
action: () => toggleFavorite(false),
} : {
- icon: 'ti ti-star',
+ icon: 'fas fa-star',
text: i18n.ts.favorite,
action: () => toggleFavorite(true),
}),
{
- icon: 'ti ti-paperclip',
+ icon: 'fas fa-paperclip',
text: i18n.ts.clip,
action: () => clip(),
},
@@ -276,7 +276,7 @@ export function getNoteMenu(props: {
...(appearNote.userId !== $i.id ? [
null,
{
- icon: 'ti ti-exclamation-circle',
+ icon: 'fas fa-exclamation-circle',
text: i18n.ts.reportAbuse,
action: () => {
const u = appearNote.url || appearNote.uri || `${url}/notes/${appearNote.id}`;
@@ -296,7 +296,7 @@ export function getNoteMenu(props: {
action: delEdit,
} : undefined,
{
- icon: 'ti ti-trash',
+ icon: 'fas fa-trash-alt',
text: i18n.ts.delete,
danger: true,
action: del,
@@ -306,15 +306,15 @@ export function getNoteMenu(props: {
.filter(x => x !== undefined);
} else {
menu = [{
- icon: 'ti ti-external-link',
+ icon: 'fas fa-external-link-alt',
text: i18n.ts.detailed,
action: openDetail,
}, {
- icon: 'ti ti-copy',
+ icon: 'fas fa-copy',
text: i18n.ts.copyContent,
action: copyContent,
}, {
- icon: 'ti ti-link',
+ icon: 'fas fa-link',
text: i18n.ts.copyLink,
action: copyLink,
}, (appearNote.url || appearNote.uri) ? {