replaced more ti-*

This commit is contained in:
dakkar 2024-06-22 14:36:39 +01:00
parent 138127a5b6
commit f2c56f395e
37 changed files with 70 additions and 55 deletions

View file

@ -107,7 +107,7 @@ const menuDef = computed(() => [{
}, {
title: i18n.ts.administration,
items: [{
icon: 'ph-gauge ph-bold ph-lg',
icon: 'ti ti-dashboard',
text: i18n.ts.dashboard,
to: '/admin/overview',
active: currentPage.value?.route.name === 'overview',

View file

@ -186,7 +186,7 @@ const headerTabs = computed(() => []);
definePageMetadata(() => ({
title: i18n.ts.dashboard,
icon: 'ph-gauge ph-bold ph-lg',
icon: 'ti ti-dashboard',
}));
</script>

View file

@ -229,7 +229,7 @@ const headerActions = computed(() => {
}];
headerItems.push({
icon: 'ph-share-network ph-bold ph-lg',
icon: 'ti ti-link',
text: i18n.ts.copyUrl,
handler: async (): Promise<void> => {
if (!channel.value) {
@ -243,7 +243,7 @@ const headerActions = computed(() => {
if (isSupportShare()) {
headerItems.push({
icon: 'ph-share-network ph-bold ph-lg',
icon: 'ti ti-share',
text: i18n.ts.share,
handler: async (): Promise<void> => {
if (!channel.value) {

View file

@ -149,7 +149,7 @@ const headerTabs = computed(() => [{
}, {
key: 'owned',
title: i18n.ts._channel.owned,
icon: 'ph-pencil-simple-line ph-bold ph-lg',
icon: 'ti ti-edit',
}]);
definePageMetadata(() => ({

View file

@ -127,14 +127,14 @@ const headerActions = computed(() => clip.value && isOwned.value ? [{
clipsCache.delete();
},
}, ...(clip.value.isPublic ? [{
icon: 'ph-share-network ph-bold ph-lg',
icon: 'ti ti-link',
text: i18n.ts.copyUrl,
handler: async (): Promise<void> => {
copyToClipboard(`${url}/clips/${clip.value.id}`);
os.success();
},
}] : []), ...(clip.value.isPublic && isSupportShare() ? [{
icon: 'ph-share-network ph-bold ph-lg',
icon: 'ti ti-share',
text: i18n.ts.share,
handler: async (): Promise<void> => {
navigator.share({

View file

@ -83,7 +83,7 @@ const headerTabs = computed(() => [{
}, {
key: 'my',
title: i18n.ts._play.my,
icon: 'ph-pencil-simple-line ph-bold ph-lg',
icon: 'ti ti-edit',
}, {
key: 'liked',
title: i18n.ts._play.liked,

View file

@ -22,7 +22,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<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="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>
<MkButton v-tooltip="i18n.ts.share" class="button" rounded @click="share"><i class="ti ti-share ti-fw"></i></MkButton>
</div>
</div>
</div>
@ -109,7 +109,7 @@ function share(ev: MouseEvent) {
},
...(isSupportShare() ? [{
text: i18n.ts.share,
icon: 'ph-share-network ph-bold ph-lg ti-fw',
icon: 'ti ti-share',
action: shareWithNavigator,
}] : []),
], ev.currentTarget ?? ev.target);

View file

@ -116,7 +116,7 @@ const headerTabs = computed(() => [{
}, {
key: 'my',
title: i18n.ts._gallery.my,
icon: 'ph-pencil-simple-line ph-bold ph-lg',
icon: 'ti ti-edit',
}]);
definePageMetadata(() => ({

View file

@ -29,8 +29,8 @@ SPDX-License-Identifier: AGPL-3.0-only
<div class="other">
<button v-if="$i && $i.id === post.user.id" v-tooltip="i18n.ts.edit" v-click-anime class="_button" @click="edit"><i class="ti ti-pencil ti-fw"></i></button>
<button v-tooltip="i18n.ts.shareWithNote" v-click-anime class="_button" @click="shareWithNote"><i class="ti ti-repeat ti-fw"></i></button>
<button v-tooltip="i18n.ts.copyLink" v-click-anime class="_button" @click="copyLink"><i class="ph-share-network ph-bold ph-lg ti-fw"></i></button>
<button v-if="isSupportShare()" v-tooltip="i18n.ts.share" v-click-anime class="_button" @click="share"><i class="ph-share-network ph-bold ph-lg ti-fw"></i></button>
<button v-tooltip="i18n.ts.copyLink" v-click-anime class="_button" @click="copyLink"><i class="ti ti-share ti-fw"></i></button>
<button v-if="isSupportShare()" v-tooltip="i18n.ts.share" v-click-anime class="_button" @click="share"><i class="ti ti-share ti-fw"></i></button>
</div>
</div>
<div class="user">

View file

@ -287,7 +287,7 @@ const headerTabs = computed(() => [{
definePageMetadata(() => ({
title: props.host,
icon: 'ph-hard-drives ph-bold ph-lg',
icon: 'ti ti-server',
}));
</script>

View file

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template>
<!-- eslint-disable vue/no-mutating-props -->
<XContainer :draggable="true" @remove="() => $emit('remove')">
<template #header><i class="ph-note ph-bold ph-lg"></i> {{ i18n.ts._pages.blocks.note }}</template>
<template #header><i class="ti ti-note"></i> {{ i18n.ts._pages.blocks.note }}</template>
<section style="padding: 16px;" class="_gaps_s">
<MkInput v-model="id">

View file

@ -6,7 +6,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template>
<!-- eslint-disable vue/no-mutating-props -->
<XContainer :draggable="true" @remove="() => $emit('remove')">
<template #header><i class="ph-note ph-bold ph-lg"></i> {{ props.modelValue.title }}</template>
<template #header><i class="ti ti-note"></i> {{ props.modelValue.title }}</template>
<template #func>
<button class="_button" @click="rename()">
<i class="ti ti-pencil"></i>

View file

@ -280,7 +280,7 @@ const headerTabs = computed(() => [{
}, {
key: 'contents',
title: i18n.ts._pages.contents,
icon: 'ph-note ph-bold ph-lg',
icon: 'ti ti-note',
}]);
definePageMetadata(() => ({

View file

@ -48,7 +48,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div>
<div :class="$style.pageBannerTitleSubActions">
<MkA v-if="page.userId === $i?.id" v-tooltip="i18n.ts._pages.editThisPage" :to="`/pages/edit/${page.id}`" class="_button" :class="$style.generalActionButton"><i class="ti ti-pencil ti-fw"></i></MkA>
<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>
<button v-tooltip="i18n.ts.share" class="_button" :class="$style.generalActionButton" @click="share"><i class="ti ti-share ti-fw"></i></button>
</div>
</div>
</div>
@ -63,7 +63,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div>
<div :class="$style.other">
<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>
<button v-tooltip="i18n.ts.share" class="_button" :class="$style.generalActionButton" @click="share"><i class="ti ti-share ti-fw"></i></button>
</div>
</div>
<div :class="$style.pageUser">
@ -175,7 +175,7 @@ function share(ev: MouseEvent) {
},
...(isSupportShare() ? [{
text: i18n.ts.share,
icon: 'ph-share-network',
icon: 'ti ti-share',
action: shareWithNavigator,
}] : []),
], ev.currentTarget ?? ev.target);

View file

@ -81,7 +81,7 @@ const headerTabs = computed(() => [{
}, {
key: 'my',
title: i18n.ts._pages.my,
icon: 'ph-pencil-simple-line ph-bold ph-lg',
icon: 'ti ti-edit',
}, {
key: 'liked',
title: i18n.ts._pages.liked,
@ -90,6 +90,6 @@ const headerTabs = computed(() => [{
definePageMetadata(() => ({
title: i18n.ts.pages,
icon: 'ph-note ph-bold ph-lg',
icon: 'ti ti-note',
}));
</script>

View file

@ -35,7 +35,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<MkInput v-model="profile.birthday" :max="setMaxBirthDate()" type="date" manualSave>
<template #label>{{ i18n.ts.birthday }}</template>
<template #prefix><i class="ph-cake ph-bold ph-lg"></i></template>
<template #prefix><i class="ti ti-cake"></i></template>
</MkInput>
<MkInput v-model="profile.listenbrainz" manualSave>

View file

@ -201,6 +201,6 @@ const headerTabs = computed(() => []);
definePageMetadata(() => ({
title: i18n.ts.share,
icon: 'ph-share-network ph-bold ph-lg',
icon: 'ti ti-share',
}));
</script>

View file

@ -26,7 +26,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<span v-if="user.isLocked" :title="i18n.ts.isLocked"><i class="ti ti-lock"></i></span>
<span v-if="user.isBot" :title="i18n.ts.isBot"><i class="ph-robot ph-bold ph-lg"></i></span>
<button v-if="$i && !isEditingMemo && !memoDraft" class="_button add-note-button" @click="showMemoTextarea">
<i class="ph-pencil-simple-line ph-bold ph-lg"/> {{ i18n.ts.addMemo }}
<i class="ti ti-edit"/> {{ i18n.ts.addMemo }}
</button>
</div>
</div>
@ -83,7 +83,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<dd class="value">{{ user.location }}</dd>
</dl>
<dl v-if="user.birthday" class="field">
<dt class="name"><i class="ph-cake ph-bold ph-lg ti-fw"></i> {{ i18n.ts.birthday }}</dt>
<dt class="name"><i class="ti ti-cake ti-fw"></i> {{ i18n.ts.birthday }}</dt>
<dd class="value">{{ user.birthday.replace('-', '/').replace('-', '/') }} ({{ i18n.tsx.yearsOld({ age }) }})</dd>
</dl>
<dl class="field">