MCPcopy Create free account
hub / github.com/chavyleung/scripts / getSystemApps

Function getSystemApps

box/chavy.boxjs.js:389–575  ·  view source on GitHub ↗

* 获取内置应用

()

Source from the content-addressed store, hash-verified

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

Callers 1

getBoxDataFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected