hexo-theme-redefine-x 2.9.3 → 2.9.4

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.
Files changed (61) hide show
  1. package/.versionrc.js +35 -35
  2. package/_config.yml +505 -512
  3. package/layout/components/comments/giscus.ejs +43 -42
  4. package/layout/components/scripts.ejs +100 -94
  5. package/layout/pages/home/home-banner.ejs +227 -227
  6. package/layout/pages/masonry/masonry-collection.ejs +59 -0
  7. package/layout/pages/masonry/masonry.ejs +73 -28
  8. package/layout/pages/tag/tags.ejs +24 -24
  9. package/package.json +45 -45
  10. package/scripts/events/clean-preserve.js +8 -0
  11. package/scripts/events/export-github-workflow.js +16 -0
  12. package/scripts/filters/encrypt.js +9 -35
  13. package/scripts/filters/img-optimizer.js +583 -566
  14. package/scripts/filters/lazyload-handle.js +472 -362
  15. package/scripts/filters/lib/hbe.default.js +1 -1
  16. package/scripts/helpers/page-helpers.js +159 -153
  17. package/scripts/masonry-generator.js +513 -0
  18. package/scripts/masonry-reactions.js +618 -0
  19. package/scripts/modules/image-exif.js +833 -835
  20. package/source/css/layout/_modules/image-exif.styl +377 -400
  21. package/source/css/layout/_partials/home-banner.styl +47 -47
  22. package/source/css/layout/_partials/image-viewer.styl +523 -529
  23. package/source/css/layout/_partials/page-template.styl +246 -14
  24. package/source/css/layout/_partials/tagcloud.styl +136 -136
  25. package/source/css/layout/tag-content.styl +30 -30
  26. package/source/js/build/layouts/autoHover.js +1 -1
  27. package/source/js/build/layouts/autoHover.js.map +1 -1
  28. package/source/js/build/layouts/imageExif.js +1 -1
  29. package/source/js/build/layouts/imageExif.js.map +1 -1
  30. package/source/js/build/plugins/giscus-client.js +2 -0
  31. package/source/js/build/plugins/giscus-client.js.map +1 -0
  32. package/source/js/build/plugins/giscus-client.source.js +2 -0
  33. package/source/js/build/plugins/giscus-client.source.js.map +1 -0
  34. package/source/js/build/plugins/hbe.js +1 -1
  35. package/source/js/build/plugins/hbe.js.map +1 -1
  36. package/source/js/build/plugins/masonry-reactions-client.min.js +2 -0
  37. package/source/js/build/plugins/masonry-reactions-client.min.js.map +1 -0
  38. package/source/js/build/plugins/masonry-reactions.js +2 -0
  39. package/source/js/build/plugins/masonry-reactions.js.map +1 -0
  40. package/source/js/build/plugins/masonry-reactions.source.js +2 -0
  41. package/source/js/build/plugins/masonry-reactions.source.js.map +1 -0
  42. package/source/js/build/plugins/masonry.js +1 -1
  43. package/source/js/build/plugins/masonry.js.map +1 -1
  44. package/source/js/build/tools/imageViewer.js +1 -1
  45. package/source/js/build/tools/imageViewer.js.map +1 -1
  46. package/source/js/layouts/autoHover.js +148 -0
  47. package/source/js/layouts/imageExif.js +463 -619
  48. package/source/js/plugins/giscus-client.js +1 -0
  49. package/source/js/plugins/giscus-client.source.js +256 -0
  50. package/source/js/plugins/hbe.js +15 -52
  51. package/source/js/plugins/masonry-reactions-client.min.js +1 -0
  52. package/source/js/plugins/masonry-reactions.js +1 -0
  53. package/source/js/plugins/masonry-reactions.source.js +756 -0
  54. package/source/js/plugins/masonry.js +79 -115
  55. package/source/js/tools/imageViewer.js +1940 -1800
  56. package/source/js/utils.js +401 -401
  57. package/workflows/giscus-cors-proxy/worker.js +119 -0
  58. package/workflows/giscus-cors-proxy/wrangler.toml +6 -0
  59. package/workflows/masonry-reactions-cleanup.yml +97 -0
  60. package/source/js/build/libs/minimasonry.min.js +0 -1
  61. package/source/js/libs/minimasonry.min.js +0 -1
