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 2020/06/02 03:31:27 UTC

[incubator-apisix-dashboard] branch fix-typos updated: feat: update some keywords

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

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


The following commit(s) were added to refs/heads/fix-typos by this push:
     new a918e15  feat: update some keywords
a918e15 is described below

commit a918e15e13d21e9bbb287e3c49ee28c425b3907f
Author: juzhiyuan <jj...@gmail.com>
AuthorDate: Tue Jun 2 11:30:53 2020 +0800

    feat: update some keywords
---
 .../Routes/components/Step2/RequestRewriteView.tsx | 38 ++++++++++------------
 1 file changed, 18 insertions(+), 20 deletions(-)

diff --git a/src/pages/Routes/components/Step2/RequestRewriteView.tsx b/src/pages/Routes/components/Step2/RequestRewriteView.tsx
index 8fb0e0a..a6a3f46 100644
--- a/src/pages/Routes/components/Step2/RequestRewriteView.tsx
+++ b/src/pages/Routes/components/Step2/RequestRewriteView.tsx
@@ -1,7 +1,7 @@
 import React from 'react';
 import Form, { FormInstance } from 'antd/es/form';
 import Radio, { RadioChangeEvent } from 'antd/lib/radio';
-import { Input, Row, Col, InputNumber, Button, Space } from 'antd';
+import { Input, Row, Col, InputNumber, Button } from 'antd';
 
 import { FORM_ITEM_LAYOUT } from '@/pages/Routes/constants';
 import PanelSection from '../PanelSection';
@@ -25,27 +25,25 @@ const RequestRewriteView: React.FC<Props> = ({ data, form, disabled, onChange })
           <Input placeholder="域名" disabled={disabled} />
         </Col>
         <Col span={4}>
-          <InputNumber placeholder="端口" disabled={disabled} min={0} max={65535} />
+          <InputNumber placeholder="端口号" disabled={disabled} min={1} max={65535} />
         </Col>
         <Col span={4} offset={1}>
-          <InputNumber placeholder="权重" disabled={disabled} />
+          <InputNumber placeholder="权重" disabled={disabled} min={0} max={100} />
         </Col>
         <Col span={4} offset={1}>
-          <Space>
-            {backendAddressList.length > 1 && !disabled && (
-              <Button
-                type="primary"
-                danger
-                onClick={() => {
-                  onChange({
-                    backendAddressList: backendAddressList.filter((_, _index) => _index !== index),
-                  });
-                }}
-              >
-                删除
-              </Button>
-            )}
-          </Space>
+          {backendAddressList.length > 1 && !disabled && (
+            <Button
+              type="primary"
+              danger
+              onClick={() => {
+                onChange({
+                  backendAddressList: backendAddressList.filter((_, _index) => _index !== index),
+                });
+              }}
+            >
+              删除
+            </Button>
+          )}
         </Col>
       </Row>
     ));
@@ -73,7 +71,7 @@ const RequestRewriteView: React.FC<Props> = ({ data, form, disabled, onChange })
             </Radio.Group>
           </Row>
         </Form.Item>
-        <Form.Item label="后端请求地址" rules={[{ required: true, message: '请输入后端地址' }]}>
+        <Form.Item label="请求地址" rules={[{ required: true, message: '请输入后端地址' }]}>
           {renderBackendAddress()}
           {!disabled && (
             <Button
@@ -88,7 +86,7 @@ const RequestRewriteView: React.FC<Props> = ({ data, form, disabled, onChange })
             </Button>
           )}
         </Form.Item>
-        <Form.Item label="后端请求路径">
+        <Form.Item label="请求路径">
           <Row>
             <Input disabled={disabled} />
           </Row>