Skip to content

Commit 726ce76

Browse files
committed
main
1 parent 97371dc commit 726ce76

Some content is hidden

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

87 files changed

+8546
-1875
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# vue-antd-admin
1+
# TODO vue-antd-admin
22

33
## Project setup
44
```

docs/README.md

Lines changed: 76 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,35 +1,95 @@
1-
# vue-antd-admin
1+
[![GitHub stars](https://img.shields.io/github/stars/KXinghui/vue-antd-admin.svg?style=flat-square)](https://github.com/KXinghui/vue-antd-admin/stargazers)
2+
[![GitHub issues](https://img.shields.io/github/issues/KXinghui/vue-antd-admin.svg?style=flat-square)](https://github.com/KXinghui/vue-antd-admin/issues)
3+
[![GitHub forks](https://img.shields.io/github/forks/KXinghui/vue-antd-admin.svg?style=flat-square)](https://github.com/KXinghui/vue-antd-admin/network)
4+
[![GitHub last commit](https://img.shields.io/github/last-commit/google/skia.svg?style=flat-square)](https://github.com/KXinghui/vue-antd-admin)
5+
[![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)](https://github.com/KXinghui/vue-antd-admin)
26

3-
## Project setup
4-
### Clone the project
5-
```
7+
<!-- [![Build Status](https://travis-ci.org/KXinghui/vue-antd-admin.svg?branch=master)](https://travis-ci.org/KXinghui/vue-antd-admin) -->
8+
<!-- [![NPM](https://nodei.co/npm/vue-quill-editor.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/vue-quill-editor/)
9+
[![NPM](https://nodei.co/npm-dl/vue-quill-editor.png?months=9&height=3)](https://nodei.co/npm/vue-quill-editor/)
10+
-->
11+
# Vue-Antd-Admin
12+
13+
## 项目设置
14+
### 克隆项目
15+
```bash
616
git clone https://github.com/KXinghui/vue-antd-admin.git
717
```
818

9-
### Install dependency
10-
```
19+
### 安装依赖
20+
```bash
1121
npm install
1222
```
1323

14-
### Compiles and hot-reloads for development
15-
```
24+
### 编译和热重装以进行开发
25+
```bash
1626
npm run serve
1727
```
1828

19-
### Compiles and minifies for production
20-
```
29+
### 编译并最小化生产
30+
```bash
2131
npm run build
2232
```
2333

24-
### Run your unit tests
25-
```
34+
### 运行单元测试
35+
```bash
2636
npm run test:unit
2737
```
2838

29-
### Lints and fixes files
30-
```
39+
### 整理和修复文件
40+
```bash
3141
npm run lint
3242
```
3343

34-
### Customize configuration
35-
See [Configuration Reference](https://cli.vuejs.org/config/).
44+
### 自定义配置
45+
请参阅 [配置参考](https://cli.vuejs.org/config/).
46+
47+
<!-- ```html
48+
/*vue*/
49+
/*no-boot-code*/
50+
<desc>
51+
Hello `world`
52+
* a
53+
* b
54+
</desc>
55+
56+
<style>
57+
.wrapper {
58+
font-size: 20px;
59+
}
60+
</style>
61+
<template>
62+
<div>
63+
<div class='wrapper'>
64+
<div>
65+
<p>author: {{globalVariable}}</p>
66+
<button :style="style" @click="onClick">test</button>
67+
</div>
68+
</div>
69+
</div>
70+
</template>
71+
72+
<script>
73+
export default {
74+
data() {
75+
return {
76+
globalVariable,
77+
style: {
78+
color: 'blue'
79+
}
80+
}
81+
},
82+
methods: {
83+
onClick() {
84+
alert('author: ' + this.globalVariable)
85+
this.style.color = 'red'
86+
}
87+
}
88+
}
89+
</script>
90+
``` -->
91+
92+
93+
94+
95+

docs/_404.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# 404

docs/_coverpage.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,12 @@
88
- 权限验证
99
- 最新技术栈
1010

11+
<!-- [![GitHub stars](https://img.shields.io/github/stars/KXinghui/vue-antd-admin.svg?style=flat-square)](https://github.com/KXinghui/vue-antd-admin/stargazers)
12+
[![GitHub issues](https://img.shields.io/github/issues/KXinghui/vue-antd-admin.svg?style=flat-square)](https://github.com/KXinghui/vue-antd-admin/issues)
13+
[![GitHub forks](https://img.shields.io/github/forks/KXinghui/vue-antd-admin.svg?style=flat-square)](https://github.com/KXinghui/vue-antd-admin/network)
14+
[![GitHub last commit](https://img.shields.io/github/last-commit/google/skia.svg?style=flat-square)](https://github.com/KXinghui/vue-antd-admin)
15+
[![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)](https://github.com/KXinghui/vue-antd-admin) -->
16+
1117
[GitHub](https://github.com/KXinghui/vue-antd-admin/)
12-
[Get Started](#docsify)
18+
[开始](#vue-antd-admin)
19+
[下载](#vue-antd-admin)

docs/_media/faviconx128.png

5.58 KB
Loading

docs/_media/faviconx64.png

2.36 KB
Loading

docs/_navbar.md

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

docs/_redirects

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/* /index.html 200

docs/en/README.md

Lines changed: 18 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,44 @@
1-
# # Vue-Antd-Admin
1+
[![GitHub stars](https://img.shields.io/github/stars/KXinghui/vue-antd-admin.svg?style=flat-square)](https://github.com/KXinghui/vue-antd-admin/stargazers)
2+
[![GitHub issues](https://img.shields.io/github/issues/KXinghui/vue-antd-admin.svg?style=flat-square)](https://github.com/KXinghui/vue-antd-admin/issues)
3+
[![GitHub forks](https://img.shields.io/github/forks/KXinghui/vue-antd-admin.svg?style=flat-square)](https://github.com/KXinghui/vue-antd-admin/network)
4+
[![GitHub last commit](https://img.shields.io/github/last-commit/google/skia.svg?style=flat-square)](https://github.com/KXinghui/vue-antd-admin)
5+
[![license](https://img.shields.io/github/license/mashape/apistatus.svg?style=flat-square)](https://github.com/KXinghui/vue-antd-admin)
6+
7+
<!-- [![Build Status](https://travis-ci.org/KXinghui/vue-antd-admin.svg?branch=master)](https://travis-ci.org/KXinghui/vue-antd-admin) -->
8+
<!-- [![NPM](https://nodei.co/npm/vue-quill-editor.png?downloads=true&downloadRank=true&stars=true)](https://nodei.co/npm/vue-quill-editor/)
9+
[![NPM](https://nodei.co/npm-dl/vue-quill-editor.png?months=9&height=3)](https://nodei.co/npm/vue-quill-editor/)
10+
-->
11+
12+
# vue-antd-admin
213

314
## Project setup
415
### Clone the project
5-
```
16+
```bash
617
git clone https://github.com/KXinghui/vue-antd-admin.git
718
```
819

920
### Install dependency
10-
```
21+
```bash
1122
npm install
1223
```
1324

1425
### Compiles and hot-reloads for development
15-
```
26+
```bash
1627
npm run serve
1728
```
1829

1930
### Compiles and minifies for production
20-
```
31+
```bash
2132
npm run build
2233
```
2334

2435
### Run your unit tests
25-
```
36+
```bash
2637
npm run test:unit
2738
```
2839

2940
### Lints and fixes files
30-
```
41+
```bash
3142
npm run lint
3243
```
3344

docs/en/_coverpage.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
![logo](../_media/faviconx256.png)
2+
3+
# Vue Antd Admin <small>0.1.0</small>
4+
5+
> Ant-Design-Vue Background Management
6+
7+
- Rich functionality
8+
- Permission to verify
9+
- Latest technology stack
10+
11+
[GitHub](https://github.com/KXinghui/vue-antd-admin/)
12+
[Get Started](#vue-antd-admin)

docs/en/navbar.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
* Translations
2+
3+
* [:cn: 中文](/)
4+
* [:uk: English](/en/)

docs/index.html

Lines changed: 83 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,12 @@
77
<meta name="description" content="Description">
88
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
99
<link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/vue.css">
10+
<!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/buble.css"> -->
11+
<!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/dark.css"> -->
12+
<!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/pure.css"> -->
13+
<!-- <link rel="stylesheet" href="//cdn.jsdelivr.net/npm/docsify/lib/themes/dolphin.css"> -->
1014
<link rel="icon" href="_media/favicon.ico">
1115
<style>
12-
/* vue中app.vue中设置height:100%无效的问题及解决方法 */
1316
.first-loading-container {
1417
display: flex;
1518
justify-content: center;
@@ -111,6 +114,7 @@
111114
</head>
112115
<body>
113116
<div id="app">
117+
<nav class="app-nav"><ul><li><p>翻译</p><ul><li><a href="#/" title=" 中文" class="active"><img class="emoji" src="https://github.githubassets.com/images/icons/emoji/unicode/1f1e8-1f1f3.png" alt="cn"> 中文</a></li><li><a href="#/en/" title=" English"><img class="emoji" src="https://github.githubassets.com/images/icons/emoji/unicode/1f1ec-1f1e7.png" alt="uk"> English</a></li></ul></li></ul></nav>
114118
<div class="first-loading-container">
115119
<h1>Vue Antd Admin Docs</h1>
116120
<div class="loading-wrp">
@@ -120,30 +124,49 @@ <h1>Vue Antd Admin Docs</h1>
120124
</div>
121125
</div>
122126
<script>
127+
/* if (typeof navigator.serviceWorker !== 'undefined') {
128+
debugger;
129+
navigator.serviceWorker.register('sw.js')
130+
} */
131+
</script>
132+
<script src="//cdn.jsdelivr.net/npm/vue/dist/vue.min.js"></script>
133+
<script src="https://unpkg.com/babel-standalone@6/babel.min.js"></script>
134+
<script src="//unpkg.com/docsify-demo-box-vue@1.1.0/dist/docsify-demo-box-vue.min.js"></script>
135+
<script>
136+
/* TODO 这里可以字符串追加 \n<script src="${js}"> */
137+
var jsResources = '<scr' + 'ipt src="//cdn.jsdelivr.net/npm/vue/dist/vue.js"></scr' + 'ipt>'
138+
var cssResources = '@import url("//yarnpkg.com/en/package/normalize.css");'
139+
var bootCode = 'var globalVariable = "leon"'
140+
var globalVariable = "leon"
141+
123142
window.$docsify = {
124-
name: '',
125-
repo: '',
126-
// coverpage: true,
143+
routerMode: 'history',
144+
name: 'Vue Antd Admin',
145+
repo: 'https://github.com/KXinghui/vue-antd-admin.git',
127146
onlyCover: false,
128-
coverpage: ['/', '/zh-cn/'],
147+
// coverpage: true,
148+
coverpage: ['/', '/zh-cn/', '/en/'],
129149
loadNavbar: true,
150+
logo: './_media/faviconx64.png',
151+
notFoundPage: true,
152+
mergeNavbar: true,
130153
search: {
131154
maxAge: 86400000, // Expiration time, the default one day
132-
paths: [], // or 'auto'
133-
placeholder: 'Type to search',
134-
155+
paths: ['/','en'], // or 'auto'
135156
// Localization
136157
placeholder: {
158+
'/en/': 'Type to search',
137159
'/zh-cn/': '搜索',
138-
'/': 'Type to search'
160+
'/': '搜索'
139161
},
140162

141163
noData: 'No Results!',
142164

143165
// Localization
144166
noData: {
167+
'/en/': 'No Results',
145168
'/zh-cn/': '找不到结果',
146-
'/': 'No Results'
169+
'/': '找不到结果'
147170
},
148171

149172
// Headline depth, 1 - 6
@@ -153,48 +176,90 @@ <h1>Vue Antd Admin Docs</h1>
153176

154177
// To avoid search index collision
155178
// between multiple websites under the same domain
156-
namespace: 'website-1',
179+
// namespace: 'website-1',
157180

158181
// Use different indexes for path prefixes (namespaces).
159182
// NOTE: Only works in 'auto' mode.
160183
//
161184
// When initialiazing an index, we look for the first path from the sidebar.
162185
// If it matches the prefix from the list, we switch to the corresponding index.
163-
pathNamespaces: ['/zh-cn', '/ru-ru', '/ru-ru/v1'],
186+
pathNamespaces: ['/', '/en'],
164187

165188
// You can provide a regexp to match prefixes. In this case,
166189
// the matching substring will be used to identify the index
167-
pathNamespaces: /^(\/(zh-cn|ru-ru))?(\/(v1|v2))?/
190+
pathNamespaces: /^(\/(|zh-cn|en))?(\/(v1|v2))?/
168191
},
169192
// docsify-copy-code (defaults)
170193
copyCode: {
171194
buttonText: {
195+
'/en/' : 'Copy to clipboard',
172196
'/zh-cn/': '点击复制',
173197
'/ru/' : 'Скопировать в буфер обмена',
174198
'/de-de/': 'Klicken Sie zum Kopieren',
175199
'/es/' : 'Haga clic para copiar',
176-
'/' : 'Copy to clipboard'
200+
'/' : '点击复制'
177201
},
178202
errorText: {
203+
'/en/' : 'Error',
179204
'/zh-cn/': '错误',
180205
'/ru/' : 'ошибка',
181-
'/' : 'Error'
206+
'/' : '错误'
182207
},
183208
successText: {
209+
'/en/' : 'Copied',
184210
'/zh-cn/': '复制',
185211
'/ru/' : 'Скопировано',
186212
'/de-de/': 'Kopiert',
187213
'/es/' : 'Copiado',
188-
'/' : 'Copied'
214+
'/' : '复制'
189215
}
190-
}
216+
},
217+
pagination: {
218+
previousText: '上一章节',
219+
// previousText: {
220+
// '/en/' : 'Pre Page',
221+
// '/zh-cn/': '上一章节',
222+
// '/' : '上一章节'
223+
// },
224+
nextText: '下一章节',
225+
// nextText: {
226+
// '/en/' : 'Next Page',
227+
// '/' : '下一章节'
228+
// },
229+
crossChapter: true,
230+
crossChapterText: true,
231+
},
232+
count:{
233+
countable: true,
234+
position: 'top',
235+
margin: '10px',
236+
float: 'right',
237+
fontsize:'0.9em',
238+
color:'rgb(90,90,90)',
239+
language:'chinese',
240+
localization: {
241+
words: "",
242+
minute: ""
243+
},
244+
isExpected: true
245+
},
246+
plugins: [
247+
DemoBoxVue.create(jsResources, cssResources, bootCode)
248+
]
191249
}
192250
</script>
193251
<script src="//cdn.jsdelivr.net/npm/docsify/lib/docsify.min.js"></script>
194252
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/emoji.min.js"></script>
195253
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/search.min.js"></script>
196-
<script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script>
254+
<!-- <script src="//cdn.jsdelivr.net/npm/docsify-copy-code"></script> -->
255+
<script src="//unpkg.com/docsify-copy-code@2"></script>
197256
<script src="//cdn.jsdelivr.net/npm/docsify/lib/plugins/zoom-image.min.js"></script>
257+
<script src="//cdn.jsdelivr.net/npm/docsify-pagination/dist/docsify-pagination.min.js"></script>
258+
<script src="//cdn.jsdelivr.net/npm/docsify-count@latest/dist/countable.min.js"></script>
259+
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-bash.min.js"></script>
260+
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-java.min.js"></script>
261+
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-json.min.js"></script>
262+
<script src="//cdn.jsdelivr.net/npm/prismjs@1/components/prism-sql.min.js"></script>
198263
<!-- <script>
199264
debugger;
200265
</script> -->

0 commit comments

Comments
 (0)