Skip to content

Commit 3ed5bbd

Browse files
committed
Merge branch 'release/v1.2.0'
Former-commit-id: 914e3bc601f1b448526a9201d8057fdcf5b65374 [formerly 914e3bc601f1b448526a9201d8057fdcf5b65374 [formerly 914e3bc601f1b448526a9201d8057fdcf5b65374 [formerly 914e3bc601f1b448526a9201d8057fdcf5b65374 [formerly f1da0d3 [formerly 25d81c4f3740c1347fe0c46c2f0a74c469013343]]]]] Former-commit-id: d926fb2 Former-commit-id: 5900cfb Former-commit-id: b57d5aa85cc5f036c1e2bea6a6d20a7bb8dbeeb3 [formerly 845b5a8f1beb44be3b13220a2f9a1035266a82c2] Former-commit-id: 2f4427e07ad172504b7d4dc74bff6e1af6f7faee Former-commit-id: db529685a6633e8f258f8b2498f989fa8ce7210b Former-commit-id: 843487bf2e0dfaa1f0c0d622e50f40a6b9cda014 Former-commit-id: 24205b8e54bf1540f36a89762dbaf4790892f93b Former-commit-id: e839f078eb142baca0b026ed600b9f3bdc764b41
2 parents 562fb54 + fba9cf7 commit 3ed5bbd

File tree

151 files changed

+3246
-979
lines changed

Some content is hidden

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

151 files changed

+3246
-979
lines changed

.browserslistrc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not ie <= 8

.env

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
11
# 所有环境
22

33
# 页面 title 前缀
4-
VUE_APP_TITLE=D2Admin
5-
# 检查更新的接口地址
6-
VUE_APP_RELEASES_API=https://api.github.com/repos/FairyEver/d2-admin/releases/latest
4+
VUE_APP_TITLE=D2Admin

.eslintrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@ module.exports = {
1414
parserOptions: {
1515
parser: 'babel-eslint'
1616
}
17-
}
17+
}

.gitignore

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,5 +15,6 @@ yarn-error.log*
1515
*.njsproj
1616
*.sln
1717
*.sw*
18-
package-lock.json
19-
dev/design
18+
19+
# d2admin
20+
dev/design

.postcssrc.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ module.exports = {
22
plugins: {
33
autoprefixer: {}
44
}
5-
}
5+
}

README.md

100755100644
File mode changed.

docs/.vuepress/config.js

