dsh-tokenbank 0.1.14 → 0.1.16

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 CHANGED
@@ -625,7 +625,7 @@ window.__ModuleLoader__.load({
625
625
  h(TokenBankLogo, { size: 16 }),
626
626
  h('a', {
627
627
  href: portal, target: '_blank', rel: 'noopener noreferrer',
628
- style: { display: 'inline-flex', alignItems: 'center', cursor: 'pointer' },
628
+ style: { display: 'inline-flex', alignItems: 'center', cursor: 'pointer', textDecoration: 'none' },
629
629
  'aria-label': 'TokenBank',
630
630
  }, h('span', { className: 'tb-wordmark', style: { fontFamily: "'Frizon','FrizonLocal',sans-serif", fontSize: 17, fontWeight: 400, letterSpacing: 0.5, lineHeight: 1, color: '#111111' } }, 'TOKENBANK')),
631
631
  h('span', { style: { flex: 1 } }),
@@ -691,11 +691,13 @@ window.__ModuleLoader__.load({
691
691
  }
692
692
  },
693
693
  }, checkin[0].done ? pageT('checkinDone') : pageT('checkin')),
694
- h('button', {
695
- type: 'button',
696
- style: Object.assign({}, primaryButtonStyle, { height: 26, padding: '0 12px', fontSize: 12 }),
697
- onClick: function () { rechargeOpen[1](function (v) { return !v }) },
698
- }, pageT('recharge')),
694
+ (data.account && typeof data.account.balance_nano_usd === 'number' && data.account.balance_nano_usd < 1e9)
695
+ ? h('button', {
696
+ type: 'button',
697
+ style: Object.assign({}, primaryButtonStyle, { height: 26, padding: '0 12px', fontSize: 12 }),
698
+ onClick: function () { rechargeOpen[1](function (v) { return !v }) },
699
+ }, pageT('recharge'))
700
+ : null,
699
701
  ),
700
702
  ),
701
703
  rechargeOpen[0] ? h(InlineRecharge, {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-tokenbank",
3
- "version": "0.1.14",
3
+ "version": "0.1.16",
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",
Binary file