mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-12 02:45:49 +02:00
feat: add ca_dir settings in webui
This commit is contained in:
parent
b8b17d8cc9
commit
1ee5700aa0
5 changed files with 38 additions and 60 deletions
|
@ -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>
|
||||
|
||||
|
|
|
@ -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>
|
|
@ -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>
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue