update build
This commit is contained in:
parent
dd8d79676b
commit
8135ef326c
|
|
@ -16,13 +16,7 @@
|
|||
<img src="https://img.shields.io/github/stars/d2-projects/d2-admin.svg"/>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://app.netlify.com/sites/d2-admin/deploys">
|
||||
<img src="https://api.netlify.com/api/v1/badges/a5dd4bbd-da3f-4145-98a9-8012577bdcf5/deploy-status"/>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
D2Admin is a fully open source and free enterprise back-end product front-end integration solution, using the latest front-end technology stack, has prepared most of the project preparations, and with a lot of sample code to help the management system agile development.
|
||||
D2Admin is a fully open source and free enterprise back-end product front-end integration solution, using the latest front-end technology stack, javascript files loading of local first screen less than 60kb, has prepared most of the project preparations, and with a lot of sample code to help the management system agile development.
|
||||
|
||||
[中文介绍](https://github.com/d2-projects/d2-admin/blob/master/README.zh.md) | **English**
|
||||
|
||||
|
|
|
|||
|
|
@ -16,13 +16,7 @@
|
|||
<img src="https://img.shields.io/github/stars/d2-projects/d2-admin.svg"/>
|
||||
</p>
|
||||
|
||||
<p align="center">
|
||||
<a href="https://app.netlify.com/sites/d2-admin/deploys">
|
||||
<img src="https://api.netlify.com/api/v1/badges/a5dd4bbd-da3f-4145-98a9-8012577bdcf5/deploy-status"/>
|
||||
</a>
|
||||
</p>
|
||||
|
||||
[D2Admin](https://github.com/d2-projects/d2-admin) 是一个完全 **开源免费** 的企业中后台产品前端集成方案,使用最新的前端技术栈,已经做好大部分项目前期准备工作,并且带有大量示例代码,助力管理系统敏捷开发。
|
||||
[D2Admin](https://github.com/d2-projects/d2-admin) 是一个完全 **开源免费** 的企业中后台产品前端集成方案,使用最新的前端技术栈,小于 60kb 的本地首屏 js 加载,已经做好大部分项目前期准备工作,并且带有大量示例代码,助力管理系统敏捷开发。
|
||||
|
||||
**中文介绍** | [English](https://github.com/d2-projects/d2-admin)
|
||||
|
||||
|
|
|
|||
|
|
@ -1,92 +1,21 @@
|
|||
module.exports = [
|
||||
{
|
||||
name: 'vue',
|
||||
library: 'Vue',
|
||||
css: '',
|
||||
js: 'https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js'
|
||||
},
|
||||
{
|
||||
name: 'vue-i18n',
|
||||
library: 'VueI18n',
|
||||
css: '',
|
||||
js: 'https://cdn.jsdelivr.net/npm/vue-i18n@8.15.1/dist/vue-i18n.js'
|
||||
},
|
||||
{
|
||||
name: 'vue-router',
|
||||
library: 'VueRouter',
|
||||
css: '',
|
||||
js: 'https://cdn.jsdelivr.net/npm/vue-router@3.1.3/dist/vue-router.js'
|
||||
},
|
||||
{
|
||||
name: 'vuex',
|
||||
library: 'Vuex',
|
||||
css: '',
|
||||
js: 'https://cdn.jsdelivr.net/npm/vuex@3.1.2/dist/vuex.js'
|
||||
},
|
||||
{
|
||||
name: 'axios',
|
||||
library: 'axios',
|
||||
css: '',
|
||||
js: 'https://cdn.jsdelivr.net/npm/axios@0.19.0/dist/axios.min.js'
|
||||
},
|
||||
{
|
||||
name: 'better-scroll',
|
||||
library: 'BScroll',
|
||||
css: '',
|
||||
js: 'https://cdn.jsdelivr.net/npm/better-scroll@1.15.2/dist/bscroll.min.js'
|
||||
},
|
||||
{
|
||||
name: 'element-ui',
|
||||
library: 'ELEMENT',
|
||||
css: 'https://cdn.jsdelivr.net/npm/element-ui@2.13.0/lib/theme-chalk/index.css',
|
||||
js: 'https://cdn.jsdelivr.net/npm/element-ui@2.13.0/lib/index.js'
|
||||
},
|
||||
{
|
||||
name: 'mockjs',
|
||||
library: 'Mock',
|
||||
css: '',
|
||||
js: 'https://cdn.jsdelivr.net/npm/mockjs@1.1.0/dist/mock.min.js'
|
||||
},
|
||||
{
|
||||
name: 'lodash',
|
||||
library: '_',
|
||||
css: '',
|
||||
js: 'https://cdn.jsdelivr.net/npm/lodash@4.17.15/lodash.min.js'
|
||||
},
|
||||
{
|
||||
name: 'ua-parser-js',
|
||||
library: 'UAParser',
|
||||
css: '',
|
||||
js: 'https://cdn.jsdelivr.net/npm/ua-parser-js@0.7.20/dist/ua-parser.min.js'
|
||||
},
|
||||
{
|
||||
name: 'js-cookie',
|
||||
library: 'Cookies',
|
||||
css: '',
|
||||
js: 'https://cdn.jsdelivr.net/npm/js-cookie@2.2.1/src/js.cookie.min.js'
|
||||
},
|
||||
{
|
||||
name: 'nprogress',
|
||||
library: 'NProgress',
|
||||
css: 'https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.css',
|
||||
js: 'https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.js'
|
||||
},
|
||||
{
|
||||
name: 'dayjs',
|
||||
library: 'dayjs',
|
||||
css: '',
|
||||
js: 'https://cdn.jsdelivr.net/npm/dayjs@1.8.17/dayjs.min.js'
|
||||
},
|
||||
{
|
||||
name: 'fuse.js',
|
||||
library: 'Fuse',
|
||||
css: '',
|
||||
js: 'https://cdn.jsdelivr.net/npm/fuse.js@3.4.6/dist/fuse.min.js'
|
||||
},
|
||||
{
|
||||
name: 'hotkeys-js',
|
||||
library: 'hotkeys',
|
||||
css: '',
|
||||
js: 'https://cdn.jsdelivr.net/npm/hotkeys-js@3.7.3/dist/hotkeys.js'
|
||||
}
|
||||
{ name: 'vue', library: 'Vue', js: 'https://cdn.jsdelivr.net/npm/vue@2.6.10/dist/vue.js', css: '' },
|
||||
{ name: 'vue-i18n', library: 'VueI18n', js: 'https://cdn.jsdelivr.net/npm/vue-i18n@8.15.1/dist/vue-i18n.js', css: '' },
|
||||
{ name: 'vue-router', library: 'VueRouter', js: 'https://cdn.jsdelivr.net/npm/vue-router@3.1.3/dist/vue-router.js', css: '' },
|
||||
{ name: 'vuex', library: 'Vuex', js: 'https://cdn.jsdelivr.net/npm/vuex@3.1.2/dist/vuex.js', css: '' },
|
||||
{ name: 'axios', library: 'axios', js: 'https://cdn.jsdelivr.net/npm/axios@0.19.0/dist/axios.min.js', css: '' },
|
||||
{ name: 'better-scroll', library: 'BScroll', js: 'https://cdn.jsdelivr.net/npm/better-scroll@1.15.2/dist/bscroll.min.js', css: '' },
|
||||
{ name: 'element-ui', library: 'ELEMENT', js: 'https://cdn.jsdelivr.net/npm/element-ui@2.13.0/lib/index.js', css: 'https://cdn.jsdelivr.net/npm/element-ui@2.13.0/lib/theme-chalk/index.css' },
|
||||
{ name: 'mockjs', library: 'Mock', js: 'https://cdn.jsdelivr.net/npm/mockjs@1.1.0/dist/mock.min.js', css: '' },
|
||||
{ name: 'lodash', library: '_', js: 'https://cdn.jsdelivr.net/npm/lodash@4.17.15/lodash.min.js', css: '' },
|
||||
{ name: 'ua-parser-js', library: 'UAParser', js: 'https://cdn.jsdelivr.net/npm/ua-parser-js@0.7.20/dist/ua-parser.min.js', css: '' },
|
||||
{ name: 'js-cookie', library: 'Cookies', js: 'https://cdn.jsdelivr.net/npm/js-cookie@2.2.1/src/js.cookie.min.js', css: '' },
|
||||
{ name: 'nprogress', library: 'NProgress', js: 'https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.min.js', css: 'https://cdn.jsdelivr.net/npm/nprogress@0.2.0/nprogress.css' },
|
||||
{ name: 'dayjs', library: 'dayjs', js: 'https://cdn.jsdelivr.net/npm/dayjs@1.8.17/dayjs.min.js', css: '' },
|
||||
{ name: 'fuse.js', library: 'Fuse', js: 'https://cdn.jsdelivr.net/npm/fuse.js@3.4.6/dist/fuse.min.js', css: '' },
|
||||
{ name: 'hotkeys-js', library: 'hotkeys', js: 'https://cdn.jsdelivr.net/npm/hotkeys-js@3.7.3/dist/hotkeys.js', css: '' },
|
||||
{ name: 'qs', library: 'Qs', js: 'https://cdn.jsdelivr.net/npm/qs@6.9.1/dist/qs.js', css: '' },
|
||||
{ name: 'lowdb', library: 'low', js: 'https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/low.min.js', css: '' },
|
||||
{ name: 'lowdb/adapters/LocalStorage', library: 'LocalStorage', js: 'https://cdn.jsdelivr.net/npm/lowdb@1.0.0/dist/LocalStorage.min.js', css: '' },
|
||||
{ name: 'screenfull', library: 'screenfull', js: 'https://cdn.jsdelivr.net/npm/screenfull@5.0.0/dist/screenfull.min.js', css: '' }
|
||||
]
|
||||
|
|
|
|||
|
|
@ -37,7 +37,7 @@
|
|||
"nprogress": "^0.2.0",
|
||||
"qs": "^6.7.0",
|
||||
"quill": "^1.3.6",
|
||||
"screenfull": "^4.2.0",
|
||||
"screenfull": "^5.0.0",
|
||||
"simplemde": "^1.11.2",
|
||||
"ua-parser-js": "^0.7.20",
|
||||
"v-charts": "^1.19.0",
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@
|
|||
<script>
|
||||
import Vue from 'vue'
|
||||
import vueJsonTreeView from 'vue-json-tree-view'
|
||||
Vue.use(vueJsonTreeView)
|
||||
import packJson from '../../../../../package.json'
|
||||
Vue.use(vueJsonTreeView)
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -25,9 +25,8 @@
|
|||
<script>
|
||||
import Vue from 'vue'
|
||||
import pluginExport from '@d2-projects/vue-table-export'
|
||||
Vue.use(pluginExport)
|
||||
// 假数据
|
||||
import table from './data'
|
||||
Vue.use(pluginExport)
|
||||
export default {
|
||||
data () {
|
||||
return {
|
||||
|
|
|
|||
|
|
@ -4,6 +4,8 @@
|
|||
<a><img src="https://img.shields.io/github/release/d2-projects/d2-admin.svg"/></a>
|
||||
<a><img src="https://img.shields.io/github/forks/d2-projects/d2-admin.svg"/></a>
|
||||
<a><img src="https://img.shields.io/github/stars/d2-projects/d2-admin.svg"/></a>
|
||||
</p>
|
||||
<p align="center">
|
||||
<a><img src="https://img.shields.io/github/issues/d2-projects/d2-admin.svg"/></a>
|
||||
<a><img src="https://img.shields.io/github/issues-closed/d2-projects/d2-admin.svg"/></a>
|
||||
<a><img src="https://img.shields.io/github/issues-pr/d2-projects/d2-admin.svg"/></a>
|
||||
|
|
@ -12,7 +14,6 @@
|
|||
<p align="center">
|
||||
<a><img src="https://img.shields.io/github/last-commit/d2-projects/d2-admin.svg"/></a>
|
||||
<a><img src="https://img.shields.io/badge/code_style-standard-brightgreen.svg"/></a>
|
||||
<a><img src="https://api.netlify.com/api/v1/badges/a5dd4bbd-da3f-4145-98a9-8012577bdcf5/deploy-status"/></a>
|
||||
</p>
|
||||
</div>
|
||||
</template>
|
||||
|
|
|
|||
|
|
@ -4,21 +4,10 @@
|
|||
<d2-icon-svg class="logo" name="d2-admin"/>
|
||||
<template slot="footer">
|
||||
<div class="btn-group">
|
||||
<span class="btn-group__btn" @click="$open('https://github.com/d2-projects')">
|
||||
开源组织
|
||||
</span> |
|
||||
<span class="btn-group__btn" @click="$open('https://fairyever.com/d2-admin/doc/zh/')">
|
||||
文档
|
||||
</span> |
|
||||
<span class="btn-group__btn" @click="$open('https://github.com/d2-projects/d2-admin-start-kit')">
|
||||
简化版
|
||||
</span> |
|
||||
<span class="btn-group__btn" @click="$open('https://juejin.im/user/57a48b632e958a006691b946/posts')">
|
||||
掘金
|
||||
</span> |
|
||||
<span class="btn-group__btn" @click="$open('https://daily.fairyever.com')">
|
||||
日报
|
||||
</span> |
|
||||
<span class="btn-group__btn" @click="$open('https://github.com/d2-projects')">开源组织</span> |
|
||||
<span class="btn-group__btn" @click="$open('https://fairyever.com/d2-admin/doc/zh/')">文档</span> |
|
||||
<span class="btn-group__btn" @click="$open('https://github.com/d2-projects/d2-admin-start-kit')">简化版</span> |
|
||||
<span class="btn-group__btn" @click="$open('https://juejin.im/user/57a48b632e958a006691b946/posts')">掘金</span> |
|
||||
<el-popover :width="172" trigger="hover">
|
||||
<p class="d2-mt-0 d2-mb-10">今日前端</p>
|
||||
<img src="./image/qr@2x.png" style="width: 172px;">
|
||||
|
|
|
|||
|
|
@ -1,5 +1,4 @@
|
|||
const CompressionWebpackPlugin = require('compression-webpack-plugin')
|
||||
const productionGzipExtensions = ['js', 'css']
|
||||
const VueFilenameInjector = require('@d2-projects/vue-filename-injector')
|
||||
const ThemeColorReplacer = require('webpack-theme-color-replacer')
|
||||
const forElementUI = require('webpack-theme-color-replacer/forElementUI')
|
||||
|
|
@ -47,7 +46,7 @@ module.exports = {
|
|||
// gzip
|
||||
new CompressionWebpackPlugin({
|
||||
filename: '[path].gz[query]',
|
||||
test: new RegExp('\\.(' + productionGzipExtensions.join('|') + ')$'),
|
||||
test: new RegExp('\\.(' + ['js', 'css'].join('|') + ')$'),
|
||||
threshold: 10240,
|
||||
minRatio: 0.8,
|
||||
deleteOriginalAssets: false
|
||||
|
|
@ -98,9 +97,8 @@ module.exports = {
|
|||
changeSelector: forElementUI.changeSelector
|
||||
}])
|
||||
config
|
||||
// 开发环境
|
||||
// 开发环境 sourcemap 不包含列信息
|
||||
.when(process.env.NODE_ENV === 'development',
|
||||
// sourcemap不包含列信息
|
||||
config => config.devtool('cheap-source-map')
|
||||
)
|
||||
// 预览环境构建 vue-loader 添加 filename
|
||||
|
|
|
|||
Loading…
Reference in New Issue