hexo-theme-shokax 0.1.0 → 0.1.2
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/_config.yml +20 -17
- package/package.json +1 -1
- package/scripts/generaters/script.js +2 -1
- package/source/js/_app/library.js +2 -2
- package/source/js/_app/player.js +2 -1
package/_config.yml
CHANGED
@@ -11,7 +11,6 @@ open_graph:
|
|
11
11
|
#fb_admins:
|
12
12
|
#fb_app_id:
|
13
13
|
|
14
|
-
|
15
14
|
grayMode: false # 全站黑白滤镜
|
16
15
|
# 请注意: 本主题的PWA功能只是一个装载器,需要自备js和manifest
|
17
16
|
# 图片可通过https://lp-pwa.gitee.io/pwa-genicon/生成
|
@@ -28,6 +27,10 @@ experiments:
|
|
28
27
|
debug: false # 使用debug模式启动
|
29
28
|
disableThemeComment: false # 禁用主题评论系统(一般用于关闭评论或让插件接管评论系统)
|
30
29
|
|
30
|
+
playerAPI: "https://api.injahow.cn" # 结尾不带/,只填写域名
|
31
|
+
# 如果条件允许,请参考 https://github.com/injahow/meting-api 自建API
|
32
|
+
# 建议使用vercel自行部署,请参考: https://github.com/xizeyoupan/Meting-API
|
33
|
+
|
31
34
|
icon:
|
32
35
|
favicon: "/favicon.ico"
|
33
36
|
apple_touch_icon: "/apple-touch-icon.png"
|
@@ -44,9 +47,9 @@ visitor:
|
|
44
47
|
|
45
48
|
darkmode: false
|
46
49
|
auto_dark: # 自动亮/暗模式
|
47
|
-
enable: true
|
48
|
-
start: 20
|
49
|
-
end: 7
|
50
|
+
enable: true #是否开启
|
51
|
+
start: 20 #开始时间
|
52
|
+
end: 7 #结束时间
|
50
53
|
|
51
54
|
auto_scroll: true
|
52
55
|
|
@@ -137,7 +140,7 @@ twikoo:
|
|
137
140
|
# https://waline.js.org/
|
138
141
|
waline:
|
139
142
|
enable: false
|
140
|
-
serverURL:
|
143
|
+
serverURL: ""
|
141
144
|
lang: "zh-CN"
|
142
145
|
locale: {} # https://waline.js.org/guide/features/i18n.html#%E8%87%AA%E5%AE%9A%E4%B9%89%E8%AF%AD%E8%A8%80
|
143
146
|
emoji: # 表情包
|
@@ -181,7 +184,6 @@ giscus:
|
|
181
184
|
commentTheme:
|
182
185
|
lang:
|
183
186
|
|
184
|
-
|
185
187
|
# Social Links
|
186
188
|
# Usage: `Key: permalink || icon || color`
|
187
189
|
# Key is the link label showing to end users.
|
@@ -207,7 +209,7 @@ sidebar:
|
|
207
209
|
# Sidebar Position.
|
208
210
|
position: left
|
209
211
|
# position: right
|
210
|
-
# Replace the default avatar image and set the url here.
|
212
|
+
# Replace the default avatar image under <root>/source/_data/assets/ and set the url here.
|
211
213
|
avatar: avatar.jpg
|
212
214
|
|
213
215
|
widgets:
|
@@ -227,9 +229,9 @@ footer:
|
|
227
229
|
count: true
|
228
230
|
powered: true
|
229
231
|
lantern:
|
230
|
-
enable: true
|
231
|
-
word1: 中
|
232
|
-
word2: 秋
|
232
|
+
enable: true #是否开启
|
233
|
+
word1: 中 #第一个字
|
234
|
+
word2: 秋 #第二个字
|
233
235
|
icp: # ICP备案
|
234
236
|
enable: false
|
235
237
|
icon: "beian.webp" #网安备案图片
|
@@ -276,14 +278,15 @@ creative_commons:
|
|
276
278
|
language: deed.zh
|
277
279
|
|
278
280
|
# bgm
|
281
|
+
# 不使用请打开noplayer功能
|
279
282
|
audio:
|
280
|
-
- title: 列表1
|
281
|
-
list:
|
282
|
-
- https://music.163.com/#/playlist?id=2943811283
|
283
|
-
- https://music.163.com/#/playlist?id=2297706586
|
284
|
-
- title: 列表2
|
285
|
-
list:
|
286
|
-
- https://music.163.com/#/playlist?id=2031842656
|
283
|
+
# - title: 列表1
|
284
|
+
# list:
|
285
|
+
# - https://music.163.com/#/playlist?id=2943811283
|
286
|
+
# - https://music.163.com/#/playlist?id=2297706586
|
287
|
+
# - title: 列表2
|
288
|
+
# list:
|
289
|
+
# - https://music.163.com/#/playlist?id=2031842656
|
287
290
|
|
288
291
|
# random image api
|
289
292
|
image_server: # "https://acg.xydwz.cn/api/api.php"
|
package/package.json
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
const getDocHeight = () => $dom('main > .inner').offsetHeight;
|
2
2
|
const $dom = (selector, element = document) => {
|
3
|
-
if (selector
|
4
|
-
return element.getElementById(selector.
|
3
|
+
if (selector[0] === '#') {
|
4
|
+
return element.getElementById(selector.substring(1));
|
5
5
|
}
|
6
6
|
return element.querySelector(selector);
|
7
7
|
};
|
package/source/js/_app/player.js
CHANGED
@@ -388,7 +388,7 @@ const mediaPlayer = function (t, config) {
|
|
388
388
|
resolve(list);
|
389
389
|
}
|
390
390
|
else {
|
391
|
-
fetch(
|
391
|
+
fetch(`${CONFIG.playerAPI}/meting/?server=` + meta[0] + '&type=' + meta[1] + '&id=' + meta[2] + '&r=' + Math.random())
|
392
392
|
.then(function (response) {
|
393
393
|
return response.json();
|
394
394
|
}).then(function (json) {
|
@@ -431,6 +431,7 @@ const mediaPlayer = function (t, config) {
|
|
431
431
|
if (this.options.rawList !== newList) {
|
432
432
|
this.options.rawList = newList;
|
433
433
|
playlist.clear();
|
434
|
+
this.fetch();
|
434
435
|
}
|
435
436
|
}
|
436
437
|
else {
|