Skip to content

Commit 01a21ae

Browse files
authored
Merge pull request #133 from go-admin-team/dev
Dev
2 parents af98b3b + 190808d commit 01a21ae

File tree

24 files changed

+266
-228
lines changed

24 files changed

+266
-228
lines changed

.env.development

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,3 @@ ENV = 'development'
44
# base api
55
VUE_APP_BASE_API = 'http://127.0.0.1:8000'
66

7-
# vue-cli uses the VUE_CLI_BABEL_TRANSPILE_MODULES environment variable,
8-
# to control whether the babel-plugin-dynamic-import-node plugin is enabled.
9-
# It only does one thing by converting all import() to require().
10-
# This configuration can significantly increase the speed of hot updates,
11-
# when you have a large number of pages.
12-
# Detail: https://github.com/vuejs/vue-cli/blob/dev/packages/@vue/babel-preset-app/index.js
13-
14-
VUE_CLI_BABEL_TRANSPILE_MODULES = true

babel.config.js

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
module.exports = {
22
presets: [
3-
'@vue/app'
4-
]
3+
'@vue/cli-plugin-babel/preset'
4+
],
5+
env: {
6+
development: {
7+
plugins: ['dynamic-import-node']
8+
}
9+
}
510
}

package.json

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "go-admin",
3-
"version": "2.0.0-beta.8",
3+
"version": "2.0.0-beta.10",
44
"description": "A magical vue admin. An out-of-box UI solution for enterprise applications. Newest development stack of vue. Lots of awesome features",
55
"author": "https://github.com/wenjianzhang",
66
"license": "MIT",
@@ -50,7 +50,7 @@
5050
"awe-dnd": "^0.3.4",
5151
"axios": "0.21.1",
5252
"clipboard": "2.0.6",
53-
"codemirror": "5.56.0",
53+
"codemirror": "5.62.0",
5454
"core-js": "^3.6.5",
5555
"driver.js": "0.9.8",
5656
"dropzone": "5.7.2",
@@ -75,6 +75,7 @@
7575
"uuid": "^8.3.0",
7676
"viser-vue": "^2.4.8",
7777
"vue": "2.6.11",
78+
"vue-codemirror": "^4.0.6",
7879
"vue-count-to": "1.0.13",
7980
"vue-cropper": "^0.5.5",
8081
"vue-particles": "^1.0.9",
@@ -94,12 +95,13 @@
9495
"@vue/cli-plugin-babel": "4.4.6",
9596
"@vue/cli-plugin-eslint": "^4.4.6",
9697
"@vue/cli-plugin-unit-jest": "4.4.6",
97-
"@vue/cli-service": "4.4.6",
98+
"@vue/cli-service": "^4.5.13",
9899
"@vue/test-utils": "1.0.3",
99100
"autoprefixer": "^9.8.6",
100101
"babel-core": "7.0.0-bridge.0",
101102
"babel-eslint": "10.1.0",
102103
"babel-jest": "26.2.2",
104+
"babel-plugin-dynamic-import-node": "^2.3.3",
103105
"beautifier": "^0.1.7",
104106
"chalk": "4.1.0",
105107
"chokidar": "3.4.2",
@@ -113,9 +115,9 @@
113115
"lint-staged": "10.2.11",
114116
"mockjs": "1.1.0",
115117
"monaco-editor-webpack-plugin": "^1.9.0",
116-
"node-sass": "^4.14.1",
117118
"plop": "2.7.4",
118119
"runjs": "^4.4.2",
120+
"sass": "^1.35.1",
119121
"sass-loader": "^9.0.3",
120122
"script-ext-html-webpack-plugin": "2.1.4",
121123
"script-loader": "0.7.2",

