* 获取内置应用
()
| 386 | * 获取内置应用 |
| 387 | */ |
| 388 | function getSystemApps() { |
| 389 | // prettier-ignore |
| 390 | const sysapps = [ |
| 391 | { |
| 392 | id: 'BoxSetting', |
| 393 | name: '偏好设置', |
| 394 | descs: ['可手动执行一些抹掉数据的脚本', '可设置明暗两种主题下的主色调', '可设置壁纸清单'], |
| 395 | keys: [ |
| 396 | '@chavy_boxjs_userCfgs.httpapi', |
| 397 | '@chavy_boxjs_userCfgs.bgimg', |
| 398 | '@chavy_boxjs_userCfgs.http_backend', |
| 399 | '@chavy_boxjs_userCfgs.color_dark_primary', |
| 400 | '@chavy_boxjs_userCfgs.color_light_primary' |
| 401 | ], |
| 402 | settings: [ |
| 403 | { id: '@chavy_boxjs_userCfgs.httpapis', name: 'HTTP-API (Surge)', val: '', type: 'textarea', placeholder: ',examplekey@127.0.0.1:6166', autoGrow: true, rows: 2, persistentHint:true, desc: '示例: ,examplekey@127.0.0.1:6166! 注意: 以逗号开头, 逗号分隔多个地址, 可加回车' }, |
| 404 | { id: '@chavy_boxjs_userCfgs.httpapi_timeout', name: 'HTTP-API Timeout (Surge)', val: 20, type: 'number', persistentHint:true, desc: '如果脚本作者指定了超时时间, 会优先使用脚本指定的超时时间.' }, |
| 405 | { id: '@chavy_boxjs_userCfgs.http_backend', name: 'HTTP Backend (Quantumult X)', val: '', type: 'text',placeholder: 'http://127.0.0.1:9999', persistentHint:true, desc: '示例: http://127.0.0.1:9999 ! 注意: 必须是以 http 开头的完整路径, 不能是 / 结尾' }, |
| 406 | { id: '@chavy_boxjs_userCfgs.debugger_webs', name: '调试地址', val: 'Dev体验,https://raw.githubusercontent.com/chavyleung/scripts/boxjs.dev/box/chavy.boxjs.html', type: 'textarea', placeholder: '每行一个配置,用逗号分割每个配置的名字和链接:配置,url', persistentHint:true, autoGrow: true, rows: 2, desc: '逗号分隔名字和链接, 回车分隔多个地址' }, |
| 407 | { id: '@chavy_boxjs_userCfgs.bgimgs', name: '背景图片清单', val: '无,\n跟随系统,跟随系统\nlight,http://api.btstu.cn/sjbz/zsy.php\ndark,https://uploadbeta.com/api/pictures/random\n妹子,http://api.btstu.cn/sjbz/zsy.php', type: 'textarea', placeholder: '无,{回车} 跟随系统,跟随系统{回车} light,图片地址{回车} dark,图片地址{回车} 妹子,图片地址', persistentHint:true, autoGrow: true, rows: 2, desc: '逗号分隔名字和链接, 回车分隔多个地址' }, |
| 408 | { id: '@chavy_boxjs_userCfgs.bgimg', name: '背景图片', val: '', type: 'text', placeholder: 'http://api.btstu.cn/sjbz/zsy.php', persistentHint:true, desc: '输入背景图标的在线链接' }, |
| 409 | { id: '@chavy_boxjs_userCfgs.changeBgImgEnterDefault', name: '手势进入壁纸模式默认背景图片', val: '', type: 'text', placeholder: '填写上面背景图片清单的值', persistentHint:true, desc: '' }, |
| 410 | { id: '@chavy_boxjs_userCfgs.changeBgImgOutDefault', name: '手势退出壁纸模式默认背景图片', val: '', type: 'text', placeholder: '填写上面背景图片清单的值', persistentHint:true, desc: '' }, |
| 411 | { id: '@chavy_boxjs_userCfgs.color_light_primary', name: '明亮色调', canvas: true, val: '#F7BB0E', type: 'colorpicker', desc: '' }, |
| 412 | { id: '@chavy_boxjs_userCfgs.color_dark_primary', name: '暗黑色调', canvas: true, val: '#2196F3', type: 'colorpicker', desc: '' } |
| 413 | ], |
| 414 | scripts: [ |
| 415 | { |
| 416 | name: "抹掉:所有缓存", |
| 417 | script: "https://raw.githubusercontent.com/chavyleung/scripts/master/box/scripts/boxjs.revert.caches.js" |
| 418 | }, |
| 419 | { |
| 420 | name: "抹掉:收藏应用", |
| 421 | script: "https://raw.githubusercontent.com/chavyleung/scripts/master/box/scripts/boxjs.revert.usercfgs.favapps.js" |
| 422 | }, |
| 423 | { |
| 424 | name: "抹掉:用户偏好", |
| 425 | script: "https://raw.githubusercontent.com/chavyleung/scripts/master/box/scripts/boxjs.revert.usercfgs.js" |
| 426 | }, |
| 427 | { |
| 428 | name: "抹掉:所有会话", |
| 429 | script: "https://raw.githubusercontent.com/chavyleung/scripts/master/box/scripts/boxjs.revert.usercfgs.sessions.js" |
| 430 | }, |
| 431 | { |
| 432 | name: "抹掉:所有备份", |
| 433 | script: "https://raw.githubusercontent.com/chavyleung/scripts/master/box/scripts/boxjs.revert.baks.js" |
| 434 | }, |
| 435 | { |
| 436 | name: "抹掉:BoxJs (注意备份)", |
| 437 | script: "https://raw.githubusercontent.com/chavyleung/scripts/master/box/scripts/boxjs.revert.boxjs.js" |
| 438 | } |
| 439 | ], |
| 440 | author: '@chavyleung', |
| 441 | repo: 'https://github.com/chavyleung/scripts/blob/master/box/switcher/box.switcher.js', |
| 442 | icons: [ |
| 443 | 'https://raw.githubusercontent.com/chavyleung/scripts/master/box/icons/BoxSetting.mini.png', |
| 444 | 'https://raw.githubusercontent.com/chavyleung/scripts/master/box/icons/BoxSetting.png' |
| 445 | ] |
no outgoing calls
no test coverage detected
searching dependent graphs…