replaced ti-link

This commit is contained in:
dakkar 2024-06-21 14:48:54 +01:00
parent 65605683c7
commit bc0fbca65e
13 changed files with 24 additions and 23 deletions

View file

@ -627,7 +627,7 @@ function getMenu() {
action: () => { selectLocalFile(); },
}, {
text: i18n.ts.fromUrl,
icon: 'ph-link ph-bold ph-lg',
icon: 'ti ti-link',
action: () => { urlUpload(); },
}, { type: 'divider' }, {
text: folder.value ? folder.value.name : i18n.ts.drive,

View file

@ -128,7 +128,7 @@ const contextmenu = computed(() => ([{
windowEl.value?.close();
},
}, {
icon: 'ph-link ph-bold ph-lg',
icon: 'ti ti-link',
text: i18n.ts.copyLink,
action: () => {
copyToClipboard(url + windowRouter.getCurrentPath());

View file

@ -73,7 +73,7 @@ function onContextmenu(ev) {
window.open(props.to, '_blank', 'noopener');
},
}, {
icon: 'ph-link ph-bold ph-lg',
icon: 'ti ti-link',
text: i18n.ts.copyLink,
action: () => {
copyToClipboard(`${url}${props.to}`);

View file

@ -39,7 +39,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template #label>{{ i18n.ts.mcaptchaSecretKey }}</template>
</MkInput>
<MkInput v-model="mcaptchaInstanceUrl">
<template #prefix><i class="ph-globe-simple ph-bold ph-lg"></i></template>
<template #prefix><i class="ti ti-link"></i></template>
<template #label>{{ i18n.ts.mcaptchaInstanceUrl }}</template>
</MkInput>
<FormSlot v-if="mcaptchaSiteKey && mcaptchaInstanceUrl">

View file

@ -11,12 +11,12 @@ SPDX-License-Identifier: AGPL-3.0-only
<FormSuspense :p="init">
<div class="_gaps_m">
<MkInput v-model="iconUrl" type="url">
<template #prefix><i class="ph-link ph-bold ph-lg"></i></template>
<template #prefix><i class="ti ti-link"></i></template>
<template #label>{{ i18n.ts._serverSettings.iconUrl }}</template>
</MkInput>
<MkInput v-model="app192IconUrl" type="url">
<template #prefix><i class="ph-link ph-bold ph-lg"></i></template>
<template #prefix><i class="ti ti-link"></i></template>
<template #label>{{ i18n.ts._serverSettings.iconUrl }} (App/192px)</template>
<template #caption>
<div>{{ i18n.tsx._serverSettings.appIconDescription({ host: instance.name ?? host }) }}</div>
@ -27,7 +27,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkInput>
<MkInput v-model="app512IconUrl" type="url">
<template #prefix><i class="ph-link ph-bold ph-lg"></i></template>
<template #prefix><i class="ti ti-link"></i></template>
<template #label>{{ i18n.ts._serverSettings.iconUrl }} (App/512px)</template>
<template #caption>
<div>{{ i18n.tsx._serverSettings.appIconDescription({ host: instance.name ?? host }) }}</div>
@ -38,12 +38,12 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkInput>
<MkInput v-model="bannerUrl" type="url">
<template #prefix><i class="ph-link ph-bold ph-lg"></i></template>
<template #prefix><i class="ti ti-link"></i></template>
<template #label>{{ i18n.ts.bannerUrl }}</template>
</MkInput>
<MkInput v-model="backgroundImageUrl" type="url">
<template #prefix><i class="ph-link ph-bold ph-lg"></i></template>
<template #prefix><i class="ti ti-link"></i></template>
<template #label>{{ i18n.ts.backgroundImageUrl }}</template>
</MkInput>
@ -55,17 +55,17 @@ SPDX-License-Identifier: AGPL-3.0-only
</FromSlot>
<MkInput v-model="notFoundImageUrl" type="url">
<template #prefix><i class="ph-link ph-bold ph-lg"></i></template>
<template #prefix><i class="ti ti-link"></i></template>
<template #label>{{ i18n.ts.notFoundDescription }}</template>
</MkInput>
<MkInput v-model="infoImageUrl" type="url">
<template #prefix><i class="ph-link ph-bold ph-lg"></i></template>
<template #prefix><i class="ti ti-link"></i></template>
<template #label>{{ i18n.ts.nothing }}</template>
</MkInput>
<MkInput v-model="serverErrorImageUrl" type="url">
<template #prefix><i class="ph-link ph-bold ph-lg"></i></template>
<template #prefix><i class="ti ti-link"></i></template>
<template #label>{{ i18n.ts.somethingHappened }}</template>
</MkInput>
@ -84,12 +84,12 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkTextarea>
<MkInput v-model="repositoryUrl" type="url">
<template #prefix><i class="ph-link ph-bold ph-lg"></i></template>
<template #prefix><i class="ti ti-link"></i></template>
<template #label>{{ i18n.ts.repositoryUrl }}</template>
</MkInput>
<MkInput v-model="feedbackUrl" type="url">
<template #prefix><i class="ph-link ph-bold ph-lg"></i></template>
<template #prefix><i class="ti ti-link"></i></template>
<template #label>{{ i18n.ts.feedbackUrl }}</template>
</MkInput>

View file

@ -25,12 +25,12 @@ SPDX-License-Identifier: AGPL-3.0-only
<FormLink to="/admin/server-rules">{{ i18n.ts.serverRules }}</FormLink>
<MkInput v-model="tosUrl" type="url">
<template #prefix><i class="ph-link ph-bold ph-lg"></i></template>
<template #prefix><i class="ti ti-link"></i></template>
<template #label>{{ i18n.ts.tosUrl }}</template>
</MkInput>
<MkInput v-model="privacyPolicyUrl" type="url">
<template #prefix><i class="ph-link ph-bold ph-lg"></i></template>
<template #prefix><i class="ti ti-link"></i></template>
<template #label>{{ i18n.ts.privacyPolicyUrl }}</template>
</MkInput>
@ -40,7 +40,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkTextarea>
<MkInput v-model="inquiryUrl" type="url">
<template #prefix><i class="ph-link ph-bold ph-lg"></i></template>
<template #prefix><i class="ti ti-link"></i></template>
<template #label>{{ i18n.ts._serverSettings.inquiryUrl }}</template>
<template #caption>{{ i18n.ts._serverSettings.inquiryUrlDescription }}</template>
</MkInput>

View file

@ -36,7 +36,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkInput v-model="repositoryUrl" type="url">
<template #label>{{ i18n.ts.repositoryUrl }}</template>
<template #prefix><i class="ph-link ph-bold ph-lg"></i></template>
<template #prefix><i class="ti ti-link"></i></template>
<template #caption>{{ i18n.ts.repositoryUrlDescription }}</template>
</MkInput>

View file

@ -21,7 +21,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<div class="items">
<MkButton v-if="flash.isLiked" v-tooltip="i18n.ts.unlike" asLike class="button" rounded primary @click="unlike()"><i class="ti ti-heart"></i><span v-if="flash?.likedCount && flash.likedCount > 0" style="margin-left: 6px;">{{ flash.likedCount }}</span></MkButton>
<MkButton v-else v-tooltip="i18n.ts.like" asLike class="button" rounded @click="like()"><i class="ti ti-heart"></i><span v-if="flash?.likedCount && flash.likedCount > 0" style="margin-left: 6px;">{{ flash.likedCount }}</span></MkButton>
<MkButton v-tooltip="i18n.ts.copyLink" class="button" rounded @click="copyLink"><i class="ph-link ph-bold ph-lg ti-fw"></i></MkButton>
<MkButton v-tooltip="i18n.ts.copyLink" class="button" rounded @click="copyLink"><i class="ti ti-link ti-fw"></i></MkButton>
<MkButton v-tooltip="i18n.ts.share" class="button" rounded @click="share"><i class="ph-share-network ph-bold ph-lg ti-fw"></i></MkButton>
</div>
</div>

View file

@ -62,7 +62,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkButton v-else v-tooltip="i18n.ts._pages.like" class="button" asLike @click="like()"><i class="ti ti-heart"></i><span v-if="page.likedCount > 0" class="count">{{ page.likedCount }}</span></MkButton>
</div>
<div :class="$style.other">
<button v-tooltip="i18n.ts.copyLink" class="_button" :class="$style.generalActionButton" @click="copyLink"><i class="ph-link ph-bold ph-lg ti-fw"></i></button>
<button v-tooltip="i18n.ts.copyLink" class="_button" :class="$style.generalActionButton" @click="copyLink"><i class="ti ti-link ti-fw"></i></button>
<button v-tooltip="i18n.ts.share" class="_button" :class="$style.generalActionButton" @click="share"><i class="ph-share-network ph-bold ph-lg ti-fw"></i></button>
</div>
</div>

View file

@ -110,7 +110,7 @@ export function getDriveFileMenu(file: Misskey.entities.DriveFile, folder?: Miss
}),
}, {
text: i18n.ts.copyUrl,
icon: 'ph-link ph-bold ph-lg',
icon: 'ti ti-link',
action: () => copyUrl(file),
}, {
type: 'a',

View file

@ -146,7 +146,7 @@ export function getAbuseNoteMenu(note: Misskey.entities.Note, text: string): Men
export function getCopyNoteLinkMenu(note: Misskey.entities.Note, text: string): MenuItem {
return {
icon: 'ph-link ph-bold ph-lg',
icon: 'ti ti-link',
text,
action: (): void => {
copyToClipboard(`${url}/notes/${note.id}`);

View file

@ -101,7 +101,7 @@ function select(src: any, label: string | null, multiple: boolean): Promise<Miss
action: () => chooseFileFromDrive(multiple).then(files => res(files)),
}, {
text: i18n.ts.fromUrl,
icon: 'ph-link ph-bold ph-lg',
icon: 'ti ti-link',
action: () => chooseFileFromUrl().then(file => res([file])),
}], src);
});

View file

@ -103,6 +103,7 @@ export function getConfig(): UserConfig {
'ti ti-heart-plus': 'ph-heart ph-bold ph-lg',
'ti ti-arrow-left': 'ph-arrow-left ph-bold ph-lg',
'ti ti-settings': 'ph-gear ph-bold ph-lg',
'ti ti-link': 'ph-link ph-bold ph-lg',
},
}),
...process.env.NODE_ENV === 'production'