hexo-component-inferno 1.1.0 → 2.0.1

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 (124) hide show
  1. package/lib/hexo/generator/insight.js +8 -1
  2. package/lib/hexo/generator/insight.test.js +16 -0
  3. package/lib/hexo/helper/cdn.js +3 -9
  4. package/lib/hexo/helper/cdn.test.js +9 -37
  5. package/lib/hexo/tag/message.test.js +17 -8
  6. package/lib/hexo/tag/tabs.js +16 -15
  7. package/lib/hexo/tag/tabs.test.js +19 -10
  8. package/lib/schema/comment/twikoo.json +28 -0
  9. package/lib/schema/comment/waline.json +34 -22
  10. package/lib/schema/schema/comment/changyan.json +21 -0
  11. package/lib/schema/schema/comment/disqus.json +17 -0
  12. package/lib/schema/schema/comment/disqusjs.json +53 -0
  13. package/lib/schema/schema/comment/facebook.json +13 -0
  14. package/lib/schema/schema/comment/gitalk.json +81 -0
  15. package/lib/schema/schema/comment/gitment.json +47 -0
  16. package/lib/schema/schema/comment/isso.json +17 -0
  17. package/lib/schema/schema/comment/livere.json +17 -0
  18. package/lib/schema/schema/comment/twikoo.json +28 -0
  19. package/lib/schema/schema/comment/utterances.json +59 -0
  20. package/lib/schema/schema/comment/valine.json +105 -0
  21. package/lib/schema/schema/comment/waline.json +176 -0
  22. package/lib/schema/schema/donate/afdian.json +17 -0
  23. package/lib/schema/schema/donate/alipay.json +17 -0
  24. package/lib/schema/schema/donate/buymeacoffee.json +17 -0
  25. package/lib/schema/schema/donate/patreon.json +17 -0
  26. package/lib/schema/schema/donate/paypal.json +22 -0
  27. package/lib/schema/schema/donate/wechat.json +17 -0
  28. package/lib/schema/schema/misc/manifest.json +66 -0
  29. package/lib/schema/schema/misc/meta.json +11 -0
  30. package/lib/schema/schema/misc/open_graph.json +78 -0
  31. package/lib/schema/schema/misc/poly_links.json +35 -0
  32. package/lib/schema/schema/misc/structured_data.json +47 -0
  33. package/lib/schema/schema/plugin/baidu_analytics.json +14 -0
  34. package/lib/schema/schema/plugin/bing_webmaster.json +14 -0
  35. package/lib/schema/schema/plugin/busuanzi.json +7 -0
  36. package/lib/schema/schema/plugin/cnzz.json +19 -0
  37. package/lib/schema/schema/plugin/cookie_consent.json +38 -0
  38. package/lib/schema/schema/plugin/gallery.json +7 -0
  39. package/lib/schema/schema/plugin/google_analytics.json +14 -0
  40. package/lib/schema/schema/plugin/hotjar.json +14 -0
  41. package/lib/schema/schema/plugin/katex.json +7 -0
  42. package/lib/schema/schema/plugin/mathjax.json +7 -0
  43. package/lib/schema/schema/plugin/outdated_browser.json +7 -0
  44. package/lib/schema/schema/plugin/progressbar.json +7 -0
  45. package/lib/schema/schema/plugin/statcounter.json +19 -0
  46. package/lib/schema/schema/plugin/twitter_conversion_tracking.json +14 -0
  47. package/lib/schema/schema/search/algolia.json +13 -0
  48. package/lib/schema/schema/search/baidu.json +13 -0
  49. package/lib/schema/schema/search/google_cse.json +17 -0
  50. package/lib/schema/schema/search/insight.json +19 -0
  51. package/lib/schema/schema/share/addthis.json +17 -0
  52. package/lib/schema/schema/share/addtoany.json +13 -0
  53. package/lib/schema/schema/share/bdshare.json +13 -0
  54. package/lib/schema/schema/share/sharejs.json +13 -0
  55. package/lib/schema/schema/share/sharethis.json +17 -0
  56. package/lib/schema/schema/widget/adsense.json +21 -0
  57. package/lib/schema/schema/widget/archives.json +13 -0
  58. package/lib/schema/schema/widget/categories.json +13 -0
  59. package/lib/schema/schema/widget/followit.json +26 -0
  60. package/lib/schema/schema/widget/links.json +47 -0
  61. package/lib/schema/schema/widget/recent_posts.json +13 -0
  62. package/lib/schema/schema/widget/subscribe_email.json +22 -0
  63. package/lib/schema/schema/widget/tags.json +30 -0
  64. package/lib/schema/schema/widget/toc.json +31 -0
  65. package/lib/schema/search/insight.json +6 -0
  66. package/lib/schema/widget/tags.json +17 -0
  67. package/lib/view/comment/changyan.js +2 -2
  68. package/lib/view/comment/disqus.js +2 -2
  69. package/lib/view/comment/disqusjs.js +2 -2
  70. package/lib/view/comment/facebook.js +2 -2
  71. package/lib/view/comment/gitalk.js +2 -2
  72. package/lib/view/comment/gitment.js +2 -2
  73. package/lib/view/comment/isso.js +2 -2
  74. package/lib/view/comment/livere.js +2 -2
  75. package/lib/view/comment/twikoo.js +113 -0
  76. package/lib/view/comment/utterances.js +3 -3
  77. package/lib/view/comment/valine.js +3 -3
  78. package/lib/view/comment/waline.js +49 -33
  79. package/lib/view/common/article_media.js +2 -2
  80. package/lib/view/donate/afdian.js +2 -2
  81. package/lib/view/donate/alipay.js +2 -2
  82. package/lib/view/donate/buymeacoffee.js +2 -2
  83. package/lib/view/donate/patreon.js +2 -2
  84. package/lib/view/donate/paypal.js +2 -2
  85. package/lib/view/donate/wechat.js +2 -2
  86. package/lib/view/misc/article_licensing.js +2 -2
  87. package/lib/view/misc/meta.js +2 -2
  88. package/lib/view/misc/open_graph.js +12 -4
  89. package/lib/view/misc/paginator.js +2 -2
  90. package/lib/view/misc/structured_data.js +2 -2
  91. package/lib/view/misc/web_app.js +2 -2
  92. package/lib/view/plugin/baidu_analytics.js +2 -2
  93. package/lib/view/plugin/bing_webmaster.js +2 -2
  94. package/lib/view/plugin/busuanzi.js +2 -2
  95. package/lib/view/plugin/cnzz.js +2 -2
  96. package/lib/view/plugin/cookie_consent.js +2 -2
  97. package/lib/view/plugin/gallery.js +2 -2
  98. package/lib/view/plugin/google_analytics.js +2 -2
  99. package/lib/view/plugin/hotjar.js +2 -2
  100. package/lib/view/plugin/katex.js +2 -2
  101. package/lib/view/plugin/mathjax.js +2 -2
  102. package/lib/view/plugin/outdated_browser.js +2 -2
  103. package/lib/view/plugin/progressbar.js +2 -2
  104. package/lib/view/plugin/statcounter.js +2 -2
  105. package/lib/view/plugin/twitter_conversion_tracking.js +2 -2
  106. package/lib/view/search/algolia.js +2 -2
  107. package/lib/view/search/baidu.js +2 -2
  108. package/lib/view/search/google_cse.js +2 -2
  109. package/lib/view/search/insight.js +2 -2
  110. package/lib/view/share/addthis.js +2 -2
  111. package/lib/view/share/addtoany.js +2 -2
  112. package/lib/view/share/bdshare.js +2 -2
  113. package/lib/view/share/sharejs.js +2 -2
  114. package/lib/view/share/sharethis.js +2 -2
  115. package/lib/view/widget/adsense.js +2 -2
  116. package/lib/view/widget/archives.js +2 -2
  117. package/lib/view/widget/categories.js +2 -2
  118. package/lib/view/widget/followit.js +2 -2
  119. package/lib/view/widget/links.js +2 -2
  120. package/lib/view/widget/recent_posts.js +2 -2
  121. package/lib/view/widget/subscribe_email.js +2 -2
  122. package/lib/view/widget/tags.js +16 -15
  123. package/lib/view/widget/toc.js +2 -2
  124. package/package.json +9 -12
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "hexo-component-inferno",
3
- "version": "1.1.0",
3
+ "version": "2.0.1",
4
4
  "description": "A collection of Inferno.js layout components and utility scripts for Hexo",
