Skip to content

Commit a319df7

Browse files
committed
merge
2 parents 3905ce4 + b94e69b commit a319df7

File tree

211 files changed

+3526
-3199
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

211 files changed

+3526
-3199
lines changed

.babelrc

Lines changed: 0 additions & 17 deletions
This file was deleted.

.env.development

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
# just a flag
2+
ENV = 'development'
3+
4+
# base api
5+
VUE_APP_BASE_API = '/dev-api'
6+
7+
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
8+
# to control whether the babel-plugin-dynamic-import-node plugin is enabled.
9+
# It only does one thing by converting all import() to require().
10+
# This configuration can significantly increase the speed of hot updates,
11+
# when you have a large number of pages.
12+
# Detail: https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/babel-preset-app/index.js
13+
14+
VUE_CLI_BABEL_TRANSPILE_MODULES = true

.env.production

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
# just a flag
2+
ENV = 'production'
3+
4+
# base api
5+
VUE_APP_BASE_API = '/prod-api'
6+

.env.staging

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
NODE_ENV = production
2+
3+
# just a flag
4+
ENV = 'staging'
5+
6+
# base api
7+
VUE_APP_BASE_API = '/stage-api'
8+

.eslintignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
build/*.js
2-
config/*.js
32
src/assets
3+
public
4+
dist

.eslintrc.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ module.exports = {
2424
"vue/singleline-html-element-content-newline": "off",
2525
"vue/multiline-html-element-content-newline":"off",
2626
"vue/name-property-casing": ["error", "PascalCase"],
27+
"vue/no-v-html": "off",
2728
'accessor-pairs': 2,
2829
'arrow-spacing': [2, {
2930
'before': true,
@@ -46,7 +47,7 @@ module.exports = {
4647
'curly': [2, 'multi-line'],
4748
'dot-location': [2, 'property'],
4849
'eol-last': 2,
49-
'eqeqeq': [2, 'allow-null'],
50+
'eqeqeq': ["error", "always", {"null": "ignore"}],
5051
'generator-star-spacing': [2, {
5152
'before': true,
5253
'after': true

.gitignore

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ yarn-debug.log*
66
yarn-error.log*
77
**/*.log
88

9-
test/unit/coverage
10-
test/e2e/reports
9+
tests/**/coverage/
10+
tests/e2e/reports
1111
selenium-debug.log
1212

1313
# Editor directories and files
@@ -17,5 +17,7 @@ selenium-debug.log
1717
*.ntvs*
1818
*.njsproj
1919
*.sln
20+
*.local
2021

2122
package-lock.json
23+
yarn.lock

.postcssrc.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

