|
1 | 1 | const $ = new Env('BoxJs') |
2 | 2 |
|
3 | | -$.version = '0.7.18' |
| 3 | +$.version = '0.7.19' |
4 | 4 | $.versionType = 'beta' |
5 | 5 |
|
6 | 6 | /** |
@@ -249,12 +249,14 @@ function getSystemApps() { |
249 | 249 | descs: ['可设置 http-api 地址 & 超时时间 (Surge TF)', '可设置明暗两种主题下的主色调'], |
250 | 250 | keys: [ |
251 | 251 | '@chavy_boxjs_userCfgs.httpapi', |
| 252 | + '@chavy_boxjs_userCfgs.bgimg', |
252 | 253 | '@chavy_boxjs_userCfgs.color_dark_primary', |
253 | 254 | '@chavy_boxjs_userCfgs.color_light_primary' |
254 | 255 | ], |
255 | 256 | settings: [ |
256 | | - { id: '@chavy_boxjs_userCfgs.httpapis', name: 'HTTP-API (Surge TF)', val: '', type: 'textarea', placeholder: ',examplekey@127.0.0.1:6166', autoGrow: true, rows: 2, desc: '示例: ,examplekey@127.0.0.1:6166! 注意: 以逗号开头, 逗号分隔多个地址, 可加回车' }, |
| 257 | + { id: '@chavy_boxjs_userCfgs.httpapis', name: 'HTTP-API (Surge TF)', val: '', type: 'textarea', placeholder: ',examplekey@127.0.0.1:6166', autoGrow: true, rows: 2, persistentHint:true, desc: '示例: ,examplekey@127.0.0.1:6166! 注意: 以逗号开头, 逗号分隔多个地址, 可加回车' }, |
257 | 258 | { id: '@chavy_boxjs_userCfgs.httpapi_timeout', name: 'HTTP-API Timeout (Surge TF)', val: 20, type: 'number', persistentHint:true, desc: '如果脚本作者指定了超时时间, 会优先使用脚本指定的超时时间.' }, |
| 259 | + { id: '@chavy_boxjs_userCfgs.bgimgs', name: '背景图片清单', val: '无背景,\n妹子,http://api.btstu.cn/sjbz/zsy.php', type: 'textarea', placeholder: '无, {回车} 妹子,图片地址', persistentHint:true, autoGrow: true, rows: 2, desc: '逗号分隔名字和链接, 回车分隔多个地址' }, |
258 | 260 | { id: '@chavy_boxjs_userCfgs.bgimg', name: '背景图片', val: '', type: 'text', placeholder: 'http://api.btstu.cn/sjbz/zsy.php', persistentHint:true, desc: '输入背景图标的在线链接' }, |
259 | 261 | { id: '@chavy_boxjs_userCfgs.color_light_primary', name: '明亮色调', canvas: true, val: '#F7BB0E', type: 'colorpicker', desc: '' }, |
260 | 262 | { id: '@chavy_boxjs_userCfgs.color_dark_primary', name: '暗黑色调', canvas: true, val: '#2196F3', type: 'colorpicker', desc: '' } |
@@ -502,7 +504,7 @@ async function apiRunScript() { |
502 | 504 | } |
503 | 505 | } else { |
504 | 506 | // 对于手动执行的脚本, 把 $done 的时机交给脚本自主控制 |
505 | | - $.isSkipDone = false |
| 507 | + $.isSkipDone = true |
506 | 508 | $request = undefined |
507 | 509 | eval(opts.script) |
508 | 510 | } |
@@ -570,7 +572,7 @@ function upgradeUserData() { |
570 | 572 | * =================================== |
571 | 573 | */ |
572 | 574 | function doneBox() { |
573 | | - if ($.isSkipDone) { |
| 575 | + if ($.isSkipDone === true) { |
574 | 576 | return |
575 | 577 | } |
576 | 578 | // 记录当前使用哪个域名访问 |
|
0 commit comments