dsh-tokenbank 0.1.22 → 0.1.24

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 +8 -5
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -620,8 +620,11 @@ window.__ModuleLoader__.load({
620
620
  right: Math.max(8, window.innerWidth - anchor.right),
621
621
  bottom: window.innerHeight - anchor.top + 8,
622
622
  maxHeight: 420, overflow: 'auto',
623
- /* 与模型选择器菜单同一材质:面板底色+prominent 阴影(含 0.5px 描边) */
624
- background: 'var(--dsw-alias-bg-module-platform)',
623
+ /* 与模型选择器菜单(MenuSurface)完全一致的材质:
624
+ 半透明 surface-fill + backdrop 毛玻璃 + prominent 阴影(含 0.5px 描边) */
625
+ background: 'var(--dsw-menu-surface-fill)',
626
+ backdropFilter: 'var(--dsw-menu-backdrop-filter)',
627
+ WebkitBackdropFilter: 'var(--dsw-menu-backdrop-filter)',
625
628
  color: 'var(--dsw-alias-label-primary)',
626
629
  borderRadius: 'var(--dsw-radius-md, 10px)', padding: 14,
627
630
  border: 0,
@@ -640,7 +643,7 @@ window.__ModuleLoader__.load({
640
643
  h('span', { style: { flex: 1 } }),
641
644
  data && data.loggedIn ? h('button', {
642
645
  type: 'button', title: pageT('depositManageTip'),
643
- style: Object.assign({}, buttonStyle, { height: 24, padding: '0 10px', fontSize: 12 }),
646
+ style: Object.assign({}, buttonStyle, { height: 24, padding: '0 10px', fontSize: 12, borderColor: 'var(--dsw-alias-border-l2, #c9ccd1)' }),
644
647
  onClick: function () { tbStore.set({ authOpen: false }); openSettingsPage() },
645
648
  }, pageT('depositManage')) : null,
646
649
  data && data.loggedIn ? h('button', {
@@ -674,7 +677,7 @@ window.__ModuleLoader__.load({
674
677
  data.account && typeof data.account.balance_nano_usd === 'number'
675
678
  ? '$' + (data.account.balance_nano_usd / 1e9).toFixed(2) : '—'),
676
679
  h('span', { style: { display: 'inline-flex', gap: 6 } },
677
- h('button', {
680
+ checkin[0].done && !(data.account && typeof data.account.balance_nano_usd === 'number' && data.account.balance_nano_usd < 1e9) ? null : h('button', {
678
681
  type: 'button', disabled: checkin[0].busy || checkin[0].done,
679
682
  style: Object.assign({}, buttonStyle, {
680
683
  height: 26, padding: '0 12px', fontSize: 12,
@@ -700,7 +703,7 @@ window.__ModuleLoader__.load({
700
703
  }
701
704
  },
702
705
  }, checkin[0].done ? pageT('checkinDone') : pageT('checkin')),
703
- (data.account && typeof data.account.balance_nano_usd === 'number' && data.account.balance_nano_usd < 1e9)
706
+ (checkin[0].done || (data.account && typeof data.account.balance_nano_usd === 'number' && data.account.balance_nano_usd < 1e9))
704
707
  ? h('button', {
705
708
  type: 'button',
706
709
  style: Object.assign({}, primaryButtonStyle, { height: 26, padding: '0 12px', fontSize: 12 }),
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-tokenbank",
3
- "version": "0.1.22",
3
+ "version": "0.1.24",
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",