33
module.exports = {
44
"plugins": {
5-
"postcss-import": {},
6-
"postcss-url": {},
75
// to edit target browsers: use "browserslist" field in package.json
86
"autoprefixer": {}
97
}

README.md

Lines changed: 22 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44

55
<p align="center">
66
<a href="https://github.com/vuejs/vue">
7-
<img src="https://img.shields.io/badge/vue-2.5.17-brightgreen.svg" alt="vue">
7+
<img src="https://img.shields.io/badge/vue-2.6.10-brightgreen.svg" alt="vue">
88
</a>
99
<a href="https://github.com/ElemeFE/element">
10-
<img src="https://img.shields.io/badge/element--ui-2.4.11-brightgreen.svg" alt="element-ui">
10+
<img src="https://img.shields.io/badge/element--ui-2.7.0-brightgreen.svg" alt="element-ui">
1111
</a>
1212
<a href="https://travis-ci.org/PanJiaChen/vue-element-admin" rel="nofollow">
1313
<img src="https://travis-ci.org/PanJiaChen/vue-element-admin.svg?branch=master" alt="Build Status">
@@ -30,7 +30,7 @@ English | [简体中文](./README.zh-CN.md)
3030

3131
## Introduction
3232

33-
[vue-element-admin](http://panjiachen.github.io/vue-element-admin) is a front-end management background integration solution. It based on [vue](https://github.com/vuejs/vue) and use the UI Toolkit [element](https://github.com/ElemeFE/element).
33+
[vue-element-admin](http://panjiachen.github.io/vue-element-admin) is a production-ready front-end solution for admin interfaces. It based on [vue](https://github.com/vuejs/vue) and use the UI Toolkit [element-ui](https://github.com/ElemeFE/element).
3434

3535
It is a magical vue admin based on the newest development stack of vue, built-in i18n solution, typical templates for enterprise applications, lots of awesome features. It helps you build a large complex Single-Page Applications. I believe whatever your needs are, this project will help you.
3636

@@ -40,36 +40,31 @@ It is a magical vue admin based on the newest development stack of vue, built-in
4040

4141
- [Gitter](https://gitter.im/vue-element-admin/discuss)
4242

43-
- [Wiki](https://github.com/PanJiaChen/vue-element-admin/wiki)
44-
4543
- [Donate](https://panjiachen.github.io/vue-element-admin-site/donate/)
4644

47-
- [Gitee](https://panjiachen.gitee.io/vue-element-admin/) 国内用户可访问该地址在线预览
45+
- [Wiki](https://github.com/PanJiaChen/vue-element-admin/wiki)
4846

49-
**This project is positioned as a background integration solution and is not suitable for secondary development as a basic template.**
47+
- [Gitee](https://panjiachen.gitee.io/vue-element-admin/) 国内用户可访问该地址在线预览
5048

5149
- Base template recommends using: [vue-admin-template](https://github.com/PanJiaChen/vue-admin-template)
5250
- Desktop: [electron-vue-admin](https://github.com/PanJiaChen/electron-vue-admin)
5351
- Typescript: [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template) (Credits: [@Armour](https://github.com/Armour))
5452

55-
**This project does not support low version browsers (e.g. IE). Please add polyfill yourself if you need them.**
56-
57-
**Note: This project uses element-ui@2.3.0+ version, so the minimum compatible vue@2.5.0+**
53+
**The current version is `4.0-beta`. If you find a problem, please put [issue](https://github.com/PanJiaChen/vue-element-admin/issues/new). If you want to use the old version - stable version, you can switch branch to [tag/3.11.0](https://github.com/PanJiaChen/vue-element-admin/tree/tag/3.11.0)**
5854

59-
**Start using `webpack4` from `v3.8.0`. If you still want to continue using `webpack3`, please use this branch [webpack3](https://github.com/PanJiaChen/vue-element-admin/tree/webpack3)**
55+
**This project does not support low version browsers (e.g. IE). Please add polyfill by yourself.**
6056

6157
## Preparation
6258

63-
You need to install [node](http://nodejs.org/) and [git](https://git-scm.com/) locally. The project is based on [ES2015+](http://es6.ruanyifeng.com/), [vue](https://cn.vuejs.org/index.html), [vuex](https://vuex.vuejs.org/zh-cn/), [vue-router](https://router.vuejs.org/zh-cn/), [axios](https://github.com/axios/axios) and [element-ui](https://github.com/ElemeFE/element), all request data is simulated using [Mock.js](https://github.com/nuysoft/Mock).
59+
You need to install [node](http://nodejs.org/) and [git](https://git-scm.com/) locally. The project is based on [ES2015+](http://es6.ruanyifeng.com/), [vue](https://cn.vuejs.org/index.html), [vuex](https://vuex.vuejs.org/zh-cn/), [vue-router](https://router.vuejs.org/zh-cn/), [vue-cli](https://github.com/vuejs/vue-cli) , [axios](https://github.com/axios/axios) and [element-ui](https://github.com/ElemeFE/element), all request data is simulated using [Mock.js](https://github.com/nuysoft/Mock).
6460
Understanding and learning this knowledge in advance will greatly help the use of this project.
6561

66-
---
67-
6862
<p align="center">
6963
<img width="900" src="https://wpimg.wallstcn.com/a5894c1b-f6af-456e-82df-1151da0839bf.png">
7064
</p>
7165

7266
## Sponsors
67+
7368
Become a sponsor and get your logo on our README on GitHub with a link to your site. [[Become a sponsor]](https://www.patreon.com/panjiachen)
7469

7570
<a href="https://flatlogic.com/admin-dashboards?from=vue-element-admin"><img width="150px" src="https://wpimg.wallstcn.com/9c0b719b-5551-4c1e-b776-63994632d94a.png" /></a><p>Admin Dashboard Templates made with Vue, React and Angular.</p>
@@ -82,6 +77,7 @@ Become a sponsor and get your logo on our README on GitHub with a link to your s
8277
- Permission Authentication
8378
- Page permission
8479
- Directive permission
80+
- Permission configuration page
8581
- Two-step login
8682
8783
- Multi-environment build
@@ -105,14 +101,13 @@ Become a sponsor and get your logo on our README on GitHub with a link to your s
105101
106102
- Excel
107103
- Export Excel
108-
- Export zip
109104
- Upload Excel
110105
- Visualization Excel
106+
- Export zip
111107
112108
- Table
113109
- Dynamic Table
114110
- Drag And Drop Table
115-
- Tree Table
116111
- Inline Edit Table
117112
118113
- Error Page
@@ -146,20 +141,23 @@ Become a sponsor and get your logo on our README on GitHub with a link to your s
146141
# clone the project
147142
git clone https://github.com/PanJiaChen/vue-element-admin.git
148143

144+
# enter the project directory
145+
cd vue-element-admin
146+
149147
# install dependency
150148
npm install
151149

152150
# develop
153151
npm run dev
154152
```
155153

156-
This will automatically open http://localhost:9527.
154+
This will automatically open http://localhost:9527
157155

158156
## Build
159157

160158
```bash
161159
# build for test environment
162-
npm run build:sit
160+
npm run build:stage
163161

164162
# build for production environment
165163
npm run build:prod
@@ -168,19 +166,16 @@ npm run build:prod
168166
## Advanced
169167

170168
```bash
171-
# --report to build with bundle size analytics
172-
npm run build:prod --report
173-
174-
# --generate a bundle size analytics. default: bundle-report.html
175-
npm run build:prod --generate_report
169+
# preview the release environment effect
170+
npm run preview
176171

177-
# --preview to start a server in local to preview
178-
npm run build:prod --preview
172+
# preview the release environment effect + static resource analysis
173+
npm run preview -- --report
179174

180-
# lint code
175+
# code format check
181176
npm run lint
182177

183-
# auto fix
178+
# code format check and auto fix
184179
npm run lint -- --fix
185180
```
186181

0 commit comments

Comments
 (0)