-
-
- {{ $ts.enableRegistration }}
-
-
-
- {{ $ts.emailRequiredForSignup }}
-
-
-
{{ $ts.botProtection }}
hCaptcha
@@ -51,17 +41,9 @@ export default defineComponent({
title: this.$ts.security,
icon: 'fas fa-lock',
bg: 'var(--bg)',
- actions: [{
- asFullButton: true,
- icon: 'fas fa-check',
- text: this.$ts.save,
- handler: this.save,
- }],
},
enableHcaptcha: false,
enableRecaptcha: false,
- enableRegistration: false,
- emailRequiredForSignup: false,
}
},
@@ -74,18 +56,7 @@ export default defineComponent({
const meta = await os.api('meta', { detail: true });
this.enableHcaptcha = meta.enableHcaptcha;
this.enableRecaptcha = meta.enableRecaptcha;
- this.enableRegistration = !meta.disableRegistration;
- this.emailRequiredForSignup = meta.emailRequiredForSignup;
},
-
- save() {
- os.apiWithDialog('admin/update-meta', {
- disableRegistration: !this.enableRegistration,
- emailRequiredForSignup: this.emailRequiredForSignup,
- }).then(() => {
- fetchInstance();
- });
- }
}
});
diff --git a/packages/client/src/pages/admin/settings.vue b/packages/client/src/pages/admin/settings.vue
index 78c261605..e20ce40c7 100644
--- a/packages/client/src/pages/admin/settings.vue
+++ b/packages/client/src/pages/admin/settings.vue
@@ -51,11 +51,49 @@
{{ $ts.maxNoteTextLength }}
+
+
+ {{ $ts.enableRegistration }}
+
+
+
+ {{ $ts.emailRequiredForSignup }}
+
+
+
{{ $ts.enableLocalTimeline }}
{{ $ts.enableGlobalTimeline }}
{{ $ts.disablingTimelinesInfo }}
+
+
+ {{ $ts.files }}
+
+
+ {{ $ts.cacheRemoteFiles }}
+ {{ $ts.cacheRemoteFilesDescription }}
+
+
+
+ {{ $ts.proxyRemoteFiles }}
+ {{ $ts.proxyRemoteFilesDescription }}
+
+
+
+
+ {{ $ts.driveCapacityPerLocalAccount }}
+ MB
+ {{ $ts.inMb }}
+
+
+
+ {{ $ts.driveCapacityPerRemoteAccount }}
+ MB
+ {{ $ts.inMb }}
+
+
+