hexo-theme-shokax 0.5.0-dev-2f28258 → 0.5.0-dev-05649fa

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-theme-shokax",
3
- "version": "0.5.0-dev-2f28258",
3
+ "version": "0.5.0-dev-05649fa",
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",
@@ -38,7 +38,7 @@
38
38
  "js-yaml": "^4.1.0",
39
39
  "katex": "^0.16.22",
40
40
  "mouse-firework": "^0.1.1",
41
- "nyx-player": "^0.1.0",
41
+ "nyx-player": "^0.1.1",
42
42
  "quicklink": "^2.3.0",
43
43
  "theme-shokax-anime": "^0.0.8",
44
44
  "twikoo": "^1.6.42",
@@ -58,4 +58,8 @@ hexo.on("generateAfter", async () => {
58
58
  hexo.log.warn("Failed to detect version info. Error message:");
59
59
  hexo.log.warn(e);
60
60
  }
61
+ if ((/* @__PURE__ */ new Date()).getDate() === 5 && (/* @__PURE__ */ new Date()).getMonth() === 8) {
62
+ console.log("\u{1F389} ShokaX \u751F\u65E5\u5FEB\u4E50\uFF01\nHappy Birthday ShokaX!");
63
+ console.log("\u611F\u8C22\u4F60\u4EEC\u7684\u652F\u6301\u4E0E\u966A\u4F34\uFF01\nThanks for your support and company!");
64
+ }
61
65
  });
@@ -8,13 +8,9 @@ export const postImageViewer = (p: string) => {
8
8
  const imgSrc = DOMPurify.sanitize(img.dataset.src);
9
9
 
10
10
  const wrapper = document.createElement('div');
11
- console.log(wrapper)
12
11
  img.replaceWith(wrapper);
13
12
 
14
- console.log(imgSrc)
15
13
  const app = createApp(HanaImgViewer, { src: imgSrc, maskOpacity: 0.8 });
16
- console.log(app)
17
14
  app.mount(wrapper);
18
- console.log(app)
19
15
  });
20
16
  };
@@ -83,3 +83,8 @@ window.addEventListener('DOMContentLoaded', siteInit, {
83
83
  })
84
84
 
85
85
  console.log('%c Theme.ShokaX v' + CONFIG.version + ' %c https://github.com/theme-shoka-x/hexo-theme-shokaX ', 'color: white; background: #e9546b; padding:5px 0;', 'padding:4px;border:1px solid #e9546b;')
86
+
87
+ if (new Date().getDate() === 5 && new Date().getMonth() === 8) {
88
+ console.log('🎉 ShokaX 生日快乐!\nHappy Birthday ShokaX!')
89
+ console.log('感谢你们的支持与陪伴!\nThanks for your support and company!')
90
+ }
Binary file
Binary file