Skip to content

Commit 8b5f4d0

Browse files
committed
Merge branch 'i18n' into deploy
2 parents e75e9a3 + 9975a7a commit 8b5f4d0

File tree

33 files changed

+272
-147
lines changed

33 files changed

+272
-147
lines changed

README.es.md

Lines changed: 17 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -51,24 +51,26 @@ Vue Element Admin es una solución práctica basada en la nueva plataforma de de
5151
- Plantilla de Typescript: [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template) (Créditos: [@Armour](https://github.com/Armour))
5252
- [awesome-project](https://github.com/PanJiaChen/vue-element-admin/issues/2312)
5353

54-
**Después de la versión `v4.1.0+`, la rama por defecto master no tendrá soporte para i18n. Por favor use [i18n](https://github.com/PanJiaChen/vue-element-admin/tree/i18n), los cambios serán incluidos en la rama master**
54+
**Después de la versión `v4.1.0+`, la rama por defecto master no tendrá soporte para i18n. Por favor utilice la rama [i18n](https://github.com/PanJiaChen/vue-element-admin/tree/i18n), los cambios serán incluidos en la rama master**
5555

5656
**la versión actual es `v4.0+` construida con `vue-cli`. Si encuentra algún problema, por favor coloque un [issue](https://github.com/PanJiaChen/vue-element-admin/issues/new). Si desea usar la versión anterior, puede cambiar de rama a [tag/3.11.0](https://github.com/PanJiaChen/vue-element-admin/tree/tag/3.11.0), no relacionado con `vue-cli`**
5757

58-
**Este proyecto no está soportado para versiones muy viejas de navegadores (e.g. IE).**
58+
**Este proyecto no está soportado para versiones antigüas de navegadores (ej. IE).**
5959

6060
## Preparación
6161

6262
Necesita instalar [node](https://nodejs.org/) y [git](https://git-scm.com/) localmente. El proyecto es basado en [ES2015+](https://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), toda la solicitud de datos simulada se realiza a través de [Mock.js](https://github.com/nuysoft/Mock).
6363
Entendiendo y aprendiendo esto pudiera ayudarle con su proyecto.
6464

65-
<p align="center">
65+
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/PanJiaChen/vue-element-admin/tree/CodeSandbox)
66+
67+
<p align="center">
6668
<img width="900" src="https://wpimg.wallstcn.com/a5894c1b-f6af-456e-82df-1151da0839bf.png">
6769
</p>
6870

6971
## Patrocinantes
7072

71-
Se un patrocinante y pon tu logo en nuestro README on GitHub con un enlace directo a tu sitio web. [[Se un Patrocinante]](https://www.patreon.com/panjiachen)
73+
Sea un patrocinante y coloque su logo en nuestro LEEME en GitHub con un enlace directo a su sitio web. [[Se un Patrocinante]](https://www.patreon.com/panjiachen)
7274

7375
<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>Plantilla de Dashboard de administración hecha con Vue, React y Angular.</p>
7476

@@ -77,25 +79,28 @@ Se un patrocinante y pon tu logo en nuestro README on GitHub con un enlace direc
7779
```
7880
- Iniciar / Cerrar Sesión
7981
80-
- Permisos de Authentication
82+
- Permisos de Autenticación
8183
- Página de Permisos
8284
- Directivas de permisos
8385
- Página de configuración de permisos
8486
- Autenticación por dos pasos
8587
8688
- Construcción Multi-entorno
87-
- dev sit stage producción
89+
- Desarrollo (dev)
90+
- sit
91+
- Escenario de pruebas (stage),
92+
- Producción (prod)
8893
8994
- Características Globales
9095
- I18n
9196
- Temas dinámicos
92-
- Dynamic sidebar (soporte a rutas multi-nivel)
97+
- Menu lateral dinámico (soporte a rutas multi-nivel)
9398
- Barra de rutas dinámica
94-
- Tags-view (Tab page Support right-click operation)
99+
- Tags-view (Pestañas de página, Soporta operación de clic derecho)
95100
- Svg Sprite
96101
- Datos de simulación con Mock
97102
- Pantalla completa
98-
- Responsive Sidebar
103+
- Menu lateral responsivo
99104
100105
- Editor
101106
- Editor de Texto Enriquecido
@@ -106,7 +111,7 @@ Se un patrocinante y pon tu logo en nuestro README on GitHub con un enlace direc
106111
- Exportación a Excel
107112
- Carga de Excel
108113
- Visualización de Excel
109-
- Exportación como zip
114+
- Exportación como ZIP
110115
111116
- Tabla
112117
- Tabla Dinámica
@@ -135,7 +140,7 @@ Se un patrocinante y pon tu logo en nuestro README on GitHub con un enlace direc
135140
- Página de Guías
136141
- ECharts (Gráficos)
137142
- Portapapeles
138-
- Convertidor de Markdown a html
143+
- Convertidor de Markdown a HTML
139144
```
140145

141146
## Iniciando
@@ -208,7 +213,7 @@ Navegadores modernos e Internet Explorer 10+.
208213

209214
| [<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 |
210215
| --------- | --------- | --------- | --------- |
211-
| IE10, IE11, Edge| últimas 2 versiones| últimas 2 versiones| últimas 2 versiones
216+
| IE10, IE11, Edge | últimas 2 versiones | últimas 2 versiones | últimas 2 versiones |
212217

213218
## Licencia
214219

README.ja.md

Lines changed: 37 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030

3131
## 概要
3232

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の多言語対応、可変ルート、権限、典型的なビジネスアプリテンプレートであり、豊富なコンポーネントを提供しています素早くビジネス用の管理画面の現型を構築に役立ちます。
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の多言語対応、可変ルート、権限、典型的なビジネスアプリテンプレートであり、豊富なコンポーネントを提供しています素早くビジネス用の管理画面の現型を構築に役立ちます。
3434

3535
- [デモページ](https://panjiachen.github.io/vue-element-admin)
3636

@@ -44,22 +44,24 @@
4444

4545
- おすすめシンプルテンプレート: [vue-admin-template](https://github.com/PanJiaChen/vue-admin-template)
4646
- デスクトップバージョン: [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))
47+
- Typescriptバージョン: [vue-typescript-admin-template](https://github.com/Armour/vue-typescript-admin-template) (感謝: [@Armour](https://github.com/Armour))
4848
- [awesome-project](https://github.com/PanJiaChen/vue-element-admin/issues/2312)
4949

50-
**After the `v4.1.0+` version, the default master branch will not support i18n. Please use [i18n Branch](https://github.com/PanJiaChen/vue-element-admin/tree/i18n), it will keep up with the master update**
50+
**バージョン`v4.1.0+`以降について、デフォルトのmasterブランチではi18nをサポートしていません。masterブランチと共にアップデートされる[i18n Branch](https://github.com/PanJiaChen/vue-element-admin/tree/i18n)を使用してください。 **
5151

52-
**現在のバージョン `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`に依存しないです。**
52+
**現在のバージョン `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`に依存しないです。**
5353

5454
**低いバージョンのブラウザはサーポートしないです(例えば ie),必要があれば polyfill を追加してください。 [詳細はこちら](https://github.com/PanJiaChen/vue-element-admin/wiki#babel-polyfill)**
5555

5656
## 前準備
5757

58-
ローカル環境に [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)のモックデータを使っています。
58+
ローカル環境に [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)のモックデータを使っています。
5959

6060
**バグ修正や新規機能追加のissue と pull requestは大歓迎です。**
6161

62-
<p align="center">
62+
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/PanJiaChen/vue-element-admin/tree/CodeSandbox)
63+
64+
<p align="center">
6365
<img width="900" src="https://wpimg.wallstcn.com/a5894c1b-f6af-456e-82df-1151da0839bf.png">
6466
</p>
6567

@@ -81,15 +83,18 @@ Become a sponsor and get your logo on our README on GitHub with a link to your s
8183
- 外部IDでログイン
8284
8385
- 複数環境デプロイ
84-
- dev sit stage prod
86+
- dev
87+
- sit
88+
- stage
89+
- prod
8590
8691
- 共通機能
8792
- 多言語切替
8893
- テーマ切替
8994
- サイトメニュー(ルートから生成)
90-
- Breadcrumb Navigation
91-
- Tag Navigation
92-
- Svg Sprite Icon
95+
- パンくずリストナビゲーション
96+
- タブナビゲーション
97+
- Svg Sprite アイコン
9398
- ローカル/バックエンド モック データ
9499
- Screenfull
95100
@@ -104,33 +109,33 @@ Become a sponsor and get your logo on our README on GitHub with a link to your s
104109
- リード
105110
- Zip
106111
107-
- Table
108-
- Dynamic Table
109-
- Drag And Drop Table
110-
- Inline Edit Table
112+
- テーブル
113+
- ダイナミックテーブル
114+
- ドラッグアンドドロップテーブル
115+
- インラインエディットテーブル
111116
112-
- Error Page
117+
- エラーページ
113118
- 401
114119
- 404
115120
116121
- コンポーネント
117-
- Avatar Upload
118-
- Back To Top
119-
- Drag Dialog
120-
- Drag Select
121-
- Drag Kanban
122-
- Drag List
123-
- SplitPane
122+
- アバターアップロード
123+
- トップに戻る
124+
- ドラッグダイアログ
125+
- ドラッグ選択
126+
- ドラッグKanban
127+
- ドラッグリスト
128+
- ペインの分割
124129
- Dropzone
125-
- Sticky
130+
- スティッキー
126131
- CountTo
127132
128-
- Advanced Example
129-
- Error Log
130-
- Dashboard
131-
- Guide Page
133+
- 高度なサンプル
134+
- エラーログ
135+
- ダッシュボード
136+
- ガイドページ
132137
- ECharts
133-
- Clipboard
138+
- クリップボード
134139
- Markdown to html
135140
```
136141

@@ -150,7 +155,7 @@ npm install
150155
npm run dev
151156
```
152157

153-
This will automatically open http://localhost:9527
158+
http://localhost:9527 が自動的に開きます。
154159

155160
## Build
156161

@@ -178,11 +183,11 @@ npm run lint
178183
npm run lint -- --fix
179184
```
180185

181-
Refer to [Documentation](https://panjiachen.github.io/vue-element-admin-site/guide/essentials/deploy.html) for more information
186+
詳細は [Documentation](https://panjiachen.github.io/vue-element-admin-site/guide/essentials/deploy.html) を参照してください。
182187

183188
## Changelog
184189

185-
Detailed changes for each release are documented in the [release notes](https://github.com/PanJiaChen/vue-element-admin/releases).
190+
各リリースの詳細は [release notes](https://github.com/PanJiaChen/vue-element-admin/releases) にあります。
186191

187192
## Online Demo
188193

@@ -204,7 +209,7 @@ Modern browsers and Internet Explorer 10+.
204209

205210
| [<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 |
206211
| --------- | --------- | --------- | --------- |
207-
| IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions
212+
| IE10, IE11, Edge | last 2 versions | last 2 versions | last 2 versions |
208213

209214
## License
210215

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,9 @@ English | [简体中文](./README.zh-CN.md) | [日本語](./README.ja.md) | [Spa
6262
You need to install [node](https://nodejs.org/) and [git](https://git-scm.com/) locally. The project is based on [ES2015+](https://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).
6363
Understanding and learning this knowledge in advance will greatly help the use of this project.
6464

65-
<p align="center">
65+
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/PanJiaChen/vue-element-admin/tree/CodeSandbox)
66+
67+
<p align="center">
6668
<img width="900" src="https://wpimg.wallstcn.com/a5894c1b-f6af-456e-82df-1151da0839bf.png">
6769
</p>
6870

@@ -84,7 +86,10 @@ Become a sponsor and get your logo on our README on GitHub with a link to your s
8486
- Two-step login
8587
8688
- Multi-environment build
87-
- dev sit stage prod
89+
- Develop (dev)
90+
- sit
91+
- Stage Test (stage)
92+
- Production (prod)
8893
8994
- Global Features
9095
- I18n
@@ -208,7 +213,7 @@ Modern browsers and Internet Explorer 10+.
208213

209214
| [<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 |
210215
| --------- | --------- | --------- | --------- |
211-
| IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions
216+
| IE10, IE11, Edge | last 2 versions | last 2 versions | last 2 versions |
212217

213218
## License
214219

README.zh-CN.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,9 @@
7777

7878
**如有问题请先看上述使用文档和文章,若不能满足,欢迎 issue 和 pr**
7979

80-
<p align="center">
80+
[![Edit on CodeSandbox](https://codesandbox.io/static/img/play-codesandbox.svg)](https://codesandbox.io/s/github/PanJiaChen/vue-element-admin/tree/CodeSandbox)
81+
82+
<p align="center">
8183
<img width="900" src="https://wpimg.wallstcn.com/a5894c1b-f6af-456e-82df-1151da0839bf.png">
8284
</p>
8385

@@ -99,7 +101,10 @@ Become a sponsor and get your logo on our README on GitHub with a link to your s
99101
- 二步登录
100102
101103
- 多环境发布
102-
- dev sit stage prod
104+
- dev
105+
- sit
106+
- stage
107+
- prod
103108
104109
- 全局功能
105110
- 国际化多语言
@@ -221,13 +226,17 @@ Detailed changes for each release are documented in the [release notes](https://
221226

222227
[Buy me a coffee](https://www.buymeacoffee.com/Pan)
223228

229+
## 购买贴纸
230+
231+
你也可以通过 购买[官方授权的贴纸](https://smallsticker.com/product/vue-element-admin) 的方式来支持 vue-element-admin - 每售出一张贴纸,本项目将获得 2 元的捐赠。
232+
224233
## Browsers support
225234

226235
Modern browsers and Internet Explorer 10+.
227236

228237
| [<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 |
229238
| --------- | --------- | --------- | --------- |
230-
| IE10, IE11, Edge| last 2 versions| last 2 versions| last 2 versions
239+
| IE10, IE11, Edge | last 2 versions | last 2 versions | last 2 versions |
231240

232241
## License
233242

mock/index.js

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,18 +54,4 @@ export function mockXHR() {
5454
}
5555
}
5656

57-
// for mock server
58-
const responseFake = (url, type, respond) => {
59-
return {
60-
url: new RegExp(`${process.env.VUE_APP_BASE_API}${url}`),
61-
type: type || 'get',
62-
response(req, res) {
63-
console.log('request invoke:' + req.path)
64-
res.json(Mock.mock(respond instanceof Function ? respond(req, res) : respond))
65-
}
66-
}
67-
}
68-
69-
export default mocks.map(route => {
70-
return responseFake(route.url, route.type, route.response)
71-
})
57+
export default mocks

mock/mock-server.js

Lines changed: 18 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,17 +2,21 @@ const chokidar = require('chokidar')
22
const bodyParser = require('body-parser')
33
const chalk = require('chalk')
44
const path = require('path')
5+
const Mock = require('mockjs')
56

67
const mockDir = path.join(process.cwd(), 'mock')
78

89
function registerRoutes(app) {
910
let mockLastIndex
1011
const { default: mocks } = require('./index.js')
11-
for (const mock of mocks) {
12+
const mocksForServer = mocks.map(route => {
13+
return responseFake(route.url, route.type, route.response)
14+
})
15+
for (const mock of mocksForServer) {
1216
app[mock.type](mock.url, mock.response)
1317
mockLastIndex = app._router.stack.length
1418
}
15-
const mockRoutesLength = Object.keys(mocks).length
19+
const mockRoutesLength = Object.keys(mocksForServer).length
1620
return {
1721
mockRoutesLength: mockRoutesLength,
1822
mockStartIndex: mockLastIndex - mockRoutesLength
@@ -27,6 +31,18 @@ function unregisterRoutes() {
2731
})
2832
}
2933

34+
// for mock server
35+
const responseFake = (url, type, respond) => {
36+
return {
37+
url: new RegExp(`${process.env.VUE_APP_BASE_API}${url}`),
38+
type: type || 'get',
39+
response(req, res) {
40+
console.log('request invoke:' + req.path)
41+
res.json(Mock.mock(respond instanceof Function ? respond(req, res) : respond))
42+
}
43+
}
44+
}
45+
3046
module.exports = app => {
3147
// es6 polyfill
3248
require('@babel/register')

0 commit comments

Comments
 (0)