hexo-theme-shokax
Advanced tools
Comparing version 0.3.9 to 0.3.10
{ | ||
"name": "hexo-theme-shokax", | ||
"version": "0.3.9", | ||
"version": "0.3.10", | ||
"description": "a hexo theme based on shoka", | ||
@@ -21,11 +21,11 @@ "main": "index.js", | ||
"@types/mocha": "^10.0.6", | ||
"@types/node": "^20.10.2", | ||
"@typescript-eslint/eslint-plugin": "^6.13.1", | ||
"@typescript-eslint/parser": "^6.13.1", | ||
"@types/node": "^20.10.6", | ||
"@typescript-eslint/eslint-plugin": "^6.17.0", | ||
"@typescript-eslint/parser": "^6.17.0", | ||
"chai": "^4.3.10", | ||
"eslint": "^8.55.0", | ||
"eslint": "^8.56.0", | ||
"eslint-config-standard": "~17", | ||
"eslint-plugin-chai-friendly": "^0.7.2", | ||
"eslint-plugin-import": "^2.29.0", | ||
"eslint-plugin-n": "^16.3.1", | ||
"eslint-plugin-import": "^2.29.1", | ||
"eslint-plugin-n": "^16.6.1", | ||
"eslint-plugin-promise": "^6.1.1", | ||
@@ -35,14 +35,14 @@ "eslint-plugin-vue": "^9.19.2", | ||
"hexo-util": "^3.1.0", | ||
"instantsearch.js": "^4.60.0", | ||
"jsdom": "^23.0.1", | ||
"instantsearch.js": "^4.63.0", | ||
"jsdom": "^23.1.0", | ||
"mocha": "^10.2.0", | ||
"typescript": "^5.3.2", | ||
"vue": "^3.3.9" | ||
"typescript": "^5.3.3", | ||
"vue": "^3.4.5" | ||
}, | ||
"dependencies": { | ||
"esbuild": "^0.19.8", | ||
"esbuild": "^0.19.11", | ||
"hexo": "^7.0.0", | ||
"js-yaml": "^4.1.0", | ||
"lozad": "^1.16.0", | ||
"theme-shokax-anime": "^0.0.4", | ||
"theme-shokax-anime": "^0.0.6", | ||
"theme-shokax-pjax": "^0.0.2" | ||
@@ -49,0 +49,0 @@ }, |
@@ -83,3 +83,6 @@ # 公告 | ||
## 开发者们 | ||
[![](https://contributors-img.web.app/image?repo=theme-shoka-x/hexo-theme-shokaX)](https://github.com/theme-shoka-x/hexo-theme-shokaX/graphs/contributors) | ||
Hexo 主题: \ | ||
[![](https://contributors-img.web.app/image?repo=theme-shoka-x/hexo-theme-shokaX)](https://github.com/theme-shoka-x/hexo-theme-shokaX/graphs/contributors) \ | ||
ShokaX 文档: \ | ||
[![](https://contributors-img.web.app/image?repo=theme-shoka-x/shokaX-docs)](https://github.com/theme-shoka-x/shokaX-docs/graphs/contributors) \ | ||
@@ -86,0 +89,0 @@ ## 特别鸣谢 |
@@ -18,3 +18,3 @@ 'use strict'; | ||
const sticky = locals.posts.find({ sticky: true }).sort(config.index_generator.order_by); | ||
const posts = locals.posts.find({ sticky: { $exists: false } }).sort(config.index_generator.order_by); | ||
const posts = locals.posts.find({ sticky: { $in: [false, undefined] } }).sort(config.index_generator.order_by); | ||
const paginationDir = config.pagination_dir || 'page'; | ||
@@ -100,3 +100,4 @@ const path = config.index_generator.path || ''; | ||
catlist, | ||
sticky | ||
sticky, | ||
current: 1, | ||
} | ||
@@ -103,0 +104,0 @@ }]; |
@@ -21,3 +21,3 @@ let findProblem = false; | ||
if (hexo.theme.config.gitalk.clientID || hexo.theme.config.giscus.repo) { | ||
hexo.log.info('You are using an untested feature and there may be undiscovered issues'); | ||
hexo.log.warn('You are using an deprecated feature and it was removed in the v0.3.10'); | ||
} | ||
@@ -24,0 +24,0 @@ }); |
@@ -12,3 +12,3 @@ "use strict"; | ||
const ctx = canvasEl.getContext('2d'); | ||
const numberOfParticules = 30; | ||
const numberOfParticles = 30; | ||
let pointerX = 0; | ||
@@ -29,3 +29,3 @@ let pointerY = 0; | ||
} | ||
function setParticuleDirection(p) { | ||
function setParticleDirection(p) { | ||
const angle = theme_shokax_anime_1.default.random(0, 360) * Math.PI / 180; | ||
@@ -39,3 +39,3 @@ const value = theme_shokax_anime_1.default.random(50, 180); | ||
} | ||
function createParticule(x, y) { | ||
function createParticle(x, y) { | ||
const p = { | ||
@@ -56,3 +56,3 @@ x, | ||
p.radius = theme_shokax_anime_1.default.random(16, 32); | ||
p.endPos = setParticuleDirection(p); | ||
p.endPos = setParticleDirection(p); | ||
return p; | ||
@@ -81,3 +81,3 @@ } | ||
} | ||
function renderParticule(targets) { | ||
function renderParticle(targets) { | ||
for (const target of targets) { | ||
@@ -87,13 +87,13 @@ target.draw(); | ||
} | ||
function animateParticules(x, y) { | ||
function animateParticles(x, y) { | ||
const circle = createCircle(x, y); | ||
const particules = []; | ||
for (let i = 0; i < numberOfParticules; i++) { | ||
particules.push(createParticule(x, y)); | ||
const particles = []; | ||
for (let i = 0; i < numberOfParticles; i++) { | ||
particles.push(createParticle(x, y)); | ||
} | ||
(0, theme_shokax_anime_1.default)().timeline().add({ | ||
targets: particules, | ||
targets: particles, | ||
duration: theme_shokax_anime_1.default.random(1200, 1800), | ||
easing: 'easeOutExpo', | ||
update: renderParticule, | ||
update: renderParticle, | ||
x: p => p.endPos.x, | ||
@@ -106,3 +106,3 @@ y: p => p.endPos.y, | ||
easing: 'easeOutExpo', | ||
update: renderParticule, | ||
update: renderParticle, | ||
radius: theme_shokax_anime_1.default.random(80, 160), | ||
@@ -143,3 +143,3 @@ lineWidth: 0, | ||
updateCoords(e); | ||
animateParticules(pointerX, pointerY); | ||
animateParticles(pointerX, pointerY); | ||
}, false); | ||
@@ -146,0 +146,0 @@ setCanvasSize(); |
@@ -84,3 +84,3 @@ "use strict"; | ||
const pageScroll = (target, offset, complete) => { | ||
const opt = { | ||
(0, theme_shokax_anime_1.default)({ | ||
targets: typeof offset === 'number' && typeof target !== 'number' ? target.parentNode : document.scrollingElement, | ||
@@ -93,5 +93,4 @@ duration: 500, | ||
} | ||
}; | ||
(0, theme_shokax_anime_1.default)(opt).play(); | ||
}).play(); | ||
}; | ||
exports.pageScroll = pageScroll; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
93
570257
+ Addedtheme-shokax-anime@0.0.6(transitive)
- Removedtheme-shokax-anime@0.0.4(transitive)
Updatedesbuild@^0.19.11
Updatedtheme-shokax-anime@^0.0.6