@abtnode/ux 1.16.14-beta-08abf537 → 1.16.14-beta-9743e8e2
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.
|
@@ -1076,7 +1076,7 @@ function AddComponent(_ref2) {
|
|
|
1076
1076
|
overflow: 'hidden',
|
|
1077
1077
|
textOverflow: 'ellipsis',
|
|
1078
1078
|
whiteSpace: 'nowrap',
|
|
1079
|
-
maxWidth: '
|
|
1079
|
+
maxWidth: '280px',
|
|
1080
1080
|
display: 'inline-block'
|
|
1081
1081
|
},
|
|
1082
1082
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
|
package/lib/blocklet/overview.js
CHANGED
|
@@ -14,6 +14,7 @@ var _Tooltip = _interopRequireDefault(require("@mui/material/Tooltip"));
|
|
|
14
14
|
var _ExpandMore = _interopRequireDefault(require("@mui/icons-material/ExpandMore"));
|
|
15
15
|
var _ExpandLess = _interopRequireDefault(require("@mui/icons-material/ExpandLess"));
|
|
16
16
|
var _base = require("@abtnode/util/lib/base32");
|
|
17
|
+
var _urlEvaluation = require("@abtnode/util/lib/url-evaluation");
|
|
17
18
|
var _Empty = _interopRequireDefault(require("@arcblock/ux/lib/Empty"));
|
|
18
19
|
var _InfoRow = _interopRequireDefault(require("@arcblock/ux/lib/InfoRow"));
|
|
19
20
|
var _context = require("@arcblock/ux/lib/Locale/context");
|
|
@@ -202,7 +203,7 @@ function BlockletOverview() {
|
|
|
202
203
|
const pidBase32 = (0, _base.encode)(blocklet.appPid);
|
|
203
204
|
domains.forEach(domain => {
|
|
204
205
|
const value = domain.value || '';
|
|
205
|
-
if (
|
|
206
|
+
if ((0, _urlEvaluation.isDidDomain)(value) && !value.startsWith(pidBase32)) {
|
|
206
207
|
hiddenDomains.push(domain);
|
|
207
208
|
} else {
|
|
208
209
|
displayDomains.push(domain);
|
package/lib/util/index.js
CHANGED
|
@@ -98,10 +98,7 @@ function getAccessUrl(hostname) {
|
|
|
98
98
|
}
|
|
99
99
|
let protocol = 'http';
|
|
100
100
|
if (window.location.protocol === 'https:') {
|
|
101
|
-
if (hostname.
|
|
102
|
-
protocol = 'https';
|
|
103
|
-
}
|
|
104
|
-
if (hostname.endsWith(_constant.DEFAULT_DID_DOMAIN)) {
|
|
101
|
+
if ((0, _urlEvaluation.isIpEcho)(hostname) || (0, _urlEvaluation.isSlpDomain)(hostname) || (0, _urlEvaluation.isDidDomain)(hostname)) {
|
|
105
102
|
protocol = 'https';
|
|
106
103
|
}
|
|
107
104
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/ux",
|
|
3
|
-
"version": "1.16.14-beta-
|
|
3
|
+
"version": "1.16.14-beta-9743e8e2",
|
|
4
4
|
"description": "UX components shared across abtnode packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -23,9 +23,9 @@
|
|
|
23
23
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@abtnode/auth": "1.16.14-beta-
|
|
27
|
-
"@abtnode/constant": "1.16.14-beta-
|
|
28
|
-
"@abtnode/util": "1.16.14-beta-
|
|
26
|
+
"@abtnode/auth": "1.16.14-beta-9743e8e2",
|
|
27
|
+
"@abtnode/constant": "1.16.14-beta-9743e8e2",
|
|
28
|
+
"@abtnode/util": "1.16.14-beta-9743e8e2",
|
|
29
29
|
"@ahooksjs/use-url-state": "^3.5.1",
|
|
30
30
|
"@arcblock/did": "^1.18.88",
|
|
31
31
|
"@arcblock/did-connect": "^2.6.8",
|
|
@@ -35,10 +35,10 @@
|
|
|
35
35
|
"@arcblock/react-hooks": "^2.6.8",
|
|
36
36
|
"@arcblock/terminal": "^2.6.8",
|
|
37
37
|
"@arcblock/ux": "^2.6.8",
|
|
38
|
-
"@blocklet/constant": "1.16.14-beta-
|
|
38
|
+
"@blocklet/constant": "1.16.14-beta-9743e8e2",
|
|
39
39
|
"@blocklet/launcher-layout": "2.1.83",
|
|
40
40
|
"@blocklet/list": "^0.12.25",
|
|
41
|
-
"@blocklet/meta": "1.16.14-beta-
|
|
41
|
+
"@blocklet/meta": "1.16.14-beta-9743e8e2",
|
|
42
42
|
"@blocklet/ui-react": "^2.6.8",
|
|
43
43
|
"@emotion/react": "^11.10.4",
|
|
44
44
|
"@emotion/styled": "^11.10.4",
|
|
@@ -93,5 +93,5 @@
|
|
|
93
93
|
"@babel/preset-react": "^7.18.6",
|
|
94
94
|
"babel-plugin-inline-react-svg": "^1.1.2"
|
|
95
95
|
},
|
|
96
|
-
"gitHead": "
|
|
96
|
+
"gitHead": "8c98d12062bfe1ea2d4faff920e4dd99436bea1f"
|
|
97
97
|
}
|