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/10/21 01:04:10 UTC

[apisix-dashboard] branch feat-improvment created (now 7868c08)

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

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


      at 7868c08  feat: remove unused files

This branch includes the following new commits:

     new 76aecc6  feat(doc): added tips
     new 7868c08  feat: remove unused files

The 2 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[apisix-dashboard] 01/02: feat(doc): added tips

Posted by ju...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 76aecc69d0971c23640651423ea2ae2e35d8610f
Author: juzhiyuan <ju...@apache.org>
AuthorDate: Wed Oct 21 09:03:16 2020 +0800

    feat(doc): added tips
---
 README.md       | 2 ++
 README.zh-CN.md | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/README.md b/README.md
index 4394d4c..f919cfc 100644
--- a/README.md
+++ b/README.md
@@ -21,6 +21,8 @@ English | [简体中文](./README.zh-CN.md)
 
 # Apache APISIX Dashboard
 
+_Please Note: This branch is still under development, please DO NOT use this branch currently._
+
 Dashboard for [Apache APISIX](https://github.com/apache/apisix)
 
 [Online Demo](http://139.217.190.60/), Username/Password: `admin`.
diff --git a/README.zh-CN.md b/README.zh-CN.md
index 022fe28..443b12e 100644
--- a/README.zh-CN.md
+++ b/README.zh-CN.md
@@ -21,6 +21,8 @@
 
 # Apache APISIX 仪表盘
 
+_注意:当前分支仍在开发中,当前请勿使用。_
+
 [Apache APISIX](https://github.com/apache/apisix-dashboard) 的仪表盘
 
 [在线演示](http://139.217.190.60/),账户密码:`admin`。


[apisix-dashboard] 02/02: feat: remove unused files

Posted by ju...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

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

commit 7868c085c1a6aca33d58a88d7cb72e42005f192a
Author: juzhiyuan <ju...@apache.org>
AuthorDate: Wed Oct 21 09:03:26 2020 +0800

    feat: remove unused files
---
 src/transforms/global.ts | 42 ------------------------------------------
 1 file changed, 42 deletions(-)

diff --git a/src/transforms/global.ts b/src/transforms/global.ts
deleted file mode 100644
index 86f1834..0000000
--- a/src/transforms/global.ts
+++ /dev/null
@@ -1,42 +0,0 @@
-/*
- * 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.
- * The ASF licenses this file to You under the Apache License, Version 2.0
- * (the "License"); you may not use this file except in compliance with
- * the License.  You may obtain a copy of the License at
- *
- *     http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
-type ActionType = 'get' | 'set' | 'delete' | 'create';
-
-interface Node<T> {
-  createdIndex: number;
-  key: string;
-  modifiedIndex: number;
-  value: T;
-}
-
-export interface ListItem<T> extends Node<T> {
-  displayKey: string;
-  id?: number;
-}
-
-/**
- * Transform data from fetch target item.
- */
-export const transformFetchItemData = <T>(data: { node: Node<T>; action: ActionType }) => {
-  const result = data.node.key.match(/\/([0-9]+)/);
-  if (result) {
-    const [, key] = result;
-    /* eslint no-param-reassign: ["error", { "props": false }] */
-    data.node.key = key;
-  }
-  return data.node;
-};