@freelog/tools-lib 0.1.199 → 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 +2 -1
- package/dist/tools-lib.cjs.development.js +7 -0
- 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 +7 -0
- 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 +3 -1
package/dist/i18n/I18nNext.d.ts
CHANGED
|
@@ -16,6 +16,9 @@ declare class I18nNext {
|
|
|
16
16
|
tJSXElement(this: I18nNext, key: string, options?: {
|
|
17
17
|
[key: string]: any;
|
|
18
18
|
}): string | JSX.Element | JSX.Element[];
|
|
19
|
+
tAuto(this: I18nNext, key: string, options?: {
|
|
20
|
+
[key: string]: any;
|
|
21
|
+
}): string | JSX.Element | JSX.Element[];
|
|
19
22
|
changeLanguage(this: I18nNext, lng: LanguageKeyType): void;
|
|
20
23
|
getAllLanguage(this: I18nNext): typeof allLanguage;
|
|
21
24
|
getCurrentLanguage(this: I18nNext): LanguageKeyType;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
interface SendVerificationCodeParamsType {
|
|
2
2
|
loginName: string;
|
|
3
|
-
authCodeType: 'register' | 'resetPassword' | 'activateTransactionAccount' | 'updateTransactionAccountPwd' | 'updateMobileOrEmail';
|
|
3
|
+
authCodeType: 'register' | 'resetPassword' | 'activateTransactionAccount' | 'updateTransactionAccountPwd' | 'updateMobileOrEmail' | 'activateTransactionAccount';
|
|
4
4
|
}
|
|
5
5
|
export declare function sendVerificationCode(params: SendVerificationCodeParamsType): Promise<any>;
|
|
6
6
|
interface VerifyVerificationCodeParamsType {
|
|
7
7
|
authCode: string;
|
|
8
8
|
address: string;
|
|
9
|
-
authCodeType: 'register' | 'resetPassword' | 'activateTransactionAccount' | 'updateTransactionAccountPwd' | 'updateMobileOrEmail';
|
|
9
|
+
authCodeType: 'register' | 'resetPassword' | 'activateTransactionAccount' | 'updateTransactionAccountPwd' | 'updateMobileOrEmail' | 'activateTransactionAccount';
|
|
10
10
|
}
|
|
11
11
|
export declare function verifyVerificationCode(params: VerifyVerificationCodeParamsType): Promise<any>;
|
|
12
12
|
export {};
|
|
@@ -29,7 +29,6 @@ export declare function updateFinancialAccount({ accountId, ...params }: UpdateF
|
|
|
29
29
|
interface BindWithdrawCardParamsType {
|
|
30
30
|
accountId: string;
|
|
31
31
|
cardType: 0 | 1 | 2 | 4;
|
|
32
|
-
bankName: string;
|
|
33
32
|
cardNo: string;
|
|
34
33
|
provId: string;
|
|
35
34
|
areaId: string;
|
|
@@ -82,6 +81,8 @@ export declare function queryTransactionList(params: QueryTransactionListParamsT
|
|
|
82
81
|
interface QueryStatisticsParamsType {
|
|
83
82
|
ownerId: number;
|
|
84
83
|
ownerType: 1 | 2;
|
|
84
|
+
startTransactionDate: string;
|
|
85
|
+
endTransactionDate: string;
|
|
85
86
|
}
|
|
86
87
|
export declare function queryStatistics(params: QueryStatisticsParamsType, config?: AxiosRequestConfig): Promise<any>;
|
|
87
88
|
export {};
|
|
@@ -3800,6 +3800,13 @@ var I18nNext = /*#__PURE__*/function () {
|
|
|
3800
3800
|
_proto.tJSXElement = function tJSXElement(key, options) {
|
|
3801
3801
|
return htmlReactParser(i18next.t(key.trim(), options));
|
|
3802
3802
|
};
|
|
3803
|
+
_proto.tAuto = function tAuto(key, options) {
|
|
3804
|
+
var i18n_str = i18next.t(key.trim(), options);
|
|
3805
|
+
if (!i18n_str.startsWith('<div class="i18n"')) {
|
|
3806
|
+
return i18n_str;
|
|
3807
|
+
}
|
|
3808
|
+
return htmlReactParser(i18n_str);
|
|
3809
|
+
};
|
|
3803
3810
|
_proto.changeLanguage = function changeLanguage(lng) {
|
|
3804
3811
|
// return i18next.changeLanguage(lng);
|
|
3805
3812
|
// window.localStorage.setItem(localStorage_i18nextLng_key, lng)
|