package/.versionrc.js CHANGED
@@ -1,36 +1,36 @@
1
- const { tag } = require("hexo/dist/plugins/helper/is");
2
-
3
- // .versionrc.js
4
- module.exports = {
5
- types: [
6
- { type: 'feat', section: '✨ Features | 新功能' },
7
- { type: 'fix', section: '🐛 Bug Fixes | Bug 修复' },
8
- { type: 'init', section: '🎉 Init | 初始化' },
9
- { type: 'docs', section: '✏️ Documentation | 文档' },
10
- { type: 'style', section: '💄 Styles | 风格' },
11
- { type: 'refactor', section: '♻️ Code Refactoring | 代码重构' },
12
- { type: 'perf', section: '⚡ Performance Improvements | 性能优化' },
13
- { type: 'test', section: '✅ Tests | 测试' },
14
- { type: 'revert', section: '⏪ Revert | 回退', hidden: true },
15
- { type: 'build', section: '📦‍ Build System | 打包构建' },
16
- { type: 'chore', section: '🚀 Chore | 构建/工程依赖/工具' },
17
- { type: 'ci', section: '👷 Continuous Integration | CI 配置' }
18
- ],
19
- // 默认值: "chore(release): {{currentTag}}"
20
- releaseCommitMessageFormat: `chore(release): {{currentTag}}
21
-
22
- ██████╗ ███████╗██████╗ ███████╗███████╗██╗███╗ ██╗███████╗ ██╗ ██╗
23
- ██╔══██╗██╔════╝██╔══██╗██╔════╝██╔════╝██║████╗ ██║██╔════╝ ╚██╗██╔╝
24
- ██████╔╝█████╗ ██║ ██║█████╗ █████╗ ██║██╔██╗ ██║█████╗█████╗╚███╔╝
25
- ██╔══██╗██╔══╝ ██║ ██║██╔══╝ ██╔══╝ ██║██║╚██╗██║██╔══╝╚════╝██╔██╗
26
- ██║ ██║███████╗██████╔╝███████╗██║ ██║██║ ╚████║███████╗ ██╔╝ ██╗
27
- ╚═╝ ╚═╝╚══════╝╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚═╝
28
- current version: {{currentTag}}
29
- `,
30
- header: '# Changelog: Hexo Theme Redefine-X',
31
- // 跳过某步骤 可设置 bump changelog commit tag
32
- skip: {
33
- // commit: true
34
- "changelog": true
35
- }
1
+ const { tag } = require("hexo/dist/plugins/helper/is");
2
+
3
+ // .versionrc.js
4
+ module.exports = {
5
+ types: [
6
+ { type: 'feat', section: '✨ Features | 新功能' },
7
+ { type: 'fix', section: '🐛 Bug Fixes | Bug 修复' },
8
+ { type: 'init', section: '🎉 Init | 初始化' },
9
+ { type: 'docs', section: '✏️ Documentation | 文档' },
10
+ { type: 'style', section: '💄 Styles | 风格' },
11
+ { type: 'refactor', section: '♻️ Code Refactoring | 代码重构' },
12
+ { type: 'perf', section: '⚡ Performance Improvements | 性能优化' },
13
+ { type: 'test', section: '✅ Tests | 测试' },
14
+ { type: 'revert', section: '⏪ Revert | 回退', hidden: true },
15
+ { type: 'build', section: '📦‍ Build System | 打包构建' },
16
+ { type: 'chore', section: '🚀 Chore | 构建/工程依赖/工具' },
17
+ { type: 'ci', section: '👷 Continuous Integration | CI 配置' }
18
+ ],
19
+ // 默认值: "chore(release): {{currentTag}}"
20
+ releaseCommitMessageFormat: `chore(release): {{currentTag}}
21
+
22
+ ██████╗ ███████╗██████╗ ███████╗███████╗██╗███╗ ██╗███████╗ ██╗ ██╗
23
+ ██╔══██╗██╔════╝██╔══██╗██╔════╝██╔════╝██║████╗ ██║██╔════╝ ╚██╗██╔╝
24
+ ██████╔╝█████╗ ██║ ██║█████╗ █████╗ ██║██╔██╗ ██║█████╗█████╗╚███╔╝
25
+ ██╔══██╗██╔══╝ ██║ ██║██╔══╝ ██╔══╝ ██║██║╚██╗██║██╔══╝╚════╝██╔██╗
26
+ ██║ ██║███████╗██████╔╝███████╗██║ ██║██║ ╚████║███████╗ ██╔╝ ██╗
27
+ ╚═╝ ╚═╝╚══════╝╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═══╝╚══════╝ ╚═╝ ╚═╝
28
+ current version: {{currentTag}}
29
+ `,
30
+ header: '# Changelog: Hexo Theme Redefine-X',
31
+ // 跳过某步骤 可设置 bump changelog commit tag
32
+ skip: {
33
+ // commit: true
34
+ "changelog": true
35
+ }
36
36
  }