From 36b4f29bb53a3b7c20aed4524d26446d7469e4d8 Mon Sep 17 00:00:00 2001 From: guoqqqi <979918879@qq.com> Date: Sat, 19 Dec 2020 20:16:40 +0800 Subject: [PATCH 1/3] feat: active check support custom port --- web/src/components/Upstream/UpstreamForm.tsx | 17 +++++++++++++++++ web/src/pages/Upstream/locales/en-US.ts | 2 ++ web/src/pages/Upstream/locales/zh-CN.ts | 2 ++ 3 files changed, 21 insertions(+) diff --git a/web/src/components/Upstream/UpstreamForm.tsx b/web/src/components/Upstream/UpstreamForm.tsx index 09241a591d..f622e7454a 100644 --- a/web/src/components/Upstream/UpstreamForm.tsx +++ b/web/src/components/Upstream/UpstreamForm.tsx @@ -246,6 +246,23 @@ const UpstreamForm: React.FC = forwardRef( + + + + + + Date: Sat, 19 Dec 2020 20:38:50 +0800 Subject: [PATCH 2/3] fix: omit null value --- web/src/components/Upstream/UpstreamForm.tsx | 5 ----- web/src/pages/Upstream/transform.ts | 8 +++++++- web/src/pages/Upstream/typing.d.ts | 1 + 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/web/src/components/Upstream/UpstreamForm.tsx b/web/src/components/Upstream/UpstreamForm.tsx index f622e7454a..1e4c196e09 100644 --- a/web/src/components/Upstream/UpstreamForm.tsx +++ b/web/src/components/Upstream/UpstreamForm.tsx @@ -250,11 +250,6 @@ const UpstreamForm: React.FC = forwardRef( Date: Sun, 20 Dec 2020 10:19:27 +0800 Subject: [PATCH 3/3] Update web/src/pages/Upstream/locales/en-US.ts Co-authored-by: litesun --- web/src/pages/Upstream/locales/en-US.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/pages/Upstream/locales/en-US.ts b/web/src/pages/Upstream/locales/en-US.ts index b19684e24c..d8e54b31be 100644 --- a/web/src/pages/Upstream/locales/en-US.ts +++ b/web/src/pages/Upstream/locales/en-US.ts @@ -47,7 +47,7 @@ export default { 'upstream.step.healthy.checks.active.http_path': 'HttpPath', 'upstream.step.input.healthy.checks.active.http_path': 'HttpPath', 'upstream.step.healthy.checks.active.port': "Port", - 'upstream.step.input.healthy.checks.active.port': 'Port', + 'upstream.step.input.healthy.checks.active.port': 'Please input port', 'upstream.step.healthy.checks.active.host': 'Host', 'upstream.step.input.healthy.checks.active.host': 'Please input Host', 'upstream.step.healthy.checks.active.interval': 'Interval',