dsh-tokenbank 0.1.48 → 0.1.50

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 +13 -21
  2. package/package.json +1 -1
package/lib/client.js CHANGED
@@ -728,29 +728,13 @@ window.__ModuleLoader__.load({
728
728
  }
729
729
  },
730
730
  }, checkin[0].done ? pageT('checkinDone') : pageT('checkin')),
731
- data && data.loggedIn ? h('span', {
732
- style: { position: 'relative', display: 'inline-flex' },
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
  onMouseLeave: function () { depTip[1](false) },
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', bottom: 'calc(100% + 6px)', right: 0,
744
- width: 220, padding: '8px 10px', borderRadius: 8,
745
- fontSize: 11.5, lineHeight: 1.5, fontWeight: 400,
746
- background: 'var(--dsw-menu-surface-fill, #fff)',
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,
736
+ onClick: function () { depTip[1](false); tbStore.set({ authOpen: false }); openSettingsPage() },
737
+ }, pageT('depositManage')) : null,
754
738
  (checkin[0].done || (data.account && typeof data.account.balance_nano_usd === 'number' && data.account.balance_nano_usd < 1e9))
755
739
  ? h('button', {
756
740
  type: 'button',
@@ -760,6 +744,14 @@ window.__ModuleLoader__.load({
760
744
  : null,
761
745
  ),
762
746
  ),
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,
763
755
  rechargeOpen[0] ? h(InlineRecharge, {
764
756
  onPaid: async function () {
765
757
  rechargeOpen[1](false)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dsh-tokenbank",
3
- "version": "0.1.48",
3
+ "version": "0.1.50",
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",