@abtnode/ux 1.17.6 → 1.17.7-beta-20251224-045844-3c7f459a
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
|
@@ -385,7 +385,7 @@ function BlockletActions({
|
|
|
385
385
|
inExternal: true,
|
|
386
386
|
name: t('common.stop'),
|
|
387
387
|
handler: createHandler('stop', node.api.stopBlocklet, true),
|
|
388
|
-
disabled: !['running', 'starting'].includes(blocklet.status)
|
|
388
|
+
disabled: !['running', 'starting', 'error'].includes(blocklet.status)
|
|
389
389
|
}, {
|
|
390
390
|
action: 'restart',
|
|
391
391
|
inExternal: true,
|
|
@@ -6,6 +6,7 @@ import Badge from '@mui/material/Badge';
|
|
|
6
6
|
import InfoOutlinedIcon from '@mui/icons-material/InfoOutlined';
|
|
7
7
|
import LaunchIcon from '@mui/icons-material/Launch';
|
|
8
8
|
import RestartIcon from '@mui/icons-material/Replay';
|
|
9
|
+
import StopIcon from '@mui/icons-material/Stop';
|
|
9
10
|
import IconButton from '@mui/material/IconButton';
|
|
10
11
|
import DeleteIcon from '@mui/icons-material/Delete';
|
|
11
12
|
import { Icon } from '@iconify/react';
|
|
@@ -384,7 +385,26 @@ export default function ComponentCell({
|
|
|
384
385
|
});
|
|
385
386
|
},
|
|
386
387
|
disabled: loading || appInProgress || componentInProgress || !isBlockletRunning(blocklet)
|
|
387
|
-
}, {
|
|
388
|
+
}, primaryStatus === 'error' ? {
|
|
389
|
+
icon: /*#__PURE__*/_jsx(StopIcon, {}),
|
|
390
|
+
text: t('common.stop'),
|
|
391
|
+
onClick: () => {
|
|
392
|
+
setConfirmSetting({
|
|
393
|
+
title: `${t('common.stop')} ${blocklet.meta.title}`,
|
|
394
|
+
description: t('blocklet.action.stopDescription'),
|
|
395
|
+
confirm: t('blocklet.action.confirmStop'),
|
|
396
|
+
cancel: t('common.cancel'),
|
|
397
|
+
onConfirm: async () => {
|
|
398
|
+
setLoading(true);
|
|
399
|
+
await onStop(blocklet);
|
|
400
|
+
setLoading(false);
|
|
401
|
+
setConfirmSetting(null);
|
|
402
|
+
},
|
|
403
|
+
onCancel: () => setConfirmSetting(null)
|
|
404
|
+
});
|
|
405
|
+
},
|
|
406
|
+
disabled: loading || appInProgress || componentInProgress
|
|
407
|
+
} : null, {
|
|
388
408
|
icon: /*#__PURE__*/_jsx(DeleteIcon, {}),
|
|
389
409
|
text: t('common.delete'),
|
|
390
410
|
onClick: () => {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/ux",
|
|
3
|
-
"version": "1.17.
|
|
3
|
+
"version": "1.17.7-beta-20251224-045844-3c7f459a",
|
|
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.7-beta-20251224-045844-3c7f459a",
|
|
27
|
+
"@abtnode/constant": "1.17.7-beta-20251224-045844-3c7f459a",
|
|
28
|
+
"@abtnode/docker-utils": "1.17.7-beta-20251224-045844-3c7f459a",
|
|
29
|
+
"@abtnode/util": "1.17.7-beta-20251224-045844-3c7f459a",
|
|
30
30
|
"@ahooksjs/use-url-state": "^3.5.1",
|
|
31
31
|
"@arcblock/did": "^1.27.15",
|
|
32
32
|
"@arcblock/did-connect-react": "^3.2.19",
|
|
@@ -39,14 +39,14 @@
|
|
|
39
39
|
"@arcblock/ux": "^3.2.19",
|
|
40
40
|
"@arcblock/validator": "^1.27.15",
|
|
41
41
|
"@blocklet/aigne-hub": "^0.6.27",
|
|
42
|
-
"@blocklet/constant": "1.17.
|
|
42
|
+
"@blocklet/constant": "1.17.7-beta-20251224-045844-3c7f459a",
|
|
43
43
|
"@blocklet/did-domain-react": "^0.6.15",
|
|
44
44
|
"@blocklet/did-space-react": "^1.2.11",
|
|
45
45
|
"@blocklet/error": "^0.3.5",
|
|
46
|
-
"@blocklet/js-sdk": "1.17.
|
|
46
|
+
"@blocklet/js-sdk": "1.17.7-beta-20251224-045844-3c7f459a",
|
|
47
47
|
"@blocklet/launcher-layout": "^3.2.19",
|
|
48
48
|
"@blocklet/list": "^0.18.9",
|
|
49
|
-
"@blocklet/meta": "1.17.
|
|
49
|
+
"@blocklet/meta": "1.17.7-beta-20251224-045844-3c7f459a",
|
|
50
50
|
"@blocklet/theme": "^3.2.19",
|
|
51
51
|
"@blocklet/ui-react": "^3.2.19",
|
|
52
52
|
"@blocklet/uploader": "^0.3.16",
|
|
@@ -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": "e30dc1736187fc9d8136f146badfd5b521af16f2"
|
|
131
131
|
}
|