fix (client): use icon script

This commit is contained in:
naskya 2024-04-03 13:14:36 +09:00
parent acf64acb11
commit 46baec14d2
No known key found for this signature in database
GPG Key ID: 712D413B3A9FED5C
5 changed files with 8 additions and 7 deletions

View File

@ -6,6 +6,7 @@ import { me } from "@/me";
import { alert, api, popup, popupMenu, waiting } from "@/os";
import { del, get, set } from "@/scripts/idb-proxy";
import { reloadChannel, unisonReload } from "@/scripts/unison-reload";
import icon from "@/scripts/icon";
// TODO: 他のタブと永続化されたstateを同期
@ -234,7 +235,7 @@ export async function openAccountMenu(
? [
{
type: "parent",
icon: "ph-plus ph-bold ph-lg",
icon: `${icon("ph-plus")}`,
text: i18n.ts.addAccount,
children: [
{
@ -276,7 +277,7 @@ export async function openAccountMenu(
: [
{
type: "parent",
icon: "ph-plus ph-bold ph-lg",
icon: `${icon("ph-plus")}`,
text: i18n.ts.addAccount,
children: [
{

View File

@ -66,7 +66,7 @@ export function openHelpMenu_(ev: MouseEvent) {
{
type: "button",
text: i18n.ts._mfm.cheatSheet,
icon: "ph-question ph-bold ph-lg",
icon: `${icon("ph-question")}`,
action: async () => {
os.popup(XCheatSheet, {}, {}, "closed");
},

View File

@ -88,7 +88,7 @@
active-class="active"
to="/admin/emojis"
>
<i class="icon ph-smiley ph-bold ph-fw ph-lg"></i
<i :class="icon('ph-smiley icon ph-fw')"></i
><span class="text">{{ i18n.ts.customEmojis }}</span>
</MkA>
<button v-click-anime class="item _button" @click="more">

View File

@ -100,7 +100,7 @@
active-class="active"
to="/admin/emojis"
>
<i class="icon ph-smiley ph-bold ph-fw ph-lg"></i
<i :class="icon('ph-smiley icon ph-fw')"></i
><span class="text">{{ i18n.ts.customEmojis }}</span>
</MkA>
<button

View File

@ -101,7 +101,7 @@
@click="openAccountMenu"
>
<div class="button-wrapper">
<i class="ph-users ph-bold ph-lg"></i>
<i :class="icon('ph-users')"></i>
</div>
</button>
<button
@ -136,7 +136,7 @@
@click="reload"
>
<div class="button-wrapper">
<i class="ph-arrows-clockwise ph-bold ph-lg"></i>
<i :class="icon('ph-arrows-clockwise')"></i>
</div>
</button>
<button