Skip to content
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
Show all changes
143 commits
Select commit Hold shift + click to select a range
00a19db
chore: remove i18n (#1828)
PanJiaChen May 5, 2019
4dcd4fb
[release] 4.1.0
PanJiaChen May 5, 2019
7e8a6a4
perf[Profile]: adapt the profile page to the mobile (#2020)
PanJiaChen May 7, 2019
2364fec
Revert "perf: optimize page scrolling when setting fixedHeader"
PanJiaChen May 8, 2019
013f4fd
perf[Style]: refine fixed-header style when open el-dialog
PanJiaChen May 8, 2019
0bf339b
doc: add new article
PanJiaChen May 9, 2019
4ef0782
chore: use mockjs in production environment
PanJiaChen May 10, 2019
0b8baeb
fix[sidebar.css]: remove redundant css
PanJiaChen May 10, 2019
7b0d527
perf[style]: refine dashboard style in mobile (#2060)
PanJiaChen May 10, 2019
3a45434
feat[ErrorLog]: add a clear button in ErrorLog component (#2065)
marxangels May 12, 2019
27df997
fix[redirect]: fix redirect bug in vue-devtools (#2066)
PanJiaChen May 12, 2019
2096ae1
perf[Tinymce]: update tinymce cdn version
PanJiaChen May 13, 2019
45edf7b
fix[redirect]: fix redirect bug in vue-devtool again
PanJiaChen May 13, 2019
dbfcc9d
docs: add support to readme for Spanish (#2070)
May 14, 2019
a0b2014
docs[es]: add some translation(#2080)
yamelsenih May 15, 2019
36060d5
perf[Exapme]: set page title according to article id
PanJiaChen May 17, 2019
4f620c4
perf[RightPanel]: tidy css (#2101)
Liugq5713 May 17, 2019
be3dfac
feat[SvgIcon]: support import svg from url (#2052)
PanJiaChen May 20, 2019
1e598e9
fix: fixed change roles bug (#2072)
PanJiaChen May 20, 2019
40431fd
perf[Breadcrumb]: do not update breadcrumbs when go to redirect page …
PanJiaChen May 20, 2019
d0fcbba
perf[store]: add support to sub-modules (#2047)
May 20, 2019
cd30d25
perf[Login]: support other query (#2013)
PanJiaChen May 20, 2019
131b9b9
refactor[chore]: generate postcss.config.js instead of .postcssrc.js
PanJiaChen May 20, 2019
6770963
perf[Tinymce]: dynamic import tinymce(#2102)
PanJiaChen May 21, 2019
2f5c2ee
[release] 4.2.0
PanJiaChen May 21, 2019
8ce250a
perf[Style]: refine example css
PanJiaChen May 23, 2019
13c1ecf
fix[Chart]: fixed chart bug in keep-alive (#2119)
PanJiaChen May 23, 2019
ab1922e
Create FUNDING.yml
PanJiaChen May 24, 2019
6a322c9
chore: set localhost => 127.0.0.1 (#2142)
PanJiaChen May 26, 2019
2584dcc
update github ISSUE_TEMPLATE
PanJiaChen May 27, 2019
5b943d7
chore: add autoprefixer to devDependencies
bpzhang May 27, 2019
e28701c
perf[Tinymce]: add language option (#2159)
PanJiaChen May 27, 2019
f891202
fix[Tinymce]: fixed bug when init multiple tinymces at the same time …
PanJiaChen May 27, 2019
e8837d1
feat: add tab url demo (#2114)
PanJiaChen May 27, 2019
ac8c12c
perf[request.js]: refine error reject (#2160)
reuwi May 27, 2019
054ed40
[release] 4.2.1
PanJiaChen May 27, 2019
9538d1b
perf: default not set withCredentials
PanJiaChen May 28, 2019
a0793db
fix[ImageCropper]: removeEventListener when destroyed(#2169)
mayunhai May 28, 2019
8e9f2e1
docs: fix typo (#2170)
jessynt May 28, 2019
4bd8f7f
fix: input attribute autocomplete error (#2191)
mgbq Jun 2, 2019
d3a2b6b
perf[PanThumb]: Replace the image tag with background-image to preven…
mayunhai Jun 6, 2019
35adfce
docs: fix typo README.zh-CN.md (#2283)
TinaryTree Jun 27, 2019
ef167ff
perf[clipboard.js]: remove redundant code (#2307)
mayunhai Jun 30, 2019
018c20a
bump: update axios for security vulnerability
PanJiaChen Jun 30, 2019
1909018
bump: update @vue/cli-plugin-eslint version (#2327)
itsccn Jul 4, 2019
c8039a5
chore: allow dynamic set port
PanJiaChen Jul 4, 2019
46cc375
fix[complex-table]: form header sort icon is out of sync (#2382)
cnwhy Jul 16, 2019
12c8d85
fix: fixed missing icons
PanJiaChen Aug 27, 2019
ee287d8
fix: typos (#2532)
lmislm Aug 29, 2019
c7c815e
docs: add awesome-project
PanJiaChen Sep 22, 2019
1336b92
fix[Dashboard]: fixed debounce bug (#2586) (#2597)
mayunhai Sep 26, 2019
4d2d52e
perf: VS Code support webpack alias file jump (#2609)
JosephMing Sep 27, 2019
3a08b6e
perf: optimize import file-saver way(#2347)
reuwi Sep 30, 2019
0e9ce78
refactor[ImageCropper]: fix lint error (#2365)
mayunhai Sep 30, 2019
8235011
fix: fixed numberFormatter bug
PanJiaChen Sep 30, 2019
e3cbf4a
fix[example]: fixed create.vue cache error
PanJiaChen Sep 30, 2019
9c723c6
perf[utils.js]: perf parseTime function (#2625)
monkeycf Oct 8, 2019
0343988
perf[tagsView]: pref DEL_CACHED_VIEW and DEL_OTHERS_CACHED_VIEWS func…
monkeycf Oct 8, 2019
f266713
fix[tagsView]: fixed DEL_OTHERS_CACHED_VIEWS bug
PanJiaChen Oct 8, 2019
b4cdf52
fix[logout]: empty tagsview when logout (#2632)
PanJiaChen Oct 8, 2019
197948d
fix[TagsView]: fixed toLastView bug (#2634)
PanJiaChen Oct 8, 2019
12b44f5
perf[SvgIcon]: change xlink:href to href(#2645)
mayunhai Oct 10, 2019
b51590b
fix[TagsView]: fixed click.middle can close affixed tag bug (#2649)
PanJiaChen Oct 11, 2019
5273e02
docs: add job ad
PanJiaChen Oct 12, 2019
6a214f0
docs: improved README.md (#2656)
BradyBromley Oct 14, 2019
6739ab5
style: fix el-date-picker css style
PanJiaChen Oct 25, 2019
6a194d1
perf: format dropdown menu code (#2720)
Nov 5, 2019
a4fa119
perf: format inline edit table (#2725)
Nov 7, 2019
b2dd7ca
perf: format drag table (#2733)
Nov 8, 2019
b11acb2
perf: complex table (#2732)
Nov 8, 2019
d5c013a
perf: text i18n (#2739)
Nov 11, 2019
44203f8
update 'MarkdownEditor' components name
bbigcd Nov 12, 2019
683f68b
format: space in user card (#2744)
Nov 12, 2019
25dddbb
update 'MarkdownEditor' components name (#2743)
PanJiaChen Nov 12, 2019
53803d0
perf: format pdf download (#2791)
Nov 27, 2019
e1554fd
perf[views/icons]: use grid (#2803)
MikuBlog Dec 1, 2019
65d8c45
feat: plop new generate store (#2805)
monkeycf Dec 4, 2019
594fc58
fix[icons]:fixed eslint 1 error and 2 warnings (#2835)
flitrue Dec 12, 2019
262c0ba
perf[documentation]: refine css
PanJiaChen Dec 15, 2019
4f563a7
fix[Logout]: click blank area of ​​dropDown able to logout (#2896)
wangshantao Dec 31, 2019
a0b39d5
perf: import mockXHR only in production (#2910)
MillerRen Jan 6, 2020
fd5a2e8
perf[Menu]: remove unused menu-wrapper (#2903)
Jan 6, 2020
55b1bba
perf[complex-table]:refine code (#2825)
AndyLZC Jan 7, 2020
088f64e
perf: optimize checkCapslock method (#2635)
shangTou Jan 8, 2020
fbad7f4
fix[Charts]: fix charts resize in keep-alive bug (#2922)
PanJiaChen Jan 9, 2020
c9affcf
fix: fixed mock server (#2929)
PanJiaChen Jan 9, 2020
b57f200
bump: update element-ui version
PanJiaChen Jan 9, 2020
d634e2a
fix: fixed require mock bug in production
PanJiaChen Jan 9, 2020
6850312
fix: fixed redirect path regex (#2933)
lainlee Jan 11, 2020
d6816c5
perf[Mock]: set responseFake to mock-server.js(#2966)
roblues Feb 2, 2020
fec25fe
docs: improve Japanese translation (#2970)
artn Feb 5, 2020
a45e64f
perf: change script-loader to dependencies
PanJiaChen Feb 12, 2020
c2a5a15
fix[profile/UserCard]: fixed wrong key name (#3056)
echofly Mar 18, 2020
776f10e
fix:fixed parseTime bug in ie and safari(#3066)
aisen60 Mar 20, 2020
9e0435a
perf: format component names as PascalCase (#3074)
echofly Mar 24, 2020
993a6c7
docs: add smallsticker
PanJiaChen Mar 27, 2020
f7a9d21
Update README.zh-CN.md
PanJiaChen Mar 27, 2020
6eccffe
fix: svg support old broswer (#3085)
PanJiaChen Mar 28, 2020
9d8c7ed
fixed typo (#3091)
sabatale Apr 4, 2020
d440546
fix: use vue-cli default source-map (#3097)
PanJiaChen Apr 22, 2020
1b8f726
perf[Tinymce]: editor try to keep these URLs intact (#3141)
aisen60 Apr 28, 2020
9580c43
fix[element-variables]: missing space in element-variables (#3144)
ntnyq Apr 28, 2020
fc26c31
fix: compatibility with vetur (#1700)
PanJiaChen May 4, 2020
a2784dd
perf: change default element-ui language to english (#2741)
May 4, 2020
6dacb78
feat: add option to try project on CodeSandbox (#2976)
garethx May 4, 2020
e692876
docs: add tips
PanJiaChen May 5, 2020
29b4ff6
perf: when tags-view scroll close the right-menu
dongxiaosun May 5, 2020
5890499
fix[parseTime]: fixed when pass null (#3038)
c-f-cooper May 5, 2020
6f80263
fix[css]: min btn width (#3164)
giscafer May 8, 2020
0ae5079
docs: Improve read me files and changes in Spanish. (#3234)
Jun 5, 2020
f1feb2a
[release] 4.2.2
PanJiaChen Jun 8, 2020
534cd5b
chore: change node-sass to dart-sass (#3040)
Cat7373 Jun 8, 2020
c5abe75
perf: change >>> ::v-deep
PanJiaChen Jun 8, 2020
f14805d
[release] 4.3.0
PanJiaChen Jun 8, 2020
2ef4949
docs: fix wrong link
PanJiaChen Jun 9, 2020
0bf61aa
chore: turn on the preload
PanJiaChen Jun 10, 2020
d3bd933
refactor: change mock files to commonjs (#3246)
PanJiaChen Jun 11, 2020
fc68f56
feat[Menu]: menu icon support el-icon(#3048)
Cat7373 Jun 11, 2020
a50180f
fix[utils]: param2Obj bug when url params includes ==(#3100)
mayunhai Jun 11, 2020
7702b3d
perf: remove unused showdown
Silentdoer Jun 11, 2020
a87218e
perf: lint code
PanJiaChen Jun 11, 2020
4e7665c
fix[v-permission]: support dynamic set roles (#3251)
PanJiaChen Jun 11, 2020
1c94350
chore: update element-ui to 2.13.2
PanJiaChen Jun 12, 2020
6d88db5
fix[plop]: set trim => trim() (#3254)
qige2016 Jun 15, 2020
435db38
fix some typos
PanJiaChen Jun 15, 2020
f6d8204
[release] 4.3.1
PanJiaChen Jun 18, 2020
ae2aa61
bump: update to vue-cli@4 (#3028)
dihak Jun 21, 2020
5853912
[release] 4.4.0
PanJiaChen Jun 21, 2020
73a9ab0
fix[chore]: do not preload runtime.js (#3279)
PanJiaChen Jun 23, 2020
7c06214
perf[chore]: remove preserveWhitespace config (#3280)
PanJiaChen Jun 24, 2020
fe22b3c
perf[Tinymce]: remove useless code (#3295)
crayymumu Jul 1, 2020
ea60478
perf[permission.js]: remove useless code (#3301)
dyzsoft Jul 5, 2020
46e11ca
typo: replace Css with CSS (#3323)
kerolloz Jul 20, 2020
5e71139
docs: add GitAds
PanJiaChen Jul 27, 2020
8fd08c9
docs: remove gitads
PanJiaChen Aug 30, 2020
44e23d0
docs: add vue-java-admin-dashboard-spring
PanJiaChen Sep 7, 2020
9cc3fa7
perf: refine documentation button css
PanJiaChen Sep 7, 2020
1bc2e5c
docs: add coupon
PanJiaChen Sep 8, 2020
33a93a1
feat: add new sponsored
PanJiaChen Dec 4, 2020
583c851
Merge remote-tracking branch 'PanjiaCen/master'
Feb 7, 2021
38df6a5
update dependencies.
Feb 7, 2021
2874b15
fix: chart components, TODO: eslint-plugin-vue.
Feb 7, 2021
d268f91
Update FUNDING.yml
EdwinBetanc0urt Feb 23, 2021
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
bump: update to vue-cli@4 (PanJiaChen#3028)
  • Loading branch information
dihak authored Jun 21, 2020
commit ae2aa61880ff2bb1edde0059d87eddebdba18f3c
9 changes: 0 additions & 9 deletions .env.development
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,3 @@ ENV = 'development'

# base api
VUE_APP_BASE_API = '/dev-api'

# 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
13 changes: 11 additions & 2 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,14 @@
module.exports = {
presets: [
'@vue/app'
]
// https://github.com/vuejs/vue-cli/tree/master/packages/@vue/babel-preset-app
'@vue/cli-plugin-babel/preset'
],
'env': {
'development': {
// babel-plugin-dynamic-import-node plugin only does one thing by converting all import() to require().
// This plugin can significantly increase the speed of hot updates, when you have a large number of pages.
// https://panjiachen.github.io/vue-element-admin-site/guide/advanced/lazy-loading.html
'plugins': ['dynamic-import-node']
}
}
}
99 changes: 50 additions & 49 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,49 +3,22 @@
"version": "4.3.1",
"description": "A magical vue admin. An out-of-box UI solution for enterprise applications. Newest development stack of vue. Lots of awesome features",
"author": "Pan <[email protected]>",
"license": "MIT",
"scripts": {
"dev": "vue-cli-service serve",
"lint": "eslint --ext .js,.vue src",
"build:prod": "vue-cli-service build",
"build:stage": "vue-cli-service build --mode staging",
"preview": "node build/index.js --preview",
"lint": "eslint --ext .js,.vue src",
"test:unit": "jest --clearCache && vue-cli-service test:unit",
"test:ci": "npm run lint && npm run test:unit",
"new": "plop",
"svgo": "svgo -f src/icons/svg --config=src/icons/svgo.yml",
"new": "plop"
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"lint-staged": {
"src/**/*.{js,vue}": [
"eslint --fix",
"git add"
]
},
"keywords": [
"vue",
"admin",
"dashboard",
"element-ui",
"boilerplate",
"admin-template",
"management-system"
],
"repository": {
"type": "git",
"url": "git+https://github.com/PanJiaChen/vue-element-admin.git"
},
"bugs": {
"url": "https://github.com/PanJiaChen/vue-element-admin/issues"
"test:unit": "jest --clearCache && vue-cli-service test:unit",
"test:ci": "npm run lint && npm run test:unit"
},
"dependencies": {
"axios": "0.18.1",
"clipboard": "2.0.4",
"codemirror": "5.45.0",
"core-js": "3.6.5",
"driver.js": "0.9.5",
"dropzone": "5.5.1",
"echarts": "4.2.1",
Expand All @@ -71,40 +44,68 @@
"xlsx": "0.14.1"
},
"devDependencies": {
"@vue/cli-plugin-babel": "3.5.3",
"@vue/cli-plugin-eslint": "^3.9.1",
"@vue/cli-plugin-unit-jest": "3.5.3",
"@vue/cli-service": "3.5.3",
"@vue/cli-plugin-babel": "4.4.4",
"@vue/cli-plugin-eslint": "4.4.4",
"@vue/cli-plugin-unit-jest": "4.4.4",
"@vue/cli-service": "4.4.4",
"@vue/test-utils": "1.0.0-beta.29",
"autoprefixer": "^9.5.1",
"babel-core": "7.0.0-bridge.0",
"babel-eslint": "10.0.1",
"autoprefixer": "9.5.1",
"babel-eslint": "10.1.0",
"babel-jest": "23.6.0",
"babel-plugin-dynamic-import-node": "2.3.3",
"chalk": "2.4.2",
"chokidar": "2.1.5",
"connect": "3.6.6",
"eslint": "5.15.3",
"eslint-plugin-vue": "5.2.2",
"eslint": "6.7.2",
"eslint-plugin-vue": "6.2.2",
"html-webpack-plugin": "3.2.0",
"husky": "1.3.1",
"lint-staged": "8.1.5",
"mockjs": "1.0.1-beta3",
"plop": "2.3.0",
"runjs": "^4.3.2",
"sass": "^1.26.2",
"sass-loader": "^7.1.0",
"runjs": "4.3.2",
"sass": "1.26.2",
"sass-loader": "8.0.2",
"script-ext-html-webpack-plugin": "2.1.3",
"serve-static": "^1.13.2",
"serve-static": "1.13.2",
"svg-sprite-loader": "4.1.3",
"svgo": "1.2.0",
"vue-template-compiler": "2.6.10"
},
"browserslist": [
"> 1%",
"last 2 versions"
],
"bugs": {
"url": "https://github.com/PanJiaChen/vue-element-admin/issues"
},
"engines": {
"node": ">=8.9",
"npm": ">= 3.0.0"
},
"browserslist": [
"> 1%",
"last 2 versions"
]
"keywords": [
"vue",
"admin",
"dashboard",
"element-ui",
"boilerplate",
"admin-template",
"management-system"
],
"license": "MIT",
"lint-staged": {
"src/**/*.{js,vue}": [
"eslint --fix",
"git add"
]
},
"husky": {
"hooks": {
"pre-commit": "lint-staged"
}
},
"repository": {
"type": "git",
"url": "git+https://github.com/PanJiaChen/vue-element-admin.git"
}
}
1 change: 1 addition & 0 deletions src/components/ImageCropper/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -248,6 +248,7 @@ export default {
// 浏览器是否支持该控件
isSupported,
// 浏览器是否支持触屏事件
// eslint-disable-next-line no-prototype-builtins
isSupportTouch: document.hasOwnProperty('ontouchstart'),
// 步骤
step: 1, // 1选择文件 2剪裁 3上传
Expand Down
1 change: 1 addition & 0 deletions src/store/modules/settings.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ const state = {

const mutations = {
CHANGE_SETTING: (state, { key, value }) => {
// eslint-disable-next-line no-prototype-builtins
if (state.hasOwnProperty(key)) {
state[key] = value
}
Expand Down
29 changes: 12 additions & 17 deletions src/store/modules/user.js
Original file line number Diff line number Diff line change
Expand Up @@ -103,28 +103,23 @@ const actions = {
},

// dynamically modify permissions
changeRoles({ commit, dispatch }, role) {
return new Promise(async resolve => {
const token = role + '-token'
async changeRoles({ commit, dispatch }, role) {
const token = role + '-token'

commit('SET_TOKEN', token)
setToken(token)
commit('SET_TOKEN', token)
setToken(token)

const { roles } = await dispatch('getInfo')
const { roles } = await dispatch('getInfo')

resetRouter()
resetRouter()

// generate accessible routes map based on roles
const accessRoutes = await dispatch('permission/generateRoutes', roles, { root: true })
// generate accessible routes map based on roles
const accessRoutes = await dispatch('permission/generateRoutes', roles, { root: true })
// dynamically add accessible routes
router.addRoutes(accessRoutes)

// dynamically add accessible routes
router.addRoutes(accessRoutes)

// reset visited views and cached views
dispatch('tagsView/delAllViews', null, { root: true })

resolve()
})
// reset visited views and cached views
dispatch('tagsView/delAllViews', null, { root: true })
}
}

Expand Down
28 changes: 14 additions & 14 deletions src/views/excel/merge-header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,21 +71,21 @@ export default {
},
handleDownload() {
this.downloadLoading = true
import('@/vendor/Export2Excel').then(excel => {
const multiHeader = [['Id', 'Main Information', '', '', 'Date']]
const header = ['', 'Title', 'Author', 'Readings', '']
const filterVal = ['id', 'title', 'author', 'pageviews', 'display_time']
const list = this.list
const data = this.formatJson(filterVal, list)
const merges = ['A1:A2', 'B1:D1', 'E1:E2']
excel.export_json_to_excel({
multiHeader,
header,
merges,
data
})
this.downloadLoading = false
import('@/vendor/Export2Excel').then(excel => {
const multiHeader = [['Id', 'Main Information', '', '', 'Date']]
const header = ['', 'Title', 'Author', 'Readings', '']
const filterVal = ['id', 'title', 'author', 'pageviews', 'display_time']
const list = this.list
const data = this.formatJson(filterVal, list)
const merges = ['A1:A2', 'B1:D1', 'E1:E2']
excel.export_json_to_excel({
multiHeader,
header,
merges,
data
})
this.downloadLoading = false
})
},
formatJson(filterVal, jsonData) {
return jsonData.map(v => filterVal.map(j => {
Expand Down