@abtnode/ux 1.17.4 → 1.17.5-beta-20251209-090953-3a59e7ac
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/lib/blocklet/actions.js
CHANGED
|
@@ -42,6 +42,7 @@ function BlockletActions({
|
|
|
42
42
|
onStart,
|
|
43
43
|
onComplete,
|
|
44
44
|
variant = 'menu',
|
|
45
|
+
source = 'blocklet-list',
|
|
45
46
|
hasPermission = false,
|
|
46
47
|
getComponentUrl = null,
|
|
47
48
|
useBlockletUrlEvaluation = () => ({
|
|
@@ -94,6 +95,7 @@ function BlockletActions({
|
|
|
94
95
|
const {
|
|
95
96
|
inService
|
|
96
97
|
} = node;
|
|
98
|
+
const isDetail = source === 'blocklet-detail';
|
|
97
99
|
const createHandler = (action, fn, requireUserConfirm = false) => async () => {
|
|
98
100
|
const onConfirm = async params => {
|
|
99
101
|
onStart({
|
|
@@ -409,7 +411,7 @@ function BlockletActions({
|
|
|
409
411
|
}),
|
|
410
412
|
name: t('sidebar.dashboard'),
|
|
411
413
|
handler: handleOpenDashboard
|
|
412
|
-
} : null, !inService ? {
|
|
414
|
+
} : null, !inService && !isDetail ? {
|
|
413
415
|
action: 'logs',
|
|
414
416
|
icon: Icons.LogIcon,
|
|
415
417
|
name: t('common.logs'),
|
|
@@ -522,6 +524,7 @@ BlockletActions.propTypes = {
|
|
|
522
524
|
onStart: PropTypes.func.isRequired,
|
|
523
525
|
onComplete: PropTypes.func.isRequired,
|
|
524
526
|
variant: PropTypes.oneOf(['menu', 'group']),
|
|
527
|
+
source: PropTypes.oneOf(['blocklet-list', 'blocklet-detail']),
|
|
525
528
|
hasPermission: PropTypes.bool,
|
|
526
529
|
useBlockletUrlEvaluation: PropTypes.func
|
|
527
530
|
};
|
package/lib/blocklet/branding.js
CHANGED
|
@@ -982,13 +982,7 @@ function BlockletBranding({
|
|
|
982
982
|
key: BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_NAME,
|
|
983
983
|
title: t('blocklet.config.name'),
|
|
984
984
|
description: t('blocklet.config.nameDesc'),
|
|
985
|
-
value: blocklet.environments.find(x => x.key === 'BLOCKLET_APP_NAME').value
|
|
986
|
-
validate: value => {
|
|
987
|
-
if (!/^[a-zA-Z0-9][-a-zA-Z0-9_]{2,128}$/.test(value)) {
|
|
988
|
-
return t('blocklet.config.nameValidateError');
|
|
989
|
-
}
|
|
990
|
-
return '';
|
|
991
|
-
}
|
|
985
|
+
value: blocklet.environments.find(x => x.key === 'BLOCKLET_APP_NAME').value
|
|
992
986
|
}, {
|
|
993
987
|
key: BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_DESCRIPTION,
|
|
994
988
|
title: t('blocklet.config.description'),
|
|
@@ -392,14 +392,6 @@ export default function ComponentCell({
|
|
|
392
392
|
},
|
|
393
393
|
disabled: appInProgress || componentInProgress || !!deleteDisabledTip,
|
|
394
394
|
tip: deleteDisabledTip
|
|
395
|
-
}, {
|
|
396
|
-
icon: /*#__PURE__*/_jsx(Icon, {
|
|
397
|
-
icon: "heroicons:command-line"
|
|
398
|
-
}),
|
|
399
|
-
text: t('common.logs'),
|
|
400
|
-
onClick: navigateToLogs,
|
|
401
|
-
disabled: appInProgress || componentInProgress || !!deleteDisabledTip,
|
|
402
|
-
tip: deleteDisabledTip
|
|
403
395
|
}, {
|
|
404
396
|
separator: true
|
|
405
397
|
}, {
|
|
@@ -422,6 +414,14 @@ export default function ComponentCell({
|
|
|
422
414
|
})
|
|
423
415
|
}),
|
|
424
416
|
disabled: appInProgress || componentInProgress
|
|
417
|
+
}, {
|
|
418
|
+
icon: /*#__PURE__*/_jsx(Icon, {
|
|
419
|
+
icon: "heroicons:command-line"
|
|
420
|
+
}),
|
|
421
|
+
text: t('common.logs'),
|
|
422
|
+
onClick: navigateToLogs,
|
|
423
|
+
disabled: appInProgress || componentInProgress || !!deleteDisabledTip,
|
|
424
|
+
tip: deleteDisabledTip
|
|
425
425
|
}].filter(Boolean)
|
|
426
426
|
})
|
|
427
427
|
})]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/ux",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.5-beta-20251209-090953-3a59e7ac",
|
|
4
4
|
"description": "UX components shared across abtnode packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -23,10 +23,10 @@
|
|
|
23
23
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
24
24
|
"license": "Apache-2.0",
|
|
25
25
|
"dependencies": {
|
|
26
|
-
"@abtnode/auth": "1.17.
|
|
27
|
-
"@abtnode/constant": "1.17.
|
|
28
|
-
"@abtnode/docker-utils": "1.17.
|
|
29
|
-
"@abtnode/util": "1.17.
|
|
26
|
+
"@abtnode/auth": "1.17.5-beta-20251209-090953-3a59e7ac",
|
|
27
|
+
"@abtnode/constant": "1.17.5-beta-20251209-090953-3a59e7ac",
|
|
28
|
+
"@abtnode/docker-utils": "1.17.5-beta-20251209-090953-3a59e7ac",
|
|
29
|
+
"@abtnode/util": "1.17.5-beta-20251209-090953-3a59e7ac",
|
|
30
30
|
"@ahooksjs/use-url-state": "^3.5.1",
|
|
31
31
|
"@arcblock/did": "^1.27.12",
|
|
32
32
|
"@arcblock/did-connect-react": "^3.2.11",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"@arcblock/ux": "^3.2.11",
|
|
40
40
|
"@arcblock/validator": "^1.27.12",
|
|
41
41
|
"@blocklet/aigne-hub": "^0.6.19",
|
|
42
|
-
"@blocklet/constant": "1.17.
|
|
42
|
+
"@blocklet/constant": "1.17.5-beta-20251209-090953-3a59e7ac",
|
|
43
43
|
"@blocklet/did-domain-react": "^0.6.10",
|
|
44
44
|
"@blocklet/did-space-react": "^1.2.6",
|
|
45
45
|
"@blocklet/error": "^0.3.3",
|
|
46
|
-
"@blocklet/js-sdk": "1.17.
|
|
46
|
+
"@blocklet/js-sdk": "1.17.5-beta-20251209-090953-3a59e7ac",
|
|
47
47
|
"@blocklet/launcher-layout": "^3.2.11",
|
|
48
48
|
"@blocklet/list": "^0.18.5",
|
|
49
|
-
"@blocklet/meta": "1.17.
|
|
49
|
+
"@blocklet/meta": "1.17.5-beta-20251209-090953-3a59e7ac",
|
|
50
50
|
"@blocklet/theme": "^3.2.11",
|
|
51
51
|
"@blocklet/ui-react": "^3.2.11",
|
|
52
52
|
"@blocklet/uploader": "^0.3.12",
|
|
@@ -127,5 +127,5 @@
|
|
|
127
127
|
"babel-plugin-inline-react-svg": "^2.0.2",
|
|
128
128
|
"glob": "^10.4.1"
|
|
129
129
|
},
|
|
130
|
-
"gitHead": "
|
|
130
|
+
"gitHead": "514964082a28e8c6658d9a62cf283811dd6a8baf"
|
|
131
131
|
}
|