Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature remove useless files #67

Merged
merged 3 commits into from
Nov 5, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .env.staging

This file was deleted.

1 change: 0 additions & 1 deletion .eslintignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

dist/*.js
src/assets
tests/unit/coverage
7 changes: 0 additions & 7 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 1 addition & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
45 changes: 0 additions & 45 deletions src/api/roles.ts

This file was deleted.

25 changes: 0 additions & 25 deletions src/api/transactions.ts

This file was deleted.

53 changes: 0 additions & 53 deletions src/api/types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
Binary file removed src/assets/401-images/401.gif
Binary file not shown.
Binary file removed src/assets/404-images/404-cloud.png
Binary file not shown.
Binary file removed src/assets/404-images/404.png
Binary file not shown.
Binary file removed src/assets/custom-theme/fonts/element-icons.ttf
Binary file not shown.
Binary file removed src/assets/custom-theme/fonts/element-icons.woff
Binary file not shown.
1 change: 0 additions & 1 deletion src/assets/custom-theme/index.css

This file was deleted.

2 changes: 1 addition & 1 deletion src/store/modules/user.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
*/

import { VuexModule, Module, Action, Mutation, getModule } from 'vuex-module-decorators'
import { login, logout, getUserInfo } from '@/api/users'
// import { login, logout, getUserInfo } from '@/api/users'
import { getToken, setToken, removeToken } from '@/utils/cookies'
import router, { resetRouter } from '@/router'
import { PermissionModule } from './permission'
Expand Down
3 changes: 1 addition & 2 deletions src/utils/request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
91 changes: 0 additions & 91 deletions src/views/icons/element-icons.ts

This file was deleted.

Loading