enhance(frontend): tweak control panel
This commit is contained in:
parent
3df1bb2d71
commit
8ad9f7209b
4
locales/index.d.ts
vendored
4
locales/index.d.ts
vendored
|
@ -5092,6 +5092,10 @@ export interface Locale extends ILocale {
|
||||||
* これ以上このクリップにノートを追加できません。
|
* これ以上このクリップにノートを追加できません。
|
||||||
*/
|
*/
|
||||||
"clipNoteLimitExceeded": string;
|
"clipNoteLimitExceeded": string;
|
||||||
|
/**
|
||||||
|
* パフォーマンス
|
||||||
|
*/
|
||||||
|
"performance": string;
|
||||||
"_delivery": {
|
"_delivery": {
|
||||||
/**
|
/**
|
||||||
* 配信状態
|
* 配信状態
|
||||||
|
|
|
@ -1269,6 +1269,7 @@ fromX: "{x}から"
|
||||||
genEmbedCode: "埋め込みコードを生成"
|
genEmbedCode: "埋め込みコードを生成"
|
||||||
noteOfThisUser: "このユーザーのノート一覧"
|
noteOfThisUser: "このユーザーのノート一覧"
|
||||||
clipNoteLimitExceeded: "これ以上このクリップにノートを追加できません。"
|
clipNoteLimitExceeded: "これ以上このクリップにノートを追加できません。"
|
||||||
|
performance: "パフォーマンス"
|
||||||
|
|
||||||
_delivery:
|
_delivery:
|
||||||
status: "配信状態"
|
status: "配信状態"
|
||||||
|
|
|
@ -215,10 +215,10 @@ const menuDef = computed(() => [{
|
||||||
to: '/admin/system-webhook',
|
to: '/admin/system-webhook',
|
||||||
active: currentPage.value?.route.name === 'system-webhook',
|
active: currentPage.value?.route.name === 'system-webhook',
|
||||||
}, {
|
}, {
|
||||||
icon: 'ti ti-adjustments',
|
icon: 'ti ti-bolt',
|
||||||
text: i18n.ts.other,
|
text: i18n.ts.performance,
|
||||||
to: '/admin/other-settings',
|
to: '/admin/performance',
|
||||||
active: currentPage.value?.route.name === 'other-settings',
|
active: currentPage.value?.route.name === 'performance',
|
||||||
}],
|
}],
|
||||||
}, {
|
}, {
|
||||||
title: i18n.ts.info,
|
title: i18n.ts.info,
|
||||||
|
|
|
@ -10,28 +10,28 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<FormSuspense :p="init">
|
<FormSuspense :p="init">
|
||||||
<div class="_gaps">
|
<div class="_gaps">
|
||||||
<div class="_panel" style="padding: 16px;">
|
<div class="_panel" style="padding: 16px;">
|
||||||
<MkSwitch v-model="enableServerMachineStats">
|
<MkSwitch v-model="enableServerMachineStats" @change="onChange_enableServerMachineStats">
|
||||||
<template #label>{{ i18n.ts.enableServerMachineStats }}</template>
|
<template #label>{{ i18n.ts.enableServerMachineStats }}</template>
|
||||||
<template #caption>{{ i18n.ts.turnOffToImprovePerformance }}</template>
|
<template #caption>{{ i18n.ts.turnOffToImprovePerformance }}</template>
|
||||||
</MkSwitch>
|
</MkSwitch>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="_panel" style="padding: 16px;">
|
<div class="_panel" style="padding: 16px;">
|
||||||
<MkSwitch v-model="enableIdenticonGeneration">
|
<MkSwitch v-model="enableIdenticonGeneration" @change="onChange_enableIdenticonGeneration">
|
||||||
<template #label>{{ i18n.ts.enableIdenticonGeneration }}</template>
|
<template #label>{{ i18n.ts.enableIdenticonGeneration }}</template>
|
||||||
<template #caption>{{ i18n.ts.turnOffToImprovePerformance }}</template>
|
<template #caption>{{ i18n.ts.turnOffToImprovePerformance }}</template>
|
||||||
</MkSwitch>
|
</MkSwitch>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="_panel" style="padding: 16px;">
|
<div class="_panel" style="padding: 16px;">
|
||||||
<MkSwitch v-model="enableChartsForRemoteUser">
|
<MkSwitch v-model="enableChartsForRemoteUser" @change="onChange_enableChartsForRemoteUser">
|
||||||
<template #label>{{ i18n.ts.enableChartsForRemoteUser }}</template>
|
<template #label>{{ i18n.ts.enableChartsForRemoteUser }}</template>
|
||||||
<template #caption>{{ i18n.ts.turnOffToImprovePerformance }}</template>
|
<template #caption>{{ i18n.ts.turnOffToImprovePerformance }}</template>
|
||||||
</MkSwitch>
|
</MkSwitch>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="_panel" style="padding: 16px;">
|
<div class="_panel" style="padding: 16px;">
|
||||||
<MkSwitch v-model="enableChartsForFederatedInstances">
|
<MkSwitch v-model="enableChartsForFederatedInstances" @change="onChange_enableChartsForFederatedInstances">
|
||||||
<template #label>{{ i18n.ts.enableChartsForFederatedInstances }}</template>
|
<template #label>{{ i18n.ts.enableChartsForFederatedInstances }}</template>
|
||||||
<template #caption>{{ i18n.ts.turnOffToImprovePerformance }}</template>
|
<template #caption>{{ i18n.ts.turnOffToImprovePerformance }}</template>
|
||||||
</MkSwitch>
|
</MkSwitch>
|
||||||
|
@ -44,7 +44,7 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
<template v-else #suffix>Disabled</template>
|
<template v-else #suffix>Disabled</template>
|
||||||
|
|
||||||
<div class="_gaps_m">
|
<div class="_gaps_m">
|
||||||
<MkSwitch v-model="enableFanoutTimeline">
|
<MkSwitch v-model="enableFanoutTimeline" @change="onChange_enableFanoutTimeline">
|
||||||
<template #label>{{ i18n.ts.enable }}</template>
|
<template #label>{{ i18n.ts.enable }}</template>
|
||||||
<template #caption>
|
<template #caption>
|
||||||
<div>{{ i18n.ts._serverSettings.fanoutTimelineDescription }}</div>
|
<div>{{ i18n.ts._serverSettings.fanoutTimelineDescription }}</div>
|
||||||
|
@ -52,24 +52,24 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
</template>
|
</template>
|
||||||
</MkSwitch>
|
</MkSwitch>
|
||||||
|
|
||||||
<MkSwitch v-model="enableFanoutTimelineDbFallback">
|
<MkSwitch v-model="enableFanoutTimelineDbFallback" @change="onChange_enableFanoutTimelineDbFallback">
|
||||||
<template #label>{{ i18n.ts._serverSettings.fanoutTimelineDbFallback }}</template>
|
<template #label>{{ i18n.ts._serverSettings.fanoutTimelineDbFallback }}</template>
|
||||||
<template #caption>{{ i18n.ts._serverSettings.fanoutTimelineDbFallbackDescription }}</template>
|
<template #caption>{{ i18n.ts._serverSettings.fanoutTimelineDbFallbackDescription }}</template>
|
||||||
</MkSwitch>
|
</MkSwitch>
|
||||||
|
|
||||||
<MkInput v-model="perLocalUserUserTimelineCacheMax" type="number">
|
<MkInput v-model="perLocalUserUserTimelineCacheMax" type="number" :manual-save="true" @update:model-value="save_perLocalUserUserTimelineCacheMax">
|
||||||
<template #label>perLocalUserUserTimelineCacheMax</template>
|
<template #label>perLocalUserUserTimelineCacheMax</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
|
|
||||||
<MkInput v-model="perRemoteUserUserTimelineCacheMax" type="number">
|
<MkInput v-model="perRemoteUserUserTimelineCacheMax" type="number" :manual-save="true" @update:model-value="save_perRemoteUserUserTimelineCacheMax">
|
||||||
<template #label>perRemoteUserUserTimelineCacheMax</template>
|
<template #label>perRemoteUserUserTimelineCacheMax</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
|
|
||||||
<MkInput v-model="perUserHomeTimelineCacheMax" type="number">
|
<MkInput v-model="perUserHomeTimelineCacheMax" type="number" :manual-save="true" @update:model-value="save_perUserHomeTimelineCacheMax">
|
||||||
<template #label>perUserHomeTimelineCacheMax</template>
|
<template #label>perUserHomeTimelineCacheMax</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
|
|
||||||
<MkInput v-model="perUserListTimelineCacheMax" type="number">
|
<MkInput v-model="perUserListTimelineCacheMax" type="number" :manual-save="true" @update:model-value="save_perUserListTimelineCacheMax">
|
||||||
<template #label>perUserListTimelineCacheMax</template>
|
<template #label>perUserListTimelineCacheMax</template>
|
||||||
</MkInput>
|
</MkInput>
|
||||||
</div>
|
</div>
|
||||||
|
@ -77,12 +77,12 @@ SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
<MkFolder :defaultOpen="true">
|
<MkFolder :defaultOpen="true">
|
||||||
<template #icon><i class="ti ti-bolt"></i></template>
|
<template #icon><i class="ti ti-bolt"></i></template>
|
||||||
<template #label>Misskey® Reactions Buffering Technology™ (RBT)<span class="_beta">{{ i18n.ts.beta }}</span></template>
|
<template #label>Misskey® Reactions Boost Technology™ (RBT)<span class="_beta">{{ i18n.ts.beta }}</span></template>
|
||||||
<template v-if="enableReactionsBuffering" #suffix>Enabled</template>
|
<template v-if="enableReactionsBuffering" #suffix>Enabled</template>
|
||||||
<template v-else #suffix>Disabled</template>
|
<template v-else #suffix>Disabled</template>
|
||||||
|
|
||||||
<div class="_gaps_m">
|
<div class="_gaps_m">
|
||||||
<MkSwitch v-model="enableReactionsBuffering">
|
<MkSwitch v-model="enableReactionsBuffering" @change="onChange_enableReactionsBuffering">
|
||||||
<template #label>{{ i18n.ts.enable }}</template>
|
<template #label>{{ i18n.ts.enable }}</template>
|
||||||
<template #caption>{{ i18n.ts._serverSettings.reactionsBufferingDescription }}</template>
|
<template #caption>{{ i18n.ts._serverSettings.reactionsBufferingDescription }}</template>
|
||||||
</MkSwitch>
|
</MkSwitch>
|
||||||
|
@ -135,30 +135,95 @@ async function init() {
|
||||||
enableReactionsBuffering.value = meta.enableReactionsBuffering;
|
enableReactionsBuffering.value = meta.enableReactionsBuffering;
|
||||||
}
|
}
|
||||||
|
|
||||||
function save() {
|
function onChange_enableServerMachineStats(value: boolean) {
|
||||||
os.apiWithDialog('admin/update-meta', {
|
os.apiWithDialog('admin/update-meta', {
|
||||||
enableServerMachineStats: enableServerMachineStats.value,
|
enableServerMachineStats: value,
|
||||||
enableIdenticonGeneration: enableIdenticonGeneration.value,
|
|
||||||
enableChartsForRemoteUser: enableChartsForRemoteUser.value,
|
|
||||||
enableChartsForFederatedInstances: enableChartsForFederatedInstances.value,
|
|
||||||
enableFanoutTimeline: enableFanoutTimeline.value,
|
|
||||||
enableFanoutTimelineDbFallback: enableFanoutTimelineDbFallback.value,
|
|
||||||
perLocalUserUserTimelineCacheMax: perLocalUserUserTimelineCacheMax.value,
|
|
||||||
perRemoteUserUserTimelineCacheMax: perRemoteUserUserTimelineCacheMax.value,
|
|
||||||
perUserHomeTimelineCacheMax: perUserHomeTimelineCacheMax.value,
|
|
||||||
perUserListTimelineCacheMax: perUserListTimelineCacheMax.value,
|
|
||||||
enableReactionsBuffering: enableReactionsBuffering.value,
|
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
fetchInstance(true);
|
fetchInstance(true);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
const headerActions = computed(() => [{
|
function onChange_enableIdenticonGeneration(value: boolean) {
|
||||||
asFullButton: true,
|
os.apiWithDialog('admin/update-meta', {
|
||||||
icon: 'ti ti-check',
|
enableIdenticonGeneration: value,
|
||||||
text: i18n.ts.save,
|
}).then(() => {
|
||||||
handler: save,
|
fetchInstance(true);
|
||||||
}]);
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function onChange_enableChartsForRemoteUser(value: boolean) {
|
||||||
|
os.apiWithDialog('admin/update-meta', {
|
||||||
|
enableChartsForRemoteUser: value,
|
||||||
|
}).then(() => {
|
||||||
|
fetchInstance(true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function onChange_enableChartsForFederatedInstances(value: boolean) {
|
||||||
|
os.apiWithDialog('admin/update-meta', {
|
||||||
|
enableChartsForFederatedInstances: value,
|
||||||
|
}).then(() => {
|
||||||
|
fetchInstance(true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function onChange_enableFanoutTimeline(value: boolean) {
|
||||||
|
os.apiWithDialog('admin/update-meta', {
|
||||||
|
enableFanoutTimeline: value,
|
||||||
|
}).then(() => {
|
||||||
|
fetchInstance(true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function onChange_enableFanoutTimelineDbFallback(value: boolean) {
|
||||||
|
os.apiWithDialog('admin/update-meta', {
|
||||||
|
enableFanoutTimelineDbFallback: value,
|
||||||
|
}).then(() => {
|
||||||
|
fetchInstance(true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function save_perLocalUserUserTimelineCacheMax() {
|
||||||
|
os.apiWithDialog('admin/update-meta', {
|
||||||
|
perLocalUserUserTimelineCacheMax: perLocalUserUserTimelineCacheMax.value,
|
||||||
|
}).then(() => {
|
||||||
|
fetchInstance(true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function save_perRemoteUserUserTimelineCacheMax() {
|
||||||
|
os.apiWithDialog('admin/update-meta', {
|
||||||
|
perRemoteUserUserTimelineCacheMax: perRemoteUserUserTimelineCacheMax.value,
|
||||||
|
}).then(() => {
|
||||||
|
fetchInstance(true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function save_perUserHomeTimelineCacheMax() {
|
||||||
|
os.apiWithDialog('admin/update-meta', {
|
||||||
|
perUserHomeTimelineCacheMax: perUserHomeTimelineCacheMax.value,
|
||||||
|
}).then(() => {
|
||||||
|
fetchInstance(true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function save_perUserListTimelineCacheMax() {
|
||||||
|
os.apiWithDialog('admin/update-meta', {
|
||||||
|
perUserListTimelineCacheMax: perUserListTimelineCacheMax.value,
|
||||||
|
}).then(() => {
|
||||||
|
fetchInstance(true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
function onChange_enableReactionsBuffering(value: boolean) {
|
||||||
|
os.apiWithDialog('admin/update-meta', {
|
||||||
|
enableReactionsBuffering: value,
|
||||||
|
}).then(() => {
|
||||||
|
fetchInstance(true);
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
const headerActions = computed(() => []);
|
||||||
|
|
||||||
const headerTabs = computed(() => []);
|
const headerTabs = computed(() => []);
|
||||||
|
|
|
@ -471,9 +471,9 @@ const routes: RouteDef[] = [{
|
||||||
name: 'external-services',
|
name: 'external-services',
|
||||||
component: page(() => import('@/pages/admin/external-services.vue')),
|
component: page(() => import('@/pages/admin/external-services.vue')),
|
||||||
}, {
|
}, {
|
||||||
path: '/other-settings',
|
path: '/performance',
|
||||||
name: 'other-settings',
|
name: 'performance',
|
||||||
component: page(() => import('@/pages/admin/other-settings.vue')),
|
component: page(() => import('@/pages/admin/performance.vue')),
|
||||||
}, {
|
}, {
|
||||||
path: '/server-rules',
|
path: '/server-rules',
|
||||||
name: 'server-rules',
|
name: 'server-rules',
|
||||||
|
|
Loading…
Reference in a new issue