@abtnode/ux 1.16.21-beta-2e75c75c → 1.16.21-beta-da3f852a
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/es/exchange-passport.js +11 -20
- package/es/layout/addon.js +5 -0
- package/es/locales/ar.js +1716 -0
- package/es/locales/de.js +1716 -0
- package/es/locales/en.js +1 -0
- package/es/locales/es.js +1716 -0
- package/es/locales/fr.js +1716 -0
- package/es/locales/hi.js +1716 -0
- package/es/locales/i18n.db +0 -0
- package/es/locales/id.js +1716 -0
- package/es/locales/index.js +29 -2
- package/es/locales/ja.js +1716 -0
- package/es/locales/ko.js +1716 -0
- package/es/locales/pt.js +1716 -0
- package/es/locales/ru.js +1716 -0
- package/es/locales/th.js +1716 -0
- package/es/locales/vi.js +1716 -0
- package/es/locales/zh-tw.js +1716 -0
- package/es/locales/zh.js +16 -6
- package/es/util/index.js +41 -3
- package/lib/exchange-passport.js +14 -10
- package/lib/layout/addon.js +1 -1
- package/lib/locales/ar.js +1722 -0
- package/lib/locales/de.js +1722 -0
- package/lib/locales/en.js +1 -0
- package/lib/locales/es.js +1722 -0
- package/lib/locales/fr.js +1722 -0
- package/lib/locales/hi.js +1722 -0
- package/lib/locales/i18n.db +0 -0
- package/lib/locales/id.js +1722 -0
- package/lib/locales/index.js +30 -2
- package/lib/locales/ja.js +1722 -0
- package/lib/locales/ko.js +1722 -0
- package/lib/locales/pt.js +1722 -0
- package/lib/locales/ru.js +1722 -0
- package/lib/locales/th.js +1722 -0
- package/lib/locales/vi.js +1722 -0
- package/lib/locales/zh-tw.js +1722 -0
- package/lib/locales/zh.js +16 -6
- package/lib/util/index.js +43 -2
- package/package.json +15 -15
package/es/exchange-passport.js
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/* eslint-disable react/prop-types */
|
|
2
|
-
/* eslint-disable react/jsx-one-expression-per-line */
|
|
3
2
|
import React, { useContext } from 'react';
|
|
4
|
-
import styled from '@emotion/styled';
|
|
5
3
|
import { useNavigate } from 'react-router-dom';
|
|
4
|
+
import Box from '@mui/material/Box';
|
|
6
5
|
import Spinner from '@mui/material/CircularProgress';
|
|
7
6
|
import Center from '@arcblock/ux/lib/Center';
|
|
8
7
|
import Toast from '@arcblock/ux/lib/Toast';
|
|
9
8
|
import DidConnect from '@arcblock/did-connect/lib/Connect';
|
|
10
9
|
import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
|
|
10
|
+
import Fullpage from '@arcblock/did-connect/lib/Connect/fullpage';
|
|
11
11
|
import { WELLKNOWN_SERVICE_PATH_PREFIX } from '@abtnode/constant';
|
|
12
12
|
import wrapLocale from './wrap-locale';
|
|
13
13
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -61,9 +61,14 @@ function ExchangePassport({
|
|
|
61
61
|
children: /*#__PURE__*/_jsx(Spinner, {})
|
|
62
62
|
});
|
|
63
63
|
}
|
|
64
|
-
return /*#__PURE__*/_jsx(
|
|
65
|
-
|
|
66
|
-
|
|
64
|
+
return /*#__PURE__*/_jsx(Fullpage, {
|
|
65
|
+
did: window?.blocklet?.appPid || window?.env?.appPid,
|
|
66
|
+
children: /*#__PURE__*/_jsx(Box, {
|
|
67
|
+
sx: {
|
|
68
|
+
width: '560px',
|
|
69
|
+
maxWidth: '100%',
|
|
70
|
+
height: '100%'
|
|
71
|
+
},
|
|
67
72
|
children: /*#__PURE__*/_jsx(DidConnect, {
|
|
68
73
|
className: "connect",
|
|
69
74
|
action: "exchange-passport",
|
|
@@ -85,18 +90,4 @@ function ExchangePassport({
|
|
|
85
90
|
})
|
|
86
91
|
});
|
|
87
92
|
}
|
|
88
|
-
export default wrapLocale(ExchangePassport);
|
|
89
|
-
const Div = styled.div`
|
|
90
|
-
box-sizing: border-box;
|
|
91
|
-
width: 100%;
|
|
92
|
-
height: 100vh;
|
|
93
|
-
position: relative;
|
|
94
|
-
display: flex;
|
|
95
|
-
flex-direction: column;
|
|
96
|
-
.connect-wrapper {
|
|
97
|
-
flex: 1;
|
|
98
|
-
}
|
|
99
|
-
.connect {
|
|
100
|
-
background: #fafafa;
|
|
101
|
-
}
|
|
102
|
-
`;
|
|
93
|
+
export default wrapLocale(ExchangePassport);
|