hexo-component-inferno 1.0.1 → 1.2.0
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/lib/hexo/generator/insight.js +8 -1
- package/lib/hexo/generator/insight.test.js +16 -0
- package/lib/hexo/helper/cdn.js +1 -2
- package/lib/hexo/helper/cdn.test.js +9 -9
- package/lib/hexo/tag/message.js +100 -0
- package/lib/hexo/tag/message.test.js +70 -0
- package/lib/hexo/tag/tabs.js +290 -0
- package/lib/hexo/tag/tabs.test.js +97 -0
- package/lib/schema/comment/disqusjs.json +4 -5
- package/lib/schema/comment/twikoo.json +17 -0
- package/lib/schema/comment/waline.json +28 -36
- package/lib/schema/schema/comment/changyan.json +21 -0
- package/lib/schema/schema/comment/disqus.json +17 -0
- package/lib/schema/schema/comment/disqusjs.json +53 -0
- package/lib/schema/schema/comment/facebook.json +13 -0
- package/lib/schema/schema/comment/gitalk.json +81 -0
- package/lib/schema/schema/comment/gitment.json +47 -0
- package/lib/schema/schema/comment/isso.json +17 -0
- package/lib/schema/schema/comment/livere.json +17 -0
- package/lib/schema/schema/comment/twikoo.json +17 -0
- package/lib/schema/schema/comment/utterances.json +59 -0
- package/lib/schema/schema/comment/valine.json +105 -0
- package/lib/schema/schema/comment/waline.json +164 -0
- package/lib/schema/schema/donate/afdian.json +17 -0
- package/lib/schema/schema/donate/alipay.json +17 -0
- package/lib/schema/schema/donate/buymeacoffee.json +17 -0
- package/lib/schema/schema/donate/patreon.json +17 -0
- package/lib/schema/schema/donate/paypal.json +22 -0
- package/lib/schema/schema/donate/wechat.json +17 -0
- package/lib/schema/schema/misc/manifest.json +66 -0
- package/lib/schema/schema/misc/meta.json +11 -0
- package/lib/schema/schema/misc/open_graph.json +78 -0
- package/lib/schema/schema/misc/poly_links.json +35 -0
- package/lib/schema/schema/misc/structured_data.json +47 -0
- package/lib/schema/schema/plugin/baidu_analytics.json +14 -0
- package/lib/schema/schema/plugin/bing_webmaster.json +14 -0
- package/lib/schema/schema/plugin/busuanzi.json +7 -0
- package/lib/schema/schema/plugin/cnzz.json +19 -0
- package/lib/schema/schema/plugin/cookie_consent.json +38 -0
- package/lib/schema/schema/plugin/gallery.json +7 -0
- package/lib/schema/schema/plugin/google_analytics.json +14 -0
- package/lib/schema/schema/plugin/hotjar.json +14 -0
- package/lib/schema/schema/plugin/katex.json +7 -0
- package/lib/schema/schema/plugin/mathjax.json +7 -0
- package/lib/schema/schema/plugin/outdated_browser.json +7 -0
- package/lib/schema/schema/plugin/progressbar.json +7 -0
- package/lib/schema/schema/plugin/statcounter.json +19 -0
- package/lib/schema/schema/plugin/twitter_conversion_tracking.json +14 -0
- package/lib/schema/schema/search/algolia.json +13 -0
- package/lib/schema/schema/search/baidu.json +13 -0
- package/lib/schema/schema/search/google_cse.json +17 -0
- package/lib/schema/schema/search/insight.json +13 -0
- package/lib/schema/schema/share/addthis.json +17 -0
- package/lib/schema/schema/share/addtoany.json +13 -0
- package/lib/schema/schema/share/bdshare.json +13 -0
- package/lib/schema/schema/share/sharejs.json +13 -0
- package/lib/schema/schema/share/sharethis.json +17 -0
- package/lib/schema/schema/widget/adsense.json +21 -0
- package/lib/schema/schema/widget/archives.json +13 -0
- package/lib/schema/schema/widget/categories.json +13 -0
- package/lib/schema/schema/widget/followit.json +26 -0
- package/lib/schema/schema/widget/links.json +47 -0
- package/lib/schema/schema/widget/recent_posts.json +13 -0
- package/lib/schema/schema/widget/subscribe_email.json +22 -0
- package/lib/schema/schema/widget/tags.json +30 -0
- package/lib/schema/schema/widget/toc.json +31 -0
- package/lib/schema/widget/tags.json +17 -0
- package/lib/view/comment/changyan.js +2 -2
- package/lib/view/comment/disqus.js +2 -2
- package/lib/view/comment/disqusjs.js +2 -2
- package/lib/view/comment/facebook.js +2 -2
- package/lib/view/comment/gitalk.js +2 -2
- package/lib/view/comment/gitment.js +2 -2
- package/lib/view/comment/isso.js +2 -2
- package/lib/view/comment/livere.js +2 -2
- package/lib/view/comment/twikoo.js +102 -0
- package/lib/view/comment/utterances.js +2 -2
- package/lib/view/comment/valine.js +2 -2
- package/lib/view/comment/waline.js +31 -36
- package/lib/view/common/article_media.js +2 -2
- package/lib/view/donate/afdian.js +2 -2
- package/lib/view/donate/alipay.js +2 -2
- package/lib/view/donate/buymeacoffee.js +2 -2
- package/lib/view/donate/patreon.js +2 -2
- package/lib/view/donate/paypal.js +2 -2
- package/lib/view/donate/wechat.js +2 -2
- package/lib/view/misc/article_licensing.js +2 -2
- package/lib/view/misc/meta.js +2 -2
- package/lib/view/misc/open_graph.js +12 -4
- package/lib/view/misc/paginator.js +2 -2
- package/lib/view/misc/structured_data.js +2 -2
- package/lib/view/misc/web_app.js +2 -2
- package/lib/view/plugin/baidu_analytics.js +2 -2
- package/lib/view/plugin/bing_webmaster.js +2 -2
- package/lib/view/plugin/busuanzi.js +2 -2
- package/lib/view/plugin/cnzz.js +2 -2
- package/lib/view/plugin/cookie_consent.js +2 -2
- package/lib/view/plugin/gallery.js +2 -2
- package/lib/view/plugin/google_analytics.js +2 -2
- package/lib/view/plugin/hotjar.js +2 -2
- package/lib/view/plugin/katex.js +2 -2
- package/lib/view/plugin/mathjax.js +2 -2
- package/lib/view/plugin/outdated_browser.js +2 -2
- package/lib/view/plugin/progressbar.js +2 -2
- package/lib/view/plugin/statcounter.js +2 -2
- package/lib/view/plugin/twitter_conversion_tracking.js +2 -2
- package/lib/view/search/algolia.js +2 -2
- package/lib/view/search/baidu.js +2 -2
- package/lib/view/search/google_cse.js +2 -2
- package/lib/view/search/insight.js +2 -2
- package/lib/view/share/addthis.js +2 -2
- package/lib/view/share/addtoany.js +2 -2
- package/lib/view/share/bdshare.js +2 -2
- package/lib/view/share/sharejs.js +2 -2
- package/lib/view/share/sharethis.js +2 -2
- package/lib/view/widget/adsense.js +2 -2
- package/lib/view/widget/archives.js +2 -2
- package/lib/view/widget/categories.js +2 -2
- package/lib/view/widget/followit.js +2 -2
- package/lib/view/widget/links.js +2 -2
- package/lib/view/widget/recent_posts.js +2 -2
- package/lib/view/widget/subscribe_email.js +2 -2
- package/lib/view/widget/tags.js +16 -15
- package/lib/view/widget/toc.js +2 -2
- package/package.json +9 -11
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/plugin/cnzz.json",
|
|
4
|
+
"description": "CNZZ statistics\nhttps://www.umeng.com/web",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"id": {
|
|
8
|
+
"type": ["string", "number"],
|
|
9
|
+
"description": "CNZZ tracker id",
|
|
10
|
+
"nullable": true
|
|
11
|
+
},
|
|
12
|
+
"web_id": {
|
|
13
|
+
"type": ["string", "number"],
|
|
14
|
+
"description": "CNZZ website id",
|
|
15
|
+
"nullable": true
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": ["id", "web_id"]
|
|
19
|
+
}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/plugin/cookie_consent.json",
|
|
4
|
+
"description": "Alerting users about the use of cookies\nhttps://www.osano.com/cookieconsent/",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "The compliance type. Can be \"info\", \"opt-in\", or \"opt-out\"",
|
|
10
|
+
"default": "info",
|
|
11
|
+
"nullable": true
|
|
12
|
+
},
|
|
13
|
+
"theme": {
|
|
14
|
+
"type": "string",
|
|
15
|
+
"description": "Theme of the popup. Can be \"block\", \"edgeless\", or \"classic\"",
|
|
16
|
+
"default": "edgeless",
|
|
17
|
+
"nullable": true
|
|
18
|
+
},
|
|
19
|
+
"static": {
|
|
20
|
+
"type": "boolean",
|
|
21
|
+
"description": "Whether the popup should stay static regardless of the page scrolls",
|
|
22
|
+
"default": false,
|
|
23
|
+
"nullable": true
|
|
24
|
+
},
|
|
25
|
+
"position": {
|
|
26
|
+
"type": "string",
|
|
27
|
+
"description": "Where on the screen the consent popup should display",
|
|
28
|
+
"default": "bottom-left",
|
|
29
|
+
"nullable": true
|
|
30
|
+
},
|
|
31
|
+
"policyLink": {
|
|
32
|
+
"type": "string",
|
|
33
|
+
"description": "URL to your site's cookie policy",
|
|
34
|
+
"default": "https://www.cookiesandyou.com/",
|
|
35
|
+
"nullable": true
|
|
36
|
+
}
|
|
37
|
+
}
|
|
38
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/plugin/google_analytics.json",
|
|
4
|
+
"description": "Google Analytics plugin settings\nhttps://analytics.google.com",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"tracking_id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Google Analytics tracking ID",
|
|
10
|
+
"nullable": true
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"required": ["tracking_id"]
|
|
14
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/plugin/hotjar.json",
|
|
4
|
+
"description": "Hotjar user feedback plugin\nhttps://www.hotjar.com/",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"site_id": {
|
|
8
|
+
"type": ["string", "number"],
|
|
9
|
+
"description": "Hotjar site id",
|
|
10
|
+
"nullable": true
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"required": ["site_id"]
|
|
14
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/plugin/statcounter.json",
|
|
4
|
+
"description": "Statcounter statistics\nhttps://statcounter.com/",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"project": {
|
|
8
|
+
"type": ["string", "number"],
|
|
9
|
+
"description": "Statcounter project id",
|
|
10
|
+
"nullable": true
|
|
11
|
+
},
|
|
12
|
+
"security": {
|
|
13
|
+
"type": ["string", "number"],
|
|
14
|
+
"description": "Statcounter project security code",
|
|
15
|
+
"nullable": true
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
"required": ["project", "security"]
|
|
19
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/plugin/twitter_conversion_tracking.json",
|
|
4
|
+
"description": "Twitter conversion tracking plugin settings\nhttps://business.twitter.com/en/help/campaign-measurement-and-analytics/conversion-tracking-for-websites.html",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"pixel_id": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"description": "Twitter Pixel ID",
|
|
10
|
+
"nullable": true
|
|
11
|
+
}
|
|
12
|
+
},
|
|
13
|
+
"required": ["pixel_id"]
|
|
14
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/search/algolia.json",
|
|
4
|
+
"description": "Enable Algolia search\nhttps://www.algolia.com",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "algolia"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": ["type"]
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/search/baidu.json",
|
|
4
|
+
"description": "Enable Baidu search",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "baidu"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": ["type"]
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/search/google_cse.json",
|
|
4
|
+
"description": "Enable Google CSE\nhttps://cse.google.com/cse/create/new",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "google_cse"
|
|
10
|
+
},
|
|
11
|
+
"cx": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Google CSE cx value"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["type", "cx"]
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/search/insight.json",
|
|
4
|
+
"description": "Enable Insight search",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "insight"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": ["type"]
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/share/addthis.json",
|
|
4
|
+
"description": "Enable AddThis share buttons\nhttps://www.addthis.com/",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "addthis"
|
|
10
|
+
},
|
|
11
|
+
"install_url": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "URL to the AddThis share plugin script"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["type", "install_url"]
|
|
17
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/share/addtoany.json",
|
|
4
|
+
"description": "Enable AddToAny share buttons\nhttps://www.addtoany.com/",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "addtoany"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": ["type"]
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/share/bdshare.json",
|
|
4
|
+
"description": "Enable Baidu share buttons",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "bdshare"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": ["type"]
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/share/sharejs.json",
|
|
4
|
+
"description": "Enable Share.js share buttons\nhttps://github.com/overtrue/share.js/",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "sharejs"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": ["type"]
|
|
13
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/share/sharethis.json",
|
|
4
|
+
"description": "Enable ShareThis share buttons\nhttps://sharethis.com/",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "sharethis"
|
|
10
|
+
},
|
|
11
|
+
"install_url": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "URL to the ShareThis share plugin script"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["type", "install_url"]
|
|
17
|
+
}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/widget/adsense.json",
|
|
4
|
+
"description": "Google AdSense unit configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "adsense"
|
|
10
|
+
},
|
|
11
|
+
"client_id": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "AdSense client ID"
|
|
14
|
+
},
|
|
15
|
+
"slot_id": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "AdSense AD unit ID"
|
|
18
|
+
}
|
|
19
|
+
},
|
|
20
|
+
"required": ["type", "client_id", "slot_id"]
|
|
21
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/widget/archives.json",
|
|
4
|
+
"description": "Archives widget configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "archives"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": ["type"]
|
|
13
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/widget/categories.json",
|
|
4
|
+
"description": "Categories widget configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "categories"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": ["type"]
|
|
13
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/widget/followit.json",
|
|
4
|
+
"description": "Follow.it email subscription widget configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "followit"
|
|
10
|
+
},
|
|
11
|
+
"description": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Hint text under the email input",
|
|
14
|
+
"nullable": true
|
|
15
|
+
},
|
|
16
|
+
"action_url": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Subscription form action URL"
|
|
19
|
+
},
|
|
20
|
+
"verification_code": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Feed claiming verification code"
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
"required": ["type", "action_url", "verification_code"]
|
|
26
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/widget/links.json",
|
|
4
|
+
"description": "Recommendation links widget configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "links"
|
|
10
|
+
},
|
|
11
|
+
"links": {
|
|
12
|
+
"type": "object",
|
|
13
|
+
"description": "Names and URLs of the sites",
|
|
14
|
+
"patternProperties": {
|
|
15
|
+
".+": {
|
|
16
|
+
"anyOf": [
|
|
17
|
+
{
|
|
18
|
+
"type": "string",
|
|
19
|
+
"description": "URL of the site"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "object",
|
|
23
|
+
"properties": {
|
|
24
|
+
"link": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "URL of the site"
|
|
27
|
+
},
|
|
28
|
+
"hide_hostname": {
|
|
29
|
+
"type": "boolean",
|
|
30
|
+
"description": "Whether remove righthand hostname tag from the menu"
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
]
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
"examples": [
|
|
38
|
+
{
|
|
39
|
+
"Hexo": "https://hexo.io",
|
|
40
|
+
"Bulma": "https://bulma.io"
|
|
41
|
+
}
|
|
42
|
+
],
|
|
43
|
+
"nullable": true
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"required": ["type"]
|
|
47
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/widget/recent_posts.json",
|
|
4
|
+
"description": "Recent posts widget configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "recent_posts"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": ["type"]
|
|
13
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/widget/subscribe_email.json",
|
|
4
|
+
"description": "Google FeedBurner email subscription widget configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "subscribe_email"
|
|
10
|
+
},
|
|
11
|
+
"description": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Hint text under the email input",
|
|
14
|
+
"nullable": true
|
|
15
|
+
},
|
|
16
|
+
"feedburner_id": {
|
|
17
|
+
"type": "string",
|
|
18
|
+
"description": "Feedburner ID"
|
|
19
|
+
}
|
|
20
|
+
},
|
|
21
|
+
"required": ["type", "feedburner_id"]
|
|
22
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/widget/tags.json",
|
|
4
|
+
"description": "Tags widget configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "tags"
|
|
10
|
+
},
|
|
11
|
+
"order_by": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"default": "name",
|
|
14
|
+
"description": "How to order tags. For example 'name' to order by name in ascending order, and '-length' to order by number of posts in each tags in descending order",
|
|
15
|
+
"nullable": true
|
|
16
|
+
},
|
|
17
|
+
"amount": {
|
|
18
|
+
"type": "integer",
|
|
19
|
+
"description": "Amount of tags to show. Will show all if not set.",
|
|
20
|
+
"nullable": true
|
|
21
|
+
},
|
|
22
|
+
"show_count": {
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"default": true,
|
|
25
|
+
"description": "Whether to show tags count, i.e. number of posts in the tag.",
|
|
26
|
+
"nullable": true
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
"required": ["type"]
|
|
30
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/widget/toc.json",
|
|
4
|
+
"description": "Table of contents widget configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "toc"
|
|
10
|
+
},
|
|
11
|
+
"index": {
|
|
12
|
+
"type": "boolean",
|
|
13
|
+
"description": "Whether to show the index of each heading",
|
|
14
|
+
"default": true,
|
|
15
|
+
"nullable": true
|
|
16
|
+
},
|
|
17
|
+
"collapsed": {
|
|
18
|
+
"type": "boolean",
|
|
19
|
+
"description": "Whether to collapse sub-headings when they are out-of-view",
|
|
20
|
+
"default": true,
|
|
21
|
+
"nullable": true
|
|
22
|
+
},
|
|
23
|
+
"depth": {
|
|
24
|
+
"type": "integer",
|
|
25
|
+
"description": "Maximum level of headings to show (1-6)",
|
|
26
|
+
"default": 3,
|
|
27
|
+
"nullable": true
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
"required": ["type"]
|
|
31
|
+
}
|
|
@@ -7,6 +7,23 @@
|
|
|
7
7
|
"type": {
|
|
8
8
|
"type": "string",
|
|
9
9
|
"const": "tags"
|
|
10
|
+
},
|
|
11
|
+
"order_by": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"default": "name",
|
|
14
|
+
"description": "How to order tags. For example 'name' to order by name in ascending order, and '-length' to order by number of posts in each tags in descending order",
|
|
15
|
+
"nullable": true
|
|
16
|
+
},
|
|
17
|
+
"amount": {
|
|
18
|
+
"type": "integer",
|
|
19
|
+
"description": "Amount of tags to show. Will show all if not set.",
|
|
20
|
+
"nullable": true
|
|
21
|
+
},
|
|
22
|
+
"show_count": {
|
|
23
|
+
"type": "boolean",
|
|
24
|
+
"default": true,
|
|
25
|
+
"description": "Whether to show tags count, i.e. number of posts in the tag.",
|
|
26
|
+
"nullable": true
|
|
10
27
|
}
|
|
11
28
|
},
|
|
12
29
|
"required": ["type"]
|
|
@@ -12,7 +12,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
12
12
|
|
|
13
13
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
14
14
|
|
|
15
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
15
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
16
16
|
|
|
17
17
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
18
18
|
|
|
@@ -22,7 +22,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
22
22
|
|
|
23
23
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
24
24
|
|
|
25
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
25
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* ChangYan comment JSX component.
|
|
@@ -12,7 +12,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
12
12
|
|
|
13
13
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
14
14
|
|
|
15
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
15
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
16
16
|
|
|
17
17
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
18
18
|
|
|
@@ -22,7 +22,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
22
22
|
|
|
23
23
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
24
24
|
|
|
25
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
25
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* Disqus comment JSX component.
|
|
@@ -12,7 +12,7 @@ function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _d
|
|
|
12
12
|
|
|
13
13
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
14
14
|
|
|
15
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf
|
|
15
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
16
16
|
|
|
17
17
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
18
18
|
|
|
@@ -22,7 +22,7 @@ function _assertThisInitialized(self) { if (self === void 0) { throw new Referen
|
|
|
22
22
|
|
|
23
23
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
24
24
|
|
|
25
|
-
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
25
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
26
26
|
|
|
27
27
|
/**
|
|
28
28
|
* DisqusJS comment JSX component.
|