replaced ti-code

This commit is contained in:
dakkar 2024-06-21 14:59:21 +01:00
parent 2f4a9010c9
commit 7eed0aec69
15 changed files with 16 additions and 15 deletions

View file

@ -16,7 +16,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<pre v-else-if="show" :class="$style.codeBlockFallbackRoot"><code :class="$style.codeBlockFallbackCode">{{ code }}</code></pre>
<button v-else :class="$style.codePlaceholderRoot" @click="show = true">
<div :class="$style.codePlaceholderContainer">
<div><i class="ph-code ph-bold ph-lg"></i> {{ i18n.ts.code }}</div>
<div><i class="ti ti-code"></i> {{ i18n.ts.code }}</div>
<div>{{ i18n.ts.clickToShow }}</div>
</div>
</button>

View file

@ -33,7 +33,7 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ i18n.tsx._aboutMisskey.thisIsModifiedVersion({ name: instance.name }) }}
</MkInfo>
<FormLink v-if="instance.repositoryUrl" :to="instance.repositoryUrl" external>
<template #icon><i class="ph-code ph-bold ph-lg"></i></template>
<template #icon><i class="ti ti-code"></i></template>
{{ i18n.ts._aboutMisskey.source }}
</FormLink>
<FormLink v-if="instance.providesTarball" :to="`/tarball/sharkey-${version}.tar.gz`" external>
@ -63,7 +63,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<FormSection>
<div class="_gaps_s">
<FormLink to="https://github.com/misskey-dev/misskey" external>
<template #icon><i class="ph-code ph-bold ph-lg"></i></template>
<template #icon><i class="ti ti-code"></i></template>
{{ i18n.ts._aboutMisskey.source }} ({{ i18n.ts._aboutMisskey.original }})
<template #suffix>GitHub</template>
</FormLink>

View file

@ -36,7 +36,7 @@ SPDX-License-Identifier: AGPL-3.0-only
{{ i18n.ts.aboutMisskey }}
</FormLink>
<FormLink v-if="instance.repositoryUrl || instance.providesTarball" :to="instance.repositoryUrl || `/tarball/sharkey-${version}.tar.gz`" external>
<template #icon><i class="ph-code ph-bold ph-lg"></i></template>
<template #icon><i class="ti ti-code"></i></template>
{{ i18n.ts.sourceCode }}
</FormLink>
<MkInfo v-else warn>

View file

@ -137,7 +137,7 @@ const headerTabs = computed(() => [{
} : null, {
key: 'raw',
title: 'Raw data',
icon: 'ph-code ph-bold ph-lg',
icon: 'ti ti-code',
}]);
definePageMetadata(() => ({

View file

@ -533,7 +533,7 @@ const headerTabs = computed(() => [{
}, {
key: 'raw',
title: 'Raw',
icon: 'ph-code ph-bold ph-lg',
icon: 'ti ti-code',
}]);
definePageMetadata(() => ({

View file

@ -38,7 +38,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div>
</Transition>
<MkFolder :defaultOpen="false" :max-height="280" class="_margin">
<template #icon><i class="ph-code ph-bold ph-lg"></i></template>
<template #icon><i class="ti ti-code"></i></template>
<template #label>{{ i18n.ts._play.viewSource }}</template>
<MkCode :code="flash.script" lang="is" class="_monospace"/>

View file

@ -51,7 +51,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<template #value>{{ i18n.ts[data.meta.base] }}</template>
</MkKeyValue>
<MkFolder>
<template #icon><i class="ph-code ph-bold ph-lg"></i></template>
<template #icon><i class="ti ti-code"></i></template>
<template #label>{{ i18n.ts._plugin.viewSource }}</template>
<MkCode :code="data.raw ?? ''"/>

View file

@ -282,7 +282,7 @@ const headerTabs = computed(() => [{
}, {
key: 'raw',
title: 'Raw',
icon: 'ph-code ph-bold ph-lg',
icon: 'ti ti-code',
}]);
definePageMetadata(() => ({

View file

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

View file

@ -309,7 +309,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</div>
</MkFolder>
<FormLink to="/settings/deck">{{ i18n.ts.deck }}</FormLink>
<FormLink to="/settings/custom-css"><template #icon><i class="ph-code ph-bold ph-lg"></i></template>{{ i18n.ts.customCss }}</FormLink>
<FormLink to="/settings/custom-css"><template #icon><i class="ti ti-code"></i></template>{{ i18n.ts.customCss }}</FormLink>
</div>
</FormSection>
</div>

View file

@ -69,7 +69,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkFolder>
<MkFolder>
<template #icon><i class="ph-code ph-bold ph-lg"></i></template>
<template #icon><i class="ti ti-code"></i></template>
<template #label>{{ i18n.ts.developer }}</template>
<div class="_gaps_m">

View file

@ -55,7 +55,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkFolder>
<MkFolder>
<template #icon><i class="ph-code ph-bold ph-lg"></i></template>
<template #icon><i class="ti ti-code"></i></template>
<template #label>{{ i18n.ts._plugin.viewSource }}</template>
<div class="_gaps_s">

View file

@ -47,7 +47,7 @@ SPDX-License-Identifier: AGPL-3.0-only
</MkFolder>
<MkFolder :defaultOpen="false">
<template #icon><i class="ph-code ph-bold ph-lg"></i></template>
<template #icon><i class="ti ti-code"></i></template>
<template #label>{{ i18n.ts.editCode }}</template>
<div class="_gaps_m">

View file

@ -123,7 +123,7 @@ const headerTabs = computed(() => user.value ? [{
}, {
key: 'raw',
title: 'Raw',
icon: 'ph-code ph-bold ph-lg',
icon: 'ti ti-code',
}] : []);
definePageMetadata(() => ({

View file

@ -105,6 +105,7 @@ export function getConfig(): UserConfig {
'ti ti-settings': 'ph-gear ph-bold ph-lg',
'ti ti-link': 'ph-link ph-bold ph-lg',
'ti ti-key': 'ph-key ph-bold ph-lg',
'ti ti-code': 'ph-code ph-bold ph-lg',
},
}),
...process.env.NODE_ENV === 'production'