message-verify 0.0.19-beta.0 → 0.0.21-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 CHANGED
@@ -8,4 +8,3 @@ interface Props {
8
8
  }
9
9
  declare const App: React.FC<Props>;
10
10
  export default App;
11
- export { getEnvironmentFingerprint } from './utils';
package/dist/index.js CHANGED
@@ -33,12 +33,10 @@ const App = ({ data }) => {
33
33
  clearInterval(timer);
34
34
  };
35
35
  }, [visible, countdown]);
36
- // const handleResend = async() => {
37
- // setCountdown(60);
38
- // await Api.greSendCode({ });
39
- // // 这里可以加上重新发送验证码的逻辑
40
- // };
36
+ // useEffect(() => {
37
+ // if (!axios) return;
38
+ // axios.defaults.headers.common['YQG-PLATFORM-LANGUAGE'] = 'zh';
39
+ // }, [axios]);
41
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" }) })] }) }));
42
41
  };
43
42
  export default App;
44
- export { getEnvironmentFingerprint } from './utils';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "message-verify",
3
- "version": "0.0.19-beta.0",
3
+ "version": "0.0.21-beta.0",
4
4
  "type": "module",
5
5
  "main": "dist/index.js",
6
6
  "dependencies": {
package/src/index.tsx CHANGED
@@ -2,6 +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
6
  // import Button from './components/button'
6
7
 
7
8
  // const buttonStyle: React.CSSProperties = {
@@ -19,6 +20,7 @@ interface Props {
19
20
  sendSuccess: boolean;
20
21
  };
21
22
  refresh: () => void;
23
+ // axios: any;
22
24
  }
23
25
  const App: React.FC<Props> = ({ data }) => {
24
26
  const { mobile } = data || {};
@@ -53,12 +55,10 @@ const App: React.FC<Props> = ({ data }) => {
53
55
  };
54
56
  }, [visible, countdown]);
55
57
 
56
- // const handleResend = async() => {
57
- // setCountdown(60);
58
- // await Api.greSendCode({ });
59
- // // 这里可以加上重新发送验证码的逻辑
60
- // };
61
-
58
+ // useEffect(() => {
59
+ // if (!axios) return;
60
+ // axios.defaults.headers.common['YQG-PLATFORM-LANGUAGE'] = 'zh';
61
+ // }, [axios]);
62
62
  return (
63
63
  <>
64
64
  <Modal visible={visible} onClose={() => setVisible(false)}
@@ -83,5 +83,5 @@ const App: React.FC<Props> = ({ data }) => {
83
83
  )
84
84
  }
85
85
 
86
- export default App;
87
- export { getEnvironmentFingerprint } from './utils'
86
+ export default App;
87
+ // export { getEnvironmentFingerprint };