dsh-tokenbank 0.1.49 → 0.1.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/client.js +14 -23
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -690,7 +690,7 @@ window.__ModuleLoader__.load({
|
|
|
690
690
|
)) : null,
|
|
691
691
|
),
|
|
692
692
|
data && data.loggedIn
|
|
693
|
-
? h('div', { style: { display: 'flex', flexDirection: 'column', gap: 10 } },
|
|
693
|
+
? h('div', { style: { display: 'flex', flexDirection: 'column', gap: 10 }, onMouseLeave: function () { depTip[1](false) } },
|
|
694
694
|
h('div', { style: { display: 'flex', alignItems: 'baseline', justifyContent: 'space-between', gap: 8 } },
|
|
695
695
|
h('span', { style: { fontSize: 13, fontWeight: 600 } },
|
|
696
696
|
(data.user && (data.user.display_name || data.user.name)) || data.email || ''),
|
|
@@ -728,29 +728,12 @@ window.__ModuleLoader__.load({
|
|
|
728
728
|
}
|
|
729
729
|
},
|
|
730
730
|
}, checkin[0].done ? pageT('checkinDone') : pageT('checkin')),
|
|
731
|
-
data && data.loggedIn ? h('
|
|
732
|
-
|
|
731
|
+
data && data.loggedIn ? h('button', {
|
|
732
|
+
type: 'button', 'aria-label': pageT('depositManageTip'),
|
|
733
|
+
style: Object.assign({}, buttonStyle, { height: 26, padding: '0 12px', fontSize: 12, borderColor: 'var(--dsw-alias-border-l2, #c9ccd1)' }),
|
|
733
734
|
onMouseEnter: function () { depTip[1](true) },
|
|
734
|
-
|
|
735
|
-
},
|
|
736
|
-
h('button', {
|
|
737
|
-
type: 'button', 'aria-label': pageT('depositManageTip'),
|
|
738
|
-
style: Object.assign({}, buttonStyle, { height: 26, padding: '0 12px', fontSize: 12, borderColor: 'var(--dsw-alias-border-l2, #c9ccd1)' }),
|
|
739
|
-
onClick: function () { tbStore.set({ authOpen: false }); openSettingsPage() },
|
|
740
|
-
}, pageT('depositManage')),
|
|
741
|
-
depTip[0] ? h('div', {
|
|
742
|
-
style: {
|
|
743
|
-
position: 'absolute', top: 'calc(100% + 6px)', right: 0,
|
|
744
|
-
width: 'min(220px, calc(100vw - 32px))', padding: '8px 10px', borderRadius: 8,
|
|
745
|
-
fontSize: 11.5, lineHeight: 1.5, fontWeight: 400,
|
|
746
|
-
background: 'var(--dsw-alias-bg-elevated, #ffffff)',
|
|
747
|
-
color: 'var(--dsw-alias-label-primary)',
|
|
748
|
-
border: '1px solid var(--dsw-alias-border-l1)',
|
|
749
|
-
boxShadow: '0 6px 20px rgba(0, 0, 0, 0.12)',
|
|
750
|
-
pointerEvents: 'none', zIndex: 30,
|
|
751
|
-
},
|
|
752
|
-
}, pageT('depositManageTip')) : null,
|
|
753
|
-
) : null,
|
|
735
|
+
onClick: function () { depTip[1](false); tbStore.set({ authOpen: false }); openSettingsPage() },
|
|
736
|
+
}, pageT('depositManage')) : null,
|
|
754
737
|
(checkin[0].done || (data.account && typeof data.account.balance_nano_usd === 'number' && data.account.balance_nano_usd < 1e9))
|
|
755
738
|
? h('button', {
|
|
756
739
|
type: 'button',
|
|
@@ -760,6 +743,14 @@ window.__ModuleLoader__.load({
|
|
|
760
743
|
: null,
|
|
761
744
|
),
|
|
762
745
|
),
|
|
746
|
+
depTip[0] ? h('div', {
|
|
747
|
+
style: {
|
|
748
|
+
padding: '8px 10px', borderRadius: 8, fontSize: 12, lineHeight: 1.6,
|
|
749
|
+
background: 'var(--dsw-alias-bg-layer-1, #f7f7f8)',
|
|
750
|
+
color: 'var(--dsw-alias-label-secondary, #888)',
|
|
751
|
+
border: '1px solid var(--dsw-alias-border-l1)',
|
|
752
|
+
},
|
|
753
|
+
}, pageT('depositManageTip')) : null,
|
|
763
754
|
rechargeOpen[0] ? h(InlineRecharge, {
|
|
764
755
|
onPaid: async function () {
|
|
765
756
|
rechargeOpen[1](false)
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-tokenbank",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.51",
|
|
4
4
|
"description": "DSH 免费模型:一键注册 TokenBank 领免费 APIKey 送 $5 体验金,免费 GLM 模型直接进模型列表;自带余额查询、API Key 密钥托管(临时额度转永久)、每日签到、充值入口(支付宝),获取免费模型无需自建中转。致敬 dsh-our-free-model。官网 https://bank.skillpie.cn",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|