diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2022-12-19 13:53:41 +0900 |
|---|---|---|
| committer | syuilo <Syuilotan@yahoo.co.jp> | 2022-12-19 13:53:41 +0900 |
| commit | f83bd31fd5fee0bb2209ad0e5359ffa473ffb30e (patch) | |
| tree | b589c3f04550fc0fb94c59085bea8ffc930e7b04 /packages/client/src/scripts | |
| parent | update depsd (diff) | |
| download | sharkey-f83bd31fd5fee0bb2209ad0e5359ffa473ffb30e.tar.gz sharkey-f83bd31fd5fee0bb2209ad0e5359ffa473ffb30e.tar.bz2 sharkey-f83bd31fd5fee0bb2209ad0e5359ffa473ffb30e.zip | |
wip
Diffstat (limited to 'packages/client/src/scripts')
| -rw-r--r-- | packages/client/src/scripts/get-note-menu.ts | 28 | ||||
| -rw-r--r-- | packages/client/src/scripts/get-user-menu.ts | 4 | ||||
| -rw-r--r-- | packages/client/src/scripts/hpml/lib.ts | 6 | ||||
| -rw-r--r-- | packages/client/src/scripts/select-file.ts | 4 |
4 files changed, 21 insertions, 21 deletions
diff --git a/packages/client/src/scripts/get-note-menu.ts b/packages/client/src/scripts/get-note-menu.ts index 4826cd70fd..18926981bc 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: 'fas fa-plus', + icon: 'ti ti-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: 'fas fa-external-link-alt', + icon: 'ti ti-external-link', text: i18n.ts.details, action: notedetails, }, { - icon: 'fas fa-copy', + icon: 'ti ti-copy', text: i18n.ts.copyContent, action: copyContent, }, { - icon: 'fas fa-link', + icon: 'ti ti-link', text: i18n.ts.copyLink, action: copyLink, }, (appearNote.url || appearNote.uri) ? { @@ -221,27 +221,27 @@ export function getNoteMenu(props: { }, } : undefined, { - icon: 'fas fa-share-alt', + icon: 'ti ti-share', text: i18n.ts.share, action: share, }, instance.translatorAvailable ? { - icon: 'fas fa-language', + icon: 'ti ti-language-hiragana', text: i18n.ts.translate, action: translate, } : undefined, null, statePromise.then(state => state.isFavorited ? { - icon: 'fas fa-star', + icon: 'ti ti-star', text: i18n.ts.unfavorite, action: () => toggleFavorite(false), } : { - icon: 'fas fa-star', + icon: 'ti ti-star', text: i18n.ts.favorite, action: () => toggleFavorite(true), }), { - icon: 'fas fa-paperclip', + icon: 'ti ti-paperclip', text: i18n.ts.clip, action: () => clip(), }, @@ -276,7 +276,7 @@ export function getNoteMenu(props: { ...(appearNote.userId !== $i.id ? [ null, { - icon: 'fas fa-exclamation-circle', + icon: 'ti ti-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: 'fas fa-trash-alt', + icon: 'ti ti-trash', text: i18n.ts.delete, danger: true, action: del, @@ -306,15 +306,15 @@ export function getNoteMenu(props: { .filter(x => x !== undefined); } else { menu = [{ - icon: 'fas fa-external-link-alt', + icon: 'ti ti-external-link', text: i18n.ts.detailed, action: openDetail, }, { - icon: 'fas fa-copy', + icon: 'ti ti-copy', text: i18n.ts.copyContent, action: copyContent, }, { - icon: 'fas fa-link', + icon: 'ti ti-link', text: i18n.ts.copyLink, action: copyLink, }, (appearNote.url || appearNote.uri) ? { diff --git a/packages/client/src/scripts/get-user-menu.ts b/packages/client/src/scripts/get-user-menu.ts index 4a5a2d42f0..ae71b9718f 100644 --- a/packages/client/src/scripts/get-user-menu.ts +++ b/packages/client/src/scripts/get-user-menu.ts @@ -172,7 +172,7 @@ export function getUserMenu(user, router: Router = mainRouter) { }, }, 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, { @@ -205,7 +205,7 @@ export function getUserMenu(user, router: Router = mainRouter) { } menu = menu.concat([null, { - icon: 'fas fa-exclamation-circle', + icon: 'ti ti-exclamation-circle', text: i18n.ts.reportAbuse, action: reportAbuse, }]); diff --git a/packages/client/src/scripts/hpml/lib.ts b/packages/client/src/scripts/hpml/lib.ts index cab467a920..e9923904f6 100644 --- a/packages/client/src/scripts/hpml/lib.ts +++ b/packages/client/src/scripts/hpml/lib.ts @@ -130,13 +130,13 @@ export function initAiLib(hpml: Hpml) { } export const funcDefs: Record<string, { in: any[]; out: any; category: string; icon: any; }> = { - if: { in: ['boolean', 0, 0], out: 0, category: 'flow', icon: 'fas fa-share-alt' }, + if: { in: ['boolean', 0, 0], out: 0, category: 'flow', icon: 'ti ti-share' }, for: { in: ['number', 'function'], out: null, category: 'flow', icon: 'fas fa-recycle' }, not: { in: ['boolean'], out: 'boolean', category: 'logical', icon: 'fas fa-flag' }, or: { in: ['boolean', 'boolean'], out: 'boolean', category: 'logical', icon: 'fas fa-flag' }, and: { in: ['boolean', 'boolean'], out: 'boolean', category: 'logical', icon: 'fas fa-flag' }, - add: { in: ['number', 'number'], out: 'number', category: 'operation', icon: 'fas fa-plus' }, - subtract: { in: ['number', 'number'], out: 'number', category: 'operation', icon: 'fas fa-minus' }, + add: { in: ['number', 'number'], out: 'number', category: 'operation', icon: 'ti ti-plus' }, + subtract: { in: ['number', 'number'], out: 'number', category: 'operation', icon: 'ti ti-minus' }, multiply: { in: ['number', 'number'], out: 'number', category: 'operation', icon: 'fas fa-times' }, divide: { in: ['number', 'number'], out: 'number', category: 'operation', icon: 'fas fa-divide' }, mod: { in: ['number', 'number'], out: 'number', category: 'operation', icon: 'fas fa-divide' }, diff --git a/packages/client/src/scripts/select-file.ts b/packages/client/src/scripts/select-file.ts index 17e31d96f1..b5c5d688a7 100644 --- a/packages/client/src/scripts/select-file.ts +++ b/packages/client/src/scripts/select-file.ts @@ -84,11 +84,11 @@ function select(src: any, label: string | null, multiple: boolean): Promise<Driv action: chooseFileFromPc, }, { text: i18n.ts.fromDrive, - icon: 'fas fa-cloud', + icon: 'ti ti-cloud', action: chooseFileFromDrive, }, { text: i18n.ts.fromUrl, - icon: 'fas fa-link', + icon: 'ti ti-link', action: chooseFileFromUrl, }], src); }); |