dsh-tokenbank 0.1.45 → 0.1.47
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 +16 -17
- package/package.json +1 -1
package/lib/client.js
CHANGED
|
@@ -719,7 +719,7 @@ window.__ModuleLoader__.load({
|
|
|
719
719
|
if (fresh) { st[1](fresh); tbStore.set({ loggedIn: Boolean(fresh.loggedIn), portalUrl: fresh.portalUrl }) }
|
|
720
720
|
var streakText = ci.streak > 1 ? '(' + pageT('checkinStreak').replace('{n}', String(ci.streak)) + ')' : ''
|
|
721
721
|
checkinFlash[1]({ text: pageT('checkinOk') + streakText })
|
|
722
|
-
window.setTimeout(function () { checkinFlash[1](null) },
|
|
722
|
+
window.setTimeout(function () { checkinFlash[1](null) }, 3000)
|
|
723
723
|
}
|
|
724
724
|
} catch (e9) {
|
|
725
725
|
checkin[1]({ busy: false, done: false })
|
|
@@ -771,21 +771,7 @@ window.__ModuleLoader__.load({
|
|
|
771
771
|
}, 80)
|
|
772
772
|
},
|
|
773
773
|
}, pageT('goSwitch')) : null,
|
|
774
|
-
) : !rechargeOpen[0] ? h('button', {
|
|
775
|
-
type: 'button', style: Object.assign({}, primaryButtonStyle, { justifyContent: 'center' }),
|
|
776
|
-
onClick: async function () {
|
|
777
|
-
try {
|
|
778
|
-
var models = await api('gateway-models', { accessKey: data.accessKey })
|
|
779
|
-
var list = Array.isArray(models) ? models : (models.models || models.list || [])
|
|
780
|
-
await addProviderToModels(runtimeCtx, data.baseURL || portal, { accessKey: data.accessKey, list: list, protocol: models.protocol })
|
|
781
|
-
checkinFlash[1]({ text: pageT('modelLinked').replace('{n}', String(list.length)), models: true })
|
|
782
|
-
window.setTimeout(function () { checkinFlash[1](null) }, 2000)
|
|
783
|
-
} catch (err) {
|
|
784
|
-
tbStore.set({ notify: { kind: 'error', title: String(err.message || err), detail: '' } })
|
|
785
|
-
}
|
|
786
|
-
},
|
|
787
|
-
}, pageT('addFreeModels'))
|
|
788
|
-
: checkinFlash[0] ? h('button', {
|
|
774
|
+
) : !rechargeOpen[0] ? (checkinFlash[0] ? h('button', {
|
|
789
775
|
type: 'button', tabIndex: -1,
|
|
790
776
|
style: Object.assign({}, primaryButtonStyle, { justifyContent: 'center', cursor: checkinFlash[0].models ? 'pointer' : 'default', opacity: 0.9 }),
|
|
791
777
|
onClick: checkinFlash[0].models ? function () {
|
|
@@ -799,7 +785,20 @@ window.__ModuleLoader__.load({
|
|
|
799
785
|
}
|
|
800
786
|
}, 80)
|
|
801
787
|
} : undefined,
|
|
802
|
-
}, checkinFlash[0].text) :
|
|
788
|
+
}, checkinFlash[0].text) : h('button', {
|
|
789
|
+
type: 'button', style: Object.assign({}, primaryButtonStyle, { justifyContent: 'center' }),
|
|
790
|
+
onClick: async function () {
|
|
791
|
+
try {
|
|
792
|
+
var models = await api('gateway-models', { accessKey: data.accessKey })
|
|
793
|
+
var list = Array.isArray(models) ? models : (models.models || models.list || [])
|
|
794
|
+
await addProviderToModels(runtimeCtx, data.baseURL || portal, { accessKey: data.accessKey, list: list, protocol: models.protocol })
|
|
795
|
+
checkinFlash[1]({ text: pageT('modelLinked').replace('{n}', String(list.length)), models: true })
|
|
796
|
+
window.setTimeout(function () { checkinFlash[1](null) }, 3000)
|
|
797
|
+
} catch (err) {
|
|
798
|
+
tbStore.set({ notify: { kind: 'error', title: String(err.message || err), detail: '' } })
|
|
799
|
+
}
|
|
800
|
+
},
|
|
801
|
+
}, pageT('addFreeModels'))) : null,
|
|
803
802
|
)
|
|
804
803
|
: h(AuthCard, {
|
|
805
804
|
mode: snap.authMode,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dsh-tokenbank",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.47",
|
|
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",
|