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 2019/11/05 01:47:14 UTC

[incubator-apisix-dashboard] branch feature-remove-useless-files created (now 890f027)

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

juzhiyuan pushed a change to branch feature-remove-useless-files
in repository https://gitbox.apache.org/repos/asf/incubator-apisix-dashboard.git.


      at 890f027  remove apis

This branch includes the following new commits:

     new 99620f5  remove stage related files
     new 890f027  remove apis

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.



[incubator-apisix-dashboard] 02/02: remove apis

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

juzhiyuan pushed a commit to branch feature-remove-useless-files
in repository https://gitbox.apache.org/repos/asf/incubator-apisix-dashboard.git

commit 890f02759b918c05d95b9831df67603677bb72e6
Author: juzhiyuan <jj...@gmail.com>
AuthorDate: Tue Nov 5 09:47:00 2019 +0800

    remove apis
---
 .eslintignore                                    |   1 -
 README.md                                        |   1 -
 src/api/roles.ts                                 |  45 -------------------
 src/api/transactions.ts                          |  25 -----------
 src/api/types.d.ts                               |  53 -----------------------
 src/assets/401-images/401.gif                    | Bin 164227 -> 0 bytes
 src/assets/404-images/404-cloud.png              | Bin 4766 -> 0 bytes
 src/assets/404-images/404.png                    | Bin 98071 -> 0 bytes
 src/assets/custom-theme/fonts/element-icons.ttf  | Bin 11028 -> 0 bytes
 src/assets/custom-theme/fonts/element-icons.woff | Bin 6124 -> 0 bytes
 src/assets/custom-theme/index.css                |   1 -
 src/utils/request.ts                             |   3 +-
 12 files changed, 1 insertion(+), 128 deletions(-)

diff --git a/.eslintignore b/.eslintignore
index 11be133..4bcf40f 100644
--- a/.eslintignore
+++ b/.eslintignore
@@ -1,4 +1,3 @@
 
 dist/*.js
-src/assets
 tests/unit/coverage
\ No newline at end of file
diff --git a/README.md b/README.md
index e9914ad..472cdf0 100644
--- a/README.md
+++ b/README.md
@@ -37,7 +37,6 @@ Dashboard for APISIX & based on ElementUI.
 │   └── index.html             # index.html template
 ├── src                        # main source code
 │   ├── api                    # api service
-│   ├── assets                 # module assets like fonts, images (processed by webpack)
 │   ├── components             # global components
 │   ├── icons                  # svg icons
 │   ├── lang                   # i18n language
diff --git a/src/api/roles.ts b/src/api/roles.ts
deleted file mode 100644
index fcfb0de..0000000
--- a/src/api/roles.ts
+++ /dev/null
@@ -1,45 +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.
- */
-
-import request from '@/utils/request'
-
-export const getRoles = (params: any) =>
-  request({
-    url: '/roles',
-    method: 'get',
-    params
-  })
-
-export const createRole = (data: any) =>
-  request({
-    url: '/roles',
-    method: 'post',
-    data
-  })
-
-export const updateRole = (id: number, data: any) =>
-  request({
-    url: `/roles/${id}`,
-    method: 'put',
-    data
-  })
-
-export const deleteRole = (id: number) =>
-  request({
-    url: `/roles/${id}`,
-    method: 'delete'
-  })
diff --git a/src/api/transactions.ts b/src/api/transactions.ts
deleted file mode 100644
index 7651f37..0000000
--- a/src/api/transactions.ts
+++ /dev/null
@@ -1,25 +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.
- */
-
-import request from '@/utils/request'
-
-export const getTransactions = (params: any) =>
-  request({
-    url: '/transactions',
-    method: 'get',
-    params
-  })
diff --git a/src/api/types.d.ts b/src/api/types.d.ts
index a81f84e..1bb4205 100644
--- a/src/api/types.d.ts
+++ b/src/api/types.d.ts
@@ -15,50 +15,6 @@
  * limitations under the License.
  */
 
-export interface IArticleData {
-  id: number
-  status: string
-  title: string
-  abstractContent: string
-  fullContent: string
-  sourceURL: string
-  imageURL: string
-  timestamp: string | number
-  platforms: string[]
-  disableComment: boolean
-  importance: number
-  author: string
-  reviewer: string
-  type: string
-  pageviews: number
-}
-
-export interface IRoleData {
-  key: string
-  name: string
-  description: string
-  routes: any
-}
-
-export interface ITransactionData {
-  orderId: string
-  timestamp: string | number
-  username: string
-  price: number
-  status: string
-}
-
-export interface IUserData {
-  id: number
-  username: string
-  password: string
-  name: string
-  email: string
-  phone: string
-  avatar: string
-  introduction: string
-  roles: string[]
-}
 
 export type TypeID = number | string
 export type TypePlugin = object
@@ -68,15 +24,7 @@ export interface IConsumerData {
   plugins?: TypePlugin
 }
 
