Skip to content

Commit

Permalink
chore: 更新依赖
Browse files Browse the repository at this point in the history
  • Loading branch information
F-loat committed Apr 24, 2020
1 parent d7617ee commit 30998e9
Show file tree
Hide file tree
Showing 7 changed files with 4,946 additions and 3,413 deletions.
5 changes: 5 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[*.{js,jsx,ts,tsx,vue}]
indent_style = space
indent_size = 2
trim_trailing_whitespace = true
insert_final_newline = true
11 changes: 9 additions & 2 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,10 +1,17 @@
module.exports = {
root: true,
env: {
node: true
},
extends: [
'plugin:vue/essential',
'@vue/standard'
],
parserOptions: {
parser: 'babel-eslint'
},
rules: {
'no-new': 0
'no-console': process.env.NODE_ENV === 'production' ? 'warn' : 'off',
'no-debugger': process.env.NODE_ENV === 'production' ? 'warn' : 'off'
}
}
}
5 changes: 5 additions & 0 deletions babel.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
presets: [
'@vue/cli-plugin-babel/preset'
]
}
52 changes: 23 additions & 29 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,41 +8,35 @@
"lint": "vue-cli-service lint"
},
"dependencies": {
"docxtemplater": "^3.6.2",
"file-saver": "^1.3.8",
"jszip": "2",
"jszip-utils": "^0.0.2",
"material-design-icons-iconfont": "^3.0.3",
"docxtemplater": "^3.17.6",
"file-saver": "^2.0.2",
"jszip": "3.4.0",
"jszip-utils": "^0.1.0",
"material-design-icons-iconfont": "^5.0.1",
"material-image": "^0.2.5",
"register-service-worker": "^1.0.0",
"vue": "^2.5.16",
"vuetify": "^1.0.17"
"register-service-worker": "^1.7.1",
"vue": "^2.6.11",
"vuetify": "^1.0.0"
},
"devDependencies": {
"@vue/cli-plugin-babel": "^3.0.0-beta.9",
"@vue/cli-plugin-eslint": "^3.0.0-beta.9",
"@vue/cli-plugin-pwa": "^3.0.0-beta.9",
"@vue/cli-service": "^3.0.0-beta.9",
"@vue/eslint-config-standard": "^3.0.0-beta.9",
"lint-staged": "^6.0.0",
"vue-template-compiler": "^2.5.13"
"@vue/cli-plugin-babel": "^4.3.0",
"@vue/cli-plugin-eslint": "^4.3.0",
"@vue/cli-service": "^4.3.0",
"@vue/eslint-config-standard": "^5.1.2",
"babel-eslint": "^10.1.0",
"eslint": "^6.7.2",
"eslint-plugin-import": "^2.20.2",
"eslint-plugin-node": "^11.1.0",
"eslint-plugin-promise": "^4.2.1",
"eslint-plugin-standard": "^4.0.0",
"eslint-plugin-vue": "^6.2.2",
"sass": "^1.19.0",
"sass-loader": "^8.0.0",
"vue-template-compiler": "^2.6.11"
},
"browserslist": [
"> 1%",
"last 2 versions",
"not ie <= 8"
],
"gitHooks": {
"pre-commit": "lint-staged"
},
"lint-staged": {
"*.js": [
"vue-cli-service lint",
"git add"
],
"*.vue": [
"vue-cli-service lint",
"git add"
]
}
]
}
3 changes: 2 additions & 1 deletion src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -84,9 +84,10 @@ export default {
},
mounted () {
this.$nextTick(() => {
new MaterialImage()
this.$refs.source.addEventListener('scroll', this.scrollSync)
this.$refs.result.addEventListener('scroll', this.scrollSync)
/* eslint-disable-next-line no-new */
new MaterialImage()
})
},
methods: {
Expand Down
11 changes: 7 additions & 4 deletions vue.config.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
module.exports = {
baseUrl: '/caption2text/',
outputDir: 'docs',
productionSourceMap: false
}
"publicPath": "/caption2text/",
"outputDir": "docs",
"productionSourceMap": false,
"transpileDependencies": [
"vuetify"
]
}
Loading

0 comments on commit 30998e9

Please sign in to comment.