Skip to content

Commit 5187c9b

Browse files
gideonsenkuclaude
andcommitted
feat(boxjs): 顶部提示 iOS 客户端 Relay; bump 0.19.29
主页顶部新增可关闭提示条,引导用户使用 iOS 原生客户端 Relay (TestFlight: https://testflight.apple.com/join/2yES8TuF), 偏好通过 localStorage 持久化。 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
1 parent e07f8e9 commit 5187c9b

5 files changed

Lines changed: 50 additions & 2 deletions

File tree

box/chavy.boxjs.html

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -533,6 +533,25 @@
533533
<!-- 主页 -->
534534
<v-main class="appBarBind.app ? 'safe' : ''" v-scroll="onScroll">
535535
<v-snackbar top app v-model="ui.snackbar.show" v-bind="ui.snackbar">{{ui.snackbar.msg}}</v-snackbar>
536+
<!-- Relay iOS 客户端提示 -->
537+
<v-alert
538+
v-if="ui.showRelayTip"
539+
dismissible
540+
dense
541+
prominent
542+
border="left"
543+
colored-border
544+
elevation="1"
545+
color="primary"
546+
class="ma-2"
547+
@input="dismissRelayTip"
548+
>
549+
<div class="text-subtitle-2 font-weight-bold mb-1">🎉 BoxJS 已有 iOS 客户端啦</div>
550+
<div class="text-caption">
551+
推荐使用原生 iOS 客户端 <strong>Relay</strong>,体验更流畅。TestFlight 加入地址:
552+
<a href="https://testflight.apple.com/join/2yES8TuF" target="_blank" rel="noopener">https://testflight.apple.com/join/2yES8TuF</a>
553+
</div>
554+
</v-alert>
536555
<!-- 主页 -->
537556
<v-container
538557
fluid
@@ -1809,6 +1828,7 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
18091828
scrollY: {}, //记录每个界面的滚动值
18101829
overlay: { show: false, val: 60 },
18111830
snackbar: { show: false, color: 'primary', msg: '' },
1831+
showRelayTip: localStorage.getItem('boxjs_relay_tip_dismissed') !== '1',
18121832
searchBar: {
18131833
isActive: true,
18141834
color: 'primary',
@@ -2517,6 +2537,10 @@ <h2 :class="version === ver.version ? 'primary--text' : undefined">v{{ver.versio
25172537
this.isLoading = true
25182538
window.location.reload()
25192539
},
2540+
dismissRelayTip() {
2541+
this.ui.showRelayTip = false
2542+
localStorage.setItem('boxjs_relay_tip_dismissed', '1')
2543+
},
25202544
open(url) {
25212545
window.open(url)
25222546
},

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.19.28'
6+
$.version = '0.19.29'
77
$.versionType = 'beta'
88

99
// 发出的请求需要需要 Surge、QuanX 的 rewrite

box/release/box.release.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
{
22
"releases": [
3+
{
4+
"version": "0.19.29",
5+
"tags": ["beta"],
6+
"author": "@GideonSenku",
7+
"msg": "feat(boxjs): 顶部提示 iOS 客户端 Relay",
8+
"notes": [
9+
{
10+
"name": "功能",
11+
"descs": ["主页顶部新增可关闭提示条,引导使用 iOS 原生客户端 Relay (TestFlight: https://testflight.apple.com/join/2yES8TuF)"]
12+
}
13+
]
14+
},
315
{
416
"version": "0.19.28",
517
"tags": ["beta"],

box/release/box.release.tf.json

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,17 @@
11
{
22
"releases": [
3+
{
4+
"version": "0.19.29",
5+
"tags": ["beta"],
6+
"author": "@GideonSenku",
7+
"msg": "feat(boxjs): 顶部提示 iOS 客户端 Relay",
8+
"notes": [
9+
{
10+
"name": "功能",
11+
"descs": ["主页顶部新增可关闭提示条,引导使用 iOS 原生客户端 Relay (TestFlight: https://testflight.apple.com/join/2yES8TuF)"]
12+
}
13+
]
14+
},
315
{
416
"version": "0.19.28",
517
"tags": ["beta"],

chavy.box.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.19.28'
6+
$.version = '0.19.29'
77
$.versionType = 'beta'
88

99
// 发出的请求需要需要 Surge、QuanX 的 rewrite

0 commit comments

Comments
 (0)