5
5
  "main": "lib/index.js",
6
6
  "repository": "https://github.com/ppoffice/hexo-component-inferno",
@@ -12,13 +12,14 @@
12
12
  "scripts": {
13
13
  "test": "jest lib",
14
14
  "test-cov": "jest lib --coverage",
15
- "lint": "eslint {src,asset,fixture}/**/*.{js,jsx}",
15
+ "lint": "eslint '{src,asset,fixture}/**/*.{js,jsx}'",
16
16
  "_format": "prettier \"*.{json,babelrc,prettierrc,md}\" \"{.github,*[^lib]}/**/*.{js,jsx,json,yml}\"",
17
17
  "format": "npm run _format -- --write",
18
18
  "format-check": "npm run _format -- --check",
19
19
  "docs": "jsdoc src/**/* -d doc -t node_modules/minami",
20
20
  "build": "babel src --out-dir lib && cp -r src/schema lib/schema",
21
- "clean": "rm -rf lib doc coverage"
21
+ "clean": "rm -rf lib doc coverage",
22
+ "prepare": "npm run build"
22
23
  },
23
24
  "directories": {
24
25
  "lib": "./lib"
@@ -42,10 +43,8 @@
42
43
  "eslint-plugin-jest": "^25.3.4",
43
44
  "eslint-plugin-json": "^3.1.0",
44
45
  "eslint-plugin-react": "^7.18.0",
45
- "hexo": "^6.0.0",
46
- "hexo-pagination": "^2.0.0",
47
- "hexo-renderer-markdown": "^1.3.0",
48
- "hexo-util": "^2.2.0",
46
+ "hexo-renderer-marked": "^5.0.0",
47
+ "html-minifier": "^4.0.0",
49
48
  "inferno-server": "^7.4.1",
50
49
  "jest": "^27.4.7",
51
50
  "jsdoc": "^3.6.3",
@@ -54,15 +53,13 @@
54
53
  },
55
54
  "dependencies": {
56
55
  "ajv": "^8.8.2",
56
+ "hexo": "^6.0.0",
57
+ "hexo-pagination": "^2.0.0",
58
+ "hexo-util": "^2.2.0",
57
59
  "inferno": "^7.3.3",
58
60
  "inferno-create-element": "^7.3.3",
59
61
  "js-yaml": "^4.1.0",
60
62
  "moment": "^2.24.0",
61
63
  "semver": "^7.1.1"
62
- },
63
- "peerDependencies": {
64
- "hexo": "^6.0.0",
65
- "hexo-pagination": "^2.0.0",
66
- "hexo-util": "^2.2.0"
67
64
  }
68
65
  }