message-verify 0.0.20-beta.0 → 0.0.22-beta.0
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/index.d.ts +0 -2
- package/dist/index.js +4 -7
- package/package.json +1 -1
- package/src/index.tsx +7 -8
- package/vite.config.ts +1 -1
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
@@ -3,7 +3,6 @@ import { useEffect, useState } from 'react';
|
|
3
3
|
import Modal from './components/modal';
|
4
4
|
import Input from './components/input';
|
5
5
|
import Api from './resource';
|
6
|
-
import { getEnvironmentFingerprint } from './utils';
|
7
6
|
const App = ({ data }) => {
|
8
7
|
const { mobile } = data || {};
|
9
8
|
const [countdown, setCountdown] = useState(60);
|
@@ -34,12 +33,10 @@ const App = ({ data }) => {
|
|
34
33
|
clearInterval(timer);
|
35
34
|
};
|
36
35
|
}, [visible, countdown]);
|
37
|
-
//
|
38
|
-
//
|
39
|
-
//
|
40
|
-
//
|
41
|
-
// };
|
36
|
+
// useEffect(() => {
|
37
|
+
// if (!axios) return;
|
38
|
+
// axios.defaults.headers.common['YQG-PLATFORM-LANGUAGE'] = 'zh';
|
39
|
+
// }, [axios]);
|
42
40
|
return (_jsx(_Fragment, { children: _jsxs(Modal, { visible: visible, onClose: () => setVisible(false), children: [_jsxs("div", { children: ["\u5DF2\u53D1\u9001\u77ED\u4FE1\u81F3\u60A8\u7684\u624B\u673A\uFF1A", mobile] }), countdown > 0 ? null : _jsxs("div", { style: { marginTop: 8 }, children: [_jsx(Input, {}), _jsx("img", { src: captchaImage, alt: "\u9A8C\u8BC1\u7801", style: { width: 100, height: 30, marginLeft: 8 }, onClick: getKey })] }), _jsx("div", { style: { display: 'flex', alignItems: 'center', gap: 8, marginTop: 8 }, children: _jsx(Input, { placeholder: "\u8BF7\u8F93\u5165\u9A8C\u8BC1\u7801" }) })] }) }));
|
43
41
|
};
|
44
42
|
export default App;
|
45
|
-
export { getEnvironmentFingerprint };
|
package/package.json
CHANGED
package/src/index.tsx
CHANGED
@@ -2,7 +2,7 @@ import { useEffect, useState } from 'react'
|
|
2
2
|
import Modal from './components/modal'
|
3
3
|
import Input from './components/input'
|
4
4
|
import Api from './resource'
|
5
|
-
import { getEnvironmentFingerprint } from './utils'
|
5
|
+
// import { getEnvironmentFingerprint } from './utils'
|
6
6
|
// import Button from './components/button'
|
7
7
|
|
8
8
|
// const buttonStyle: React.CSSProperties = {
|
@@ -20,6 +20,7 @@ interface Props {
|
|
20
20
|
sendSuccess: boolean;
|
21
21
|
};
|
22
22
|
refresh: () => void;
|
23
|
+
// axios: any;
|
23
24
|
}
|
24
25
|
const App: React.FC<Props> = ({ data }) => {
|
25
26
|
const { mobile } = data || {};
|
@@ -54,12 +55,10 @@ const App: React.FC<Props> = ({ data }) => {
|
|
54
55
|
};
|
55
56
|
}, [visible, countdown]);
|
56
57
|
|
57
|
-
//
|
58
|
-
//
|
59
|
-
//
|
60
|
-
//
|
61
|
-
// };
|
62
|
-
|
58
|
+
// useEffect(() => {
|
59
|
+
// if (!axios) return;
|
60
|
+
// axios.defaults.headers.common['YQG-PLATFORM-LANGUAGE'] = 'zh';
|
61
|
+
// }, [axios]);
|
63
62
|
return (
|
64
63
|
<>
|
65
64
|
<Modal visible={visible} onClose={() => setVisible(false)}
|
@@ -85,4 +84,4 @@ const App: React.FC<Props> = ({ data }) => {
|
|
85
84
|
}
|
86
85
|
|
87
86
|
export default App;
|
88
|
-
export { getEnvironmentFingerprint };
|
87
|
+
// export { getEnvironmentFingerprint };
|
package/vite.config.ts
CHANGED