Lines changed: 110 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,6 @@ module.exports = {
1818
themeConfig: {
1919
// 项目仓库地址
2020
repo: 'https://github.com/d2-projects/d2-admin',
21-
// 自定义仓库链接文字
22-
repoLabel: '查看源码',
2321
// 文档不是放在仓库的根目录下
2422
docsDir: 'docs',
2523
// 默认是 false, 设置为 true 来启用
@@ -30,93 +28,156 @@ module.exports = {
3028
selectText: 'Languages',
3129
label: 'English',
3230
editLinkText: 'Edit this page on GitHub',
33-
lastUpdated: 'Last update',
34-
nav: [
35-
{ text: 'preview', link: 'https://fairyever.gitee.io/d2-admin-preview/#/index' }
36-
]
31+
lastUpdated: 'Last update'
3732
},
3833
'/zh/': {
39-
selectText: '选择语言',
34+
selectText: '语言',
4035
label: '简体中文',
4136
editLinkText: '在 GitHub 上编辑此页',
4237
lastUpdated: '最后更新',
4338
nav: [
44-
{ text: '指南', link: '/zh/guide/' },
45-
{ text: '插件', link: '/zh/plugins/' },
46-
{ text: '组件', link: '/zh/components/' },
39+
{
40+
text: '学习',
41+
items: [
42+
{ text: '教程', link: '/zh/learn-guide/' },
43+
{ text: '相关知识', link: '/zh/learn-knowledge/' }
44+
]
45+
},
46+
{
47+
text: '模块',
48+
items: [
49+
{ text: '组件', link: '/zh/sys-components/' },
50+
{ text: '插件', link: '/zh/sys-plugins/' },
51+
{ text: 'vuex', link: '/zh/sys-vuex/' },
52+
{ text: '菜单', link: '/zh/sys-menu/' },
53+
{ text: '路由', link: '/zh/sys-route/' },
54+
{ text: '多页面', link: '/zh/sys-multi-page/' },
55+
{ text: '数据持久化', link: '/zh/sys-db/' },
56+
{ text: 'CSS 实用类', link: '/zh/sys-css/' },
57+
{ text: 'JS Util', link: '/zh/sys-util/' },
58+
{ text: 'cli3 和 webpack', link: '/zh/sys-cli3-webpack/' }
59+
]
60+
},
61+
{
62+
text: '生态',
63+
items: [
64+
{ text: 'D2 Admin start kit', link: '/zh/ecosystem-d2-admin-start-kit/' },
65+
{ text: 'D2 Admin ICE', link: '/zh/ecosystem-d2-admin-ice/' },
66+
{ text: 'D2 CRUD', link: '/zh/ecosystem-d2-crud/' },
67+
{ text: 'D2 Ribbons', link: '/zh/ecosystem-d2-ribbons/' }
68+
]
69+
},
4770
{ text: '文章', link: '/zh/article/' },
48-
{ text: '其它', link: '/zh/others/' },
49-
{ text: '预览', link: 'https://fairyever.gitee.io/d2-admin-preview/#/index' }
71+
{
72+
text: '其它',
73+
items: [
74+
{ text: '更新日志', link: '/zh/change-log/' },
75+
{ text: '参与者名单', link: '/zh/collaborator/' },
76+
{ text: '借鉴 D2Admin 的项目', link: '/zh/plagiarize/' },
77+
{
78+
text: '交流',
79+
items: [
80+
{ text: '微信公众号', link: '/zh/communication-we/' },
81+
{ text: '交流群', link: '/zh/communication-group-chat/' }
82+
]
83+
},
84+
{
85+
text: '关注我们',
86+
items: [
87+
{ text: '掘金', link: 'https://juejin.im/user/57a48b632e958a006691b946/posts' },
88+
{ text: 'CSDN', link: 'https://blog.csdn.net/fairyever' },
89+
{ text: 'segmentfault', link: 'https://segmentfault.com/blog/liyang-note-book' },
90+
{ text: '知乎', link: 'https://www.zhihu.com/people/fairy-ever/activities' }
91+
]
92+
},
93+
{
94+
text: 'D2 在其它地方',
95+
items: [
96+
{ text: 'awesome-vue', link: 'https://github.com/vuejs/awesome-vue' },
97+
{ text: 'ant design scaffolds', link: 'http://scaffold.ant.design/#/scaffolds/d2-admin' },
98+
{ text: 'ice vue scaffold', link: 'https://alibaba.github.io/ice/scaffold?type=vue' },
99+
{ text: 'awesomes.cn', link: 'https://www.awesomes.cn/repo/d2-projects/d2-admin' },
100+
{ text: 'oschina.net', link: 'https://www.oschina.net/p/D2admin' },
101+
{ text: 'ctolib.com', link: 'https://www.ctolib.com/FairyEver-d2-admin.html' }
102+
]
103+
}
104+
]
105+
},
106+
{ text: '常见问题', link: '/zh/question/' },
107+
{
108+
text: '旧版文档',
109+
items: [
110+
{ text: '1.1.11', link: 'http://app.d3collection.cn/d2-admin-doc/1.1.11/zh/' }
111+
]
112+
}
50113
],
51114
sidebar: {
52-
'/zh/guide/': sideBarGuide('指南'),
53-
'/zh/plugins/': sideBarPlugins('插件'),
54-
'/zh/components/': sideBarComponents('组件'),
55-
'/zh/article/': sideBarArticle('Cookbook', '版本更新'),
56-
'/zh/others/': sideBarOthers('其它')
115+
'/zh/learn-guide/': sideBarLearnGuide(),
116+
'/zh/sys-components/': sideBarSysComponents(),
117+
'/zh/sys-plugins/': sideBarSysPlugins(),
118+
'/zh/article/': sideBarArticle('版本发布', 'Cookbook'),
119+
'/zh/ecosystem-d2-crud/': sideBarEcosystemD2Crud()
57120
}
58121
}
59122
}
60123
}
61124
}
62125

63-
function sideBarGuide (title) {
126+
function sideBarLearnGuide () {
64127
return [
65128
{
66-
title,
67129
collapsable: false,
68130
children: [
69131
'',
70-
'getting-started',
71-
'question',
72-
'plagiarize',
73-
'change-log'
132+
'getting-started'
74133
]
75134
}
76135
]
77136
}
78137

79-
function sideBarPlugins () {
138+
function sideBarSysComponents () {
80139
return [
81-
'',
82-
'data-export',
83-
'data-import',
84-
'i18n',
85-
'mock',
86-
'vuex',
87-
'util'
140+
{
141+
collapsable: false,
142+
children: [
143+
'container',
144+
'icon',
145+
'icon-svg',
146+
'icon-select',
147+
'markdown',
148+
'highlight',
149+
'count-up',
150+
'charts'
151+
]
152+
}
88153
]
89154
}
90155

91-
function sideBarComponents (title) {
156+
function sideBarSysPlugins () {
92157
return [
93158
{
94-
title,
95159
collapsable: false,
96160
children: [
97-
'',
98-
'charts',
99-
'charts-new',
100-
'container',
101-
'count-up',
102-
'highlight',
103-
'icon-select',
104-
'icon-svg',
105-
'icon',
106-
'markdown'
161+
'data-export',
162+
'data-import',
163+
'i18n',
164+
'mock',
165+
'error',
166+
'log',
167+
'console'
107168
]
108169
}
109170
]
110171
}
111172

112-
function sideBarArticle (titleCookBook, titleUpdate) {
173+
function sideBarArticle (titleUpdate, titleCookbook) {
113174
return [
114175
{
115-
title: titleCookBook,
176+
title: titleCookbook,
116177
collapsable: false,
117178
children: [
118179
'cookbook/what-is-cookbook',
119-
'cookbook/combinable-questionnaire',
180+
'cookbook/combinable-questionnaire'
120181
]
121182
},
122183
{
@@ -132,15 +193,14 @@ function sideBarArticle (titleCookBook, titleUpdate) {
132193
]
133194
}
134195

135-
function sideBarOthers (title) {
196+
function sideBarEcosystemD2Crud () {
136197
return [
137198
{
138-
title,
139199
collapsable: false,
140200
children: [
141201
'',
142-
'css'
202+
'api'
143203
]
144204
}
145205
]
146-
}
206+
}

docs/zh/README.md

Lines changed: 9 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2,26 +2,19 @@
22
home: true
33
heroImage: /[email protected]
44
actionText: 快速上手 →
5-
actionLink: /zh/guide/
5+
actionLink: /zh/learn-guide/
66
features:
77
- title: Vue驱动
88
details: 享受 Vue + webpack 的开发体验,超快虚拟 DOM 和最省心的优化。
9+
- title: 强大的数据持久化方案
10+
details: 内部封装了多种数据持久化方式,您可以在数据持久化时区分用户,区分页面,甚至可以创建页面数据快照。
11+
- title: 模块化全局状态管理
12+
details: D2Admin 的系统管理为独立模块,在此模块内根据功能划分为十几个模块,每个模块都分工明确。
13+
- title: 贴心小工具
14+
details: 为您准备了实用的 JavaScript Util 以及 CSS 常用类。
915
- title: 丰富集成
10-
details: 已经为你准备好了很可能用到的插件和组件,有的来自第三方,有的专为 d2admin 设计。
16+
details: 已经为你准备好了很可能用到的插件和组件,专为 D2Admin 设计,或者来自第三方
1117
- title: ElementUI组件库
1218
details: 集成完善且强大的 ElementUI,随意搭配使用任何 ElementUI 组件。
1319
footer: MIT Licensed | Copyright © 2018-present FairyEver
14-
---
15-
16-
```
17-
// 安装依赖
18-
npm i
19-
20-
// 运行
21-
npm run dev
22-
23-
// 打包
24-
npm run build
25-
```
26-
27-
> 如果上述步骤出现错误,建议您升级 node 版本 > 8,如果有其它疑问请参考[常见问题](/zh/guide/question.html)
20+
---
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
19d478d2f8f1eaf254a2f27de23d407916d28d0d
1+
7016ea14567961c24eb1fdee492e0c996099f752

docs/zh/guide/change-log.md renamed to docs/zh/change-log/README.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,37 @@
1+
---
2+
sidebar: auto
3+
---
4+
15
# 更新日志
26

7+
## v1.2.0
8+
9+
* [ 修改 ] 新版首页
10+
* [ 新增 ] 全局状态管理模块化并且重新设计了 API
11+
* [ 新增 ] 全新的数据持久化 API
12+
* [ 新增 ] 数据持久化现在不仅仅支持区分用户,还可以区分路由
13+
* [ 新增 ] 路由快照功能
14+
* [ 新增 ] 文档重构
15+
* [ 新增 ] 菜单支持跳转到外部链接
16+
* [ 修改 ] bug 修复
17+
* [ 新增 ] 页面过渡动画设置加入全局状态管理并支持用户私有持久化
18+
* [ 新增 ] $logAdd 和 $log 快速记录日志和打印日志,并提供演示页面
19+
* [ 新增 ] 顶栏和侧边栏菜单支持 svg 图标
20+
21+
## v1.1.11
22+
23+
* [ 修改 ] 优化 v1.1.10 的更新代码
24+
* [ 修改 ] 修正版本号
25+
26+
## v1.1.10
27+
28+
* [ 修改 ] 修复了多标签页使用右侧菜单关闭时的报错
29+
30+
## v1.1.9
31+
32+
* [ 新增 ] 优化了多标签页数据持久化取值逻辑,现在修改路由信息后,刷新页面时数据从持久化存储取值时会多经过一部数据处理,根据 name 字段匹配新的路由数据
33+
* [ 新增 ] `d2adminUtilDb2VuexByUuid``d2adminUtilDb2Vuex` 新增第三个参数: handleFunction,该参数可以设置一个数据处理的回调函数,如果设置了该回调函数,在从持久化存储中取值时,如果成功取值,数据会首先经过该函数处理最后赋值到 store
34+
335
## v1.1.8
436

537
* [ 新增 ] 增加了错误收集和日志收集功能

0 commit comments

Comments
 (0)