Skip to content

Commit e119acd

Browse files
committed
更新[BoxJs TF]: 修复脚本执行结果、更新日志页面位置不正确, 主页左滑进入壁纸模式
1 parent 90230ab commit e119acd

3 files changed

Lines changed: 72 additions & 14 deletions

File tree

‎box/chavy.boxjs.html‎

Lines changed: 53 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,10 @@
4545
padding-top: constant(safe-area-inset-top) !important;
4646
padding-top: env(safe-area-inset-top) !important;
4747
}
48+
.v-bottom-sheet.v-dialog--fullscreen {
49+
padding-top: constant(safe-area-inset-top) !important;
50+
padding-top: env(safe-area-inset-top) !important;
51+
}
4852
.v-app-bar.safe {
4953
height: auto !important;
5054
padding-top: constant(safe-area-inset-top) !important;
@@ -450,8 +454,8 @@
450454
<!-- 主页 -->
451455
<v-main v-scroll="onScroll">
452456
<v-snackbar top app v-model="ui.snackbar.show" v-bind="ui.snackbar">{{ui.snackbar.msg}}</v-snackbar>
457+
<!-- 主页 -->
453458
<v-fade-transition>
454-
<!-- 主页 -->
455459
<v-container
456460
fluid
457461
class="fill-height"
@@ -463,8 +467,22 @@
463467
setWallpaper()
464468
}
465469
},
466-
left: () => switchView('app'),
467-
right: () => switchView('my')
470+
left: () => {
471+
if (isWallpaperMode) {
472+
switchView('')
473+
isWallpaperMode = !isWallpaperMode
474+
} else {
475+
switchView('app')
476+
}
477+
},
478+
right: () => {
479+
if (isWallpaperMode) {
480+
switchView('')
481+
isWallpaperMode = !isWallpaperMode
482+
} else {
483+
isWallpaperMode = !isWallpaperMode
484+
}
485+
}
468486
}"
469487
>
470488
<v-row no-gutters v-show="!isHidedAppIcons" class="align-self-start">
@@ -494,8 +512,8 @@
494512
</v-row>
495513
</v-container>
496514
</v-fade-transition>
515+
<!-- 应用列表 -->
497516
<v-fade-transition>
498-
<!-- 应用列表 -->
499517
<v-container
500518
fluid
501519
v-show="view === 'app' && !curapp"
@@ -604,8 +622,8 @@
604622
</v-expansion-panels>
605623
</v-container>
606624
</v-fade-transition>
625+
<!-- 订阅列表 -->
607626
<v-fade-transition>
608-
<!-- 订阅列表 -->
609627
<v-container
610628
fluid
611629
v-show="view === 'sub'"
@@ -706,15 +724,18 @@
706724
</v-dialog>
707725
</v-container>
708726
</v-fade-transition>
727+
<!-- 我的 -->
709728
<v-fade-transition>
710-
<!-- 我的 -->
711729
<v-container
712730
fluid
713731
v-show="view === 'my'"
714732
v-touch="{
715-
left: () => switchView(''),
716-
right: () => switchView('sub')
717-
}"
733+
left: () => {
734+
isWallpaperMode = !isWallpaperMode
735+
switchView('')
736+
},
737+
right: () => switchView('sub')
738+
}"
718739
>
719740
<v-card class="mx-auto">
720741
<v-card-title class="headline">
@@ -806,7 +827,13 @@
806827
</v-container>
807828
</v-fade-transition>
808829
<!-- 代码编辑 -->
809-
<v-container fluid class="fill-height" v-show="view === 'coding'">
830+
<v-container
831+
fluid
832+
v-show="view === 'coding'"
833+
v-touch="{
834+
right: back
835+
}"
836+
>
810837
<v-card flat style="width: inherit;">
811838
<v-subheader>
812839
<h2>脚本编辑器</h2>
@@ -819,8 +846,14 @@ <h2>脚本编辑器</h2>
819846
<div class="pa-0" id="container" style="width: inherit; height: inherit;"></div>
820847
</v-container>
821848
<!-- 应用详情 -->
822-
<v-container fluid v-if="view === 'app' && !!curapp">
823-
<v-subheader>
849+
<v-container
850+
fluid
851+
v-if="view === 'app' && !!curapp"
852+
v-touch="{
853+
right: back
854+
}"
855+
>
856+
<v-subheader class="align-self-start">
824857
<h2 :style="appTitleStyle">{{curapp.name}}</h2>
825858
<v-spacer></v-spacer>
826859
<v-btn v-if="curapp.script" icon :loading="isLoading" @click="runRemoteScript(curapp.script, curapp.script_timeout)">
@@ -1085,7 +1118,14 @@ <h2 :style="appTitleStyle">{{curapp.name}}</h2>
10851118
</v-card>
10861119
</v-container>
10871120
<!-- 备份详情 -->
1088-
<v-container fluid v-else-if="view === 'bak' && !!curbak">
1121+
<v-container
1122+
fluid
1123+
class="fill-height"
1124+
v-else-if="view === 'bak' && !!curbak"
1125+
v-touch="{
1126+
right: back
1127+
}"
1128+
>
10891129
<v-subheader>
10901130
<h2>{{curbak.name}}</h2>
10911131
<v-spacer></v-spacer>

‎box/chavy.boxjs.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const $ = new Env('BoxJs')
33
// 为 eval 准备的上下文环境
44
const $eval_env = {}
55

6-
$.version = '0.7.44'
6+
$.version = '0.7.45'
77
$.versionType = 'beta'
88

99
/**

‎box/release/box.release.tf.json‎

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,23 @@
11
{
22
"releases": [
3+
{
4+
"version": "0.7.45",
5+
"tags": ["beta"],
6+
"author": "@chavyleung",
7+
"icon": "https://avatars3.githubusercontent.com/u/29748519",
8+
"repo": "https://github.com/chavyleung",
9+
"msg": "更新[BoxJs TF]: 修复脚本执行结果、更新日志页面位置不正确, 主页左滑进入壁纸模式",
10+
"notes": [
11+
{
12+
"name": "新增",
13+
"descs": ["主页左滑进入壁纸模式"]
14+
},
15+
{
16+
"name": "修复",
17+
"descs": ["脚本执行结果、更新日志页面位置不正确"]
18+
}
19+
]
20+
},
321
{
422
"version": "0.7.44",
523
"tags": ["beta"],

0 commit comments

Comments
 (0)