hexo-theme-shokax
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name": "hexo-theme-shokax", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"description": "a hexo theme based on shoka", | ||
@@ -15,3 +15,3 @@ "main": "index.js", | ||
"devDependencies": { | ||
"@algolia/client-search": "^4.14.3", | ||
"@algolia/client-search": "^4", | ||
"@types/animejs": "^3.1.7", | ||
@@ -23,9 +23,10 @@ "@types/fancybox": "^3.5.3", | ||
"@types/lozad": "^1.16.1", | ||
"@types/node": "^18.13.0", | ||
"@types/node": "^18.15.6", | ||
"@types/shelljs": "^0.8.11", | ||
"@typescript-eslint/eslint-plugin": "^5.51.0", | ||
"@typescript-eslint/parser": "^5.51.0", | ||
"@vuepress/client": "2.0.0-beta.60", | ||
"@typescript-eslint/eslint-plugin": "^5.56.0", | ||
"@typescript-eslint/parser": "^5.56.0", | ||
"@vuepress/client": "2.0.0-beta.61", | ||
"@vuepress/plugin-docsearch": "2.0.0-beta.60", | ||
"eslint": "^8.34.0", | ||
"algoliasearch": "^4.16.0", | ||
"eslint": "^8.36.0", | ||
"eslint-config-standard": "^17.0.0", | ||
@@ -35,12 +36,14 @@ "eslint-plugin-import": "^2.27.5", | ||
"eslint-plugin-promise": "^6.1.1", | ||
"eslint-plugin-vue": "^9.9.0", | ||
"typescript": "^4.9.5", | ||
"eslint-plugin-vue": "^9.10.0", | ||
"instantsearch.js": "^4.53.0", | ||
"pjax": "^0.2.8", | ||
"typescript": "^5.0.2", | ||
"vue": "^3.2.47", | ||
"vuepress": "2.0.0-beta.60", | ||
"vuepress-plugin-sitemap2": "2.0.0-beta.180" | ||
"vuepress": "2.0.0-beta.61", | ||
"vuepress-plugin-sitemap2": "2.0.0-beta.197" | ||
}, | ||
"dependencies": { | ||
"js-yaml": "^4.1.0", | ||
"sass": "^1.58.3" | ||
"sass": "^1.60.0" | ||
} | ||
} |
@@ -124,2 +124,5 @@ const canvasEl = document.createElement('canvas'); | ||
document.addEventListener(tap, function (e) { | ||
if (e.target.nodeName === 'A') { | ||
return; | ||
} | ||
render.play(); | ||
@@ -126,0 +129,0 @@ updateCoords(e); |
@@ -155,3 +155,2 @@ const statics = CONFIG.statics.indexOf('//') > 0 ? CONFIG.statics : CONFIG.root; | ||
oWinWidth = window.innerWidth; | ||
// sideBar.child('.panels').changeOrGetHeight(oWinHeight + 'px'); | ||
}; | ||
@@ -158,0 +157,0 @@ const scrollHandle = function (event) { |
@@ -265,20 +265,20 @@ const getDocHeight = () => $dom('main > .inner').offsetHeight; | ||
const pjaxScript = function (element) { | ||
const code = element.text || element.textContent || element.innerHTML || ''; | ||
const parent = element.parentNode; | ||
parent.removeChild(element); | ||
const { text, parentNode, id, className, type, src, dataset } = element; | ||
const code = text || element.textContent || element.innerHTML || ''; | ||
parentNode.removeChild(element); | ||
const script = document.createElement('script'); | ||
if (element.id) { | ||
script.id = element.id; | ||
if (id) { | ||
script.id = id; | ||
} | ||
if (element.className) { | ||
script.className = element.className; | ||
if (className) { | ||
script.className = className; | ||
} | ||
if (element.type) { | ||
script.type = element.type; | ||
if (type) { | ||
script.type = type; | ||
} | ||
if (element.src) { | ||
script.src = element.src; | ||
if (src) { | ||
script.src = src; | ||
script.async = false; | ||
} | ||
if (element.dataset.pjax !== undefined) { | ||
if (dataset.pjax !== undefined) { | ||
script.dataset.pjax = ''; | ||
@@ -289,3 +289,3 @@ } | ||
} | ||
parent.appendChild(script); | ||
parentNode.appendChild(script); | ||
}; | ||
@@ -292,0 +292,0 @@ const pageScroll = function (target, offset, complete) { |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
550551
5190
26
Updatedsass@^1.60.0