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:12 UTC
[apisix-dashboard] 02/02: feat: remove unused files
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;
-};