upgrade
This commit is contained in:
parent
eaf48b86c3
commit
703f411ee7
@ -112,7 +112,7 @@ export default {
|
||||
}, 3000)
|
||||
},
|
||||
search () {
|
||||
if (this.searchVal !== '') this.$router.push({ path: 'search?q=' + this.searchVal })
|
||||
if (this.searchVal !== '') { this.$router.push({ path: 'search?q=' + this.searchVal }) }
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -50,6 +50,9 @@ module.exports = {
|
||||
type: 'image/x-icon',
|
||||
href: '/favicon.ico'
|
||||
}
|
||||
],
|
||||
script: [
|
||||
{ src: 'https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js', async: true, 'data-ad-client': 'ca-pub-2143583075951360' }
|
||||
]
|
||||
},
|
||||
|
||||
|
48
package.json
48
package.json
@ -13,34 +13,34 @@
|
||||
"precommit": "npm run lint"
|
||||
},
|
||||
"dependencies": {
|
||||
"@fortawesome/fontawesome-svg-core": "^1.2.15",
|
||||
"@fortawesome/free-brands-svg-icons": "^5.7.2",
|
||||
"@fortawesome/free-regular-svg-icons": "^5.7.2",
|
||||
"@fortawesome/free-solid-svg-icons": "^5.7.2",
|
||||
"@fortawesome/vue-fontawesome": "^0.1.5",
|
||||
"@nuxtjs/axios": "^5.4.0",
|
||||
"cross-env": "^5.2.0",
|
||||
"highlight.js": "^9.15.6",
|
||||
"koa": "^2.7.0",
|
||||
"@fortawesome/fontawesome-svg-core": "^1.2.26",
|
||||
"@fortawesome/free-brands-svg-icons": "^5.12.0",
|
||||
"@fortawesome/free-regular-svg-icons": "^5.12.0",
|
||||
"@fortawesome/free-solid-svg-icons": "^5.12.0",
|
||||
"@fortawesome/vue-fontawesome": "^0.1.8",
|
||||
"@nuxtjs/axios": "^5.8.0",
|
||||
"cross-env": "^6.0.3",
|
||||
"highlight.js": "^9.17.1",
|
||||
"koa": "^2.11.0",
|
||||
"moment": "^2.24.0",
|
||||
"nuxt": "^2.4.5"
|
||||
"nuxt": "^2.10.2"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@nuxtjs/eslint-config": "^0.0.1",
|
||||
"babel-eslint": "^10.0.1",
|
||||
"eslint": "^5.15.0",
|
||||
"eslint-config-standard": ">=12.0.0",
|
||||
"eslint-loader": "^2.1.2",
|
||||
"eslint-plugin-import": ">=2.16.0",
|
||||
"eslint-plugin-jest": "^22.3.0",
|
||||
"eslint-plugin-node": ">=8.0.1",
|
||||
"eslint-plugin-promise": ">=4.0.1",
|
||||
"eslint-plugin-standard": ">=4.0.0",
|
||||
"eslint-plugin-vue": "^5.2.2",
|
||||
"nodemon": "^1.18.10",
|
||||
"pug": "^2.0.3",
|
||||
"@nuxtjs/eslint-config": "^2.0.0",
|
||||
"babel-eslint": "^10.0.3",
|
||||
"eslint": "^6.7.2",
|
||||
"eslint-config-standard": ">=14.1.0",
|
||||
"eslint-loader": "^3.0.3",
|
||||
"eslint-plugin-import": ">=2.19.1",
|
||||
"eslint-plugin-jest": "^23.1.1",
|
||||
"eslint-plugin-node": ">=10.0.0",
|
||||
"eslint-plugin-promise": ">=4.2.1",
|
||||
"eslint-plugin-standard": ">=4.0.1",
|
||||
"eslint-plugin-vue": "^6.0.1",
|
||||
"nodemon": "^2.0.2",
|
||||
"pug": "^2.0.4",
|
||||
"pug-plain-loader": "^1.0.0",
|
||||
"stylus": "^0.54.5",
|
||||
"stylus": "^0.54.7",
|
||||
"stylus-loader": "^3.0.2"
|
||||
}
|
||||
}
|
||||
|
@ -56,11 +56,6 @@ export default {
|
||||
tocIds: result.post_toc_ids
|
||||
}
|
||||
},
|
||||
head() {
|
||||
return {
|
||||
title: `${this.Articels.post_title} - 轶哥博客`
|
||||
}
|
||||
},
|
||||
mounted () {
|
||||
this.$finishLoad()
|
||||
|
||||
@ -107,7 +102,7 @@ export default {
|
||||
const scrollToc = () => {
|
||||
let scrollTop = document.documentElement.scrollTop || window.pageYOffset || document.body.scrollTop
|
||||
const windowWidth = window.innerWidth || document.documentElement.clientWidth
|
||||
if (windowWidth < 768) scrollTop = scrollTop * 2.7 + 175
|
||||
if (windowWidth < 768) { scrollTop = scrollTop * 2.7 + 175 }
|
||||
const tocIdsInx = findInIds(tocIdsTop, scrollTop + 130)
|
||||
if (tocIdsInx !== -1 && lastIdInx !== tocIdsInx && document.getElementsByClassName('articelRightToc')[0]) {
|
||||
const tocAList = document.getElementsByClassName('articelRightToc')[0].getElementsByTagName('a')
|
||||
@ -227,6 +222,11 @@ export default {
|
||||
|
||||
return bottomBoundingOnScreen && topBoundingOnScreen && rightBoundingOnScreen && leftBoundingOnScreen
|
||||
}
|
||||
},
|
||||
head () {
|
||||
return {
|
||||
title: `${this.Articels.post_title} - 轶哥博客`
|
||||
}
|
||||
}
|
||||
}
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue
Block a user