dsh-tokenbank 0.1.50 → 0.1.52

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.
Files changed (2) hide show
  1. package/lib/client.js +9 -10
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -690,12 +690,20 @@ 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 || ''),
697
697
  h('span', { style: { fontSize: 12, color: 'var(--dsw-alias-label-secondary, #888)' } }, data.email || ''),
698
698
  ),
699
+ depTip[0] ? h('div', {
700
+ style: {
701
+ padding: '8px 10px', borderRadius: 8, fontSize: 12, lineHeight: 1.6,
702
+ background: 'var(--dsw-alias-bg-layer-1, #f7f7f8)',
703
+ color: 'var(--dsw-alias-label-secondary, #888)',
704
+ border: '1px solid var(--dsw-alias-border-l1)',
705
+ },
706
+ }, pageT('depositManageTip')) : null,
699
707
  h('div', { style: { display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 8 } },
700
708
  h('div', { style: { fontSize: 16, fontWeight: 700, fontVariantNumeric: 'tabular-nums' } },
701
709
  data.account && typeof data.account.balance_nano_usd === 'number'
@@ -732,7 +740,6 @@ window.__ModuleLoader__.load({
732
740
  type: 'button', 'aria-label': pageT('depositManageTip'),
733
741
  style: Object.assign({}, buttonStyle, { height: 26, padding: '0 12px', fontSize: 12, borderColor: 'var(--dsw-alias-border-l2, #c9ccd1)' }),
734
742
  onMouseEnter: function () { depTip[1](true) },
735
- onMouseLeave: function () { depTip[1](false) },
736
743
  onClick: function () { depTip[1](false); tbStore.set({ authOpen: false }); openSettingsPage() },
737
744
  }, pageT('depositManage')) : null,
738
745
  (checkin[0].done || (data.account && typeof data.account.balance_nano_usd === 'number' && data.account.balance_nano_usd < 1e9))
@@ -744,14 +751,6 @@ window.__ModuleLoader__.load({
744
751
  : null,
745
752
  ),
746
753
  ),
747
- depTip[0] ? h('div', {
748
- style: {
749
- padding: '8px 10px', borderRadius: 8, fontSize: 12, lineHeight: 1.6,
750
- background: 'var(--dsw-alias-bg-layer-1, #f7f7f8)',
751
- color: 'var(--dsw-alias-label-secondary, #888)',
752
- border: '1px solid var(--dsw-alias-border-l1)',
753
- },
754
- }, pageT('depositManageTip')) : null,
755
754
  rechargeOpen[0] ? h(InlineRecharge, {
756
755
  onPaid: async function () {
757
756
  rechargeOpen[1](false)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-tokenbank",
3
- "version": "0.1.50",
3
+ "version": "0.1.52",
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",