feat: add ca_dir settings in webui

This commit is contained in:
0xJacky 2023-05-05 13:06:43 +08:00 committed by Hintay
parent b8b17d8cc9
commit 1ee5700aa0
No known key found for this signature in database
GPG key ID: 120FC7FF121F2F2D
5 changed files with 38 additions and 60 deletions

View file

@ -42,6 +42,9 @@ const theme = inject('theme')
<a-input v-model:value="data.server.github_proxy"
:placeholder="$gettext('Chinese user: https://ghproxy.com/')"/>
</a-form-item>
<a-form-item :label="$gettext('CADir')">
<a-input v-model:value="data.server.ca_dir"/>
</a-form-item>
</a-form>
</template>

View file

@ -1,24 +0,0 @@
<script setup lang="ts">
import {useGettext} from 'vue3-gettext'
import {inject} from 'vue'
import {IData} from '@/views/preference/typedef'
const {$gettext} = useGettext()
const data: IData = inject('data')!
</script>
<template>
<a-form layout="vertical">
<a-form-item :label="$gettext('Repo url')">
<a-input v-model:value="data.git.url"/>
</a-form-item>
<a-form-item :label="$gettext('Username')">
<a-input v-model:value="data.git.username"/>
</a-form-item>
</a-form>
</template>
<style lang="less" scoped>
</style>

View file

@ -82,9 +82,6 @@ const activeKey = ref('1')
<a-tab-pane :tab="$gettext('OpenAI')" key="3">
<open-a-i-settings/>
</a-tab-pane>
<a-tab-pane :tab="$gettext('Git')" key="4">
<git-settings/>
</a-tab-pane>
</a-tabs>
</div>
<footer-tool-bar>

View file

@ -6,7 +6,8 @@ export interface IData {
start_cmd: string
http_challenge_port: string
github_proxy: string,
email: string
email: string,
ca_dir: string
},
nginx_log: {
access_log_path: string