dsh-tokenbank 0.1.62 → 0.1.63

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 +6 -6
  2. package/package.json +2 -2
package/lib/client.js CHANGED
@@ -636,7 +636,7 @@ window.__ModuleLoader__.load({
636
636
  return h('div', {
637
637
  ref: boxRef,
638
638
  style: {
639
- margin: '4px 10px 8px', display: 'flex', flexDirection: 'column', gap: 6, width: 'calc(100% - 20px)', boxSizing: 'border-box', alignSelf: 'stretch'
639
+ margin: '4px 10px 8px', display: 'flex', flexDirection: 'column', gap: 6, width: 'calc(100% - 20px)', minWidth: 0, maxWidth: '100%', overflow: 'hidden', boxSizing: 'border-box', alignSelf: 'stretch'
640
640
  },
641
641
  },
642
642
  h('div', { style: { display: 'flex', alignItems: 'center', justifyContent: 'space-between', gap: 6 } },
@@ -674,8 +674,8 @@ window.__ModuleLoader__.load({
674
674
  style: { fontSize: 10, lineHeight: 1, padding: '3px 7px', borderRadius: 999, border: 'none', cursor: 'pointer', color: '#fff', background: '#ff4f1f', fontWeight: 600, letterSpacing: 0.3 },
675
675
  onClick: function () { openGlobal('register') },
676
676
  }, pageT('freeToken')),
677
- loggedIn ? h('div', { style: { display: 'flex', alignItems: 'baseline', gap: 6, minWidth: 0 } },
678
- h('span', { style: { fontSize: 12, fontWeight: 600, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', flexShrink: 0 } },
677
+ loggedIn ? h('div', { style: { display: 'flex', alignItems: 'baseline', gap: 6, minWidth: 0, maxWidth: '100%', overflow: 'hidden' } },
678
+ h('span', { style: { fontSize: 12, fontWeight: 600, overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', minWidth: 0 } },
679
679
  (data && data.user && (data.user.display_name || data.user.name)) || data.email || ''),
680
680
  h('span', { style: { fontSize: 11, color: 'var(--dsw-alias-label-secondary, #888)', overflow: 'hidden', textOverflow: 'ellipsis', whiteSpace: 'nowrap', flex: 1, minWidth: 0 } }, data.email || ''),
681
681
  h('span', { style: { fontSize: 14, fontWeight: 700, fontVariantNumeric: 'tabular-nums', flexShrink: 0 } },
@@ -683,10 +683,10 @@ window.__ModuleLoader__.load({
683
683
  ? '$' + (data.account.balance_nano_usd / 1e9).toFixed(2) : '—'),
684
684
  ) : null,
685
685
  loggedIn
686
- ? h('div', { style: { display: 'flex', alignItems: 'center', gap: 6 } },
687
- h('button', { type: 'button', style: Object.assign({}, smallBtn, { borderColor: 'var(--dsw-alias-border-l2, #c9ccd1)', flex: 1, justifyContent: 'center', whiteSpace: 'nowrap' }),
686
+ ? h('div', { style: { display: 'flex', alignItems: 'center', gap: 6, minWidth: 0, maxWidth: '100%', overflow: 'hidden' } },
687
+ h('button', { type: 'button', style: Object.assign({}, smallBtn, { borderColor: 'var(--dsw-alias-border-l2, #c9ccd1)', whiteSpace: 'nowrap', flexShrink: 0 }),
688
688
  onClick: function () { openSettingsPage() } }, pageT('depositManage')),
689
- h('button', { type: 'button', style: Object.assign({}, primaryButtonStyle, { height: 24, padding: '0 8px', fontSize: 12, flex: 1, justifyContent: 'center', whiteSpace: 'nowrap' }),
689
+ h('button', { type: 'button', style: Object.assign({}, primaryButtonStyle, { height: 24, padding: '0 8px', fontSize: 12, whiteSpace: 'nowrap', flexShrink: 0 }),
690
690
  onClick: function () { openGlobal('login', { recharge: true }) } }, pageT('recharge')))
691
691
  : null,
692
692
  loggedIn
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-tokenbank",
3
- "version": "0.1.62",
3
+ "version": "0.1.63",
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",
@@ -48,4 +48,4 @@
48
48
  "publishConfig": {
49
49
  "access": "public"
50
50
  }
51
- }
51
+ }