src/components/CustomDialog/index.vue

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -66,25 +66,25 @@ export default {
6666
</script>
6767

6868
<style lang="scss" scoped>
69-
/deep/ .el-dialog__body{
69+
::v-deep .el-dialog__body{
7070
padding: 20px!important;
7171
}
7272
7373
.el-dialog{
7474
margin: 0!important;
7575
}
7676
77-
/deep/ .el-dialog__header {
77+
::v-deep .el-dialog__header {
7878
border-bottom: 1px solid #e8e8e8;
7979
}
8080
81-
/deep/ .el-dialog__footer{
81+
::v-deep .el-dialog__footer{
8282
border-top: 1px solid #e8e8e8;
8383
padding: 10px 20px!important;
8484
box-sizing: border-box;
8585
}
8686
87-
/deep/ .el-dialog__title{
87+
::v-deep .el-dialog__title{
8888
font-size: 16px;
8989
}
9090
</style>

src/components/JsonEditor/index.vue

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

src/components/Tinymce/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -212,7 +212,7 @@ export default {
212212

213213
<style lang="scss" scoped>
214214
215-
.tinymce-container /deep/{
215+
.tinymce-container ::v-deep{
216216
position: relative;
217217
line-height: normal;
218218
width: 100%;

src/components/tableAction.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -302,7 +302,7 @@ export default {
302302
</script>
303303

304304
<style lang="scss" scoped>
305-
/deep/ .el-table{
305+
::v-deep .el-table{
306306
margin-top: 10px;
307307
thead {
308308
th{

src/layout/components/TagsView/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -247,7 +247,7 @@ String.prototype.colorRgb = function() {
247247
</script>
248248

249249
<style lang="scss" scoped>
250-
.tags-view-container /deep/{
250+
.tags-view-container ::v-deep{
251251
height: 43px;
252252
width: 100%;
253253
background: #fff;

src/main.js

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ import './styles/element-variables.scss'
1010
import '@/styles/index.scss' // global css
1111
import '@/styles/admin.scss'
1212

13+
import VueCodemirror from 'vue-codemirror'
14+
import 'codemirror/lib/codemirror.css'
15+
Vue.use(VueCodemirror)
16+
1317
import App from './App'
1418
import store from './store'
1519
import router from './router'
@@ -18,7 +22,7 @@ import permission from './directive/permission'
1822
import { getDicts } from '@/api/admin/dict/data'
1923
import { getItems, setItems } from '@/api/table'
2024
import { getConfigKey } from '@/api/admin/sys-config'
21-
import { parseTime, resetForm, addDateRange, selectDictLabel, download, selectItemsLabel } from '@/utils/costum'
25+
import { parseTime, resetForm, addDateRange, selectDictLabel, /* download,*/ selectItemsLabel } from '@/utils/costum'
2226

2327
import './icons' // icon
2428
import './permission' // permission control
@@ -47,7 +51,7 @@ Vue.prototype.resetForm = resetForm
4751
Vue.prototype.addDateRange = addDateRange
4852
Vue.prototype.selectDictLabel = selectDictLabel
4953
Vue.prototype.selectItemsLabel = selectItemsLabel
50-
Vue.prototype.download = download
54+
// Vue.prototype.download = download
5155

5256
// 全局组件挂载
5357
Vue.component('Pagination', Pagination)

src/store/modules/system.js

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { getSetting, updateSetting } from '@/api/login'
1+
import { getSetting } from '@/api/login'
22
import storage from '@/utils/storage'
33
const state = {
44
info: storage.get('app_info')
@@ -22,17 +22,6 @@ const actions = {
2222
reject(error)
2323
})
2424
})
25-
},
26-
updateSetting({ commit }, info) {
27-
return new Promise((resolve, reject) => {
28-
updateSetting(info).then(response => {
29-
const { data } = response
30-
commit('SET_INFO', data)
31-
resolve(response)
32-
}).catch(error => {
33-
reject(error)
34-
})
35-
})
3625
}
3726
}
3827

src/styles/admin.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,3 +207,7 @@
207207
.el-tabs__item {
208208
font-size: 13px;
209209
}
210+
211+
.delete-popconfirm{
212+
margin-left: 10px;
213+
}

src/styles/admin.scss

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -289,4 +289,7 @@
289289
.el-drawer {
290290
overflow-y: scroll;
291291

292+
}
293+
.delete-popconfirm{
294+
margin-left: 10px;
292295
}

src/styles/variables.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
menuLightHover: #f0f1f5;
88
subMenuBg: #000c17;
99
subMenuHover: #001528;
10-
sideBarWidth: 256px;
10+
sideBarWidth: 210px;
1111
sidebarTitle: #ffffff;
1212
sidebarLightTitle: #001529;
1313
}

src/styles/variables.scss

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ $sidebarLightTitle: #001529;
2424
$subMenuBg:#000c17;
2525
$subMenuHover:#001528;
2626

27-
$sideBarWidth: 256px;
27+
$sideBarWidth: 210px;
2828

2929
// the :export directive is the magic sauce for webpack
3030
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass

src/views/admin/sys-login-log/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -280,7 +280,7 @@ export default {
280280
cancelButtonText: '取消',
281281
type: 'warning'
282282
}).then(function() {
283-
return delSysLoginlog(Ids)
283+
return delSysLoginlog({ 'ids': Ids })
284284
}).then((response) => {
285285
if (response.code === 200) {
286286
this.msgSuccess(response.msg)

src/views/admin/sys-menu/index.vue

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,6 @@
4949
</el-table-column>
5050
<el-table-column prop="sort" label="排序" width="60px" />
5151
<el-table-column prop="permission" label="权限标识" :show-overflow-tooltip="true">
52-
<!-- <template slot-scope="scope">
53-
<span v-if="scope.row.permission==''">-</span>
54-
<span v-else>{{ scope.row.permission }}</span>
55-
> -->
5652
<template slot-scope="scope">
5753
<el-popover v-if="scope.row.sysApi.length>0" trigger="hover" placement="top">
5854
<el-table

src/views/dashboard/admin/index.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -162,7 +162,7 @@ export default {
162162
}
163163
}
164164
165-
/deep/ .el-tabs__item{
165+
::v-deep .el-tabs__item{
166166
padding-left: 16px!important;
167167
height: 50px;
168168
line-height: 50px;

0 commit comments

Comments
 (0)