Skip to content

Commit 5108edd

Browse files
committed
fix: repo
1 parent ca5869d commit 5108edd

File tree

1 file changed

+56
-55
lines changed

1 file changed

+56
-55
lines changed

box/chavy.boxjs.js

Lines changed: 56 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -453,21 +453,22 @@ function getSystemApps() {
453453
script: 'https://raw.githubusercontent.com/chavyleung/scripts/master/box/switcher/box.switcher.js'
454454
},
455455
{
456-
"id": "BoxGist",
457-
"name": "Gist备份",
458-
"keys": [
456+
id: "BoxGist",
457+
name: "Gist备份",
458+
keys: [
459459
"@gist.token",
460460
"@gist.username",
461461
"@gist.split",
462462
"@gist.revision_options",
463463
"@gist.backup_type"
464464
],
465-
"author": "@dompling",
466-
"icons": [
465+
author: "@dompling",
466+
repo: "https://github.com/dompling/Script/tree/master/gist",
467+
icons: [
467468
"https://raw.githubusercontent.com/Former-Years/icon/master/github-bf.png",
468469
"https://raw.githubusercontent.com/Former-Years/icon/master/github-bf.png"
469470
],
470-
"descs_html": [
471+
descs_html: [
471472
"<h2>Token的获取方式</h2>",
472473
"<ol>头像菜单 -></ol>",
473474
"<ol>Settings -></ol>",
@@ -482,86 +483,86 @@ function getSystemApps() {
482483
"<ol>点击右上角【...】>【View file】</ol>",
483484
"<ol>浏览器地址最后一串为 RevisionId</ol>"
484485
],
485-
"scripts": [
486+
scripts: [
486487
{
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"
489490
},
490491
{
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"
493494
},
494495
{
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"
497498
}
498499
],
499-
"settings": [
500+
settings: [
500501
{
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."
507508
},
508509
{
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"
514515
},
515516
{
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: [
521522
{
522-
"key": "usercfgs",
523-
"label": "用户偏好"
523+
key: "usercfgs",
524+
label: "用户偏好"
524525
},
525526
{
526-
"key": "datas",
527-
"label": "用户数据"
527+
key: "datas",
528+
label: "用户数据"
528529
},
529530
{
530-
"key": "sessions",
531-
"label": "应用会话"
531+
key: "sessions",
532+
label: "应用会话"
532533
},
533534
{
534-
"key": "curSessions",
535-
"label": "当前会话"
535+
key: "curSessions",
536+
label: "当前会话"
536537
},
537538
{
538-
"key": "backups",
539-
"label": "备份索引"
539+
key: "backups",
540+
label: "备份索引"
540541
},
541542
{
542-
"key": "appSubCaches",
543-
"label": "应用订阅缓存"
543+
key: "appSubCaches",
544+
label: "应用订阅缓存"
544545
}
545546
]
546547
},
547548
{
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: "必填"
554555
},
555556
{
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: "必填"
562563
}
563564
]
564-
},
565+
}
565566
]
566567
return sysapps
567568
}

0 commit comments

Comments
 (0)