Skip to content

Commit 09fa0d9

Browse files
authored
Merge pull request #10 from PanJiaChen/master
pull
2 parents 093e542 + 90af74e commit 09fa0d9

Some content is hidden

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

65 files changed

+981
-745
lines changed

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
language: node_js
2-
node_js: stable
2+
node_js: 10
33
script: npm run test
44
notifications:
55
email: false

README.ja.md

Lines changed: 210 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,210 @@
1+
<p align="center">
2+
<img width="320" src="https://wpimg.wallstcn.com/ecc53a42-d79b-42e2-8852-5126b810a4c8.svg">
3+
</p>
4+
5+
<p align="center">
6+
<a href="https://github.com/vuejs/vue">
7+
<img src="https://img.shields.io/badge/vue-2.6.10-brightgreen.svg" alt="vue">
8+
</a>
9+
<a href="https://github.com/ElemeFE/element">
10+
<img src="https://img.shields.io/badge/element--ui-2.7.0-brightgreen.svg" alt="element-ui">
11+
</a>
12+
<a href="https://travis-ci.org/PanJiaChen/vue-element-admin" rel="nofollow">
13+
<img src="https://travis-ci.org/PanJiaChen/vue-element-admin.svg?branch=master" alt="Build Status">
14+
</a>
15+
<a href="https://github.com/PanJiaChen/vue-element-admin/blob/master/LICENSE">
16+
<img src="https://img.shields.io/github/license/mashape/apistatus.svg" alt="license">
17+
</a>
18+
<a href="https://github.com/PanJiaChen/vue-element-admin/releases">
19+
<img src="https://img.shields.io/github/release/PanJiaChen/vue-element-admin.svg" alt="GitHub release">
20+
</a>
21+
<a href="https://gitter.im/vue-element-admin/discuss">
22+
<img src="https://badges.gitter.im/Join%20Chat.svg" alt="gitter">
23+
</a>
24+
<a href="https://panjiachen.gitee.io/vue-element-admin-site/zh/donate">
25+
<img src="https://img.shields.io/badge/%24-donate-ff69b4.svg" alt="donate">
26+
</a>
27+
</p>
28+
29+
日本語 | [English](./README.md) | [简体中文](./README.zh-CN.md)
30+
31+
## 概要
32+
33+
[vue-element-admin](https://panjiachen.github.io/vue-element-admin) は管理画面のフロントエンドのインタフェース,[vue](https://github.com/vuejs/vue)[element-ui](https://github.com/ElemeFE/element)を使っています。i18nの多言語対応、可変ルート、権限、典型的なビジネスアプリテンプレートであり、豊富なコンポーネントを提供しています、素早くビジネス用の管理画面の現型を構築に役立ちます。
34+
35+
- [デモページ](https://panjiachen.github.io/vue-element-admin)
36+
37+
- [ドキュメント](https://panjiachen.github.io/vue-element-admin-site/)
38+
39+
- [Gitter](https://gitter.im/vue-element-admin/discuss)
40+
41+
- [Donate](https://panjiachen.gitee.io/vue-element-admin-site/zh/donate)
42+
43+
- [Wiki](https://github.com/PanJiaChen/vue-element-admin/wiki)
44+
45+
- おすすめシンプルテンプレート: [vue-admin-template](https://github.com/PanJiaChen/vue-admin-template)
46+
- デスクトップバージョン: [electron-vue-admin](https://github.com/PanJiaChen/electron-vue-admin)
47+
- Typescriptバージョン: [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template) (鸣谢: [@Armour](https://github.com/Armour))
48+
49+
**現在のバージョン `v4.0+``vue-cli` で構築,バグ報告は[issue](https://github.com/PanJiaChen/vue-element-admin/issues/new)のissueでお願いします。旧バージョン[tag/3.11.0](https://github.com/PanJiaChen/vue-element-admin/tree/tag/3.11.0)もあります。`vue-cli`に依存しないです。**
50+
51+
**低いバージョンのブラウザはサーポートしないです(例えば ie),必要があれば polyfill を追加してください。 [詳細はこちら](https://github.com/PanJiaChen/vue-element-admin/wiki#babel-polyfill)**
52+
53+
## 前準備
54+
55+
ローカル環境に [node](http://nodejs.org/)[git](https://git-scm.com/)をインストールが必要です。[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)[element-ui](https://github.com/ElemeFE/element)で開発しています。Requestは[Mock.js](https://github.com/nuysoft/Mock)のモックデータを使っています。
56+
57+
**バグ修正や新規機能追加のissue と pull requestは大歓迎です。**
58+
59+
<p align="center">
60+
<img width="900" src="https://wpimg.wallstcn.com/a5894c1b-f6af-456e-82df-1151da0839bf.png">
61+
</p>
62+
63+
## Sponsors
64+
65+
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)
66+
67+
<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>
68+
69+
## 機能一覧
70+
71+
```
72+
- ログイン / ログアウト
73+
74+
- Auth認証
75+
- ページ権限
76+
- 権限パーミッション
77+
- 権限設定
78+
- 外部IDでログイン
79+
80+
- 複数環境デプロイ
81+
- dev sit stage prod
82+
83+
- 共通機能
84+
- 多言語切替
85+
- テーマ切替
86+
- サイトメニュー(ルートから生成)
87+
- Breadcrumb Navigation
88+
- Tag Navigation
89+
- Svg Sprite Icon
90+
- ローカル/バックエンド モック データ
91+
- Screenfull
92+
93+
- WYSIWYG
94+
- TinyMCE
95+
- Markdown
96+
- JSON
97+
98+
- Excel
99+
- エクスポート
100+
- インポート
101+
- リード
102+
- Zip
103+
104+
- Table
105+
- Dynamic Table
106+
- Drag And Drop Table
107+
- Inline Edit Table
108+
109+
- Error Page
110+
- 401
111+
- 404
112+
113+
- コンポーネント
114+
- Avatar Upload
115+
- Back To Top
116+
- Drag Dialog
117+
- Drag Select
118+
- Drag Kanban
119+
- Drag List
120+
- SplitPane
121+
- Dropzone
122+
- Sticky
123+
- CountTo
124+
125+
- Advanced Example
126+
- Error Log
127+
- Dashboard
128+
- Guide Page
129+
- ECharts
130+
- Clipboard
131+
- Markdown to html
132+
```
133+
134+
## Getting started
135+
136+
```bash
137+
# clone the project
138+
git clone https://github.com/PanJiaChen/vue-element-admin.git
139+
140+
# enter the project directory
141+
cd vue-element-admin
142+
143+
# install dependency
144+
npm install
145+
146+
# develop
147+
npm run dev
148+
```
149+
150+
This will automatically open http://localhost:9527
151+
152+
## Build
153+
154+
```bash
155+
# build for test environment
156+
npm run build:stage
157+
158+
# build for production environment
159+
npm run build:prod
160+
```
161+
162+
## Advanced
163+
164+
```bash
165+
# preview the release environment effect
166+
npm run preview
167+
168+
# preview the release environment effect + static resource analysis
169+
npm run preview -- --report
170+
171+
# code format check
172+
npm run lint
173+
174+
# code format check and auto fix
175+
npm run lint -- --fix
176+
```
177+
178+
Refer to [Documentation](https://panjiachen.github.io/vue-element-admin-site/guide/essentials/deploy.html) for more information
179+
180+
## Changelog
181+
182+
Detailed changes for each release are documented in the [release notes](https://github.com/PanJiaChen/vue-element-admin/releases).
183+
184+
## Online Demo
185+
186+
[Preview](https://panjiachen.github.io/vue-element-admin)
187+
188+
## Donate
189+
190+
If you find this project useful, you can buy author a glass of juice :tropical_drink:
191+
192+
![donate](https://wpimg.wallstcn.com/bd273f0d-83a0-4ef2-92e1-9ac8ed3746b9.png)
193+
194+
[Paypal Me](https://www.paypal.me/panfree23)
195+
196+
[Buy me a coffee](https://www.buymeacoffee.com/Pan)
197+
198+
## Browsers support
199+
200+
Modern browsers and Internet Explorer 10+.
201+
202+
| [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/edge/edge_48x48.png" alt="IE / Edge" width="24px" height="24px" />](https://godban.github.io/browsers-support-badges/)</br>IE / Edge | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/firefox/firefox_48x48.png" alt="Firefox" width="24px" height="24px" />](https://godban.github.io/browsers-support-badges/)</br>Firefox | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/chrome/chrome_48x48.png" alt="Chrome" width="24px" height="24px" />](https://godban.github.io/browsers-support-badges/)</br>Chrome | [<img src="https://raw.githubusercontent.com/alrra/browser-logos/master/src/safari/safari_48x48.png" alt="Safari" width="24px" height="24px" />](https://godban.github.io/browsers-support-badges/)</br>Safari |
203+
| --------- | --------- | --------- | --------- |
204+
| IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions
205+
206+
## License
207+
208+
[MIT](https://github.com/PanJiaChen/vue-element-admin/blob/master/LICENSE)
209+
210+
Copyright (c) 2017-present PanJiaChen

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
</a>
2727
</p>
2828

29-
English | [简体中文](./README.zh-CN.md)
29+
English | [简体中文](./README.zh-CN.md) | [日本語](./README.ja.md)
3030

3131
## Introduction
3232

mock/mock-server.js

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -48,17 +48,21 @@ module.exports = app => {
4848
ignoreInitial: true
4949
}).on('all', (event, path) => {
5050
if (event === 'change' || event === 'add') {
51-
// remove mock routes stack
52-
app._router.stack.splice(mockStartIndex, mockRoutesLength)
51+
try {
52+
// remove mock routes stack
53+
app._router.stack.splice(mockStartIndex, mockRoutesLength)
5354

54-
// clear routes cache
55-
unregisterRoutes()
55+
// clear routes cache
56+
unregisterRoutes()
5657

57-
const mockRoutes = registerRoutes(app)
58-
mockRoutesLength = mockRoutes.mockRoutesLength
59-
mockStartIndex = mockRoutes.mockStartIndex
58+
const mockRoutes = registerRoutes(app)
59+
mockRoutesLength = mockRoutes.mockRoutesLength
60+
mockStartIndex = mockRoutes.mockStartIndex
6061

61-
console.log(chalk.magentaBright(`\n > Mock Server hot reload success! changed ${path}`))
62+
console.log(chalk.magentaBright(`\n > Mock Server hot reload success! changed ${path}`))
63+
} catch (error) {
64+
console.log(chalk.redBright(error))
65+
}
6266
}
6367
})
6468
}

mock/role/routes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ export const constantRoutes = [
4141
path: 'dashboard',
4242
component: 'views/dashboard/index',
4343
name: 'Dashboard',
44-
meta: { title: 'dashboard', icon: 'dashboard', noCache: true, affix: true }
44+
meta: { title: 'dashboard', icon: 'dashboard', affix: true }
4545
}
4646
]
4747
},

public/index.html

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,10 @@
99
<title><%= webpackConfig.name %></title>
1010
</head>
1111
<body>
12-
<script src="<%= BASE_URL %>static/tinymce4.7.5/tinymce.min.js"></script>
12+
<!-- import cdn js -->
13+
<% for(var js of htmlWebpackPlugin.options.cdn.js) { %>
14+
<script src="<%=js%>"></script>
15+
<% } %>
1316
<div id="app"></div>
1417
<!-- built files will be auto injected -->
1518
</body>

0 commit comments

Comments
 (0)