-export enum EnumRouteMethod {
-  GET,
-  PUT,
-  POST,
-  DELETE
-}
 export interface IRouteData {
-  // TODO: https://github.com/iresty/apisix/blob/7953e5bb755bf7481b07a177f94d674f8b344741/lua/apisix/core/schema.lua#L175
-  // TODO: https://github.com/iresty/apisix/blob/7953e5bb755bf7481b07a177f94d674f8b344741/lua/apisix/core/schema.lua#L149
   methods: []
   plugins: TypePlugin
   upstream: IUpstreamData
@@ -88,7 +36,6 @@ export interface IRouteData {
   id: TypeID
 }
 
-// TODO: https://github.com/iresty/apisix/blob/7953e5bb755bf7481b07a177f94d674f8b344741/lua/apisix/core/schema.lua#L193
 export interface IServiceData {
   id: TypeID
   plugins: TypePlugin
diff --git a/src/assets/401-images/401.gif b/src/assets/401-images/401.gif
deleted file mode 100644
index cd6e0d9..0000000
Binary files a/src/assets/401-images/401.gif and /dev/null differ
diff --git a/src/assets/404-images/404-cloud.png b/src/assets/404-images/404-cloud.png
deleted file mode 100644
index c6281d0..0000000
Binary files a/src/assets/404-images/404-cloud.png and /dev/null differ
diff --git a/src/assets/404-images/404.png b/src/assets/404-images/404.png
deleted file mode 100644
index 3d8e230..0000000
Binary files a/src/assets/404-images/404.png and /dev/null differ
diff --git a/src/assets/custom-theme/fonts/element-icons.ttf b/src/assets/custom-theme/fonts/element-icons.ttf
deleted file mode 100644
index 570a3e1..0000000
Binary files a/src/assets/custom-theme/fonts/element-icons.ttf and /dev/null differ
diff --git a/src/assets/custom-theme/fonts/element-icons.woff b/src/assets/custom-theme/fonts/element-icons.woff
deleted file mode 100644
index c2bcc00..0000000
Binary files a/src/assets/custom-theme/fonts/element-icons.woff and /dev/null differ
diff --git a/src/assets/custom-theme/index.css b/src/assets/custom-theme/index.css
deleted file mode 100644
index e8b4e08..0000000
--- a/src/assets/custom-theme/index.css
+++ /dev/null
@@ -1 +0,0 @@
-@charset "UTF-8";.custom-theme .fade-in-linear-enter-active,.custom-theme .fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.custom-theme .fade-in-linear-enter,.custom-theme .fade-in-linear-leave,.custom-theme .fade-in-linear-leave-active{opacity:0}.custom-theme .el-fade-in-linear-enter-active,.custom-theme .el-fade-in-linear-leave-active{-webkit-transition:opacity .2s linear;transition:opacity .2s linear}.custom-theme .el-fade-in-linear-ent [...]
\ No newline at end of file
diff --git a/src/utils/request.ts b/src/utils/request.ts
index 449ac53..6ce3b12 100644
--- a/src/utils/request.ts
+++ b/src/utils/request.ts
@@ -16,8 +16,7 @@
  */
 
 import axios from 'axios'
-import { Message, MessageBox } from 'element-ui'
-import { UserModule } from '@/store/modules/user'
+import { Message } from 'element-ui'
 
 const service = axios.create({
   baseURL: process.env.VUE_APP_BASE_API, // url = base url + request url


[incubator-apisix-dashboard] 01/02: remove stage related files

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

juzhiyuan pushed a commit to branch feature-remove-useless-files
in repository https://gitbox.apache.org/repos/asf/incubator-apisix-dashboard.git

commit 99620f5e8efaaa18b76e62657cffef61e45ebed2
Author: juzhiyuan <jj...@gmail.com>
AuthorDate: Tue Nov 5 09:39:16 2019 +0800

    remove stage related files
---
 .env.staging | 5 -----
 .gitignore   | 7 -------
 package.json | 4 +---
 3 files changed, 1 insertion(+), 15 deletions(-)

diff --git a/.env.staging b/.env.staging
deleted file mode 100644
index 0633a84..0000000
--- a/.env.staging
+++ /dev/null
@@ -1,5 +0,0 @@
-# Set to production for building optimization
-NODE_ENV = production
-
-# Base api
-VUE_APP_BASE_API = '/stage-api'
diff --git a/.gitignore b/.gitignore
index 2cbfe57..2b33ebe 100644
--- a/.gitignore
+++ b/.gitignore
@@ -2,13 +2,6 @@
 node_modules
 /dist
 
-/tests/e2e/videos/
-/tests/e2e/screenshots/
-/tests/**/coverage/
-/tests/e2e/reports/
-
-chromedriver.log
-
 # local env files
 .env.local
 .env.*.local
diff --git a/package.json b/package.json
index 3f21dc0..5f619c9 100644
--- a/package.json
+++ b/package.json
@@ -6,9 +6,7 @@
   "scripts": {
     "serve": "concurrently \"vue-cli-service serve\"",
     "lint": "vue-cli-service lint",
-    "build:prod": "vue-cli-service build",
-    "build:stage": "vue-cli-service build --mode staging",
-    "svg": "vsvg -s ./src/icons/svg -t ./src/icons/components --ext ts --es6"
+    "build:prod": "vue-cli-service build"
   },
   "dependencies": {
     "axios": "^0.19.0",