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/02/18 05:14:50 UTC

[apisix-dashboard] branch feat-plugin-tip updated: feat: added tip for Plugin module

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

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


The following commit(s) were added to refs/heads/feat-plugin-tip by this push:
     new 0099195  feat: added tip for Plugin module
0099195 is described below

commit 009919527acd6a0266ec5190ed89af1aeb6a5ab5
Author: juzhiyuan <ju...@apache.org>
AuthorDate: Thu Feb 18 13:14:23 2021 +0800

    feat: added tip for Plugin module
---
 web/src/components/Plugin/PluginPage.tsx   | 18 +++++++++---------
 web/src/components/Plugin/locales/en-US.ts |  2 +-
 web/src/components/Plugin/locales/zh-CN.ts |  2 +-
 3 files changed, 11 insertions(+), 11 deletions(-)

diff --git a/web/src/components/Plugin/PluginPage.tsx b/web/src/components/Plugin/PluginPage.tsx
index e5404fb..a8a8117 100644
--- a/web/src/components/Plugin/PluginPage.tsx
+++ b/web/src/components/Plugin/PluginPage.tsx
@@ -104,15 +104,6 @@ const PluginPage: React.FC<Props> = ({
         </Anchor>
       </Sider>
       <Content style={{ padding: '0 10px', backgroundColor: '#fff', minHeight: 1400 }}>
-        {formatMessage({ id: 'component.plugin.tip1' })}
-        <a
-          href="https://github.com/apache/apisix-dashboard/blob/master/docs/FAQ.md#4-after-modifying-the-plugin-schema-or-creating-a-custom-plugin-in-apache-apisix-why-cant-i-find-it-on-the-dashboard"
-          target="_blank"
-          rel="noreferrer"
-        >
-          {formatMessage({ id: 'component.plugin.tip2' })}
-        </a>
-        <br />
         {typeList.map((typeItem) => {
           return (
             <PanelSection
@@ -170,6 +161,15 @@ const PluginPage: React.FC<Props> = ({
             </PanelSection>
           );
         })}
+        <br />
+        {formatMessage({ id: 'component.plugin.tip1' })}
+        <a
+          href="https://github.com/apache/apisix-dashboard/blob/master/docs/FAQ.md#4-after-modifying-the-plugin-schema-or-creating-a-custom-plugin-in-apache-apisix-why-cant-i-find-it-on-the-dashboard"
+          target="_blank"
+          rel="noreferrer"
+        >
+          {formatMessage({ id: 'component.plugin.tip2' })}
+        </a>
       </Content>
     </>
   );
diff --git a/web/src/components/Plugin/locales/en-US.ts b/web/src/components/Plugin/locales/en-US.ts
index 8690c6e..00e9689 100644
--- a/web/src/components/Plugin/locales/en-US.ts
+++ b/web/src/components/Plugin/locales/en-US.ts
@@ -15,6 +15,6 @@
  * limitations under the License.
  */
 export default {
-  'component.plugin.tip1': 'After customizing the plugin, you need to update schema.json.',
+  'component.plugin.tip1': 'NOTE: After customizing the plugin, you need to update schema.json.',
   'component.plugin.tip2': 'How to update?',
 };
diff --git a/web/src/components/Plugin/locales/zh-CN.ts b/web/src/components/Plugin/locales/zh-CN.ts
index b91e6ac..d4d9b64 100644
--- a/web/src/components/Plugin/locales/zh-CN.ts
+++ b/web/src/components/Plugin/locales/zh-CN.ts
@@ -15,6 +15,6 @@
  * limitations under the License.
  */
 export default {
-  'component.plugin.tip1': '自定义插件后(修改、新增、删除等),需更新 schema.json。',
+  'component.plugin.tip1': '注意:自定义插件后(修改、新增、删除等),需更新 schema.json。',
   'component.plugin.tip2': '如何更新?',
 };