hexo-component-inferno 1.0.2 → 2.0.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 +4 -11
- package/lib/hexo/helper/cdn.test.js +9 -37
- package/lib/hexo/tag/message.js +100 -0
- package/lib/hexo/tag/message.test.js +79 -0
- package/lib/hexo/tag/tabs.js +290 -0
- package/lib/hexo/tag/tabs.test.js +106 -0
- package/lib/schema/comment/twikoo.json +28 -0
- package/lib/schema/comment/waline.json +46 -43
- 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 +28 -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 +176 -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 +19 -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/search/insight.json +6 -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 +113 -0
- package/lib/view/comment/utterances.js +3 -3
- package/lib/view/comment/valine.js +3 -3
- package/lib/view/comment/waline.js +63 -52
- 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 +10 -11
|
@@ -0,0 +1,53 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/comment/disqusjs.json",
|
|
4
|
+
"description": "DisqusJS comment plugin configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "disqusjs"
|
|
10
|
+
},
|
|
11
|
+
"shortname": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Disqus shortname"
|
|
14
|
+
},
|
|
15
|
+
"api_key": {
|
|
16
|
+
"description": "Disqus application API key",
|
|
17
|
+
"anyOf": [
|
|
18
|
+
{
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
"type": "array",
|
|
23
|
+
"minItems": 1,
|
|
24
|
+
"items": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
},
|
|
30
|
+
"api": {
|
|
31
|
+
"type": "string",
|
|
32
|
+
"description": "Disqus API endpoint"
|
|
33
|
+
},
|
|
34
|
+
"admin": {
|
|
35
|
+
"type": "string",
|
|
36
|
+
"description": "Disqus moderator username",
|
|
37
|
+
"nullable": true
|
|
38
|
+
},
|
|
39
|
+
"admin_label": {
|
|
40
|
+
"type": "string",
|
|
41
|
+
"description": "Disqus moderator badge text",
|
|
42
|
+
"default": false,
|
|
43
|
+
"nullable": true
|
|
44
|
+
},
|
|
45
|
+
"nesting": {
|
|
46
|
+
"type": "integer",
|
|
47
|
+
"description": "Maximum number of comment nesting level",
|
|
48
|
+
"default": 4,
|
|
49
|
+
"nullable": true
|
|
50
|
+
}
|
|
51
|
+
},
|
|
52
|
+
"required": ["type", "shortname", "api_key"]
|
|
53
|
+
}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/comment/facebook.json",
|
|
4
|
+
"description": "Facebook comment plugin configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "facebook"
|
|
10
|
+
}
|
|
11
|
+
},
|
|
12
|
+
"required": ["type"]
|
|
13
|
+
}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/comment/gitalk.json",
|
|
4
|
+
"description": "Gitalk comment plugin configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "gitalk"
|
|
10
|
+
},
|
|
11
|
+
"client_id": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "GitHub application client ID"
|
|
14
|
+
},
|
|
15
|
+
"client_secret": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "GitHub application client secret"
|
|
18
|
+
},
|
|
19
|
+
"repo": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "GitHub repository"
|
|
22
|
+
},
|
|
23
|
+
"owner": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "GitHub repository owner. Can be personal user or organization"
|
|
26
|
+
},
|
|
27
|
+
"admin": {
|
|
28
|
+
"type": "array",
|
|
29
|
+
"description": "GitHub repository owner and collaborators. (Users who having write access to this repository)",
|
|
30
|
+
"items": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
}
|
|
33
|
+
},
|
|
34
|
+
"per_page": {
|
|
35
|
+
"type": "number",
|
|
36
|
+
"description": "Pagination size, with maximum 100",
|
|
37
|
+
"default": 10,
|
|
38
|
+
"nullable": true
|
|
39
|
+
},
|
|
40
|
+
"distraction_free_mode": {
|
|
41
|
+
"type": "boolean",
|
|
42
|
+
"description": "Facebook-like distraction free mode",
|
|
43
|
+
"default": false,
|
|
44
|
+
"nullable": true
|
|
45
|
+
},
|
|
46
|
+
"pager_direction": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "Comment sorting direction, available values are `last` and `first`",
|
|
49
|
+
"default": "last",
|
|
50
|
+
"nullable": true
|
|
51
|
+
},
|
|
52
|
+
"create_issue_manually": {
|
|
53
|
+
"type": "boolean",
|
|
54
|
+
"description": "Create GitHub issues manually for each page",
|
|
55
|
+
"default": false,
|
|
56
|
+
"nullable": true
|
|
57
|
+
},
|
|
58
|
+
"proxy": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "GitHub oauth request reverse proxy for CORS",
|
|
61
|
+
"nullable": true
|
|
62
|
+
},
|
|
63
|
+
"flip_move_options": {
|
|
64
|
+
"type": "object",
|
|
65
|
+
"description": "Comment list animation",
|
|
66
|
+
"nullable": true
|
|
67
|
+
},
|
|
68
|
+
"enable_hotkey": {
|
|
69
|
+
"type": "boolean",
|
|
70
|
+
"description": "Enable hot key (cmd|ctrl + enter) submit comment",
|
|
71
|
+
"default": true,
|
|
72
|
+
"nullable": true
|
|
73
|
+
},
|
|
74
|
+
"language": {
|
|
75
|
+
"type": "string",
|
|
76
|
+
"description": "Name of the supported language",
|
|
77
|
+
"nullable": true
|
|
78
|
+
}
|
|
79
|
+
},
|
|
80
|
+
"required": ["type", "client_id", "client_secret", "repo", "owner", "admin"]
|
|
81
|
+
}
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/comment/gitment.json",
|
|
4
|
+
"description": "Gitment comment plugin configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "gitment"
|
|
10
|
+
},
|
|
11
|
+
"owner": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Your GitHub ID"
|
|
14
|
+
},
|
|
15
|
+
"repo": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "The repository to store your comments. Make sure you're repo's owner"
|
|
18
|
+
},
|
|
19
|
+
"client_id": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "GitHub client ID"
|
|
22
|
+
},
|
|
23
|
+
"client_secret": {
|
|
24
|
+
"type": "string",
|
|
25
|
+
"description": "GitHub client secret"
|
|
26
|
+
},
|
|
27
|
+
"theme": {
|
|
28
|
+
"type": "string",
|
|
29
|
+
"description": "An optional Gitment theme object",
|
|
30
|
+
"default": "gitment.defaultTheme",
|
|
31
|
+
"nullable": true
|
|
32
|
+
},
|
|
33
|
+
"per_page": {
|
|
34
|
+
"type": "number",
|
|
35
|
+
"description": "An optional number to which comments will be paginated",
|
|
36
|
+
"default": 20,
|
|
37
|
+
"nullable": true
|
|
38
|
+
},
|
|
39
|
+
"max_comment_height": {
|
|
40
|
+
"type": "number",
|
|
41
|
+
"description": "An optional number to limit comments' max height, over which comments will be folded",
|
|
42
|
+
"default": 250,
|
|
43
|
+
"nullable": true
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"required": ["type", "owner", "repo", "client_id", "client_secret"]
|
|
47
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/comment/isso.json",
|
|
4
|
+
"description": "Isso comment plugin configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "isso"
|
|
10
|
+
},
|
|
11
|
+
"url": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "URL to your Isso comment service"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["type", "url"]
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/comment/livere.json",
|
|
4
|
+
"description": "Livere comment plugin configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "livere"
|
|
10
|
+
},
|
|
11
|
+
"uid": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "LiveRe comment service UID"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["type", "uid"]
|
|
17
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/comment/twikoo.json",
|
|
4
|
+
"description": "Twikoo comment plugin configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "twikoo"
|
|
10
|
+
},
|
|
11
|
+
"env_id": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "envId from Tencent CloudBase or Vercel URL"
|
|
14
|
+
},
|
|
15
|
+
"region": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Region of Tencent CloudBase",
|
|
18
|
+
"nullable": true
|
|
19
|
+
},
|
|
20
|
+
"lang": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "i18n support",
|
|
23
|
+
"default": "zh-CN",
|
|
24
|
+
"nullable": true
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
"required": ["type", "env_id"]
|
|
28
|
+
}
|
|
@@ -0,0 +1,59 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/comment/utterances.json",
|
|
4
|
+
"description": "Utterances comment plugin configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "utterances"
|
|
10
|
+
},
|
|
11
|
+
"repo": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "GitHub repository to which Utterances connects"
|
|
14
|
+
},
|
|
15
|
+
"label": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Label assigned to issues created by Utterances",
|
|
18
|
+
"nullable": true
|
|
19
|
+
},
|
|
20
|
+
"theme": {
|
|
21
|
+
"type": "string",
|
|
22
|
+
"description": "Utterances look and feel",
|
|
23
|
+
"enum": [
|
|
24
|
+
"github-light",
|
|
25
|
+
"github-dark",
|
|
26
|
+
"github-dark-orange",
|
|
27
|
+
"icy-dark",
|
|
28
|
+
"dark-blue",
|
|
29
|
+
"photon-dark"
|
|
30
|
+
],
|
|
31
|
+
"default": "github-light",
|
|
32
|
+
"nullable": true
|
|
33
|
+
}
|
|
34
|
+
},
|
|
35
|
+
"required": ["type", "repo"],
|
|
36
|
+
"oneOf": [
|
|
37
|
+
{
|
|
38
|
+
"type": "object",
|
|
39
|
+
"properties": {
|
|
40
|
+
"issue_term": {
|
|
41
|
+
"type": "string",
|
|
42
|
+
"description": "The mapping between blog posts and GitHub issues",
|
|
43
|
+
"default": "pathname"
|
|
44
|
+
}
|
|
45
|
+
},
|
|
46
|
+
"required": ["issue_term"]
|
|
47
|
+
},
|
|
48
|
+
{
|
|
49
|
+
"type": "object",
|
|
50
|
+
"properties": {
|
|
51
|
+
"issue_number": {
|
|
52
|
+
"type": "integer",
|
|
53
|
+
"description": "Configure Utterances to load a specific issue by number"
|
|
54
|
+
}
|
|
55
|
+
},
|
|
56
|
+
"required": ["issue_number"]
|
|
57
|
+
}
|
|
58
|
+
]
|
|
59
|
+
}
|
|
@@ -0,0 +1,105 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/comment/valine.json",
|
|
4
|
+
"description": "Valine comment plugin configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "valine"
|
|
10
|
+
},
|
|
11
|
+
"app_id": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Application <APP_ID> from Leancloud"
|
|
14
|
+
},
|
|
15
|
+
"app_key": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Application <APP_KEY> from Leancloud"
|
|
18
|
+
},
|
|
19
|
+
"placeholder": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Comment box placeholders",
|
|
22
|
+
"nullable": true
|
|
23
|
+
},
|
|
24
|
+
"avatar": {
|
|
25
|
+
"type": "string",
|
|
26
|
+
"description": "Gravatar type",
|
|
27
|
+
"enum": ["", "mp", "identicon", "monsterid", "wavatar", "robohash", "retro", "hide", "mm"],
|
|
28
|
+
"default": "mm",
|
|
29
|
+
"nullable": true
|
|
30
|
+
},
|
|
31
|
+
"avatar_force": {
|
|
32
|
+
"type": "boolean",
|
|
33
|
+
"description": "Pull the latest avatar upon page visit",
|
|
34
|
+
"default": false,
|
|
35
|
+
"nullable": true
|
|
36
|
+
},
|
|
37
|
+
"meta": {
|
|
38
|
+
"type": "array",
|
|
39
|
+
"description": "Reviewer attributes",
|
|
40
|
+
"items": {
|
|
41
|
+
"type": "string"
|
|
42
|
+
},
|
|
43
|
+
"default": ["nick", "mail", "link"],
|
|
44
|
+
"nullable": true
|
|
45
|
+
},
|
|
46
|
+
"page_size": {
|
|
47
|
+
"type": "integer",
|
|
48
|
+
"description": "Number of comments per page",
|
|
49
|
+
"default": 10,
|
|
50
|
+
"nullable": true
|
|
51
|
+
},
|
|
52
|
+
"lang": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"description": "i18n support",
|
|
55
|
+
"default": "zh-CN",
|
|
56
|
+
"nullable": true
|
|
57
|
+
},
|
|
58
|
+
"visitor": {
|
|
59
|
+
"type": "boolean",
|
|
60
|
+
"description": "Show visitor count",
|
|
61
|
+
"default": false,
|
|
62
|
+
"nullable": true
|
|
63
|
+
},
|
|
64
|
+
"highlight": {
|
|
65
|
+
"type": "boolean",
|
|
66
|
+
"description": "Enable code highlighting",
|
|
67
|
+
"default": true,
|
|
68
|
+
"nullable": true
|
|
69
|
+
},
|
|
70
|
+
"record_ip": {
|
|
71
|
+
"type": "boolean",
|
|
72
|
+
"description": "Record reviewer IP address",
|
|
73
|
+
"default": false,
|
|
74
|
+
"nullable": true
|
|
75
|
+
},
|
|
76
|
+
"server_urls": {
|
|
77
|
+
"type": "string",
|
|
78
|
+
"description": "Root URL of your custom domain",
|
|
79
|
+
"nullable": true
|
|
80
|
+
},
|
|
81
|
+
"emoji_cdn": {
|
|
82
|
+
"type": "string",
|
|
83
|
+
"description": "CDN URL of the Emoji provider",
|
|
84
|
+
"nullable": true
|
|
85
|
+
},
|
|
86
|
+
"emoji_maps": {
|
|
87
|
+
"type": "object",
|
|
88
|
+
"description": "Mappings between emoji and its CDN file name",
|
|
89
|
+
"nullable": true
|
|
90
|
+
},
|
|
91
|
+
"enable_qq": {
|
|
92
|
+
"type": "boolean",
|
|
93
|
+
"description": "Enable QQ nickname and avatar",
|
|
94
|
+
"default": false,
|
|
95
|
+
"nullable": true
|
|
96
|
+
},
|
|
97
|
+
"required_fields": {
|
|
98
|
+
"type": "array",
|
|
99
|
+
"description": "Required commenter information fields",
|
|
100
|
+
"default": [],
|
|
101
|
+
"nullable": true
|
|
102
|
+
}
|
|
103
|
+
},
|
|
104
|
+
"required": ["type", "app_id", "app_key"]
|
|
105
|
+
}
|
|
@@ -0,0 +1,176 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/comment/waline.json",
|
|
4
|
+
"description": "Waline comment plugin configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "waline"
|
|
10
|
+
},
|
|
11
|
+
"server_url": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Waline server address url."
|
|
14
|
+
},
|
|
15
|
+
"path": {
|
|
16
|
+
"type": "string",
|
|
17
|
+
"description": "Article path id."
|
|
18
|
+
},
|
|
19
|
+
"lang": {
|
|
20
|
+
"type": "string",
|
|
21
|
+
"description": "Display language.",
|
|
22
|
+
"enum": ["zh", "zh-CN", "zh-TW", "en", "en-US", "jp", "jp-JP", "pt-BR", "ru", "ru-RU"],
|
|
23
|
+
"default": "zh-CN",
|
|
24
|
+
"nullable": true
|
|
25
|
+
},
|
|
26
|
+
"locale": {
|
|
27
|
+
"type": "object",
|
|
28
|
+
"description": "I18n configurations",
|
|
29
|
+
"nullable": true
|
|
30
|
+
},
|
|
31
|
+
"emoji": {
|
|
32
|
+
"type": "array",
|
|
33
|
+
"items": {
|
|
34
|
+
"oneOf": [
|
|
35
|
+
{
|
|
36
|
+
"type": "string"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"type": "object",
|
|
40
|
+
"description": "Emoji set configuration.",
|
|
41
|
+
"properties": {
|
|
42
|
+
"name": {
|
|
43
|
+
"type": "string",
|
|
44
|
+
"description": "Emoji name on the tab."
|
|
45
|
+
},
|
|
46
|
+
"folder": {
|
|
47
|
+
"type": "string",
|
|
48
|
+
"description": "Image folder link."
|
|
49
|
+
},
|
|
50
|
+
"prefix": {
|
|
51
|
+
"type": "string",
|
|
52
|
+
"description": "The general prefix of images' filename."
|
|
53
|
+
},
|
|
54
|
+
"type": {
|
|
55
|
+
"type": "string",
|
|
56
|
+
"description": "Type of the picture, which will be used as file extension."
|
|
57
|
+
},
|
|
58
|
+
"icon": {
|
|
59
|
+
"type": "string",
|
|
60
|
+
"description": "Filename of the icon image used in tab (requirement is the same as items)."
|
|
61
|
+
},
|
|
62
|
+
"items": {
|
|
63
|
+
"type": "array",
|
|
64
|
+
"description": "Each item is the picture filename without common prefix (do not include file extension).",
|
|
65
|
+
"items": {
|
|
66
|
+
"type": "string"
|
|
67
|
+
}
|
|
68
|
+
}
|
|
69
|
+
},
|
|
70
|
+
"required": ["name", "folder"]
|
|
71
|
+
}
|
|
72
|
+
]
|
|
73
|
+
},
|
|
74
|
+
"description": "Emoji settings.",
|
|
75
|
+
"default": ["//unpkg.com/@waline/emojis@1.0.1/weibo"],
|
|
76
|
+
"nullable": true
|
|
77
|
+
},
|
|
78
|
+
"dark": {
|
|
79
|
+
"type": ["string", "boolean"],
|
|
80
|
+
"description": "Darkmode support.",
|
|
81
|
+
"nullable": true
|
|
82
|
+
},
|
|
83
|
+
"meta": {
|
|
84
|
+
"type": "array",
|
|
85
|
+
"description": "Reviewer attributes.",
|
|
86
|
+
"items": {
|
|
87
|
+
"type": "string"
|
|
88
|
+
},
|
|
89
|
+
"default": ["nick", "mail", "link"],
|
|
90
|
+
"nullable": true
|
|
91
|
+
},
|
|
92
|
+
"required_meta": {
|
|
93
|
+
"type": "array",
|
|
94
|
+
"description": "Required commenter information fields.",
|
|
95
|
+
"default": [],
|
|
96
|
+
"nullable": true
|
|
97
|
+
},
|
|
98
|
+
"login": {
|
|
99
|
+
"type": "string",
|
|
100
|
+
"description": "Login mode status.",
|
|
101
|
+
"enum": ["enable", "disable", "force"],
|
|
102
|
+
"default": "enable",
|
|
103
|
+
"nullable": true
|
|
104
|
+
},
|
|
105
|
+
"word_limit": {
|
|
106
|
+
"oneOf": [
|
|
107
|
+
{
|
|
108
|
+
"type": "number",
|
|
109
|
+
"minimum": 0,
|
|
110
|
+
"nullable": true
|
|
111
|
+
},
|
|
112
|
+
{
|
|
113
|
+
"type": "array",
|
|
114
|
+
"minItems": 2,
|
|
115
|
+
"maxItems": 2,
|
|
116
|
+
"items": {
|
|
117
|
+
"type": "number",
|
|
118
|
+
"minimum": 0
|
|
119
|
+
},
|
|
120
|
+
"nullable": true
|
|
121
|
+
}
|
|
122
|
+
],
|
|
123
|
+
"description": "Comment word s limit. When a single number is filled in, it 's the maximum number of comment words. No limit when set to 0.",
|
|
124
|
+
"default": 0
|
|
125
|
+
},
|
|
126
|
+
"page_size": {
|
|
127
|
+
"type": "number",
|
|
128
|
+
"description": "Number of comments per page.",
|
|
129
|
+
"default": 10,
|
|
130
|
+
"nullable": true
|
|
131
|
+
},
|
|
132
|
+
"image_uploader": {
|
|
133
|
+
"type": "boolean",
|
|
134
|
+
"description": "Whether to disable the image upload feature.",
|
|
135
|
+
"default": false,
|
|
136
|
+
"nullable": true
|
|
137
|
+
},
|
|
138
|
+
"highlighter": {
|
|
139
|
+
"type": "boolean",
|
|
140
|
+
"description": "Whether to disable the code highlight feature.",
|
|
141
|
+
"default": false,
|
|
142
|
+
"nullable": true
|
|
143
|
+
},
|
|
144
|
+
"tex_renderer": {
|
|
145
|
+
"type": "boolean",
|
|
146
|
+
"description": "Whether to disable TeX rendering.",
|
|
147
|
+
"default": false,
|
|
148
|
+
"nullable": true
|
|
149
|
+
},
|
|
150
|
+
"search": {
|
|
151
|
+
"type": "boolean",
|
|
152
|
+
"description": "Whether to disable the search feature.",
|
|
153
|
+
"default": false,
|
|
154
|
+
"nullable": true
|
|
155
|
+
},
|
|
156
|
+
"pageview": {
|
|
157
|
+
"type": ["string", "boolean"],
|
|
158
|
+
"description": "Whether to show page view count. It can also be a CSS selector to page view count container.",
|
|
159
|
+
"default": false,
|
|
160
|
+
"nullable": true
|
|
161
|
+
},
|
|
162
|
+
"comment": {
|
|
163
|
+
"type": ["string", "boolean"],
|
|
164
|
+
"description": "Whether to show comment count. It can also be a CSS selector to comment count container.",
|
|
165
|
+
"default": false,
|
|
166
|
+
"nullable": true
|
|
167
|
+
},
|
|
168
|
+
"copyright": {
|
|
169
|
+
"type": "boolean",
|
|
170
|
+
"description": "Whether show copyright and version in footer.",
|
|
171
|
+
"default": true,
|
|
172
|
+
"nullable": true
|
|
173
|
+
}
|
|
174
|
+
},
|
|
175
|
+
"required": ["type", "server_url"]
|
|
176
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/donate/afdian.json",
|
|
4
|
+
"description": "\"Afdian.net\" donate button configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "afdian"
|
|
10
|
+
},
|
|
11
|
+
"url": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "URL to the \"Afdian.net\" personal page"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["type", "url"]
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/donate/alipay.json",
|
|
4
|
+
"description": "Alipay donate button configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "alipay"
|
|
10
|
+
},
|
|
11
|
+
"qrcode": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "Alipay qrcode image URL"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["type", "qrcode"]
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/donate/buymeacoffee.json",
|
|
4
|
+
"description": "\"Buy me a coffee\" donate button configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "buymeacoffee"
|
|
10
|
+
},
|
|
11
|
+
"url": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "URL to the \"Buy me a coffee\" page"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["type", "url"]
|
|
17
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
{
|
|
2
|
+
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
+
"$id": "/donate/patreon.json",
|
|
4
|
+
"description": "Patreon donate button configurations",
|
|
5
|
+
"type": "object",
|
|
6
|
+
"properties": {
|
|
7
|
+
"type": {
|
|
8
|
+
"type": "string",
|
|
9
|
+
"const": "patreon"
|
|
10
|
+
},
|
|
11
|
+
"url": {
|
|
12
|
+
"type": "string",
|
|
13
|
+
"description": "URL to the Patreon page"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
"required": ["type", "url"]
|
|
17
|
+
}
|