You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shenyu.apache.org by xi...@apache.org on 2021/07/30 02:44:36 UTC

[incubator-shenyu-dashboard] branch master updated: Add `Apache` before the title `ShenYu` if it does not exist(#138). (#139)

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

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


The following commit(s) were added to refs/heads/master by this push:
     new c8b8c29  Add `Apache`  before the title `ShenYu`  if it does not exist(#138). (#139)
c8b8c29 is described below

commit c8b8c29b8068c38a0ccdb89d292079b0af91cc47
Author: fengzhenbing <fe...@126.com>
AuthorDate: Fri Jul 30 10:44:33 2021 +0800

    Add `Apache`  before the title `ShenYu`  if it does not exist(#138). (#139)
    
    * fix : update the title of Apahce ShenYu(#138).
    
    * fix : delete unused action yml.
---
 .github/workflows/copy-static-file.yml | 37 ----------------------------------
 README.md                              |  8 ++++----
 package.json                           |  4 ++--
 src/index.ejs                          |  2 +-
 src/layouts/BasicLayout.js             |  4 ++--
 src/layouts/UserLayout.js              |  4 ++--
 src/locales/en-US.json                 |  4 ++--
 src/locales/zh-CN.json                 |  2 +-
 8 files changed, 14 insertions(+), 51 deletions(-)

diff --git a/.github/workflows/copy-static-file.yml b/.github/workflows/copy-static-file.yml
deleted file mode 100644
index 870442f..0000000
--- a/.github/workflows/copy-static-file.yml
+++ /dev/null
@@ -1,37 +0,0 @@
-name: copy-static-file
-
-on:
-  push:
-    branches:
-      - master
-    paths-ignore:
-      - '**.md'
-
-jobs:
-  push_to_shenyu:
-    runs-on: ubuntu-latest
-    strategy:
-      matrix:
-        node-version: [8.x]
-
-    steps:
-      - uses: actions/checkout@v2
-        with:
-          token: ${{ secrets.API_TOKEN_GITHUB }}
-      - name: Use Node.js ${{ matrix.node-version }}
-        uses: actions/setup-node@v1
-        with:
-          node-version: ${{ matrix.node-version }}
-      - run: npm install
-      - run: npm run build --if-present
-      - name: push index.js to dromara/shenyu@gen-static-indexjs
-        uses: dromara/copy_file_to_another_repo_action@v2
-        env:
-          API_TOKEN_GITHUB: ${{ secrets.API_TOKEN_GITHUB }}
-        with:
-          source_file: 'dist'
-          destination_repo: 'dromara/shenyu'
-          destination_folder: 'shenyu-admin/src/main/resources/static'
-          user_email: 'dromara-robot@dromara.org'
-          user_name: 'dromara-robot'
-          destination_branch_create: 'gen-static-indexjs'
diff --git a/README.md b/README.md
index cc96d7d..29cb82e 100644
--- a/README.md
+++ b/README.md
@@ -1,10 +1,10 @@
-# ShenYu Dashboard
+# Apache ShenYu Dashboard
 
-![build](https://github.com/dromara/shenyu-dashboard/workflows/build/badge.svg)
+![build](https://github.com/apache/shenyu-dashboard/workflows/build/badge.svg)
 
 
 ## Overview
-ShenYu Dashboard is frontend of a management background for [shenyu](https://github.com/dromara/shenyu). The API interface is in the [shenyu-admin](https://github.com/dromara/shenyu/tree/master/shenyu-admin) module.
+Apache ShenYu Dashboard is frontend of a management background for [Apache ShenYu](https://github.com/apache/shenyu). The API interface is in the [Apache Shenyu Admin](https://github.com/apache/shenyu/tree/master/shenyu-admin) module.
                                                                                                    
 ## Prerequisite
 - node v8.0+
@@ -33,7 +33,7 @@ npm install
 # build for production
 npm run build
 
-# copy to shenyu-admin
+# copy to apache-shenyu-admin
 cp -rf dist/* shenyu-admin/src/main/resources/static/
 ```
 
diff --git a/package.json b/package.json
index aee4123..e92c0fe 100755
--- a/package.json
+++ b/package.json
@@ -1,7 +1,7 @@
 {
-  "name": "shenyu-dashboard",
+  "name": "apache-shenyu-dashboard",
   "version": "2.2.1",
-  "description": "ShenYu Dashboard",
+  "description": "Apache ShenYu Dashboard",
   "private": true,
   "scripts": {
     "start": "cross-env ESLINT=none roadhog dev",
diff --git a/src/index.ejs b/src/index.ejs
index 21642be..7475cdb 100644
--- a/src/index.ejs
+++ b/src/index.ejs
@@ -22,7 +22,7 @@
   <meta charset="UTF-8">
   <meta http-equiv="X-UA-Compatible" content="IE=edge">
   <meta name="viewport" content="width=device-width, initial-scale=1">
-  <title>ShenYu Gateway</title>
+  <title>Apache ShenYu Gateway</title>
   <link rel="icon" href="/favicon.png" type="image/x-icon">
 </head>
 
diff --git a/src/layouts/BasicLayout.js b/src/layouts/BasicLayout.js
index 76267e5..48e5f24 100644
--- a/src/layouts/BasicLayout.js
+++ b/src/layouts/BasicLayout.js
@@ -150,7 +150,7 @@ class BasicLayout extends React.PureComponent {
   getPageTitle() {
     const { routerData, location } = this.props;
     const { pathname } = location;
-    let title = "Gateway Management";
+    let title = "Apache ShenYu - Gateway Management";
     let currRouterData = null;
     // match params path
     Object.keys(routerData).forEach(key => {
@@ -159,7 +159,7 @@ class BasicLayout extends React.PureComponent {
       }
     });
     if (currRouterData && currRouterData.name) {
-      title = `ShenYu - Gateway Management`;
+      title = `Apache ShenYu - ${currRouterData.name}`;
     }
     return title;
   }
diff --git a/src/layouts/UserLayout.js b/src/layouts/UserLayout.js
index c301ccf..bcfe17c 100644
--- a/src/layouts/UserLayout.js
+++ b/src/layouts/UserLayout.js
@@ -67,10 +67,10 @@ class UserLayout extends React.PureComponent {
               <div className={styles.header}>
                 <Link to="/">
                   <img alt="logo" className={styles.logo} src={logo} />
-                  <span className={styles.title}>ShenYu Gateway Management</span>
+                  <span className={styles.title}>Apache ShenYu Gateway</span>
                 </Link>
               </div>
-              <div className={styles.desc}>ShenYu Gateway Management System</div>
+              <div className={styles.desc}>Apache ShenYu Gateway Management System</div>
             </div>
             <Switch>
               {getRoutes(match.path, routerData).map(item => (
diff --git a/src/locales/en-US.json b/src/locales/en-US.json
index c8e3174..44eeb42 100644
--- a/src/locales/en-US.json
+++ b/src/locales/en-US.json
@@ -1,8 +1,8 @@
 {
   "SHENYU.GLOBALHEADER.LOGOUT": "Logout",
   "SHENYU.HOME.WELCOME":
-    "Welcome to the Apache ShenYu Gateway management system",
-  "SHENYU.SIDERMENU.LOGO": "ShenYu Gateway Managment",
+    "Welcome to the Apache ShenYu Gateway Management System",
+  "SHENYU.SIDERMENU.LOGO": "Apache ShenYu Gateway Managment",
   "SHENYU.SIDERMENU.TITLE": "Apache ShenYu",
   "SHENYU.SIDERMENU.SUBTITLE": "Gateway Managment",
   "SHENYU.COMMON.OPEN": "Open",
diff --git a/src/locales/zh-CN.json b/src/locales/zh-CN.json
index 383bf51..c4934b9 100644
--- a/src/locales/zh-CN.json
+++ b/src/locales/zh-CN.json
@@ -34,7 +34,7 @@
   "SHENYU.COMMON.WARN.INPUT_SELECTOR": "请先添加选择器",
   "SHENYU.COMMON.WARN.INPUT_NUMBER": "请输入数字",
   "SHENYU.COMMON.PLEASEINPUT": "请输入",
-  "SHENYU.SIDERMENU.LOGO": "ShenYu网关管理",
+  "SHENYU.SIDERMENU.LOGO": "Apache ShenYu网关管理",
   "SHENYU.SIDERMENU.TITLE": "Apache ShenYu",
   "SHENYU.SIDERMENU.SUBTITLE": "网关管理系统",
   "SHENYU.MENU.PLUGIN.LIST": "插件列表",