Skip to content

Commit

Permalink
Merge pull request #133 from go-admin-team/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
wenjianzhang authored Jul 4, 2021
2 parents af98b3b + 190808d commit 01a21ae
Show file tree
Hide file tree
Showing 24 changed files with 266 additions and 228 deletions.
8 changes: 0 additions & 8 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,3 @@ ENV = 'development'
# base api
VUE_APP_BASE_API = 'http://127.0.0.1:8000'

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

VUE_CLI_BABEL_TRANSPILE_MODULES = true
9 changes: 7 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
module.exports = {
presets: [
'@vue/app'
]
'@vue/cli-plugin-babel/preset'
],
env: {
development: {
plugins: ['dynamic-import-node']
}
}
}
10 changes: 6 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "go-admin",
"version": "2.0.0-beta.8",
"version": "2.0.0-beta.10",
"description": "A magical vue admin. An out-of-box UI solution for enterprise applications. Newest development stack of vue. Lots of awesome features",
"author": "https://github.com/wenjianzhang",
"license": "MIT",
Expand Down Expand Up @@ -50,7 +50,7 @@
"awe-dnd": "^0.3.4",
"axios": "0.21.1",
"clipboard": "2.0.6",
"codemirror": "5.56.0",
"codemirror": "5.62.0",
"core-js": "^3.6.5",
"driver.js": "0.9.8",
"dropzone": "5.7.2",
Expand All @@ -75,6 +75,7 @@
"uuid": "^8.3.0",
"viser-vue": "^2.4.8",
"vue": "2.6.11",
"vue-codemirror": "^4.0.6",
"vue-count-to": "1.0.13",
"vue-cropper": "^0.5.5",
"vue-particles": "^1.0.9",
Expand All @@ -94,12 +95,13 @@
"@vue/cli-plugin-babel": "4.4.6",
"@vue/cli-plugin-eslint": "^4.4.6",
"@vue/cli-plugin-unit-jest": "4.4.6",
"@vue/cli-service": "4.4.6",
"@vue/cli-service": "^4.5.13",
"@vue/test-utils": "1.0.3",
"autoprefixer": "^9.8.6",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "10.1.0",
"babel-jest": "26.2.2",
"babel-plugin-dynamic-import-node": "^2.3.3",
"beautifier": "^0.1.7",
"chalk": "4.1.0",
"chokidar": "3.4.2",
Expand All @@ -113,9 +115,9 @@
"lint-staged": "10.2.11",
"mockjs": "1.1.0",
"monaco-editor-webpack-plugin": "^1.9.0",
"node-sass": "^4.14.1",
"plop": "2.7.4",
"runjs": "^4.4.2",
"sass": "^1.35.1",
"sass-loader": "^9.0.3",
"script-ext-html-webpack-plugin": "2.1.4",
"script-loader": "0.7.2",
Expand Down
8 changes: 4 additions & 4 deletions src/components/CustomDialog/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,25 +66,25 @@ export default {
</script>

<style lang="scss" scoped>
/deep/ .el-dialog__body{
::v-deep .el-dialog__body{
padding: 20px!important;
}
.el-dialog{
margin: 0!important;
}
/deep/ .el-dialog__header {
::v-deep .el-dialog__header {
border-bottom: 1px solid #e8e8e8;
}
/deep/ .el-dialog__footer{
::v-deep .el-dialog__footer{
border-top: 1px solid #e8e8e8;
padding: 10px 20px!important;
box-sizing: border-box;
}
/deep/ .el-dialog__title{
::v-deep .el-dialog__title{
font-size: 16px;
}
</style>
72 changes: 0 additions & 72 deletions src/components/JsonEditor/index.vue

This file was deleted.

2 changes: 1 addition & 1 deletion src/components/Tinymce/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ export default {

<style lang="scss" scoped>
.tinymce-container /deep/{
.tinymce-container ::v-deep{
position: relative;
line-height: normal;
width: 100%;
Expand Down
2 changes: 1 addition & 1 deletion src/components/tableAction.vue
Original file line number Diff line number Diff line change
Expand Up @@ -302,7 +302,7 @@ export default {
</script>

<style lang="scss" scoped>
/deep/ .el-table{
::v-deep .el-table{
margin-top: 10px;
thead {
th{
Expand Down
2 changes: 1 addition & 1 deletion src/layout/components/TagsView/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -247,7 +247,7 @@ String.prototype.colorRgb = function() {
</script>

<style lang="scss" scoped>
.tags-view-container /deep/{
.tags-view-container ::v-deep{
height: 43px;
width: 100%;
background: #fff;
Expand Down
8 changes: 6 additions & 2 deletions src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ import './styles/element-variables.scss'
import '@/styles/index.scss' // global css
import '@/styles/admin.scss'

import VueCodemirror from 'vue-codemirror'
import 'codemirror/lib/codemirror.css'
Vue.use(VueCodemirror)

import App from './App'
import store from './store'
import router from './router'
Expand All @@ -18,7 +22,7 @@ import permission from './directive/permission'
import { getDicts } from '@/api/admin/dict/data'
import { getItems, setItems } from '@/api/table'
import { getConfigKey } from '@/api/admin/sys-config'
import { parseTime, resetForm, addDateRange, selectDictLabel, download, selectItemsLabel } from '@/utils/costum'
import { parseTime, resetForm, addDateRange, selectDictLabel, /* download,*/ selectItemsLabel } from '@/utils/costum'

import './icons' // icon
import './permission' // permission control
Expand Down Expand Up @@ -47,7 +51,7 @@ Vue.prototype.resetForm = resetForm
Vue.prototype.addDateRange = addDateRange
Vue.prototype.selectDictLabel = selectDictLabel
Vue.prototype.selectItemsLabel = selectItemsLabel
Vue.prototype.download = download
// Vue.prototype.download = download

// 全局组件挂载
Vue.component('Pagination', Pagination)
Expand Down
13 changes: 1 addition & 12 deletions src/store/modules/system.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { getSetting, updateSetting } from '@/api/login'
import { getSetting } from '@/api/login'
import storage from '@/utils/storage'
const state = {
info: storage.get('app_info')
Expand All @@ -22,17 +22,6 @@ const actions = {
reject(error)
})
})
},
updateSetting({ commit }, info) {
return new Promise((resolve, reject) => {
updateSetting(info).then(response => {
const { data } = response
commit('SET_INFO', data)
resolve(response)
}).catch(error => {
reject(error)
})
})
}
}

Expand Down
4 changes: 4 additions & 0 deletions src/styles/admin.css
Original file line number Diff line number Diff line change
Expand Up @@ -207,3 +207,7 @@
.el-tabs__item {
font-size: 13px;
}

.delete-popconfirm{
margin-left: 10px;
}
3 changes: 3 additions & 0 deletions src/styles/admin.scss
Original file line number Diff line number Diff line change
Expand Up @@ -289,4 +289,7 @@
.el-drawer {
overflow-y: scroll;

}
.delete-popconfirm{
margin-left: 10px;
}
2 changes: 1 addition & 1 deletion src/styles/variables.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
menuLightHover: #f0f1f5;
subMenuBg: #000c17;
subMenuHover: #001528;
sideBarWidth: 256px;
sideBarWidth: 210px;
sidebarTitle: #ffffff;
sidebarLightTitle: #001529;
}
2 changes: 1 addition & 1 deletion src/styles/variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ $sidebarLightTitle: #001529;
$subMenuBg:#000c17;
$subMenuHover:#001528;

$sideBarWidth: 256px;
$sideBarWidth: 210px;

// the :export directive is the magic sauce for webpack
// https://www.bluematador.com/blog/how-to-share-variables-between-js-and-sass
Expand Down
2 changes: 1 addition & 1 deletion src/views/admin/sys-login-log/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ export default {
cancelButtonText: '取消',
type: 'warning'
}).then(function() {
return delSysLoginlog(Ids)
return delSysLoginlog({ 'ids': Ids })
}).then((response) => {
if (response.code === 200) {
this.msgSuccess(response.msg)
Expand Down
4 changes: 0 additions & 4 deletions src/views/admin/sys-menu/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,6 @@
</el-table-column>
<el-table-column prop="sort" label="排序" width="60px" />
<el-table-column prop="permission" label="权限标识" :show-overflow-tooltip="true">
<!-- <template slot-scope="scope">
<span v-if="scope.row.permission==''">-</span>
<span v-else>{{ scope.row.permission }}</span>
> -->
<template slot-scope="scope">
<el-popover v-if="scope.row.sysApi.length>0" trigger="hover" placement="top">
<el-table
Expand Down
2 changes: 1 addition & 1 deletion src/views/dashboard/admin/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ export default {
}
}
/deep/ .el-tabs__item{
::v-deep .el-tabs__item{
padding-left: 16px!important;
height: 50px;
line-height: 50px;
Expand Down
Loading

0 comments on commit 01a21ae

Please sign in to comment.