From a6f8327aa263022ed5d079f8e413bb17480feb7b Mon Sep 17 00:00:00 2001 From: syuilo Date: Wed, 7 Nov 2018 00:08:21 +0900 Subject: reCAPTCHAの設定をDBに保存するように MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/app/admin/views/instance.vue | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) (limited to 'src/client/app/admin') diff --git a/src/client/app/admin/views/instance.vue b/src/client/app/admin/views/instance.vue index 050fb6617d..47ab9e6159 100644 --- a/src/client/app/admin/views/instance.vue +++ b/src/client/app/admin/views/instance.vue @@ -16,6 +16,13 @@ %i18n:@local-drive-capacity-mb%%i18n:@mb%MB %i18n:@remote-drive-capacity-mb%%i18n:@mb%MB +
+
%i18n:@recaptcha-config%
+ %i18n:@enable-recaptcha% + %i18n:@recaptcha-info% + %i18n:@recaptcha-site-key% + %i18n:@recaptcha-secret-key% +
%i18n:@save%
@@ -54,6 +61,9 @@ export default Vue.extend({ localDriveCapacityMb: null, remoteDriveCapacityMb: null, maxNoteTextLength: null, + enableRecaptcha: false, + recaptchaSiteKey: null, + recaptchaSecretKey: null, inviteCode: null, }; }, @@ -67,6 +77,9 @@ export default Vue.extend({ this.localDriveCapacityMb = meta.driveCapacityPerLocalUserMb; this.remoteDriveCapacityMb = meta.driveCapacityPerRemoteUserMb; this.maxNoteTextLength = meta.maxNoteTextLength; + this.enableRecaptcha = meta.enableRecaptcha; + this.recaptchaSiteKey = meta.recaptchaSiteKey; + this.recaptchaSecretKey = meta.recaptchaSecretKey; }); }, @@ -92,7 +105,10 @@ export default Vue.extend({ cacheRemoteFiles: this.cacheRemoteFiles, localDriveCapacityMb: parseInt(this.localDriveCapacityMb, 10), remoteDriveCapacityMb: parseInt(this.remoteDriveCapacityMb, 10), - maxNoteTextLength: parseInt(this.maxNoteTextLength, 10) + maxNoteTextLength: parseInt(this.maxNoteTextLength, 10), + enableRecaptcha: this.enableRecaptcha, + recaptchaSiteKey: this.recaptchaSiteKey, + recaptchaSecretKey: this.recaptchaSecretKey }).then(() => { this.$swal({ type: 'success', -- cgit v1.2.3-freya