修改依赖设置提示

This commit is contained in:
whyour 2024-01-25 22:42:33 +08:00
parent 315ae49360
commit 8128fb8a9f
3 changed files with 29 additions and 15 deletions

View File

@ -476,6 +476,6 @@
"代理地址, 支持HTTP(S)/SOCK5": "Proxy Address, supports HTTP(S)/SOCK5", "代理地址, 支持HTTP(S)/SOCK5": "Proxy Address, supports HTTP(S)/SOCK5",
"NPM 镜像源": "NPM Mirror Source", "NPM 镜像源": "NPM Mirror Source",
"PyPI 镜像源": "PyPI Mirror Source", "PyPI 镜像源": "PyPI Mirror Source",
"alpine linux 镜像源, 例如 https://mirrors.aliyun.com": "Alpine Linux Mirror Source, e.g. https://mirrors.aliyun.com", "alpine linux 镜像源": "Alpine Linux Mirror Source",
"如果恢复失败,可进入容器执行": "If recovery fails, you can enter the container and execute" "如果恢复失败,可进入容器执行": "If recovery fails, you can enter the container and execute"
} }

View File

@ -476,6 +476,6 @@
"代理地址, 支持HTTP(S)/SOCK5": "代理地址, 支持HTTP(S)/SOCK5", "代理地址, 支持HTTP(S)/SOCK5": "代理地址, 支持HTTP(S)/SOCK5",
"NPM 镜像源": "NPM 镜像源", "NPM 镜像源": "NPM 镜像源",
"PyPI 镜像源": "PyPI 镜像源", "PyPI 镜像源": "PyPI 镜像源",
"alpine linux 镜像源, 例如 https://mirrors.aliyun.com": "alpine linux 镜像源, 例如 https://mirrors.aliyun.com", "alpine linux 镜像源": "alpine linux 镜像源",
"如果恢复失败,可进入容器执行": "如果恢复失败,可进入容器执行" "如果恢复失败,可进入容器执行": "如果恢复失败,可进入容器执行"
} }

View File

@ -105,11 +105,15 @@ const Dependence = () => {
label={intl.get('代理')} label={intl.get('代理')}
name="proxy" name="proxy"
extra={intl.get('代理与镜像源二选一即可')} extra={intl.get('代理与镜像源二选一即可')}
tooltip={{
title: intl.get('代理地址, 支持HTTP(S)/SOCK5'),
placement: 'topLeft',
}}
> >
<Input.Group compact> <Input.Group compact>
<Input <Input
placeholder={intl.get('代理地址, 支持HTTP(S)/SOCK5')} placeholder={'http://1.1.1.1:8080'}
style={{ width: 360 }} style={{ width: 250 }}
value={systemConfig?.dependenceProxy} value={systemConfig?.dependenceProxy}
onChange={(e) => { onChange={(e) => {
setSystemConfig({ setSystemConfig({
@ -130,11 +134,15 @@ const Dependence = () => {
</Button> </Button>
</Input.Group> </Input.Group>
</Form.Item> </Form.Item>
<Form.Item label={intl.get('Node 软件包镜像源')} name="node"> <Form.Item
label={intl.get('Node 软件包镜像源')}
name="node"
tooltip={intl.get('NPM 镜像源')}
>
<Input.Group compact> <Input.Group compact>
<Input <Input
style={{ width: 360 }} style={{ width: 250 }}
placeholder={intl.get('NPM 镜像源')} placeholder={'https://registry.npmmirror.com'}
value={systemConfig?.nodeMirror} value={systemConfig?.nodeMirror}
onChange={(e) => { onChange={(e) => {
setSystemConfig({ setSystemConfig({
@ -155,11 +163,15 @@ const Dependence = () => {
</Button> </Button>
</Input.Group> </Input.Group>
</Form.Item> </Form.Item>
<Form.Item label={intl.get('Python 软件包镜像源')} name="python"> <Form.Item
label={intl.get('Python 软件包镜像源')}
name="python"
tooltip={intl.get('PyPI 镜像源')}
>
<Input.Group compact> <Input.Group compact>
<Input <Input
style={{ width: 360 }} style={{ width: 250 }}
placeholder={intl.get('PyPI 镜像源')} placeholder={'https://pypi.doubanio.com/simple/'}
value={systemConfig?.pythonMirror} value={systemConfig?.pythonMirror}
onChange={(e) => { onChange={(e) => {
setSystemConfig({ setSystemConfig({
@ -180,13 +192,15 @@ const Dependence = () => {
</Button> </Button>
</Input.Group> </Input.Group>
</Form.Item> </Form.Item>
<Form.Item label={intl.get('Linux 软件包镜像源')} name="linux"> <Form.Item
label={intl.get('Linux 软件包镜像源')}
name="linux"
tooltip={intl.get('alpine linux 镜像源')}
>
<Input.Group compact> <Input.Group compact>
<Input <Input
style={{ width: 360 }} style={{ width: 250 }}
placeholder={intl.get( placeholder={'https://mirrors.aliyun.com'}
'alpine linux 镜像源, 例如 https://mirrors.aliyun.com',
)}
value={systemConfig?.linuxMirror} value={systemConfig?.linuxMirror}
onChange={(e) => { onChange={(e) => {
setSystemConfig({ setSystemConfig({