@abtnode/ux 1.16.30-beta-b80c7bcd → 1.16.30-beta-2876881d

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.
@@ -28,7 +28,6 @@ import Toast from '@arcblock/ux/lib/Toast';
28
28
  import Confirm from '../confirm';
29
29
  import { useNodeContext } from '../contexts/node';
30
30
  import { formatError, isDownloading, sleep } from '../util';
31
- import joinUrlKeepSearch from '../util/join-url-keep-search';
32
31
  import Icons from './icons';
33
32
  import { getServerUrl } from './util';
34
33
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -86,14 +85,6 @@ export default function BlockletActions({
86
85
  const {
87
86
  inService
88
87
  } = node;
89
- const handleOpenDashboard = () => {
90
- const mountPoint = `/${blocklet.mountPoint || '/'}`.replace(/\/+/g, '/');
91
- const href = getComponentUrl?.({
92
- mountPoint,
93
- blocklet
94
- });
95
- window.open(joinUrlKeepSearch(href, '.well-known/service/admin'));
96
- };
97
88
  const createHandler = (action, fn, requireUserConfirm = false) => async () => {
98
89
  const onConfirm = async params => {
99
90
  onStart({
@@ -362,52 +353,15 @@ export default function BlockletActions({
362
353
  }, isDownloading(blocklet.status) ? cancelDownloadAction : removeAction, {
363
354
  separator: true
364
355
  }, !inService ? {
365
- action: 'dashboard',
366
- icon: ({
367
- style,
368
- ...restProps
369
- }) => /*#__PURE__*/_jsx(Icons.Dashboard, {
370
- ...restProps,
371
- style: {
372
- ...style,
373
- width: '26px',
374
- height: '26px',
375
- paddingRight: '3px'
376
- }
377
- }),
378
- name: t('sidebar.dashboard'),
379
- handler: handleOpenDashboard,
380
- disabled: disableStart || blocklet.status !== 'running'
381
- } : null, {
382
- separator: true
383
- }, {
384
- onlyInMenu: true,
385
- action: 'config',
386
- icon: Icons.Config,
387
- name: t('common.config'),
388
- handler: () => {
389
- navigate(`/blocklets/${blocklet.meta.did}/configuration`);
390
- },
391
- disabled: isDownloading(blocklet.status)
392
- }, {
393
- onlyInMenu: true,
394
- action: 'team',
395
- icon: Icons.Group,
396
- name: t('common.manageTeam'),
397
- handler: () => {
398
- navigate(`/blocklets/${blocklet.meta.did}/members`);
399
- },
400
- disabled: isDownloading(blocklet.status)
401
- }, {
402
356
  onlyInMenu: true,
403
- action: 'log',
404
- icon: Icons.Log,
405
- name: t('common.log'),
357
+ action: 'overview',
358
+ icon: Icons.Overview,
359
+ name: t('common.overview'),
406
360
  handler: () => {
407
- navigate(`/logs/blocklet-${blocklet.meta.did}`);
361
+ navigate(`/blocklets/${blocklet.meta.did}/overview`);
408
362
  },
409
363
  disabled: isDownloading(blocklet.status)
410
- }].filter(Boolean);
364
+ } : null].filter(Boolean);
411
365
  if (variant === 'menu') {
412
366
  return /*#__PURE__*/_jsxs(Div, {
413
367
  "data-cy": "blocklet-actions",
@@ -8,6 +8,7 @@ import Log from '@mui/icons-material/Receipt';
8
8
  import Group from '@mui/icons-material/Group';
9
9
  import Cancel from '@mui/icons-material/NotInterested';
10
10
  import Dashboard from '@arcblock/icons/lib/Dashboard';
11
+ import Overview from '@mui/icons-material/ViewInAr';
11
12
  export default {
12
13
  Start,
13
14
  Stop,
@@ -18,5 +19,6 @@ export default {
18
19
  Log,
19
20
  Group,
20
21
  Cancel,
21
- Dashboard
22
+ Dashboard,
23
+ Overview
22
24
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/ux",
3
- "version": "1.16.30-beta-b80c7bcd",
3
+ "version": "1.16.30-beta-2876881d",
4
4
  "description": "UX components shared across abtnode packages",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -25,9 +25,9 @@
25
25
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
26
26
  "license": "Apache-2.0",
27
27
  "dependencies": {
28
- "@abtnode/auth": "1.16.30-beta-b80c7bcd",
29
- "@abtnode/constant": "1.16.30-beta-b80c7bcd",
30
- "@abtnode/util": "1.16.30-beta-b80c7bcd",
28
+ "@abtnode/auth": "1.16.30-beta-2876881d",
29
+ "@abtnode/constant": "1.16.30-beta-2876881d",
30
+ "@abtnode/util": "1.16.30-beta-2876881d",
31
31
  "@ahooksjs/use-url-state": "^3.5.1",
32
32
  "@arcblock/did": "^1.18.128",
33
33
  "@arcblock/did-connect": "^2.10.14",
@@ -37,11 +37,11 @@
37
37
  "@arcblock/react-hooks": "^2.10.14",
38
38
  "@arcblock/terminal": "^2.10.14",
39
39
  "@arcblock/ux": "^2.10.14",
40
- "@blocklet/constant": "1.16.30-beta-b80c7bcd",
41
- "@blocklet/js-sdk": "1.16.30-beta-b80c7bcd",
40
+ "@blocklet/constant": "1.16.30-beta-2876881d",
41
+ "@blocklet/js-sdk": "1.16.30-beta-2876881d",
42
42
  "@blocklet/launcher-layout": "2.3.40",
43
43
  "@blocklet/list": "^0.13.14",
44
- "@blocklet/meta": "1.16.30-beta-b80c7bcd",
44
+ "@blocklet/meta": "1.16.30-beta-2876881d",
45
45
  "@blocklet/ui-react": "^2.10.14",
46
46
  "@blocklet/uploader": "0.1.20",
47
47
  "@emotion/react": "^11.10.4",
@@ -108,5 +108,5 @@
108
108
  "jest": "^29.7.0",
109
109
  "jest-environment-jsdom": "^29.7.0"
110
110
  },
111
- "gitHead": "9d68833290b1a59357b7c362018416b82b5d1503"
111
+ "gitHead": "331c97e9bab7380af18616a1053d78b1654b307a"
112
112
  }