@abtnode/ux 1.16.8-beta-186fd5aa → 1.16.8-beta-56e84f3c
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.
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
var _Empty = _interopRequireDefault(require("@arcblock/ux/lib/Empty"));
|
|
8
|
+
var _context = require("@arcblock/ux/lib/Locale/context");
|
|
7
9
|
var _Tabs = _interopRequireDefault(require("@arcblock/ux/lib/Tabs"));
|
|
8
10
|
var _material = require("@mui/material");
|
|
9
11
|
var _ahooks = require("ahooks");
|
|
@@ -28,12 +30,17 @@ const tabs = [{
|
|
|
28
30
|
}];
|
|
29
31
|
function BlockletNotification() {
|
|
30
32
|
const [currentTab, setCurrentTab] = (0, _react.useState)(tabs[0].value);
|
|
33
|
+
const {
|
|
34
|
+
t
|
|
35
|
+
} = (0, _react.useContext)(_context.LocaleContext);
|
|
31
36
|
const contents = (0, _ahooks.useCreation)(() => ({
|
|
32
37
|
email: /*#__PURE__*/(0, _jsxRuntime.jsx)(_email.default, {}),
|
|
33
38
|
more: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
34
|
-
children:
|
|
39
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Empty.default, {
|
|
40
|
+
children: t('notification.comingSoon')
|
|
41
|
+
})
|
|
35
42
|
})
|
|
36
|
-
}), []);
|
|
43
|
+
}), [t]);
|
|
37
44
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
38
45
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tabs.default, {
|
|
39
46
|
tabs: tabs,
|
|
@@ -4,6 +4,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.default = void 0;
|
|
7
|
+
var _Empty = _interopRequireDefault(require("@arcblock/ux/lib/Empty"));
|
|
8
|
+
var _context = require("@arcblock/ux/lib/Locale/context");
|
|
7
9
|
var _Tabs = _interopRequireDefault(require("@arcblock/ux/lib/Tabs"));
|
|
8
10
|
var _material = require("@mui/material");
|
|
9
11
|
var _ahooks = require("ahooks");
|
|
@@ -28,12 +30,17 @@ function OAuth() {
|
|
|
28
30
|
value: 'more'
|
|
29
31
|
}];
|
|
30
32
|
const [currentTab, setCurrentTab] = (0, _react.useState)(tabs[0].value);
|
|
33
|
+
const {
|
|
34
|
+
t
|
|
35
|
+
} = (0, _react.useContext)(_context.LocaleContext);
|
|
31
36
|
const contents = (0, _ahooks.useCreation)(() => ({
|
|
32
37
|
auth0: /*#__PURE__*/(0, _jsxRuntime.jsx)(_auth.default, {}),
|
|
33
38
|
more: /*#__PURE__*/(0, _jsxRuntime.jsx)(_material.Box, {
|
|
34
|
-
children:
|
|
39
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_Empty.default, {
|
|
40
|
+
children: t('oauth.comingSoon')
|
|
41
|
+
})
|
|
35
42
|
})
|
|
36
|
-
}), []);
|
|
43
|
+
}), [t]);
|
|
37
44
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
38
45
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Tabs.default, {
|
|
39
46
|
tabs: tabs,
|
|
@@ -18,6 +18,7 @@ var _NotificationsNone = _interopRequireDefault(require("@mui/icons-material/Not
|
|
|
18
18
|
var _SettingsOutlined = _interopRequireDefault(require("@mui/icons-material/SettingsOutlined"));
|
|
19
19
|
var _ChevronRight = _interopRequireDefault(require("@mui/icons-material/ChevronRight"));
|
|
20
20
|
var _ExpandMore = _interopRequireDefault(require("@mui/icons-material/ExpandMore"));
|
|
21
|
+
var _reactRouterDom = require("react-router-dom");
|
|
21
22
|
var _context = require("@arcblock/ux/lib/Locale/context");
|
|
22
23
|
var _Tabs = _interopRequireDefault(require("@arcblock/ux/lib/Tabs"));
|
|
23
24
|
var _util = require("@blocklet/meta/lib/util");
|
|
@@ -89,8 +90,9 @@ function BlockletPreferences(_ref) {
|
|
|
89
90
|
info,
|
|
90
91
|
inService
|
|
91
92
|
} = (0, _node.useNodeContext)();
|
|
92
|
-
const [current, setCurrent] = (0, _react.useState)('general');
|
|
93
93
|
const [expandPref, setExpandPref] = (0, _react.useState)(true);
|
|
94
|
+
const [searchParams, setSearchParams] = (0, _reactRouterDom.useSearchParams)();
|
|
95
|
+
const current = searchParams.get('tab') || 'general';
|
|
94
96
|
const tabs = [{
|
|
95
97
|
label: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_material.Box, {
|
|
96
98
|
display: "flex",
|
|
@@ -209,7 +211,14 @@ function BlockletPreferences(_ref) {
|
|
|
209
211
|
if (x === 'preference') {
|
|
210
212
|
setExpandPref(!expandPref);
|
|
211
213
|
} else {
|
|
212
|
-
|
|
214
|
+
setSearchParams(prev => {
|
|
215
|
+
if (x === 'general') {
|
|
216
|
+
prev.delete('tab');
|
|
217
|
+
} else {
|
|
218
|
+
prev.set('tab', x);
|
|
219
|
+
}
|
|
220
|
+
return prev;
|
|
221
|
+
});
|
|
213
222
|
}
|
|
214
223
|
};
|
|
215
224
|
let content = null;
|
|
@@ -227,13 +236,13 @@ function BlockletPreferences(_ref) {
|
|
|
227
236
|
} else {
|
|
228
237
|
// eslint-disable-next-line no-nested-ternary
|
|
229
238
|
const pathPrefix = inService ? _constant.WELLKNOWN_SERVICE_PATH_PREFIX : process.env.NODE_ENV === 'production' ? info.routing.adminPath : '';
|
|
230
|
-
const
|
|
239
|
+
const urlSearchParams = new URLSearchParams();
|
|
231
240
|
if (!inService) {
|
|
232
|
-
|
|
241
|
+
urlSearchParams.set('authKey', '__sst');
|
|
233
242
|
}
|
|
234
|
-
|
|
243
|
+
urlSearchParams.set('schemaKey', (0, _urlJoin.default)(window.location.origin, pathPrefix, "/api/preferences?id=".concat(encodeURIComponent(current))));
|
|
235
244
|
content = /*#__PURE__*/(0, _jsxRuntime.jsx)(_reactIframe.default, {
|
|
236
|
-
url: "".concat((0, _urlJoin.default)(window.location.origin, pathPrefix, '/hosted/form-collector/'), "?").concat(
|
|
245
|
+
url: "".concat((0, _urlJoin.default)(window.location.origin, pathPrefix, '/hosted/form-collector/'), "?").concat(urlSearchParams.toString()),
|
|
237
246
|
width: "100%",
|
|
238
247
|
height: "100%",
|
|
239
248
|
frameBorder: 0,
|
package/lib/blocklet/util.js
CHANGED
|
@@ -242,7 +242,7 @@ const getWalletType = function getWalletType(raw) {
|
|
|
242
242
|
if (item && item.value) {
|
|
243
243
|
return item.value;
|
|
244
244
|
}
|
|
245
|
-
item = (raw.environments || []).find(x =>
|
|
245
|
+
item = (raw.environments || []).find(x => ['CHAIN_TYPE', 'BLOCKLET_APP_CHAIN_TYPE'].includes(x.key));
|
|
246
246
|
if (item && item.value) {
|
|
247
247
|
return item.value;
|
|
248
248
|
}
|
|
@@ -250,7 +250,7 @@ const getWalletType = function getWalletType(raw) {
|
|
|
250
250
|
}
|
|
251
251
|
|
|
252
252
|
// from meta: installing
|
|
253
|
-
item = (raw.environments || []).find(x =>
|
|
253
|
+
item = (raw.environments || []).find(x => ['CHAIN_TYPE', 'BLOCKLET_APP_CHAIN_TYPE'].includes(x.name));
|
|
254
254
|
if (item && item.default) {
|
|
255
255
|
return item.default;
|
|
256
256
|
}
|
package/lib/locales/en.js
CHANGED
|
@@ -767,7 +767,8 @@ module.exports = {
|
|
|
767
767
|
portInvalid: 'SMTP server port is invalid, port should be between 1 and 65535',
|
|
768
768
|
userRequired: 'SMTP server username is required',
|
|
769
769
|
passwordRequired: 'SMTP server user password is required'
|
|
770
|
-
}
|
|
770
|
+
},
|
|
771
|
+
comingSoon: 'More notification channel are under construction'
|
|
771
772
|
},
|
|
772
773
|
router: {
|
|
773
774
|
routerSetting: 'Domains & URLs',
|
|
@@ -1214,6 +1215,8 @@ module.exports = {
|
|
|
1214
1215
|
waiting: {
|
|
1215
1216
|
verifying: 'Verifying blocklet meta',
|
|
1216
1217
|
downloading: 'Downloading blocklet bundle',
|
|
1218
|
+
downloadingComponent: 'Downloading: {name}',
|
|
1219
|
+
extractingComponent: 'Extracting: {name}',
|
|
1217
1220
|
extracting: 'Extracting blocklet bundle',
|
|
1218
1221
|
installing: 'Installing blocklet and setup components',
|
|
1219
1222
|
done: 'Installation Complete'
|
|
@@ -1402,6 +1405,7 @@ module.exports = {
|
|
|
1402
1405
|
domainDescription: "Auth0's domain is required",
|
|
1403
1406
|
clientId: 'ClientID',
|
|
1404
1407
|
clientIdDescribe: "Auth0's clientId is required"
|
|
1405
|
-
}
|
|
1408
|
+
},
|
|
1409
|
+
comingSoon: 'More login methods are under construction'
|
|
1406
1410
|
}
|
|
1407
1411
|
};
|
package/lib/locales/zh.js
CHANGED
|
@@ -770,7 +770,8 @@ module.exports = {
|
|
|
770
770
|
portInvalid: '请输入 SMTP 服务端口,端口号应该在 0-65535 之间',
|
|
771
771
|
userRequired: '请输入 SMTP 服务用户名',
|
|
772
772
|
passwordRequired: '请输入 SMTP 服务用户密码'
|
|
773
|
-
}
|
|
773
|
+
},
|
|
774
|
+
comingSoon: '更多通知方式正在建设中'
|
|
774
775
|
},
|
|
775
776
|
router: {
|
|
776
777
|
routerSetting: '域名和网址',
|
|
@@ -1220,6 +1221,8 @@ module.exports = {
|
|
|
1220
1221
|
verifying: '验证应用元数据',
|
|
1221
1222
|
downloading: '下载应用包',
|
|
1222
1223
|
extracting: '提取应用包的数据',
|
|
1224
|
+
downloadingComponent: '下载中: {name}',
|
|
1225
|
+
extractingComponent: '提取中: {name}',
|
|
1223
1226
|
installing: '安装应用和设置组件',
|
|
1224
1227
|
done: '安装完成'
|
|
1225
1228
|
},
|
|
@@ -1405,6 +1408,7 @@ module.exports = {
|
|
|
1405
1408
|
domainDescription: '请输入 Auth0 的 Domain',
|
|
1406
1409
|
clientId: 'ClientID',
|
|
1407
1410
|
clientIdDescribe: '请输入 Auth0 的 ClientID'
|
|
1408
|
-
}
|
|
1411
|
+
},
|
|
1412
|
+
comingSoon: '更多登录方式正在建设中'
|
|
1409
1413
|
}
|
|
1410
1414
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/ux",
|
|
3
|
-
"version": "1.16.8-beta-
|
|
3
|
+
"version": "1.16.8-beta-56e84f3c",
|
|
4
4
|
"description": "UX components shared across abtnode packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -23,22 +23,22 @@
|
|
|
23
23
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
24
24
|
"license": "MIT",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@abtnode/auth": "1.16.8-beta-
|
|
27
|
-
"@abtnode/constant": "1.16.8-beta-
|
|
28
|
-
"@abtnode/util": "1.16.8-beta-
|
|
26
|
+
"@abtnode/auth": "1.16.8-beta-56e84f3c",
|
|
27
|
+
"@abtnode/constant": "1.16.8-beta-56e84f3c",
|
|
28
|
+
"@abtnode/util": "1.16.8-beta-56e84f3c",
|
|
29
29
|
"@ahooksjs/use-url-state": "^3.5.1",
|
|
30
|
-
"@arcblock/did": "^1.18.
|
|
31
|
-
"@arcblock/did-connect": "^2.5.
|
|
30
|
+
"@arcblock/did": "^1.18.80",
|
|
31
|
+
"@arcblock/did-connect": "^2.5.40",
|
|
32
32
|
"@arcblock/did-motif": "^1.1.10",
|
|
33
|
-
"@arcblock/icons": "^2.5.
|
|
34
|
-
"@arcblock/react-hooks": "^2.5.
|
|
35
|
-
"@arcblock/terminal": "^2.5.
|
|
36
|
-
"@arcblock/ux": "^2.5.
|
|
37
|
-
"@blocklet/constant": "1.16.8-beta-
|
|
33
|
+
"@arcblock/icons": "^2.5.40",
|
|
34
|
+
"@arcblock/react-hooks": "^2.5.40",
|
|
35
|
+
"@arcblock/terminal": "^2.5.40",
|
|
36
|
+
"@arcblock/ux": "^2.5.40",
|
|
37
|
+
"@blocklet/constant": "1.16.8-beta-56e84f3c",
|
|
38
38
|
"@blocklet/launcher-layout": "2.0.39",
|
|
39
|
-
"@blocklet/list": "^0.11.
|
|
40
|
-
"@blocklet/meta": "1.16.8-beta-
|
|
41
|
-
"@blocklet/ui-react": "^2.5.
|
|
39
|
+
"@blocklet/list": "^0.11.26",
|
|
40
|
+
"@blocklet/meta": "1.16.8-beta-56e84f3c",
|
|
41
|
+
"@blocklet/ui-react": "^2.5.40",
|
|
42
42
|
"@emotion/react": "^11.10.4",
|
|
43
43
|
"@emotion/styled": "^11.10.4",
|
|
44
44
|
"@iconify/react": "^4.0.0",
|
|
@@ -47,7 +47,7 @@
|
|
|
47
47
|
"@mui/lab": "^5.0.0-alpha.102",
|
|
48
48
|
"@mui/material": "^5.10.8",
|
|
49
49
|
"@mui/styles": "^5.10.8",
|
|
50
|
-
"@ocap/client": "1.18.
|
|
50
|
+
"@ocap/client": "1.18.80",
|
|
51
51
|
"@uiw/react-markdown-preview": "4.0.6",
|
|
52
52
|
"ahooks": "^3.7.1",
|
|
53
53
|
"axios": "^0.27.2",
|
|
@@ -94,5 +94,5 @@
|
|
|
94
94
|
"@babel/preset-react": "^7.18.6",
|
|
95
95
|
"babel-plugin-inline-react-svg": "^1.1.2"
|
|
96
96
|
},
|
|
97
|
-
"gitHead": "
|
|
97
|
+
"gitHead": "2abfe83fcd951169a59719addb3dc3c1bbf8789f"
|
|
98
98
|
}
|