You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@apisix.apache.org by ju...@apache.org on 2021/07/15 07:36:22 UTC

[apisix-dashboard] branch master updated: docs: improve placeholder text of the route header override (#1973)

This is an automated email from the ASF dual-hosted git repository.

juzhiyuan pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/apisix-dashboard.git


The following commit(s) were added to refs/heads/master by this push:
     new 18a4a04  docs: improve placeholder text of the route header override (#1973)
18a4a04 is described below

commit 18a4a04f6fc2fb04a6fc220772add8aa8cd6ca80
Author: okaybase <75...@users.noreply.github.com>
AuthorDate: Thu Jul 15 15:36:12 2021 +0800

    docs: improve placeholder text of the route header override (#1973)
    
    Co-authored-by: lixingwang <li...@yiche.com>
---
 web/cypress/integration/route/search-route.spec.js    | 2 +-
 web/src/pages/Route/components/Step1/ProxyRewrite.tsx | 4 ++--
 web/src/pages/Route/components/Step3/index.tsx        | 2 +-
 web/src/pages/Route/locales/en-US.ts                  | 4 ++--
 web/src/pages/Route/locales/zh-CN.ts                  | 2 +-
 5 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/web/cypress/integration/route/search-route.spec.js b/web/cypress/integration/route/search-route.spec.js
index e0b7898..2c8c601 100644
--- a/web/cypress/integration/route/search-route.spec.js
+++ b/web/cypress/integration/route/search-route.spec.js
@@ -70,7 +70,7 @@ context('Create and Search Route', () => {
     cy.login();
   });
 
-  it('should create route test1, test2, test3', function () {
+  it('should create route test0, test1, test2', function () {
     cy.visit('/');
     cy.contains('Route').click();
     for (let i = 0; i < 3; i += 1) {
diff --git a/web/src/pages/Route/components/Step1/ProxyRewrite.tsx b/web/src/pages/Route/components/Step1/ProxyRewrite.tsx
index b532cd2..e915711 100644
--- a/web/src/pages/Route/components/Step1/ProxyRewrite.tsx
+++ b/web/src/pages/Route/components/Step1/ProxyRewrite.tsx
@@ -303,7 +303,7 @@ const ProxyRewrite: React.FC<RouteModule.Step1PassProps> = ({ form, disabled })
                       <Input
                         placeholder={`${formatMessage({
                           id: 'component.global.pleaseEnter',
-                        })}${formatMessage({ id: 'page.route.parameterName' })}`}
+                        })} ${formatMessage({ id: 'page.route.parameterName' })}`}
                         disabled={disabled}
                       />
                     </Form.Item>
@@ -317,7 +317,7 @@ const ProxyRewrite: React.FC<RouteModule.Step1PassProps> = ({ form, disabled })
                       <Input
                         placeholder={`${formatMessage({
                           id: 'component.global.pleaseEnter',
-                        })}${formatMessage({ id: 'page.route.value' })}`}
+                        })} ${formatMessage({ id: 'page.route.value' })}`}
                         disabled={disabled}
                       />
                     </Form.Item>
diff --git a/web/src/pages/Route/components/Step3/index.tsx b/web/src/pages/Route/components/Step3/index.tsx
index 2977892..2bfd029 100644
--- a/web/src/pages/Route/components/Step3/index.tsx
+++ b/web/src/pages/Route/components/Step3/index.tsx
@@ -83,7 +83,7 @@ const Page: React.FC<Props> = ({ data, onChange, readonly = false, isForceHttps
                 // NOTE: forceHttps do not support DRAW mode
                 const titleArr: string[] = [];
                 if (!useSupportBrowser) {
-                  titleArr.push(formatMessage({ id: 'page.route.tooltip.pluginOrchOnlySuportChrome' }));
+                  titleArr.push(formatMessage({ id: 'page.route.tooltip.pluginOrchOnlySupportChrome' }));
                 }
                 if (isForceHttps) {
                   titleArr.push(formatMessage({ id: 'page.route.tooltip.pluginOrchWithoutRedirect' }));
diff --git a/web/src/pages/Route/locales/en-US.ts b/web/src/pages/Route/locales/en-US.ts
index 47aa7fa..a5fdf5f 100644
--- a/web/src/pages/Route/locales/en-US.ts
+++ b/web/src/pages/Route/locales/en-US.ts
@@ -48,7 +48,7 @@ export default {
 
   'page.route.form.itemRulesRequiredMessage.parameterName':
     'Only letters and Numbers are supported, and can only begin with letters',
-  'page.route.value': 'Value',
+  'page.route.value': 'Parameter Value',
   'page.route.panelSection.title.advancedMatchRule': 'Advanced Routing Matching Conditions',
 
   'page.route.panelSection.title.nameDescription': 'Name And Description',
@@ -139,7 +139,7 @@ export default {
   'page.route.list': 'Route List',
   'page.route.panelSection.title.requestOverride': 'Request Override',
   'page.route.form.itemLabel.headerRewrite': 'Header Override',
-  'page.route.tooltip.pluginOrchOnlySuportChrome': 'Plugin orchestration only supports Chrome.',
+  'page.route.tooltip.pluginOrchOnlySupportChrome': 'Plugin orchestration only supports Chrome.',
   'page.route.tooltip.pluginOrchWithoutProxyRewrite': 'Plugin orchestration mode cannot be used when request override is configured in Step 1.',
   'page.route.tooltip.pluginOrchWithoutRedirect': 'Plugin orchestration mode cannot be used when Redirect in Step 1 is selected to enable HTTPS.',
 
diff --git a/web/src/pages/Route/locales/zh-CN.ts b/web/src/pages/Route/locales/zh-CN.ts
index edb767f..529e373 100644
--- a/web/src/pages/Route/locales/zh-CN.ts
+++ b/web/src/pages/Route/locales/zh-CN.ts
@@ -139,7 +139,7 @@ export default {
   'page.route.button.importOpenApi': '导入 OpenAPI',
   'page.route.button.selectFile': '请选择上传文件',
   'page.route.list': '路由列表',
-  'page.route.tooltip.pluginOrchOnlySuportChrome': '插件编排仅支持 Chrome 浏览器。',
+  'page.route.tooltip.pluginOrchOnlySupportChrome': '插件编排仅支持 Chrome 浏览器。',
   'page.route.tooltip.pluginOrchWithoutProxyRewrite': '当步骤一中 配置了 请求改写时,不可使用插件编排模式。',
   'page.route.tooltip.pluginOrchWithoutRedirect': '当步骤一中 重定向 选择为 启用 HTTPS 时,不可使用插件编排模式。',