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