replaced ti-forms

This commit is contained in:
dakkar 2024-06-21 17:12:57 +01:00
parent cf9e5d72e0
commit f1bfe9602e
7 changed files with 7 additions and 6 deletions

View file

@ -264,7 +264,7 @@ function onContextmenu(ev: MouseEvent) {
}, },
}, { type: 'divider' }, { }, { type: 'divider' }, {
text: i18n.ts.rename, text: i18n.ts.rename,
icon: 'ph-textbox ph-bold ph-lg', icon: 'ti ti-forms',
action: rename, action: rename,
}, { type: 'divider' }, { }, { type: 'divider' }, {
text: i18n.ts.delete, text: i18n.ts.delete,

View file

@ -634,7 +634,7 @@ function getMenu() {
type: 'label', type: 'label',
}, folder.value ? { }, folder.value ? {
text: i18n.ts.renameFolder, text: i18n.ts.renameFolder,
icon: 'ph-textbox ph-bold ph-lg', icon: 'ti ti-forms',
action: () => { if (folder.value) renameFolder(folder.value); }, action: () => { if (folder.value) renameFolder(folder.value); },
} : undefined, folder.value ? { } : undefined, folder.value ? {
text: i18n.ts.deleteFolder, text: i18n.ts.deleteFolder,

View file

@ -137,7 +137,7 @@ function showFileMenu(file: Misskey.entities.DriveFile, ev: MouseEvent): void {
const isImage = file.type.startsWith('image/'); const isImage = file.type.startsWith('image/');
os.popupMenu([{ os.popupMenu([{
text: i18n.ts.renameFile, text: i18n.ts.renameFile,
icon: 'ph-textbox ph-bold ph-lg', icon: 'ti ti-forms',
action: () => { rename(file); }, action: () => { rename(file); },
}, { }, {
text: file.isSensitive ? i18n.ts.unmarkAsSensitive : i18n.ts.markAsSensitive, text: file.isSensitive ? i18n.ts.unmarkAsSensitive : i18n.ts.markAsSensitive,

View file

@ -58,7 +58,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template #label>{{ key.name }}</template> <template #label>{{ key.name }}</template>
<template #suffix><I18n :src="i18n.ts.lastUsedAt"><template #t><MkTime :time="key.lastUsed"/></template></I18n></template> <template #suffix><I18n :src="i18n.ts.lastUsedAt"><template #t><MkTime :time="key.lastUsed"/></template></I18n></template>
<div class="_buttons"> <div class="_buttons">
<MkButton @click="renameKey(key)"><i class="ph-textbox ph-bold ph-lg"></i> {{ i18n.ts.rename }}</MkButton> <MkButton @click="renameKey(key)"><i class="ti ti-forms"></i> {{ i18n.ts.rename }}</MkButton>
<MkButton danger @click="unregisterKey(key)"><i class="ph-trash ph-bold ph-lg"></i> {{ i18n.ts.unregister }}</MkButton> <MkButton danger @click="unregisterKey(key)"><i class="ph-trash ph-bold ph-lg"></i> {{ i18n.ts.unregister }}</MkButton>
</div> </div>
</MkFolder> </MkFolder>

View file

@ -435,7 +435,7 @@ function menu(ev: MouseEvent, profileId: string) {
download: `${profiles.value[profileId].name}.json`, download: `${profiles.value[profileId].name}.json`,
}, { type: 'divider' }, { }, { type: 'divider' }, {
text: ts.rename, text: ts.rename,
icon: 'ph-textbox ph-bold ph-lg', icon: 'ti ti-forms',
action: () => rename(profileId), action: () => rename(profileId),
}, { }, {
text: ts._preferencesBackups.save, text: ts._preferencesBackups.save,

View file

@ -85,7 +85,7 @@ export function getDriveFileMenu(file: Misskey.entities.DriveFile, folder?: Miss
icon: 'ph-file-text ph-bold ph-lg', icon: 'ph-file-text ph-bold ph-lg',
}, { type: 'divider' }, { }, { type: 'divider' }, {
text: i18n.ts.rename, text: i18n.ts.rename,
icon: 'ph-textbox ph-bold ph-lg', icon: 'ti ti-forms',
action: () => rename(file), action: () => rename(file),
}, { }, {
text: file.isSensitive ? i18n.ts.unmarkAsSensitive : i18n.ts.markAsSensitive, text: file.isSensitive ? i18n.ts.unmarkAsSensitive : i18n.ts.markAsSensitive,

View file

@ -179,6 +179,7 @@ export function getConfig(): UserConfig {
'ti ti-folder': 'ph-folder ph-bold ph-lg', 'ti ti-folder': 'ph-folder ph-bold ph-lg',
'ti ti-folder-plus': 'ph-folder-plus ph-bold ph-lg', 'ti ti-folder-plus': 'ph-folder-plus ph-bold ph-lg',
'ti ti-app-window': 'ph-app-window ph-bold ph-lg', 'ti ti-app-window': 'ph-app-window ph-bold ph-lg',
'ti ti-forms': 'ph-textbox ph-bold ph-lg',
}, },
}), }),
...process.env.NODE_ENV === 'production' ...process.env.NODE_ENV === 'production'