@@ -453,21 +453,22 @@ function getSystemApps() {
453
453
script : 'https://raw.githubusercontent.com/chavyleung/scripts/master/box/switcher/box.switcher.js'
454
454
} ,
455
455
{
456
- "id" : "BoxGist" ,
457
- " name" : "Gist备份" ,
458
- " keys" : [
456
+ id : "BoxGist" ,
457
+ name : "Gist备份" ,
458
+ keys : [
459
459
"@gist.token" ,
460
460
"@gist.username" ,
461
461
"@gist.split" ,
462
462
"@gist.revision_options" ,
463
463
"@gist.backup_type"
464
464
] ,
465
- "author" : "@dompling" ,
466
- "icons" : [
465
+ author : "@dompling" ,
466
+ repo : "https://github.com/dompling/Script/tree/master/gist" ,
467
+ icons : [
467
468
"https://raw.githubusercontent.com/Former-Years/icon/master/github-bf.png" ,
468
469
"https://raw.githubusercontent.com/Former-Years/icon/master/github-bf.png"
469
470
] ,
470
- " descs_html" : [
471
+ descs_html : [
471
472
"<h2>Token的获取方式</h2>" ,
472
473
"<ol>头像菜单 -></ol>" ,
473
474
"<ol>Settings -></ol>" ,
@@ -482,86 +483,86 @@ function getSystemApps() {
482
483
"<ol>点击右上角【...】>【View file】</ol>" ,
483
484
"<ol>浏览器地址最后一串为 RevisionId</ol>"
484
485
] ,
485
- " scripts" : [
486
+ scripts : [
486
487
{
487
- " name" : "备份 Gist" ,
488
- " script" : "https://raw.githubusercontent.com/dompling/Script/master/gist/backup.js"
488
+ name : "备份 Gist" ,
489
+ script : "https://raw.githubusercontent.com/dompling/Script/master/gist/backup.js"
489
490
} ,
490
491
{
491
- " name" : "从 Gist 恢复" ,
492
- " script" : "https://raw.githubusercontent.com/dompling/Script/master/gist/restore.js"
492
+ name : "从 Gist 恢复" ,
493
+ script : "https://raw.githubusercontent.com/dompling/Script/master/gist/restore.js"
493
494
} ,
494
495
{
495
- " name" : "更新历史版本" ,
496
- " script" : "https://raw.githubusercontent.com/dompling/Script/master/gist/commit.js"
496
+ name : "更新历史版本" ,
497
+ script : "https://raw.githubusercontent.com/dompling/Script/master/gist/commit.js"
497
498
}
498
499
] ,
499
- " settings" : [
500
+ settings : [
500
501
{
501
- "id" : "@gist.split" ,
502
- " name" : "用户数据分段" ,
503
- " val" : null ,
504
- " type" : "number" ,
505
- " placeholder" : "用户数据过大时,请进行拆分防止内存警告⚠️" ,
506
- " desc" : "值为数字,拆分段数比如 2 就拆分成两个 datas."
502
+ id : "@gist.split" ,
503
+ name : "用户数据分段" ,
504
+ val : null ,
505
+ type : "number" ,
506
+ placeholder : "用户数据过大时,请进行拆分防止内存警告⚠️" ,
507
+ desc : "值为数字,拆分段数比如 2 就拆分成两个 datas."
507
508
} ,
508
509
{
509
- "id" : "@gist.revision_id" ,
510
- " type" : "modalSelects" ,
511
- " name" : "历史版本RevisionId" ,
512
- " desc" : "不填写时,默认获取最新,恢复后会自动清空。选择无内容时,请运行上方更新历史版本" ,
513
- " items" : "@gist.revision_options"
510
+ id : "@gist.revision_id" ,
511
+ type : "modalSelects" ,
512
+ name : "历史版本RevisionId" ,
513
+ desc : "不填写时,默认获取最新,恢复后会自动清空。选择无内容时,请运行上方更新历史版本" ,
514
+ items : "@gist.revision_options"
514
515
} ,
515
516
{
516
- "id" : "@gist.backup_type" ,
517
- " name" : "备份/恢复内容" ,
518
- " val" : "usercfgs,datas,sessions,curSessions,backups,appSubCaches" ,
519
- " type" : "checkboxes" ,
520
- " items" : [
517
+ id : "@gist.backup_type" ,
518
+ name : "备份/恢复内容" ,
519
+ val : "usercfgs,datas,sessions,curSessions,backups,appSubCaches" ,
520
+ type : "checkboxes" ,
521
+ items : [
521
522
{
522
- " key" : "usercfgs" ,
523
- " label" : "用户偏好"
523
+ key : "usercfgs" ,
524
+ label : "用户偏好"
524
525
} ,
525
526
{
526
- " key" : "datas" ,
527
- " label" : "用户数据"
527
+ key : "datas" ,
528
+ label : "用户数据"
528
529
} ,
529
530
{
530
- " key" : "sessions" ,
531
- " label" : "应用会话"
531
+ key : "sessions" ,
532
+ label : "应用会话"
532
533
} ,
533
534
{
534
- " key" : "curSessions" ,
535
- " label" : "当前会话"
535
+ key : "curSessions" ,
536
+ label : "当前会话"
536
537
} ,
537
538
{
538
- " key" : "backups" ,
539
- " label" : "备份索引"
539
+ key : "backups" ,
540
+ label : "备份索引"
540
541
} ,
541
542
{
542
- " key" : "appSubCaches" ,
543
- " label" : "应用订阅缓存"
543
+ key : "appSubCaches" ,
544
+ label : "应用订阅缓存"
544
545
}
545
546
]
546
547
} ,
547
548
{
548
- "id" : "@gist.username" ,
549
- " name" : "用户名" ,
550
- " val" : null ,
551
- " type" : "text" ,
552
- " placeholder" : "github 用户名" ,
553
- " desc" : "必填"
549
+ id : "@gist.username" ,
550
+ name : "用户名" ,
551
+ val : null ,
552
+ type : "text" ,
553
+ placeholder : "github 用户名" ,
554
+ desc : "必填"
554
555
} ,
555
556
{
556
- "id" : "@gist.token" ,
557
- " name" : "Personal access tokens" ,
558
- " val" : null ,
559
- " type" : "text" ,
560
- " placeholder" : "github personal access tokens" ,
561
- " desc" : "必填"
557
+ id : "@gist.token" ,
558
+ name : "Personal access tokens" ,
559
+ val : null ,
560
+ type : "text" ,
561
+ placeholder : "github personal access tokens" ,
562
+ desc : "必填"
562
563
}
563
564
]
564
- } ,
565
+ }
565
566
]
566
567
return sysapps
567
568
}
0 commit comments