@freelog/tools-lib 0.1.198 → 0.1.201
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/dist/i18n/I18nNext.d.ts +3 -0
- package/dist/service-API/captcha.d.ts +2 -2
- package/dist/service-API/payment.d.ts +9 -3
- package/dist/tools-lib.cjs.development.js +16 -1
- package/dist/tools-lib.cjs.development.js.map +1 -1
- package/dist/tools-lib.cjs.production.min.js +1 -1
- package/dist/tools-lib.cjs.production.min.js.map +1 -1
- package/dist/tools-lib.esm.js +16 -1
- package/dist/tools-lib.esm.js.map +1 -1
- package/package.json +1 -1
- package/src/i18n/I18nNext.ts +164 -156
- package/src/service-API/captcha.ts +30 -30
- package/src/service-API/payment.ts +20 -3
package/dist/tools-lib.esm.js
CHANGED
|
@@ -3488,6 +3488,13 @@ function queryTransactionList(params, config) {
|
|
|
3488
3488
|
params: params
|
|
3489
3489
|
}, config));
|
|
3490
3490
|
}
|
|
3491
|
+
function queryStatistics(params, config) {
|
|
3492
|
+
return FUtil.Request(_extends({
|
|
3493
|
+
method: 'GET',
|
|
3494
|
+
url: "/v3/transactions/statistics",
|
|
3495
|
+
params: params
|
|
3496
|
+
}, config));
|
|
3497
|
+
}
|
|
3491
3498
|
|
|
3492
3499
|
var Payment = {
|
|
3493
3500
|
__proto__: null,
|
|
@@ -3501,7 +3508,8 @@ var Payment = {
|
|
|
3501
3508
|
queryWithdrawStatus: queryWithdrawStatus,
|
|
3502
3509
|
withdrawCash: withdrawCash,
|
|
3503
3510
|
queryWithdrawCashList: queryWithdrawCashList,
|
|
3504
|
-
queryTransactionList: queryTransactionList
|
|
3511
|
+
queryTransactionList: queryTransactionList,
|
|
3512
|
+
queryStatistics: queryStatistics
|
|
3505
3513
|
};
|
|
3506
3514
|
|
|
3507
3515
|
var FServiceAPI = {
|
|
@@ -3786,6 +3794,13 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3786
3794
|
_proto.tJSXElement = function tJSXElement(key, options) {
|
|
3787
3795
|
return htmlReactParser(i18next.t(key.trim(), options));
|
|
3788
3796
|
};
|
|
3797
|
+
_proto.tAuto = function tAuto(key, options) {
|
|
3798
|
+
var i18n_str = i18next.t(key.trim(), options);
|
|
3799
|
+
if (!i18n_str.startsWith('<div class="i18n"')) {
|
|
3800
|
+
return i18n_str;
|
|
3801
|
+
}
|
|
3802
|
+
return htmlReactParser(i18n_str);
|
|
3803
|
+
};
|
|
3789
3804
|
_proto.changeLanguage = function changeLanguage(lng) {
|
|
3790
3805
|
// return i18next.changeLanguage(lng);
|
|
3791
3806
|
// window.localStorage.setItem(localStorage_i18nextLng_key, lng)
|