mirror of
https://github.com/1Panel-dev/1Panel.git
synced 2024-11-27 12:39:01 +08:00
perf: 优化 docker 代理 (#7016)
This commit is contained in:
parent
f5435c581b
commit
e65329e7b3
@ -113,32 +113,6 @@ html.dark {
|
||||
|
||||
--el-text-color-placeholder: var(--panel-main-bg-color-4);
|
||||
|
||||
.el-message {
|
||||
--el-color-primary: #409eff;
|
||||
--el-color-primary-light-5: #a0cfff;
|
||||
--el-color-primary-light-8: #d9ecff;
|
||||
--el-color-primary-light-9: #ecf5ff;
|
||||
--el-color-success: #67c23a;
|
||||
--el-color-success-light-5: #b3e19d;
|
||||
--el-color-success-light-8: #e1f3d8;
|
||||
--el-color-success-light-9: #f0f9eb;
|
||||
--el-color-warning: #e6a23c;
|
||||
--el-color-warning-light-5: #f3d19e;
|
||||
--el-color-warning-light-8: #faecd8;
|
||||
--el-color-warning-light-9: #fdf6ec;
|
||||
--el-color-danger: #f56c6c;
|
||||
--el-color-danger-light-5: #fab6b6;
|
||||
--el-color-danger-light-8: #fde2e2;
|
||||
--el-color-error: #f56c6c;
|
||||
--el-color-error-light-5: #fab6b6;
|
||||
--el-color-error-light-8: #fde2e2;
|
||||
--el-color-error-light-9: #fef0f0;
|
||||
--el-color-info: #909399;
|
||||
--el-color-info-light-5: #c8c9cc;
|
||||
--el-color-info-light-8: #e9e9eb;
|
||||
--el-color-info-light-9: #f4f4f5;
|
||||
}
|
||||
|
||||
.el-descriptions__content:not(.is-bordered-label) {
|
||||
color: var(--panel-main-bg-color-3);
|
||||
}
|
||||
|
@ -28,3 +28,29 @@ body,
|
||||
display: flex;
|
||||
align-items: center;
|
||||
}
|
||||
|
||||
.el-message {
|
||||
--el-color-primary: #409eff;
|
||||
--el-color-primary-light-5: #a0cfff;
|
||||
--el-color-primary-light-8: #d9ecff;
|
||||
--el-color-primary-light-9: #ecf5ff;
|
||||
--el-color-success: #67c23a;
|
||||
--el-color-success-light-5: #b3e19d;
|
||||
--el-color-success-light-8: #e1f3d8;
|
||||
--el-color-success-light-9: #f0f9eb;
|
||||
--el-color-warning: #e6a23c;
|
||||
--el-color-warning-light-5: #f3d19e;
|
||||
--el-color-warning-light-8: #faecd8;
|
||||
--el-color-warning-light-9: #fdf6ec;
|
||||
--el-color-danger: #f56c6c;
|
||||
--el-color-danger-light-5: #fab6b6;
|
||||
--el-color-danger-light-8: #fde2e2;
|
||||
--el-color-error: #f56c6c;
|
||||
--el-color-error-light-5: #fab6b6;
|
||||
--el-color-error-light-8: #fde2e2;
|
||||
--el-color-error-light-9: #fef0f0;
|
||||
--el-color-info: #909399;
|
||||
--el-color-info-light-5: #c8c9cc;
|
||||
--el-color-info-light-8: #e9e9eb;
|
||||
--el-color-info-light-9: #f4f4f5;
|
||||
}
|
||||
|
@ -17,9 +17,9 @@
|
||||
<template #default>
|
||||
{{ $t('setting.proxyHelper') }}
|
||||
<ul style="margin-left: -20px">
|
||||
<li v-if="isProductPro">{{ $t('setting.proxyHelper1') }}</li>
|
||||
<li v-if="isProductPro">{{ $t('setting.proxyHelper2') }}</li>
|
||||
<li v-if="isProductPro">{{ $t('setting.proxyHelper4') }}</li>
|
||||
<li>{{ $t('setting.proxyHelper1') }}</li>
|
||||
<li>{{ $t('setting.proxyHelper2') }}</li>
|
||||
<li>{{ $t('setting.proxyHelper4') }}</li>
|
||||
<li>{{ $t('setting.proxyHelper3') }}</li>
|
||||
</ul>
|
||||
</template>
|
||||
@ -183,9 +183,9 @@ const submitChangePassword = async (formEl: FormInstance | undefined) => {
|
||||
(proxyDockerVisible.value && !params.proxyDocker))
|
||||
) {
|
||||
let confirmParams = {
|
||||
header: i18n.global.t('database.confChange'),
|
||||
operationInfo: i18n.global.t('database.restartNowHelper'),
|
||||
submitInputInfo: i18n.global.t('database.restartNow'),
|
||||
header: i18n.global.t('setting.confDockerProxy'),
|
||||
operationInfo: i18n.global.t('setting.restartNowHelper'),
|
||||
submitInputInfo: i18n.global.t('setting.restartNow'),
|
||||
};
|
||||
confirmDialogRef.value!.acceptParams(confirmParams);
|
||||
} else {
|
||||
@ -233,7 +233,7 @@ const onSubmit = async () => {
|
||||
}
|
||||
await updateProxy(params);
|
||||
if (isClose || params.proxyDocker === false) {
|
||||
params.proxyUrl = '';
|
||||
proxyUrl = '';
|
||||
}
|
||||
await updateXpackSettingByKey('ProxyDocker', proxyUrl);
|
||||
await updateDaemonJson(`${form.proxyType}-proxy`, proxyUrl);
|
||||
|
Loading…
Reference in New Issue
Block a user