hexo-theme-shokax 0.4.9 → 0.4.10

Sign up to get free protection for your applications and to get access to all the features.
package/_config.yml CHANGED
@@ -365,11 +365,11 @@ vendors:
365
365
  source: cdnjs
366
366
  url: pace/1.2.4/pace.min.js
367
367
  sri: "sha384-k6YtvFUEIuEFBdrLKJ3YAUbBki333tj1CSUisai5Cswsg9wcLNaPzsTHDswp4Az8"
368
- async_js:
369
368
  jquery:
370
369
  source: cdnjs
371
370
  url: jquery/3.5.1/jquery.min.js
372
371
  sri: "sha384-ZvpUoO/+PpLXR1lu4jmpXWu80pZlYUAfxl5NsBMWOEPSjUn/6Z/hRTt8+pR6L4N2"
372
+ async_js:
373
373
  fancybox:
374
374
  source: cdnjs
375
375
  url: fancybox/3.5.7/jquery.fancybox.min.js
@@ -129,6 +129,8 @@ html(lang=page.language?page.language:config.language, style=theme.grayMode ? 'f
129
129
  != partial('_partials/third-party/google-analytics.pug', {}, {cache: true})
130
130
 
131
131
  != vendor_js('pace')
132
+ != vendor_js('jquery')
133
+
132
134
  if theme.polyfill.enable
133
135
  script(src=`https://cdnjs.cloudflare.com/polyfill/v3/polyfill.min.js?version=4.8.0&features=${theme.polyfill.features}` defer)
134
136
 
package/package.json CHANGED
@@ -1,12 +1,12 @@
1
1
  {
2
2
  "name": "hexo-theme-shokax",
3
- "version": "0.4.9",
3
+ "version": "0.4.10",
4
4
  "description": "a hexo theme based on shoka",
5
5
  "main": "index.js",
6
6
  "repository": "https://github.com/theme-shoka-x/hexo-theme-shokaX",
7
7
  "author": "zkz098",
8
8
  "license": "AGPL-3.0-or-later",
9
- "packageManager": "pnpm@9.4.0",
9
+ "packageManager": "pnpm@9.5.0",
10
10
  "scripts": {
11
11
  "test": "tsc --build --verbose",
12
12
  "build": "node ./toolbox/compiler.mjs"
@@ -16,10 +16,10 @@
16
16
  "@types/jquery": "^3.5.30",
17
17
  "@types/js-yaml": "^4.0.9",
18
18
  "@types/katex": "^0.16.7",
19
- "@types/node": "^20.14.9",
19
+ "@types/node": "^20.14.10",
20
20
  "@types/quicklink": "^2.3.4",
21
- "@typescript-eslint/eslint-plugin": "^7.15.0",
22
- "@typescript-eslint/parser": "^7.15.0",
21
+ "@typescript-eslint/eslint-plugin": "^7.16.0",
22
+ "@typescript-eslint/parser": "^7.16.0",
23
23
  "eslint": "^9.6.0",
24
24
  "eslint-config-standard": "~17",
25
25
  "eslint-plugin-import": "^2.29.1",
@@ -30,24 +30,24 @@
30
30
  },
31
31
  "dependencies": {
32
32
  "@algolia/client-search": "^4.24.0",
33
- "@waline/client": "^3.2.6",
33
+ "@waline/client": "^3.3.0",
34
34
  "algoliasearch": "4.24.0",
35
35
  "esbuild": "^0.23.0",
36
36
  "hexo": "^7.3.0",
37
37
  "hexo-algoliasearch": "^2.0.1",
38
38
  "hexo-feed": "^1.1.2",
39
39
  "hexo-fs": "^4.1.3",
40
- "hexo-pagination": "^3.0.0",
40
+ "hexo-pagination": "^4.0.0",
41
41
  "hexo-renderer-pug": "^3.0.0",
42
42
  "hexo-util": "^3.3.0",
43
- "instantsearch.js": "^4.73.0",
43
+ "instantsearch.js": "^4.73.1",
44
44
  "js-yaml": "^4.1.0",
45
45
  "katex": "^0.16.11",
46
46
  "mouse-firework": "^0.0.5",
47
47
  "quicklink": "^2.3.0",
48
48
  "theme-shokax-anime": "^0.0.6",
49
49
  "theme-shokax-pjax": "^0.0.3",
50
- "twikoo": "^1.6.36",
50
+ "twikoo": "^1.6.38",
51
51
  "unlazy": "^0.11.3",
52
52
  "vue": "^3.4.31"
53
53
  },
@@ -124,7 +124,7 @@ export const sidebarTOC = () => {
124
124
  while (!parent.matches('.contents')) {
125
125
  if (parent.matches('li')) {
126
126
  parent.addClass('active')
127
- const t = document.querySelector(parent.querySelector('a.toc-link').getAttribute('href'))
127
+ const t = document.querySelector(decodeURIComponent(parent.querySelector('a.toc-link').getAttribute('href')))
128
128
  if (t) {
129
129
  t.addClass('active')
130
130
  }
@@ -68,7 +68,7 @@ export const scrollHandle = () => {
68
68
  toolBtn.toggleClass('affix', startScroll)
69
69
  // 控制侧边栏的显示隐藏,当滚动高度大于 headerHight 且窗口宽度大于 991px 时显示
70
70
  siteBrand.toggleClass('affix', startScroll)
71
- sideBar.toggleClass('affix', window.scrollY > headerHight && document.body.offsetWidth > 991)
71
+ sideBar.toggleClass('affix', window.scrollY > headerHight && document.body.offsetWidth >= 991)
72
72
  // 初始化滚动时导航栏的显示方向
73
73
  if (typeof scrollAction.y === 'undefined') {
74
74
  scrollAction.y = window.scrollY