You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@skywalking.apache.org by ha...@apache.org on 2018/06/14 03:33:33 UTC

[incubator-skywalking-ui] branch 5.0.0/beta2 updated: Refactor some api

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

hanahmily pushed a commit to branch 5.0.0/beta2
in repository https://gitbox.apache.org/repos/asf/incubator-skywalking-ui.git


The following commit(s) were added to refs/heads/5.0.0/beta2 by this push:
     new 020490b  Refactor some api
020490b is described below

commit 020490b63085a07a28d2b8807c6f6cb2156813fb
Author: gaohongtao <ha...@gmail.com>
AuthorDate: Thu Jun 14 11:32:43 2018 +0800

    Refactor some api
---
 .roadhogrc.mock.js                     | 4 +---
 src/components/GlobalHeader/index.less | 2 +-
 src/components/Login/index.less        | 4 ++--
 3 files changed, 4 insertions(+), 6 deletions(-)

diff --git a/.roadhogrc.mock.js b/.roadhogrc.mock.js
index af5f2f1..c2455e7 100644
--- a/.roadhogrc.mock.js
+++ b/.roadhogrc.mock.js
@@ -26,18 +26,16 @@ const proxy = {
   'POST /api/trace': getTrace,
   'POST /api/spans': getSpans,
   'POST /api/login/account': (req, res) => {
-    const { password, userName, type } = req.body;
+    const { password, userName } = req.body;
     if (password === '888888' && userName === 'admin') {
       res.send({
         status: 'ok',
-        type,
         currentAuthority: 'admin',
       });
       return;
     }
     res.send({
       status: 'error',
-      type,
       currentAuthority: 'guest',
     });
   },
diff --git a/src/components/GlobalHeader/index.less b/src/components/GlobalHeader/index.less
index 98a3b6c..8e566c8 100644
--- a/src/components/GlobalHeader/index.less
+++ b/src/components/GlobalHeader/index.less
@@ -94,7 +94,7 @@ i.trigger {
     .avatar {
       margin: 20px 8px 20px 0;
       color: rgba(255, 255, 255, .85);
-      background: @primary-color;;
+      background: @primary-color;
       vertical-align: middle;
     }
   }
diff --git a/src/components/Login/index.less b/src/components/Login/index.less
index 6eb5463..cc85651 100644
--- a/src/components/Login/index.less
+++ b/src/components/Login/index.less
@@ -1,4 +1,4 @@
-/**
+/*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
  * this work for additional information regarding copyright ownership.
@@ -14,7 +14,7 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
- 
+
 @import '~antd/lib/style/themes/default.less';
 
 .login {

-- 
To stop receiving notification emails like this one, please contact
hanahmily@apache.org.