用vue-element-admin测试drone ci
Go to file
zthxxx 40a7626acb feat: perfect migrate to @vue/cli-service, upgrade vue babel version (#1267)
* feat: perfect migrate to @vue/cli-service, upgrade vue babel version

1. update to @vue/cli-service@3.0.5, @babel/core@7.0.0
2. use vue-cli service replace config file in build/ and config/
3. upgrade vue and babel configuration
4. solve the svg-sprite config problem #980

refs: #932 #1087  #980 #1056

* fix: fix breadcrumb dependency

* fix: fix index template and static assets load with vue-cli 3

* fix: fix import driver.js in guide page

* refactor(mock): mak mock api compatible with both web-view and webpack server

1. 把 Mockjs 功能移到 server 端中间件,同时也兼容前端直接劫持 XHR
2. dev 环境下默认作为 express 中间件通过 webpack server 提供 mock api
3. prod 构建时,默认在前端用 Mockjs 劫持 XHR

benefits:
  - dev 开发调试时能直接看到 XHR 请求,方便调试网络,能和后端对接联调
  - 避开在开发时因为 Mockjs 引起的网络 bug
  - prod 构建时劫持 XHR,保证本项目的 Github Pages preview 能正常显示 (逻辑和 error-log 一样)
  - 前后台使用的 mock 是同一份代码,不会增加维护负担

ref: [#562](https://github.com/PanJiaChen/vue-element-admin/issues/562#issuecomment-378116233)

* update requires the lowest version of node

* add favicon

* fix(TreeTable): fix `Array.prototype.concat` on custom-tree-table page
2018-10-29 13:55:36 +08:00
mock feat: perfect migrate to @vue/cli-service, upgrade vue babel version (#1267) 2018-10-29 13:55:36 +08:00
public feat: perfect migrate to @vue/cli-service, upgrade vue babel version (#1267) 2018-10-29 13:55:36 +08:00
src feat: perfect migrate to @vue/cli-service, upgrade vue babel version (#1267) 2018-10-29 13:55:36 +08:00
.editorconfig add editorconfig 2017-07-24 17:58:46 +08:00
.env feat: perfect migrate to @vue/cli-service, upgrade vue babel version (#1267) 2018-10-29 13:55:36 +08:00
.env.development feat: perfect migrate to @vue/cli-service, upgrade vue babel version (#1267) 2018-10-29 13:55:36 +08:00
.env.production feat: perfect migrate to @vue/cli-service, upgrade vue babel version (#1267) 2018-10-29 13:55:36 +08:00
.eslintignore init 2017-04-18 15:09:13 +08:00
.eslintrc.js refactor: add eslint-plugin-vue && lint code (#976) 2018-08-19 16:55:24 +08:00
.gitignore feat: perfect migrate to @vue/cli-service, upgrade vue babel version (#1267) 2018-10-29 13:55:36 +08:00
.postcssrc.js perf[core]: add postcss-url 2018-01-02 10:44:35 +08:00
.travis.yml perf[chore]:set travis notifications:false 2017-12-11 14:20:23 +08:00
LICENSE fixed typo 2017-12-29 16:11:20 +08:00
README.md feature: add drag select component (#1249) 2018-10-24 18:34:45 +08:00
README.zh-CN.md feature: add drag select component (#1249) 2018-10-24 18:34:45 +08:00
babel.config.js feat: perfect migrate to @vue/cli-service, upgrade vue babel version (#1267) 2018-10-29 13:55:36 +08:00
favicon.ico perf:change favicon 2017-11-23 10:35:54 +08:00
package.json feat: perfect migrate to @vue/cli-service, upgrade vue babel version (#1267) 2018-10-29 13:55:36 +08:00
vue.config.js feat: perfect migrate to @vue/cli-service, upgrade vue babel version (#1267) 2018-10-29 13:55:36 +08:00

README.md

vue element-ui Build Status license GitHub release gitter donate

English | 简体中文

Introduction

vue-element-admin is a front-end management background integration solution. It based on vue and use the UI Toolkit element.

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.

This project is positioned as a background integration solution and is not suitable for secondary development as a basic template.

This project does not support low version browsers (e.g. IE). Please add polyfill yourself if you need them.

Note: This project uses element-ui@2.3.0+ version, so the minimum compatible vue@2.5.0+

Start using webpack4 from v3.8.0. If you still want to continue using webpack3, please use this branch webpack3

Preparation

You need to install node and git locally. The project is based on ES2015+, vue, vuex, vue-router, axios and element-ui, all request data is simulated using Mock.js. Understanding and learning this knowledge in advance will greatly help the use of this project.


Features

- Login / Logout

- Permission Authentication
  - Page permission
  - Directive permission
  - Two-step login

- Multi-environment build
  - dev sit stage prod

- Global Features
  - I18n
  - Multiple dynamic themes
  - Dynamic sidebar (supports multi-level routing)
  - Dynamic breadcrumb
  - Tags-view(Tab page Support right-click operation)
  - Svg Sprite
  - Mock data
  - Screenfull
  - Responsive Sidebar

- Editor
  - Rich Text Editor
  - Markdown Editor
  - JSON Editor

- Excel
  - Export Excel
  - Export zip
  - Upload Excel
  - Visualization Excel

- Table
  - Dynamic Table
  - Drag And Drop Table
  - Tree Table
  - Inline Edit Table

- Error Page
  - 401
  - 404

- Components
  - Avatar Upload
  - Back To Top
  - Drag Dialog
  - Drag Select
  - Drag Kanban
  - Drag List
  - SplitPane
  - Dropzone
  - Sticky
  - CountTo

- Advanced Example
- Error Log
- Dashboard
- Guide Page
- ECharts
- Clipboard
- Markdown to html

Getting started

# clone the project
git clone https://github.com/PanJiaChen/vue-element-admin.git

# install dependency
npm install

# develop
npm run dev

This will automatically open http://localhost:9527.

Build

# build for test environment
npm run build:sit

# build for production environment
npm run build:prod

Advanced

# --report to build with bundle size analytics
npm run build:prod --report

# --generate a bundle size analytics. default: bundle-report.html
npm run build:prod --generate_report

# --preview to start a server in local to preview
npm run build:prod --preview

# lint code
npm run lint

# auto fix
npm run lint -- --fix

Refer to Documentation for more information

Changelog

Detailed changes for each release are documented in the release notes.

Online Demo

Preview

Donate

If you find this project useful, you can buy author a glass of juice 🍹

donate

Paypal Me

Buy me a coffee

Browsers support

Modern browsers and Internet Explorer 10+.

IE / Edge
IE / Edge
Firefox
Firefox
Chrome
Chrome
Safari
Safari
IE10, IE11, Edge last 2 versions last 2 versions last 2 versions

License

MIT

Copyright (c) 2017-present PanJiaChen