hexo-component-inferno 3.1.1 → 4.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/asset/js/algolia.js +51 -10
- package/asset/js/google_cse.js +50 -7
- package/asset/js/insight.js +48 -7
- package/lib/hexo/filter/locals.js +2 -2
- package/lib/schema/comment/valine.json +2 -2
- package/lib/schema/plugin/matomo.json +25 -0
- package/lib/schema/plugin/umami.json +25 -0
- package/lib/schema/search/algolia.json +4 -0
- package/lib/util/script.js +65 -0
- package/lib/view/comment/changyan.js +5 -5
- package/lib/view/comment/disqus.js +1 -1
- package/lib/view/comment/disqusjs.js +6 -5
- package/lib/view/comment/facebook.js +1 -1
- package/lib/view/comment/giscus.js +1 -1
- package/lib/view/comment/gitalk.js +6 -5
- package/lib/view/comment/gitment.js +6 -5
- package/lib/view/comment/isso.js +7 -3
- package/lib/view/comment/livere.js +1 -1
- package/lib/view/comment/twikoo.js +3 -4
- package/lib/view/comment/utterances.js +1 -1
- package/lib/view/comment/valine.js +3 -6
- package/lib/view/comment/waline.js +8 -7
- package/lib/view/common/article_media.js +2 -2
- package/lib/view/donate/afdian.js +1 -1
- package/lib/view/donate/alipay.js +1 -1
- package/lib/view/donate/buymeacoffee.js +1 -1
- package/lib/view/donate/patreon.js +1 -1
- package/lib/view/donate/paypal.js +1 -1
- package/lib/view/donate/wechat.js +1 -1
- package/lib/view/misc/article_licensing.js +1 -1
- package/lib/view/misc/meta.js +1 -1
- package/lib/view/misc/open_graph.js +1 -1
- package/lib/view/misc/paginator.js +9 -5
- package/lib/view/misc/structured_data.js +1 -1
- package/lib/view/misc/web_app.js +2 -2
- package/lib/view/plugin/baidu_analytics.js +1 -1
- package/lib/view/plugin/bing_webmaster.js +1 -1
- package/lib/view/plugin/busuanzi.js +1 -1
- package/lib/view/plugin/cnzz.js +1 -1
- package/lib/view/plugin/cookie_consent.js +1 -1
- package/lib/view/plugin/gallery.js +2 -2
- package/lib/view/plugin/google_analytics.js +1 -1
- package/lib/view/plugin/hotjar.js +1 -1
- package/lib/view/plugin/katex.js +1 -1
- package/lib/view/plugin/mathjax.js +1 -1
- package/lib/view/plugin/matomo.js +89 -0
- package/lib/view/plugin/outdated_browser.js +1 -1
- package/lib/view/plugin/progressbar.js +1 -1
- package/lib/view/plugin/statcounter.js +1 -1
- package/lib/view/plugin/twitter_conversion_tracking.js +1 -1
- package/lib/view/plugin/umami.js +88 -0
- package/lib/view/search/algolia.js +11 -5
- package/lib/view/search/baidu.js +5 -3
- package/lib/view/search/google_cse.js +4 -2
- package/lib/view/search/insight.js +3 -1
- package/lib/view/share/addthis.js +1 -1
- package/lib/view/share/addtoany.js +1 -1
- package/lib/view/share/bdshare.js +1 -1
- package/lib/view/share/sharejs.js +1 -1
- package/lib/view/share/sharethis.js +1 -1
- package/lib/view/widget/adsense.js +1 -1
- package/lib/view/widget/archives.js +23 -5
- package/lib/view/widget/categories.js +1 -1
- package/lib/view/widget/followit.js +1 -1
- package/lib/view/widget/links.js +1 -1
- package/lib/view/widget/recent_posts.js +1 -1
- package/lib/view/widget/subscribe_email.js +1 -1
- package/lib/view/widget/tags.js +1 -1
- package/lib/view/widget/toc.js +1 -1
- package/package.json +11 -6
- package/lib/core/migrate.test.js +0 -48
- package/lib/core/schema.test.js +0 -520
- package/lib/core/view.test.js +0 -41
- package/lib/hexo/filter/locals.test.js +0 -118
- package/lib/hexo/generator/assets.test.js +0 -32
- package/lib/hexo/generator/categories.test.js +0 -41
- package/lib/hexo/generator/category.test.js +0 -84
- package/lib/hexo/generator/insight.test.js +0 -95
- package/lib/hexo/generator/manifest.test.js +0 -52
- package/lib/hexo/generator/tags.test.js +0 -41
- package/lib/hexo/helper/cdn.test.js +0 -128
- package/lib/hexo/helper/page.test.js +0 -62
- package/lib/hexo/tag/message.test.js +0 -72
- package/lib/hexo/tag/tabs.test.js +0 -98
- package/lib/schema/schema/comment/changyan.json +0 -21
- package/lib/schema/schema/comment/disqus.json +0 -17
- package/lib/schema/schema/comment/disqusjs.json +0 -53
- package/lib/schema/schema/comment/facebook.json +0 -13
- package/lib/schema/schema/comment/giscus.json +0 -105
- package/lib/schema/schema/comment/gitalk.json +0 -81
- package/lib/schema/schema/comment/gitment.json +0 -47
- package/lib/schema/schema/comment/isso.json +0 -17
- package/lib/schema/schema/comment/livere.json +0 -17
- package/lib/schema/schema/comment/twikoo.json +0 -28
- package/lib/schema/schema/comment/utterances.json +0 -59
- package/lib/schema/schema/comment/valine.json +0 -105
- package/lib/schema/schema/comment/waline.json +0 -176
- package/lib/schema/schema/donate/afdian.json +0 -17
- package/lib/schema/schema/donate/alipay.json +0 -17
- package/lib/schema/schema/donate/buymeacoffee.json +0 -17
- package/lib/schema/schema/donate/patreon.json +0 -17
- package/lib/schema/schema/donate/paypal.json +0 -22
- package/lib/schema/schema/donate/wechat.json +0 -17
- package/lib/schema/schema/misc/manifest.json +0 -66
- package/lib/schema/schema/misc/meta.json +0 -11
- package/lib/schema/schema/misc/open_graph.json +0 -78
- package/lib/schema/schema/misc/poly_links.json +0 -35
- package/lib/schema/schema/misc/structured_data.json +0 -47
- package/lib/schema/schema/plugin/baidu_analytics.json +0 -14
- package/lib/schema/schema/plugin/bing_webmaster.json +0 -14
- package/lib/schema/schema/plugin/busuanzi.json +0 -7
- package/lib/schema/schema/plugin/cnzz.json +0 -19
- package/lib/schema/schema/plugin/cookie_consent.json +0 -38
- package/lib/schema/schema/plugin/gallery.json +0 -7
- package/lib/schema/schema/plugin/google_analytics.json +0 -14
- package/lib/schema/schema/plugin/hotjar.json +0 -14
- package/lib/schema/schema/plugin/katex.json +0 -7
- package/lib/schema/schema/plugin/mathjax.json +0 -7
- package/lib/schema/schema/plugin/outdated_browser.json +0 -7
- package/lib/schema/schema/plugin/progressbar.json +0 -7
- package/lib/schema/schema/plugin/statcounter.json +0 -19
- package/lib/schema/schema/plugin/twitter_conversion_tracking.json +0 -14
- package/lib/schema/schema/search/algolia.json +0 -13
- package/lib/schema/schema/search/baidu.json +0 -13
- package/lib/schema/schema/search/google_cse.json +0 -17
- package/lib/schema/schema/search/insight.json +0 -19
- package/lib/schema/schema/share/addthis.json +0 -17
- package/lib/schema/schema/share/addtoany.json +0 -13
- package/lib/schema/schema/share/bdshare.json +0 -13
- package/lib/schema/schema/share/sharejs.json +0 -13
- package/lib/schema/schema/share/sharethis.json +0 -17
- package/lib/schema/schema/widget/adsense.json +0 -21
- package/lib/schema/schema/widget/archives.json +0 -13
- package/lib/schema/schema/widget/categories.json +0 -13
- package/lib/schema/schema/widget/followit.json +0 -26
- package/lib/schema/schema/widget/links.json +0 -47
- package/lib/schema/schema/widget/recent_posts.json +0 -13
- package/lib/schema/schema/widget/subscribe_email.json +0 -22
- package/lib/schema/schema/widget/tags.json +0 -30
- package/lib/schema/schema/widget/toc.json +0 -31
- package/lib/util/cache.test.js +0 -24
- package/lib/util/classname.test.js +0 -13
- package/lib/util/yaml.test.js +0 -18
- package/lib/view/widget/toc.test.js +0 -30
|
@@ -1,105 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,176 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
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
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "/donate/paypal.json",
|
|
4
|
-
"description": "Paypal donate button configurations",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"type": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"const": "paypal"
|
|
10
|
-
},
|
|
11
|
-
"business": {
|
|
12
|
-
"type": "string",
|
|
13
|
-
"description": "Paypal business ID or email address"
|
|
14
|
-
},
|
|
15
|
-
"currency_code": {
|
|
16
|
-
"type": "string",
|
|
17
|
-
"description": "Currency code",
|
|
18
|
-
"examples": ["USD"]
|
|
19
|
-
}
|
|
20
|
-
},
|
|
21
|
-
"required": ["type", "business", "currency_code"]
|
|
22
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "/donate/wechat.json",
|
|
4
|
-
"description": "Wechat donate button configurations",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"type": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"const": "wechat"
|
|
10
|
-
},
|
|
11
|
-
"qrcode": {
|
|
12
|
-
"type": "string",
|
|
13
|
-
"description": "Wechat qrcode image URL"
|
|
14
|
-
}
|
|
15
|
-
},
|
|
16
|
-
"required": ["type", "qrcode"]
|
|
17
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "/misc/manifest.json",
|
|
4
|
-
"description": "Web application manifests configuration\nhttps://developer.mozilla.org/en-US/docs/Web/Manifest",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"name": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "Name of the web application (default to the site title)",
|
|
10
|
-
"nullable": true
|
|
11
|
-
},
|
|
12
|
-
"short_name": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "The displayed name of the web application\nwhen there is not enough space to display full name",
|
|
15
|
-
"nullable": true
|
|
16
|
-
},
|
|
17
|
-
"start_url": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"description": "The start URL of the web application",
|
|
20
|
-
"nullable": true
|
|
21
|
-
},
|
|
22
|
-
"theme_color": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"description": "The default theme color for the application",
|
|
25
|
-
"nullable": true
|
|
26
|
-
},
|
|
27
|
-
"background_color": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"description": "A placeholder background color for the application page to display\nbefore its stylesheet is loaded",
|
|
30
|
-
"nullable": true
|
|
31
|
-
},
|
|
32
|
-
"display": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"description": "The preferred display mode for the website",
|
|
35
|
-
"nullable": true,
|
|
36
|
-
"default": "standalone"
|
|
37
|
-
},
|
|
38
|
-
"icons": {
|
|
39
|
-
"type": "array",
|
|
40
|
-
"description": "Image files that can serve as application icons for different contexts",
|
|
41
|
-
"items": {
|
|
42
|
-
"type": "object",
|
|
43
|
-
"properties": {
|
|
44
|
-
"src": {
|
|
45
|
-
"type": "string",
|
|
46
|
-
"description": "The path to the image file",
|
|
47
|
-
"nullable": false
|
|
48
|
-
},
|
|
49
|
-
"sizes": {
|
|
50
|
-
"type": "string",
|
|
51
|
-
"description": "A string containing space-separated image dimensions",
|
|
52
|
-
"nullable": false
|
|
53
|
-
},
|
|
54
|
-
"type": {
|
|
55
|
-
"type": "string",
|
|
56
|
-
"description": "A hint as to the media type of the image",
|
|
57
|
-
"nullable": true
|
|
58
|
-
}
|
|
59
|
-
},
|
|
60
|
-
"required": ["src", "sizes"]
|
|
61
|
-
},
|
|
62
|
-
"nullable": true
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"nullable": true
|
|
66
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "/misc/meta.json",
|
|
4
|
-
"description": "Additional HTML meta tags in an array",
|
|
5
|
-
"type": "array",
|
|
6
|
-
"items": {
|
|
7
|
-
"type": "string",
|
|
8
|
-
"description": "Meta tag specified in <attribute>=<value> style\nE.g., name=theme-color;content=#123456 => <meta name=\"theme-color\" content=\"#123456\">"
|
|
9
|
-
},
|
|
10
|
-
"nullable": true
|
|
11
|
-
}
|
|
@@ -1,78 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "/misc/open_graph.json",
|
|
4
|
-
"description": "Open Graph metadata\nhttps://hexo.io/docs/helpers.html#open-graph",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"title": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "Page title (og:title) (optional)\nYou should leave this blank for most of the time",
|
|
10
|
-
"nullable": true
|
|
11
|
-
},
|
|
12
|
-
"type": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "Page type (og:type) (optional)\nYou should leave this blank for most of the time",
|
|
15
|
-
"default": "blog",
|
|
16
|
-
"nullable": true
|
|
17
|
-
},
|
|
18
|
-
"url": {
|
|
19
|
-
"type": "string",
|
|
20
|
-
"description": "Page URL (og:url) (optional)\nYou should leave this blank for most of the time",
|
|
21
|
-
"nullable": true
|
|
22
|
-
},
|
|
23
|
-
"image": {
|
|
24
|
-
"type": ["string", "array"],
|
|
25
|
-
"description": "Page cover (og:image) (optional)\nYou should leave this blank for most of the time",
|
|
26
|
-
"items": {
|
|
27
|
-
"type": "string"
|
|
28
|
-
},
|
|
29
|
-
"nullable": true
|
|
30
|
-
},
|
|
31
|
-
"site_name": {
|
|
32
|
-
"type": "string",
|
|
33
|
-
"description": "Site name (og:site_name) (optional)\nYou should leave this blank for most of the time",
|
|
34
|
-
"nullable": true
|
|
35
|
-
},
|
|
36
|
-
"author": {
|
|
37
|
-
"type": "string",
|
|
38
|
-
"description": "Page author (article:author) (optional)\nYou should leave this blank for most of the time",
|
|
39
|
-
"nullable": true
|
|
40
|
-
},
|
|
41
|
-
"description": {
|
|
42
|
-
"type": "string",
|
|
43
|
-
"description": "Page description (og:description) (optional)\nYou should leave this blank for most of the time",
|
|
44
|
-
"nullable": true
|
|
45
|
-
},
|
|
46
|
-
"twitter_card": {
|
|
47
|
-
"type": "string",
|
|
48
|
-
"description": "Twitter card type (twitter:card)",
|
|
49
|
-
"nullable": true
|
|
50
|
-
},
|
|
51
|
-
"twitter_id": {
|
|
52
|
-
"type": "string",
|
|
53
|
-
"description": "Twitter ID (twitter:creator)",
|
|
54
|
-
"nullable": true
|
|
55
|
-
},
|
|
56
|
-
"twitter_site": {
|
|
57
|
-
"type": "string",
|
|
58
|
-
"description": "Twitter Site (twitter:site)",
|
|
59
|
-
"nullable": true
|
|
60
|
-
},
|
|
61
|
-
"google_plus": {
|
|
62
|
-
"type": "string",
|
|
63
|
-
"description": "Google+ profile link (deprecated)",
|
|
64
|
-
"nullable": true
|
|
65
|
-
},
|
|
66
|
-
"fb_admins": {
|
|
67
|
-
"type": "string",
|
|
68
|
-
"description": "Facebook admin ID",
|
|
69
|
-
"nullable": true
|
|
70
|
-
},
|
|
71
|
-
"fb_app_id": {
|
|
72
|
-
"type": "string",
|
|
73
|
-
"description": "Facebook App ID",
|
|
74
|
-
"nullable": true
|
|
75
|
-
}
|
|
76
|
-
},
|
|
77
|
-
"nullable": true
|
|
78
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "/misc/poly_links.json",
|
|
4
|
-
"description": "A polymorphic link",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"patternProperties": {
|
|
7
|
-
".+": {
|
|
8
|
-
"type": ["string", "object"],
|
|
9
|
-
"description": "URL or path of the link, with/without the icon element class name",
|
|
10
|
-
"properties": {
|
|
11
|
-
"url": {
|
|
12
|
-
"type": "string",
|
|
13
|
-
"description": "URL or path of the link"
|
|
14
|
-
},
|
|
15
|
-
"icon": {
|
|
16
|
-
"type": ["string", "array"],
|
|
17
|
-
"description": "Icon element class name"
|
|
18
|
-
}
|
|
19
|
-
},
|
|
20
|
-
"required": ["url", "icon"]
|
|
21
|
-
}
|
|
22
|
-
},
|
|
23
|
-
"examples": [
|
|
24
|
-
{
|
|
25
|
-
"My GitHub Page": "https://github.com/ppoffice"
|
|
26
|
-
},
|
|
27
|
-
{
|
|
28
|
-
"My GitHub Page": {
|
|
29
|
-
"url": "https://github.com/ppoffice",
|
|
30
|
-
"icon": "fab fa-github"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
],
|
|
34
|
-
"nullable": true
|
|
35
|
-
}
|
|
@@ -1,47 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "/misc/structured_data.json",
|
|
4
|
-
"description": "Structured data of the page\nhttps://developers.google.com/search/docs/guides/intro-structured-data",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"title": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "Page title (optional)\nYou should leave this blank for most of the time",
|
|
10
|
-
"nullable": true
|
|
11
|
-
},
|
|
12
|
-
"description": {
|
|
13
|
-
"type": "string",
|
|
14
|
-
"description": "Page description (optional)\nYou should leave this blank for most of the time",
|
|
15
|
-
"nullable": true
|
|
16
|
-
},
|
|
17
|
-
"url": {
|
|
18
|
-
"type": "string",
|
|
19
|
-
"description": "Page URL (optional)\nYou should leave this blank for most of the time",
|
|
20
|
-
"nullable": true
|
|
21
|
-
},
|
|
22
|
-
"author": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"description": "Page author (article:author) (optional)\nYou should leave this blank for most of the time",
|
|
25
|
-
"nullable": true
|
|
26
|
-
},
|
|
27
|
-
"publisher": {
|
|
28
|
-
"type": "string",
|
|
29
|
-
"description": "Page publisher (optional)\nYou should leave this blank for most of the time",
|
|
30
|
-
"nullable": true
|
|
31
|
-
},
|
|
32
|
-
"publisher_logo": {
|
|
33
|
-
"type": "string",
|
|
34
|
-
"description": "Page publisher logo (optional)\nYou should leave this blank for most of the time",
|
|
35
|
-
"nullable": true
|
|
36
|
-
},
|
|
37
|
-
"image": {
|
|
38
|
-
"type": ["string", "array"],
|
|
39
|
-
"description": "Page images (optional)\nYou should leave this blank for most of the time",
|
|
40
|
-
"items": {
|
|
41
|
-
"type": "string"
|
|
42
|
-
},
|
|
43
|
-
"nullable": true
|
|
44
|
-
}
|
|
45
|
-
},
|
|
46
|
-
"nullable": true
|
|
47
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "/plugin/baidu_analytics.json",
|
|
4
|
-
"description": "Baidu Analytics plugin settings\nhttps://tongji.baidu.com",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"tracking_id": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "Baidu Analytics tracking ID",
|
|
10
|
-
"nullable": true
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"required": ["tracking_id"]
|
|
14
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
3
|
-
"$id": "/plugin/bing_webmaster.json",
|
|
4
|
-
"description": "Bing Webmaster Tools plugin settings\nhttps://www.bing.com/toolbox/webmaster/",
|
|
5
|
-
"type": "object",
|
|
6
|
-
"properties": {
|
|
7
|
-
"tracking_id": {
|
|
8
|
-
"type": "string",
|
|
9
|
-
"description": "Bing Webmaster Tools tracking ID in the <meta> tag",
|
|
10
|
-
"nullable": true
|
|
11
|
-
}
|
|
12
|
-
},
|
|
13
|
-
"required": ["tracking_id"]
|
|
14
|
-
}
|