improve ui
This commit is contained in:
parent
49b43eb3c8
commit
c33e93c662
29 changed files with 609 additions and 552 deletions
|
|
@ -1,9 +1,6 @@
|
|||
<template>
|
||||
<FormBase>
|
||||
<FormSuspense :p="init">
|
||||
<FormInfo v-if="noMaintainerInformation" warn>{{ $ts.noMaintainerInformationWarning }} <MkA to="/instance/settings" class="_link">{{ $ts.configure }}</MkA></FormInfo>
|
||||
<FormInfo v-if="noBotProtection" warn>{{ $ts.noBotProtectionWarning }} <MkA to="/instance/bot-protection" class="_link">{{ $ts.configure }}</MkA></FormInfo>
|
||||
|
||||
<FormSuspense :p="fetchStats" v-slot="{ result: stats }">
|
||||
<FormGroup>
|
||||
<FormKeyValueView>
|
||||
|
|
@ -98,8 +95,6 @@ export default defineComponent({
|
|||
fetchServerInfo: () => os.api('admin/server-info', {}),
|
||||
fetchJobs: () => os.api('admin/queue/deliver-delayed', {}),
|
||||
fetchModLogs: () => os.api('admin/show-moderation-logs', {}),
|
||||
noMaintainerInformation: false,
|
||||
noBotProtection: false,
|
||||
}
|
||||
},
|
||||
|
||||
|
|
@ -110,11 +105,6 @@ export default defineComponent({
|
|||
methods: {
|
||||
async init() {
|
||||
this.meta = await os.api('meta', { detail: true });
|
||||
|
||||
const isEmpty = (x: any) => x == null || x == '';
|
||||
|
||||
this.noMaintainerInformation = isEmpty(this.meta.maintainerName) || isEmpty(this.meta.maintainerEmail);
|
||||
this.noBotProtection = !this.meta.enableHcaptcha && !this.meta.enableRecaptcha;
|
||||
},
|
||||
|
||||
async showInstanceInfo(q) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue