Skip to content

Commit

Permalink
Merge branch 'release/v1.2.0'
Browse files Browse the repository at this point in the history
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
  • Loading branch information
FairyEver committed Aug 22, 2018
2 parents 562fb54 + fba9cf7 commit 3ed5bbd
Show file tree
Hide file tree
Showing 151 changed files with 3,246 additions and 979 deletions.
3 changes: 3 additions & 0 deletions .browserslistrc
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
> 1%
last 2 versions
not ie <= 8
4 changes: 1 addition & 3 deletions .env
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# 所有环境

# 页面 title 前缀
VUE_APP_TITLE=D2Admin
# 检查更新的接口地址
VUE_APP_RELEASES_API=https://api.github.com/repos/FairyEver/d2-admin/releases/latest
VUE_APP_TITLE=D2Admin
2 changes: 1 addition & 1 deletion .eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ module.exports = {
parserOptions: {
parser: 'babel-eslint'
}
}
}
5 changes: 3 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,6 @@ yarn-error.log*
*.njsproj
*.sln
*.sw*
package-lock.json
dev/design

# d2admin
dev/design
2 changes: 1 addition & 1 deletion .postcssrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ module.exports = {
plugins: {
autoprefixer: {}
}
}
}
Empty file modified README.md
100755 → 100644
Empty file.
160 changes: 110 additions & 50 deletions docs/.vuepress/config.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,6 @@ module.exports = {
themeConfig: {
// 项目仓库地址
repo: 'https://github.com/d2-projects/d2-admin',
// 自定义仓库链接文字
repoLabel: '查看源码',
// 文档不是放在仓库的根目录下
docsDir: 'docs',
// 默认是 false, 设置为 true 来启用
Expand All @@ -30,93 +28,156 @@ module.exports = {
selectText: 'Languages',
label: 'English',
editLinkText: 'Edit this page on GitHub',
lastUpdated: 'Last update',
nav: [
{ text: 'preview', link: 'https://fairyever.gitee.io/d2-admin-preview/#/index' }
]
lastUpdated: 'Last update'
},
'/zh/': {
selectText: '选择语言',
selectText: '语言',
label: '简体中文',
editLinkText: '在 GitHub 上编辑此页',
lastUpdated: '最后更新',
nav: [
{ text: '指南', link: '/zh/guide/' },
{ text: '插件', link: '/zh/plugins/' },
{ text: '组件', link: '/zh/components/' },
{
text: '学习',
items: [
{ text: '教程', link: '/zh/learn-guide/' },
{ text: '相关知识', link: '/zh/learn-knowledge/' }
]
},
{
text: '模块',
items: [
{ text: '组件', link: '/zh/sys-components/' },
{ text: '插件', link: '/zh/sys-plugins/' },
{ text: 'vuex', link: '/zh/sys-vuex/' },
{ text: '菜单', link: '/zh/sys-menu/' },
{ text: '路由', link: '/zh/sys-route/' },
{ text: '多页面', link: '/zh/sys-multi-page/' },
{ text: '数据持久化', link: '/zh/sys-db/' },
{ text: 'CSS 实用类', link: '/zh/sys-css/' },
{ text: 'JS Util', link: '/zh/sys-util/' },
{ text: 'cli3 和 webpack', link: '/zh/sys-cli3-webpack/' }
]
},
{
text: '生态',
items: [
{ text: 'D2 Admin start kit', link: '/zh/ecosystem-d2-admin-start-kit/' },
{ text: 'D2 Admin ICE', link: '/zh/ecosystem-d2-admin-ice/' },
{ text: 'D2 CRUD', link: '/zh/ecosystem-d2-crud/' },
{ text: 'D2 Ribbons', link: '/zh/ecosystem-d2-ribbons/' }
]
},
{ text: '文章', link: '/zh/article/' },
{ text: '其它', link: '/zh/others/' },
{ text: '预览', link: 'https://fairyever.gitee.io/d2-admin-preview/#/index' }
{
text: '其它',
items: [
{ text: '更新日志', link: '/zh/change-log/' },
{ text: '参与者名单', link: '/zh/collaborator/' },
{ text: '借鉴 D2Admin 的项目', link: '/zh/plagiarize/' },
{
text: '交流',
items: [
{ text: '微信公众号', link: '/zh/communication-we/' },
{ text: '交流群', link: '/zh/communication-group-chat/' }
]
},
{
text: '关注我们',
items: [
{ text: '掘金', link: 'https://juejin.im/user/57a48b632e958a006691b946/posts' },
{ text: 'CSDN', link: 'https://blog.csdn.net/fairyever' },
{ text: 'segmentfault', link: 'https://segmentfault.com/blog/liyang-note-book' },
{ text: '知乎', link: 'https://www.zhihu.com/people/fairy-ever/activities' }
]
},
{
text: 'D2 在其它地方',
items: [
{ text: 'awesome-vue', link: 'https://github.com/vuejs/awesome-vue' },
{ text: 'ant design scaffolds', link: 'http://scaffold.ant.design/#/scaffolds/d2-admin' },
{ text: 'ice vue scaffold', link: 'https://alibaba.github.io/ice/scaffold?type=vue' },
{ text: 'awesomes.cn', link: 'https://www.awesomes.cn/repo/d2-projects/d2-admin' },
{ text: 'oschina.net', link: 'https://www.oschina.net/p/D2admin' },
{ text: 'ctolib.com', link: 'https://www.ctolib.com/FairyEver-d2-admin.html' }
]
}
]
},
{ text: '常见问题', link: '/zh/question/' },
{
text: '旧版文档',
items: [
{ text: '1.1.11', link: 'http://app.d3collection.cn/d2-admin-doc/1.1.11/zh/' }
]
}
],
sidebar: {
'/zh/guide/': sideBarGuide('指南'),
'/zh/plugins/': sideBarPlugins('插件'),
'/zh/components/': sideBarComponents('组件'),
'/zh/article/': sideBarArticle('Cookbook', '版本更新'),
'/zh/others/': sideBarOthers('其它')
'/zh/learn-guide/': sideBarLearnGuide(),
'/zh/sys-components/': sideBarSysComponents(),
'/zh/sys-plugins/': sideBarSysPlugins(),
'/zh/article/': sideBarArticle('版本发布', 'Cookbook'),
'/zh/ecosystem-d2-crud/': sideBarEcosystemD2Crud()
}
}
}
}
}

function sideBarGuide (title) {
function sideBarLearnGuide () {
return [
{
title,
collapsable: false,
children: [
'',
'getting-started',
'question',
'plagiarize',
'change-log'
'getting-started'
]
}
]
}

function sideBarPlugins () {
function sideBarSysComponents () {
return [
'',
'data-export',
'data-import',
'i18n',
'mock',
'vuex',
'util'
{
collapsable: false,
children: [
'container',
'icon',
'icon-svg',
'icon-select',
'markdown',
'highlight',
'count-up',
'charts'
]
}
]
}

function sideBarComponents (title) {
function sideBarSysPlugins () {
return [
{
title,
collapsable: false,
children: [
'',
'charts',
'charts-new',
'container',
'count-up',
'highlight',
'icon-select',
'icon-svg',
'icon',
'markdown'
'data-export',
'data-import',
'i18n',
'mock',
'error',
'log',
'console'
]
}
]
}

function sideBarArticle (titleCookBook, titleUpdate) {
function sideBarArticle (titleUpdate, titleCookbook) {
return [
{
title: titleCookBook,
title: titleCookbook,
collapsable: false,
children: [
'cookbook/what-is-cookbook',
'cookbook/combinable-questionnaire',
'cookbook/combinable-questionnaire'
]
},
{
Expand All @@ -132,15 +193,14 @@ function sideBarArticle (titleCookBook, titleUpdate) {
]
}

function sideBarOthers (title) {
function sideBarEcosystemD2Crud () {
return [
{
title,
collapsable: false,
children: [
'',
'css'
'api'
]
}
]
}
}
25 changes: 9 additions & 16 deletions docs/zh/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,26 +2,19 @@
home: true
heroImage: /[email protected]
actionText: 快速上手 →
actionLink: /zh/guide/
actionLink: /zh/learn-guide/
features:
- title: Vue驱动
details: 享受 Vue + webpack 的开发体验,超快虚拟 DOM 和最省心的优化。
- title: 强大的数据持久化方案
details: 内部封装了多种数据持久化方式,您可以在数据持久化时区分用户,区分页面,甚至可以创建页面数据快照。
- title: 模块化全局状态管理
details: D2Admin 的系统管理为独立模块,在此模块内根据功能划分为十几个模块,每个模块都分工明确。
- title: 贴心小工具
details: 为您准备了实用的 JavaScript Util 以及 CSS 常用类。
- title: 丰富集成
details: 已经为你准备好了很可能用到的插件和组件,有的来自第三方,有的专为 d2admin 设计。
details: 已经为你准备好了很可能用到的插件和组件,专为 D2Admin 设计,或者来自第三方
- title: ElementUI组件库
details: 集成完善且强大的 ElementUI,随意搭配使用任何 ElementUI 组件。
footer: MIT Licensed | Copyright © 2018-present FairyEver
---

```
// 安装依赖
npm i
// 运行
npm run dev
// 打包
npm run build
```

> 如果上述步骤出现错误,建议您升级 node 版本 > 8,如果有其它疑问请参考[常见问题](/zh/guide/question.html)
---
Original file line number Diff line number Diff line change
@@ -1 +1 @@
19d478d2f8f1eaf254a2f27de23d407916d28d0d
7016ea14567961c24eb1fdee492e0c996099f752
32 changes: 32 additions & 0 deletions docs/zh/guide/change-log.md → docs/zh/change-log/README.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,37 @@
---
sidebar: auto
---

# 更新日志

## v1.2.0

* [ 修改 ] 新版首页
* [ 新增 ] 全局状态管理模块化并且重新设计了 API
* [ 新增 ] 全新的数据持久化 API
* [ 新增 ] 数据持久化现在不仅仅支持区分用户,还可以区分路由
* [ 新增 ] 路由快照功能
* [ 新增 ] 文档重构
* [ 新增 ] 菜单支持跳转到外部链接
* [ 修改 ] bug 修复
* [ 新增 ] 页面过渡动画设置加入全局状态管理并支持用户私有持久化
* [ 新增 ] $logAdd 和 $log 快速记录日志和打印日志,并提供演示页面
* [ 新增 ] 顶栏和侧边栏菜单支持 svg 图标

## v1.1.11

* [ 修改 ] 优化 v1.1.10 的更新代码
* [ 修改 ] 修正版本号

## v1.1.10

* [ 修改 ] 修复了多标签页使用右侧菜单关闭时的报错

## v1.1.9

* [ 新增 ] 优化了多标签页数据持久化取值逻辑,现在修改路由信息后,刷新页面时数据从持久化存储取值时会多经过一部数据处理,根据 name 字段匹配新的路由数据
* [ 新增 ] `d2adminUtilDb2VuexByUuid``d2adminUtilDb2Vuex` 新增第三个参数: handleFunction,该参数可以设置一个数据处理的回调函数,如果设置了该回调函数,在从持久化存储中取值时,如果成功取值,数据会首先经过该函数处理最后赋值到 store

## v1.1.8

* [ 新增 ] 增加了错误收集和日志收集功能
Expand Down
13 changes: 13 additions & 0 deletions docs/zh/collaborator/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
---
sidebar: auto
---

# 参与者名单

| avatar | ID | Github |
| :---: | --- | --- |
| <img src="https://avatars1.githubusercontent.com/u/19357920?s=460&v=4" style="width: 30px;"/> | FairyEver | [https://github.com/FairyEver](https://github.com/FairyEver) |
| <img src="https://avatars1.githubusercontent.com/u/24645480?s=460&v=4" style="width: 30px;"/> | sunhaoxiang | [https://github.com/sunhaoxiang](https://github.com/sunhaoxiang) |
| <img src="https://avatars2.githubusercontent.com/u/11420885?s=460&v=4" style="width: 30px;"/> | namklaw | [https://github.com/namklaw](https://github.com/namklaw) |
| <img src="https://avatars2.githubusercontent.com/u/6757507?s=460&v=4" style="width: 30px;"/> | mokeyjay | [https://github.com/mokeyjay](https://github.com/mokeyjay) |
| <img src="https://avatars2.githubusercontent.com/u/10137653?s=460&v=4" style="width: 30px;"/> | Aysnine | [https://github.com/Aysnine](https://github.com/Aysnine) |
6 changes: 6 additions & 0 deletions docs/zh/communication-group-chat/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# 交流群

| QQ 交流群 | 作者微信 |
| --- | --- |
| <img src="./image/qq.jpg" style="width: 200px;"/> | <img src="./image/we.jpg" style="width: 200px;"/> |
| QQ 群比交流比较活跃 建议加入 | 微信群大于 100 人后需要群主邀请加入 |
5 changes: 5 additions & 0 deletions docs/zh/communication-we/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# 微信公众号

这是 D2 Projects 的官方公众号,我们会不定期推送技术文章和相关项目的更新信息。

<img src="./image/[email protected]" style="width: 172px;"/>
1 change: 1 addition & 0 deletions docs/zh/communication-we/image/[email protected]
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2ef12d88b2011063784c37f8b8490336503a5f88
Loading

0 comments on commit 3ed5bbd

Please sign in to comment.