Skip to content

Commit

Permalink
fix(boxjs): 首页拖拽数据问题
Browse files Browse the repository at this point in the history
  • Loading branch information
gideonsenku committed Jul 12, 2024
1 parent 8897c41 commit ca5869d
Show file tree
Hide file tree
Showing 3 changed files with 70 additions and 57 deletions.
2 changes: 1 addition & 1 deletion box/chavy.boxjs.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const $ = new Env('BoxJs')
// 为 eval 准备的上下文环境
const $eval_env = {}

$.version = '0.19.2'
$.version = '0.19.3'
$.versionType = 'beta'

// 发出的请求需要需要 Surge、QuanX 的 rewrite
Expand Down
12 changes: 12 additions & 0 deletions box/release/box.release.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"releases": [
{
"version": "0.19.3",
"tags": ["beta"],
"author": "@chavyleung",
"msg": "fix(boxjs): 首页拖拽数据问题",
"notes": [
{
"name": "修复",
"descs": ["首页拖拽数组数据中会出现 null"]
}
]
},
{
"version": "0.19.2",
"tags": ["beta"],
Expand Down
113 changes: 57 additions & 56 deletions chavy.box.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ const $ = new Env('BoxJs')
// 为 eval 准备的上下文环境
const $eval_env = {}

$.version = '0.19.2'
$.version = '0.19.3'
$.versionType = 'beta'

// 发出的请求需要需要 Surge、QuanX 的 rewrite
Expand Down Expand Up @@ -453,21 +453,22 @@ function getSystemApps() {
script: 'https://raw.githubusercontent.com/chavyleung/scripts/master/box/switcher/box.switcher.js'
},
{
"id": "BoxGist",
"name": "Gist备份",
"keys": [
id: "BoxGist",
name: "Gist备份",
keys: [
"@gist.token",
"@gist.username",
"@gist.split",
"@gist.revision_options",
"@gist.backup_type"
],
"author": "@dompling",
"icons": [
author: "@dompling",
repo: "https://github.com/dompling/Script/tree/master/gist",
icons: [
"https://raw.githubusercontent.com/Former-Years/icon/master/github-bf.png",
"https://raw.githubusercontent.com/Former-Years/icon/master/github-bf.png"
],
"descs_html": [
descs_html: [
"<h2>Token的获取方式</h2>",
"<ol>头像菜单 -></ol>",
"<ol>Settings -></ol>",
Expand All @@ -482,86 +483,86 @@ function getSystemApps() {
"<ol>点击右上角【...】>【View file】</ol>",
"<ol>浏览器地址最后一串为 RevisionId</ol>"
],
"scripts": [
scripts: [
{
"name": "备份 Gist",
"script": "https://raw.githubusercontent.com/dompling/Script/master/gist/backup.js"
name: "备份 Gist",
script: "https://raw.githubusercontent.com/dompling/Script/master/gist/backup.js"
},
{
"name": "从 Gist 恢复",
"script": "https://raw.githubusercontent.com/dompling/Script/master/gist/restore.js"
name: "从 Gist 恢复",
script: "https://raw.githubusercontent.com/dompling/Script/master/gist/restore.js"
},
{
"name": "更新历史版本",
"script": "https://raw.githubusercontent.com/dompling/Script/master/gist/commit.js"
name: "更新历史版本",
script: "https://raw.githubusercontent.com/dompling/Script/master/gist/commit.js"
}
],
"settings": [
settings: [
{
"id": "@gist.split",
"name": "用户数据分段",
"val": null,
"type": "number",
"placeholder": "用户数据过大时,请进行拆分防止内存警告⚠️",
"desc": "值为数字,拆分段数比如 2 就拆分成两个 datas."
id: "@gist.split",
name: "用户数据分段",
val: null,
type: "number",
placeholder: "用户数据过大时,请进行拆分防止内存警告⚠️",
desc: "值为数字,拆分段数比如 2 就拆分成两个 datas."
},
{
"id": "@gist.revision_id",
"type": "modalSelects",
"name": "历史版本RevisionId",
"desc": "不填写时,默认获取最新,恢复后会自动清空。选择无内容时,请运行上方更新历史版本",
"items": "@gist.revision_options"
id: "@gist.revision_id",
type: "modalSelects",
name: "历史版本RevisionId",
desc: "不填写时,默认获取最新,恢复后会自动清空。选择无内容时,请运行上方更新历史版本",
items: "@gist.revision_options"
},
{
"id": "@gist.backup_type",
"name": "备份/恢复内容",
"val": "usercfgs,datas,sessions,curSessions,backups,appSubCaches",
"type": "checkboxes",
"items": [
id: "@gist.backup_type",
name: "备份/恢复内容",
val: "usercfgs,datas,sessions,curSessions,backups,appSubCaches",
type: "checkboxes",
items: [
{
"key": "usercfgs",
"label": "用户偏好"
key: "usercfgs",
label: "用户偏好"
},
{
"key": "datas",
"label": "用户数据"
key: "datas",
label: "用户数据"
},
{
"key": "sessions",
"label": "应用会话"
key: "sessions",
label: "应用会话"
},
{
"key": "curSessions",
"label": "当前会话"
key: "curSessions",
label: "当前会话"
},
{
"key": "backups",
"label": "备份索引"
key: "backups",
label: "备份索引"
},
{
"key": "appSubCaches",
"label": "应用订阅缓存"
key: "appSubCaches",
label: "应用订阅缓存"
}
]
},
{
"id": "@gist.username",
"name": "用户名",
"val": null,
"type": "text",
"placeholder": "github 用户名",
"desc": "必填"
id: "@gist.username",
name: "用户名",
val: null,
type: "text",
placeholder: "github 用户名",
desc: "必填"
},
{
"id": "@gist.token",
"name": "Personal access tokens",
"val": null,
"type": "text",
"placeholder": "github personal access tokens",
"desc": "必填"
id: "@gist.token",
name: "Personal access tokens",
val: null,
type: "text",
placeholder: "github personal access tokens",
desc: "必填"
}
]
},
}
]
return sysapps
}
Expand Down

0 comments on commit ca5869d

Please sign in to comment.