@abtnode/ux 1.8.65 → 1.8.66-beta-7f4224af
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.
|
@@ -25,6 +25,7 @@ var _context = require("@arcblock/ux/lib/Locale/context");
|
|
|
25
25
|
var _constant = require("@blocklet/constant");
|
|
26
26
|
var _launcherLayout = _interopRequireDefault(require("@blocklet/launcher-layout"));
|
|
27
27
|
var _step = require("@blocklet/launcher-layout/lib/context/step");
|
|
28
|
+
var _constant2 = require("@abtnode/constant");
|
|
28
29
|
var _Button = _interopRequireDefault(require("@arcblock/ux/lib/Button"));
|
|
29
30
|
var _Alert = _interopRequireDefault(require("@arcblock/ux/lib/Alert"));
|
|
30
31
|
var _Tag = _interopRequireDefault(require("@arcblock/ux/lib/Tag"));
|
|
@@ -177,6 +178,7 @@ function AddComponent(_ref2) {
|
|
|
177
178
|
const {
|
|
178
179
|
setActiveStepByIndex
|
|
179
180
|
} = stepRef.current || {};
|
|
181
|
+
const isServerlessMode = nodeInfo.mode === _constant2.NODE_MODES.SERVERLESS;
|
|
180
182
|
const updateParams = obj => setParams(x => _objectSpread(_objectSpread({}, x), obj));
|
|
181
183
|
(0, _react.useEffect)(() => {
|
|
182
184
|
if (params.pathPrefix) {
|
|
@@ -607,7 +609,7 @@ function AddComponent(_ref2) {
|
|
|
607
609
|
confirm: t('blocklet.component.choose')
|
|
608
610
|
}
|
|
609
611
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_selectStore.default, {
|
|
610
|
-
extra: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Button.default, {
|
|
612
|
+
extra: !isServerlessMode ? /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Button.default, {
|
|
611
613
|
variant: "text",
|
|
612
614
|
color: "primary",
|
|
613
615
|
"data-cy": "add-component-from-url",
|
|
@@ -625,7 +627,7 @@ function AddComponent(_ref2) {
|
|
|
625
627
|
marginRight: 4
|
|
626
628
|
}
|
|
627
629
|
}), " ", t('blocklet.component.addComponentTip.fromUrl'), ' ']
|
|
628
|
-
}),
|
|
630
|
+
}) : null,
|
|
629
631
|
loading: loading,
|
|
630
632
|
onChange: () => {
|
|
631
633
|
setParams({});
|
|
@@ -10,6 +10,7 @@ var _styled = _interopRequireDefault(require("@emotion/styled"));
|
|
|
10
10
|
var _context = require("@arcblock/ux/lib/Locale/context");
|
|
11
11
|
var _TextField = _interopRequireDefault(require("@mui/material/TextField"));
|
|
12
12
|
var _MenuItem = _interopRequireDefault(require("@mui/material/MenuItem"));
|
|
13
|
+
var _constant = require("@abtnode/constant");
|
|
13
14
|
var _Button = _interopRequireDefault(require("@arcblock/ux/lib/Button"));
|
|
14
15
|
var _ArrowDropDown = _interopRequireDefault(require("@mui/icons-material/ArrowDropDown"));
|
|
15
16
|
var _Typography = _interopRequireDefault(require("@mui/material/Typography"));
|
|
@@ -54,6 +55,7 @@ function SelectStore(_ref) {
|
|
|
54
55
|
nodeInfo
|
|
55
56
|
});
|
|
56
57
|
const currentRegistry = storeUrl && storeList.find(x => storeUrl === x.url) || storeList[0];
|
|
58
|
+
const isServerlessMode = nodeInfo.mode === _constant.NODE_MODES.SERVERLESS;
|
|
57
59
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
58
60
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(SelectStoreTitle, {
|
|
59
61
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
@@ -124,7 +126,7 @@ function SelectStore(_ref) {
|
|
|
124
126
|
}
|
|
125
127
|
})
|
|
126
128
|
}, x.url);
|
|
127
|
-
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_add.default, {
|
|
129
|
+
}), !isServerlessMode && /*#__PURE__*/(0, _jsxRuntime.jsx)(_add.default, {
|
|
128
130
|
disabled: loading,
|
|
129
131
|
storeList: storeList,
|
|
130
132
|
teamDid: teamDid,
|
|
@@ -121,10 +121,10 @@ function InstallFromUrl(_ref) {
|
|
|
121
121
|
onSuccess(_objectSpread({
|
|
122
122
|
meta
|
|
123
123
|
}, params));
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
_onCancel();
|
|
125
|
+
return;
|
|
126
126
|
}
|
|
127
|
-
|
|
127
|
+
await onInstall();
|
|
128
128
|
};
|
|
129
129
|
const onInstall = async () => {
|
|
130
130
|
setLoading(true);
|
|
@@ -137,6 +137,7 @@ function InstallFromUrl(_ref) {
|
|
|
137
137
|
onSuccess(_objectSpread({
|
|
138
138
|
meta
|
|
139
139
|
}, params));
|
|
140
|
+
_onCancel();
|
|
140
141
|
} catch (err) {
|
|
141
142
|
const errMsg = "Blocklet Install failed: ".concat((0, _util2.formatError)(err));
|
|
142
143
|
setError(errMsg);
|
package/lib/issue-passport.js
CHANGED
package/lib/lost-passport.js
CHANGED
|
@@ -147,7 +147,6 @@ function LostPassport(_ref2) {
|
|
|
147
147
|
autoConnect: false,
|
|
148
148
|
checkFn: api.get,
|
|
149
149
|
checkTimeout: 10 * 60 * 1000,
|
|
150
|
-
socketUrl: api.socketUrl,
|
|
151
150
|
webWalletUrl: webWalletUrl,
|
|
152
151
|
onSuccess: onGetUser,
|
|
153
152
|
locale: locale,
|
|
@@ -238,7 +237,6 @@ function LostPassport(_ref2) {
|
|
|
238
237
|
action: "lost-passport-issue",
|
|
239
238
|
checkFn: api.get,
|
|
240
239
|
checkTimeout: 10 * 60 * 1000,
|
|
241
|
-
socketUrl: api.socketUrl,
|
|
242
240
|
webWalletUrl: webWalletUrl,
|
|
243
241
|
onSuccess: onReceivePassport,
|
|
244
242
|
locale: locale,
|
package/lib/util/index.js
CHANGED
|
@@ -375,6 +375,12 @@ const stringSortHandlerAsc = function stringSortHandlerAsc() {
|
|
|
375
375
|
}
|
|
376
376
|
return 0;
|
|
377
377
|
};
|
|
378
|
+
|
|
379
|
+
/**
|
|
380
|
+
*
|
|
381
|
+
* @param {ABTNode} nodeInfo
|
|
382
|
+
* @returns {string} like http://localhost:3000, http://localhost:3000/admin
|
|
383
|
+
*/
|
|
378
384
|
exports.stringSortHandlerAsc = stringSortHandlerAsc;
|
|
379
385
|
const getEndPoint = nodeInfo => {
|
|
380
386
|
const {
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"publishConfig": {
|
|
4
4
|
"access": "public"
|
|
5
5
|
},
|
|
6
|
-
"version": "1.8.
|
|
6
|
+
"version": "1.8.66-beta-7f4224af",
|
|
7
7
|
"description": "UX components shared across abtnode packages",
|
|
8
8
|
"main": "lib/index.js",
|
|
9
9
|
"files": [
|
|
@@ -21,19 +21,19 @@
|
|
|
21
21
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
22
22
|
"license": "MIT",
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@abtnode/auth": "1.8.
|
|
25
|
-
"@abtnode/constant": "1.8.
|
|
26
|
-
"@abtnode/util": "1.8.
|
|
27
|
-
"@arcblock/did-connect": "^2.
|
|
24
|
+
"@abtnode/auth": "1.8.66-beta-7f4224af",
|
|
25
|
+
"@abtnode/constant": "1.8.66-beta-7f4224af",
|
|
26
|
+
"@abtnode/util": "1.8.66-beta-7f4224af",
|
|
27
|
+
"@arcblock/did-connect": "^2.5.1",
|
|
28
28
|
"@arcblock/did-motif": "^1.1.10",
|
|
29
|
-
"@arcblock/icons": "^2.
|
|
30
|
-
"@arcblock/terminal": "^2.
|
|
31
|
-
"@arcblock/ux": "^2.
|
|
32
|
-
"@blocklet/constant": "1.8.
|
|
33
|
-
"@blocklet/launcher-layout": "^1.9.
|
|
34
|
-
"@blocklet/list": "^0.
|
|
35
|
-
"@blocklet/meta": "1.8.
|
|
36
|
-
"@blocklet/ui-react": "^2.
|
|
29
|
+
"@arcblock/icons": "^2.5.1",
|
|
30
|
+
"@arcblock/terminal": "^2.5.1",
|
|
31
|
+
"@arcblock/ux": "^2.5.1",
|
|
32
|
+
"@blocklet/constant": "1.8.66-beta-7f4224af",
|
|
33
|
+
"@blocklet/launcher-layout": "^1.9.59",
|
|
34
|
+
"@blocklet/list": "^0.11.1",
|
|
35
|
+
"@blocklet/meta": "1.8.66-beta-7f4224af",
|
|
36
|
+
"@blocklet/ui-react": "^2.5.1",
|
|
37
37
|
"@emotion/react": "^11.10.4",
|
|
38
38
|
"@emotion/styled": "^11.10.4",
|
|
39
39
|
"@iconify/react": "^4.0.0",
|
|
@@ -86,5 +86,5 @@
|
|
|
86
86
|
"@babel/preset-react": "^7.18.6",
|
|
87
87
|
"babel-plugin-inline-react-svg": "^1.1.2"
|
|
88
88
|
},
|
|
89
|
-
"gitHead": "
|
|
89
|
+
"gitHead": "72d418f63ecb76b1d5d62edbcc5f336cb62bf308"
|
|
90
90
|
}
|