mirror of
https://github.com/misskey-dev/misskey.git
synced 2026-05-23 07:34:09 +02:00
refactor
This commit is contained in:
@@ -48,34 +48,22 @@ watch(tab, () => {
|
|||||||
|
|
||||||
const headerActions = computed(() => []);
|
const headerActions = computed(() => []);
|
||||||
|
|
||||||
const headerTabs = computed(() => {
|
const headerTabs = computed(() => [{
|
||||||
const items = [];
|
key: 'overview',
|
||||||
|
title: i18n.ts.overview,
|
||||||
items.push({
|
}, {
|
||||||
key: 'overview',
|
key: 'emojis',
|
||||||
title: i18n.ts.overview,
|
title: i18n.ts.customEmojis,
|
||||||
}, {
|
icon: 'ti ti-icons',
|
||||||
key: 'emojis',
|
}, ...(instance.federation !== 'none' ? [{
|
||||||
title: i18n.ts.customEmojis,
|
key: 'federation',
|
||||||
icon: 'ti ti-icons',
|
title: i18n.ts.federation,
|
||||||
});
|
icon: 'ti ti-whirl',
|
||||||
|
}] : []), {
|
||||||
if (instance.federation !== 'none') {
|
key: 'charts',
|
||||||
items.push({
|
title: i18n.ts.charts,
|
||||||
key: 'federation',
|
icon: 'ti ti-chart-line',
|
||||||
title: i18n.ts.federation,
|
}]);
|
||||||
icon: 'ti ti-whirl',
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
items.push({
|
|
||||||
key: 'charts',
|
|
||||||
title: i18n.ts.charts,
|
|
||||||
icon: 'ti ti-chart-line',
|
|
||||||
});
|
|
||||||
|
|
||||||
return items;
|
|
||||||
});
|
|
||||||
|
|
||||||
definePage(() => ({
|
definePage(() => ({
|
||||||
title: i18n.ts.instanceInfo,
|
title: i18n.ts.instanceInfo,
|
||||||
|
|||||||
Reference in New Issue
Block a user