summaryrefslogtreecommitdiff
path: root/src/client/pages/instance
diff options
context:
space:
mode:
authorsyuilo <Syuilotan@yahoo.co.jp>2021-08-15 20:26:44 +0900
committersyuilo <Syuilotan@yahoo.co.jp>2021-08-15 20:26:44 +0900
commitcced83024bfb578ee802ab13fc8af72a1be9a1e1 (patch)
tree359d6a3eff6250600e714e5ec2a5ae2516cd8353 /src/client/pages/instance
parentchore: Remove vips from Dockerfile (#7633) (diff)
downloadsharkey-cced83024bfb578ee802ab13fc8af72a1be9a1e1.tar.gz
sharkey-cced83024bfb578ee802ab13fc8af72a1be9a1e1.tar.bz2
sharkey-cced83024bfb578ee802ab13fc8af72a1be9a1e1.zip
feat: ノートの翻訳機能
Resolve #5213
Diffstat (limited to 'src/client/pages/instance')
-rw-r--r--src/client/pages/instance/other-settings.vue10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/client/pages/instance/other-settings.vue b/src/client/pages/instance/other-settings.vue
index b3954149a8..8002528931 100644
--- a/src/client/pages/instance/other-settings.vue
+++ b/src/client/pages/instance/other-settings.vue
@@ -7,7 +7,12 @@
Summaly Proxy URL
</FormInput>
</FormGroup>
-
+ <FormGroup>
+ <FormInput v-model:value="deeplAuthKey">
+ <template #prefix><i class="fas fa-key"></i></template>
+ DeepL Auth Key
+ </FormInput>
+ </FormGroup>
<FormButton @click="save" primary><i class="fas fa-save"></i> {{ $ts.save }}</FormButton>
</FormSuspense>
</FormBase>
@@ -44,6 +49,7 @@ export default defineComponent({
icon: 'fas fa-cogs'
},
summalyProxy: '',
+ deeplAuthKey: '',
}
},
@@ -55,10 +61,12 @@ export default defineComponent({
async init() {
const meta = await os.api('meta', { detail: true });
this.summalyProxy = meta.summalyProxy;
+ this.deeplAuthKey = meta.deeplAuthKey;
},
save() {
os.apiWithDialog('admin/update-meta', {
summalyProxy: this.summalyProxy,
+ deeplAuthKey: this.deeplAuthKey,
}).then(() => {
fetchInstance();
});