-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
197 additions
and
44 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
MIT License | ||
|
||
Copyright (c) 2018 Felix Yang | ||
|
||
Permission is hereby granted, free of charge, to any person obtaining a copy | ||
of this software and associated documentation files (the "Software"), to deal | ||
in the Software without restriction, including without limitation the rights | ||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | ||
copies of the Software, and to permit persons to whom the Software is | ||
furnished to do so, subject to the following conditions: | ||
|
||
The above copyright notice and this permission notice shall be included in all | ||
copies or substantial portions of the Software. | ||
|
||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | ||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | ||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | ||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | ||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | ||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | ||
SOFTWARE. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,41 +1,59 @@ | ||
# element-admin | ||
# Element Admin | ||
|
||
## Project setup | ||
[![License](https://img.shields.io/github/license/codetrial/element-admin.svg)](https://github.com/codetrial/element-admin) | ||
|
||
```bash | ||
yarn install | ||
``` | ||
A dead simple but powerful vue admin with Vue CLI 3 and ElementUI. | ||
|
||
This project is built by a magic vue cli plugin - [@codetrial/vue-cli-plugin-element](https://github.com/codetrial/vue-cli-plugin-element) | ||
|
||
:us: English | [:cn: 简体中文](README.zh-CN.md) | ||
|
||
## Docs | ||
|
||
[:zap: Live Demo](https://element-admin.now.sh) | [:book: Docs](https://codetrial.github.io/element-admin) | ||
|
||
## Screen Capture | ||
|
||
![Screen Capture](.github/demo.gif) | ||
|
||
### Compiles and hot-reloads for development | ||
## Quick Start | ||
|
||
### Using Git | ||
|
||
```bash | ||
# clone this repository | ||
yarn install | ||
yarn run serve | ||
``` | ||
|
||
### Compiles and minifies for production | ||
### Using Vue CLI | ||
|
||
```bash | ||
yarn run build | ||
vue create --preset codetrial/vue-cli-plugin-element your-project | ||
``` | ||
|
||
### Run your tests | ||
## Core Features | ||
|
||
```bash | ||
yarn run test | ||
``` | ||
- :camera: Minimal dependencies | ||
- :tv: Project Structure | ||
- :telephone_receiver: View Layout | ||
- :pager: Data Processing Layer | ||
- :watch: Authorization | ||
- :radio: Error Pages | ||
- :mag_right: List Example | ||
- :ghost: Form Example | ||
|
||
### Lints and fixes files | ||
## Contributing | ||
|
||
```bash | ||
yarn run lint | ||
``` | ||
Looking forward to your pull requests. | ||
|
||
### Run your unit tests | ||
## Built With | ||
|
||
```bash | ||
yarn run test:unit | ||
``` | ||
- [Vue.js](https://github.com/vuejs/vue) | ||
- [ElementUI](https://github.com/ElemeFE/element) | ||
|
||
## License | ||
|
||
### Customize configuration | ||
[MIT](http://opensource.org/licenses/MIT) | ||
|
||
See [Configuration Reference](https://cli.vuejs.org/config/). | ||
Copyright (c) 2018 - present, Felix Yang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,66 @@ | ||
# Element Admin | ||
|
||
[![License](https://img.shields.io/github/license/codetrial/element-admin.svg)](https://github.com/codetrial/element-admin) | ||
|
||
一个简约而不简单的基于 Vue CLI 3 和 ElementUI 的中后台管理系统。 | ||
|
||
此项目由一个不可思议的 vue cli 插件构建 - [@codetrial/vue-cli-plugin-element](https://github.com/codetrial/vue-cli-plugin-element) | ||
|
||
:cn: 简体中文 | [:us: English](README.md) | ||
|
||
## 文档 | ||
|
||
[:zap: 在线示例](https://element-admin.now.sh) | [:book: 参考文档](https://codetrial.github.io/element-admin) | ||
|
||
## 截屏预览 | ||
|
||
![Screen Capture](.github/demo.gif) | ||
|
||
## 快速开始 | ||
|
||
### 使用 Git | ||
|
||
```bash | ||
# 克隆这个仓库 | ||
yarn install | ||
yarn run serve | ||
``` | ||
|
||
### 使用 Vue CLI | ||
|
||
```bash | ||
vue create --preset codetrial/vue-cli-plugin-element your-project | ||
``` | ||
|
||
## 核心功能 | ||
|
||
:camera: **最小依赖**:仅依赖 Vue 官方库及 ElementUI 组件库,未额外引入其它第三方库,为你提供自由发挥的空间。 | ||
|
||
:tv: **目录结构**:根据项目实战经验,设计了合理、清晰的目录结构。 | ||
|
||
:telephone_receiver: **页面布局**:使用 Vue Router 嵌套路由及 ElementUI 内置组件进行布局。 | ||
|
||
:pager: **数据处理**:添加独立的 api 及 service 层,将业务逻辑从组件中抽离。 | ||
|
||
:watch: **权限控制**:为路由添加配置式拦截器,默认支持用户登录鉴权及角色鉴权。 | ||
|
||
:radio: **列表示例**:一个相对比较完整的列表页示例,包含字段查询(过滤),字段排序,页码跳转,批量操作等等。 | ||
|
||
:mag_right: **表单示例**:一个相对比较完整的表单页示例,包含表单校验、提交等操作。 | ||
|
||
:ghost: **错误页面**:内置简单的(其实是偷懒) 403、404 及 500 错误页。 | ||
|
||
## 贡献 | ||
|
||
期待你的 `pull requests`。如果你觉得有帮助,还请多多反馈! | ||
|
||
## 技术栈 | ||
|
||
- [Vue.js](https://github.com/vuejs/vue) | ||
- [ElementUI](https://github.com/ElemeFE/element) | ||
|
||
## 许可 | ||
|
||
[MIT](http://opensource.org/licenses/MIT) | ||
|
||
Copyright (c) 2018 - present, Felix Yang |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
{ | ||
"name": "element-admin", | ||
"version": 2, | ||
"alias": "element-admin", | ||
"builds": [{ "src": "**", "use": "@now/static" }], | ||
"routes": [ | ||
{ "src": "^/js/(.*)", "dest": "/js/$1" }, | ||
{ "src": "^/css/(.*)", "dest": "/css/$1" }, | ||
{ "src": "^/fonts/(.*)", "dest": "/fonts/$1" }, | ||
{ "src": "^/img/(.*)", "dest": "/img/$1" }, | ||
{ | ||
"src": "^/(favicon|manifest|precache|service-worker|robots)(.*)", | ||
"dest": "/$1$2" | ||
}, | ||
{ "src": ".*", "dest": "/index.html" } | ||
] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters