@abtnode/ux 1.16.15-beta-324519fc → 1.16.15-beta-a635f48d

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.
@@ -83,7 +83,12 @@ function AuditLog({
83
83
  }),
84
84
  target: "_blank",
85
85
  children: [log.actor.fullName, log.actor.role ? `(${log.actor.role})` : '']
86
- }), ' ', "- ", log.action]
86
+ }), ' ', /*#__PURE__*/_jsx("span", {
87
+ style: {
88
+ margin: '0 4px'
89
+ },
90
+ children: "-"
91
+ }), " ", log.action]
87
92
  }), /*#__PURE__*/_jsx(Typography, {
88
93
  className: "log-content",
89
94
  maxWidth: "lg",
@@ -377,7 +377,7 @@ function ComponentItem({
377
377
  component: blocklet,
378
378
  onStart: onStart,
379
379
  onStop: onStop,
380
- disabled: app.status !== 'starting' && isInProgress(app.status)
380
+ disabled: !['starting', 'stopping'].includes(app.status) && isInProgress(app.status)
381
381
  }), /*#__PURE__*/_jsx(Actions, {
382
382
  "data-cy": "component-actions",
383
383
  actions: [hasStartEngine(blocklet.meta) ? {
@@ -40,7 +40,7 @@ export default function StartComponent({
40
40
  setLoading(false);
41
41
  };
42
42
  const componentDisabled = disabled || loading;
43
- const isStop = ['starting', 'running'].includes(component.status);
43
+ const isStop = ['starting', 'running', 'stopping'].includes(component.status);
44
44
  const Icon = isStop ? StopIcon : StartIcon;
45
45
  const btn = /*#__PURE__*/_jsx(StyledButton, {
46
46
  disabled: componentDisabled,
package/es/locales/en.js CHANGED
@@ -230,6 +230,7 @@ module.exports = {
230
230
  protocol: 'Protocol',
231
231
  published: 'published',
232
232
  purchase: 'Purchase',
233
+ readMore: 'Read More',
233
234
  redirect: 'Redirect',
234
235
  redirectCode: 'Redirect Code',
235
236
  redirectPermanently: 'Permanent Redirect',
@@ -598,7 +599,12 @@ module.exports = {
598
599
  routingEngine: 'Routing Engine',
599
600
  ownerNftURL: 'Owner NFT',
600
601
  expirationLeft: 'Expiration Left',
601
- startFromCrashTip: 'Blocklet Server did not exit normally last time, please manually start the blocklets that needs to be run.'
602
+ startFromCrashTip: 'Blocklet Server did not exit normally last time, please manually start the blocklets that needs to be run.',
603
+ runtimeConfig: {
604
+ blockletMaxMemoryLimit: 'Blocklet Max Memory Limit',
605
+ daemonMaxMemoryLimit: 'Server Max Memory Limit',
606
+ proxyMaxMemoryLimit: 'Event Bus Max Memory Limit'
607
+ }
602
608
  },
603
609
  store: {
604
610
  nameSort: 'Name',
package/es/locales/zh.js CHANGED
@@ -235,6 +235,7 @@ module.exports = {
235
235
  protocol: '协议',
236
236
  published: '发布于',
237
237
  purchase: '购买',
238
+ readMore: '查看更多',
238
239
  redirect: '重定向',
239
240
  redirectCode: '重定向状态码',
240
241
  redirectPermanently: '永久重定向',
@@ -605,7 +606,12 @@ module.exports = {
605
606
  routingEngine: '路由引擎',
606
607
  ownerNftURL: '所有者 NFT',
607
608
  expirationLeft: '有效期还剩',
608
- startFromCrashTip: '应用Server 上次未正常退出,请手动启动需要运行的 blocklet.'
609
+ startFromCrashTip: '应用Server 上次未正常退出,请手动启动需要运行的 blocklet.',
610
+ runtimeConfig: {
611
+ blockletMaxMemoryLimit: 'Blocklet 最大内存限制',
612
+ daemonMaxMemoryLimit: 'Server 最大内存限制',
613
+ proxyMaxMemoryLimit: '消息总线最大内存限制'
614
+ }
609
615
  },
610
616
  store: {
611
617
  nameSort: '名称',
@@ -49,6 +49,7 @@ export default function DownloadLog({
49
49
  document.body.removeChild(link);
50
50
  URL.revokeObjectURL(href);
51
51
  setIsDownloading(false);
52
+ setShowDialog(false);
52
53
  } catch (error) {
53
54
  setIsDownloading(false);
54
55
  Toast.error(error.message);
@@ -94,7 +94,12 @@ function AuditLog(_ref2) {
94
94
  }),
95
95
  target: "_blank",
96
96
  children: [log.actor.fullName, log.actor.role ? "(".concat(log.actor.role, ")") : '']
97
- }), ' ', "- ", log.action]
97
+ }), ' ', /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
98
+ style: {
99
+ margin: '0 4px'
100
+ },
101
+ children: "-"
102
+ }), " ", log.action]
98
103
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, {
99
104
  className: "log-content",
100
105
  maxWidth: "lg",
@@ -403,7 +403,7 @@ function ComponentItem(_ref) {
403
403
  component: blocklet,
404
404
  onStart: onStart,
405
405
  onStop: onStop,
406
- disabled: app.status !== 'starting' && (0, _util.isInProgress)(app.status)
406
+ disabled: !['starting', 'stopping'].includes(app.status) && (0, _util.isInProgress)(app.status)
407
407
  }), /*#__PURE__*/(0, _jsxRuntime.jsx)(_actions.default, {
408
408
  "data-cy": "component-actions",
409
409
  actions: [(0, _util.hasStartEngine)(blocklet.meta) ? {
@@ -50,7 +50,7 @@ function StartComponent(_ref) {
50
50
  setLoading(false);
51
51
  };
52
52
  const componentDisabled = disabled || loading;
53
- const isStop = ['starting', 'running'].includes(component.status);
53
+ const isStop = ['starting', 'running', 'stopping'].includes(component.status);
54
54
  const Icon = isStop ? _Stop.default : _PlayArrow.default;
55
55
  const btn = /*#__PURE__*/(0, _jsxRuntime.jsx)(StyledButton, {
56
56
  disabled: componentDisabled,
package/lib/locales/en.js CHANGED
@@ -232,6 +232,7 @@ module.exports = {
232
232
  protocol: 'Protocol',
233
233
  published: 'published',
234
234
  purchase: 'Purchase',
235
+ readMore: 'Read More',
235
236
  redirect: 'Redirect',
236
237
  redirectCode: 'Redirect Code',
237
238
  redirectPermanently: 'Permanent Redirect',
@@ -600,7 +601,12 @@ module.exports = {
600
601
  routingEngine: 'Routing Engine',
601
602
  ownerNftURL: 'Owner NFT',
602
603
  expirationLeft: 'Expiration Left',
603
- startFromCrashTip: 'Blocklet Server did not exit normally last time, please manually start the blocklets that needs to be run.'
604
+ startFromCrashTip: 'Blocklet Server did not exit normally last time, please manually start the blocklets that needs to be run.',
605
+ runtimeConfig: {
606
+ blockletMaxMemoryLimit: 'Blocklet Max Memory Limit',
607
+ daemonMaxMemoryLimit: 'Server Max Memory Limit',
608
+ proxyMaxMemoryLimit: 'Event Bus Max Memory Limit'
609
+ }
604
610
  },
605
611
  store: {
606
612
  nameSort: 'Name',
package/lib/locales/zh.js CHANGED
@@ -237,6 +237,7 @@ module.exports = {
237
237
  protocol: '协议',
238
238
  published: '发布于',
239
239
  purchase: '购买',
240
+ readMore: '查看更多',
240
241
  redirect: '重定向',
241
242
  redirectCode: '重定向状态码',
242
243
  redirectPermanently: '永久重定向',
@@ -607,7 +608,12 @@ module.exports = {
607
608
  routingEngine: '路由引擎',
608
609
  ownerNftURL: '所有者 NFT',
609
610
  expirationLeft: '有效期还剩',
610
- startFromCrashTip: '应用Server 上次未正常退出,请手动启动需要运行的 blocklet.'
611
+ startFromCrashTip: '应用Server 上次未正常退出,请手动启动需要运行的 blocklet.',
612
+ runtimeConfig: {
613
+ blockletMaxMemoryLimit: 'Blocklet 最大内存限制',
614
+ daemonMaxMemoryLimit: 'Server 最大内存限制',
615
+ proxyMaxMemoryLimit: '消息总线最大内存限制'
616
+ }
611
617
  },
612
618
  store: {
613
619
  nameSort: '名称',
@@ -56,6 +56,7 @@ function DownloadLog(_ref) {
56
56
  document.body.removeChild(link);
57
57
  URL.revokeObjectURL(href);
58
58
  setIsDownloading(false);
59
+ setShowDialog(false);
59
60
  } catch (error) {
60
61
  setIsDownloading(false);
61
62
  _Toast.default.error(error.message);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/ux",
3
- "version": "1.16.15-beta-324519fc",
3
+ "version": "1.16.15-beta-a635f48d",
4
4
  "description": "UX components shared across abtnode packages",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,9 +27,9 @@
27
27
  "author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
28
28
  "license": "Apache-2.0",
29
29
  "dependencies": {
30
- "@abtnode/auth": "1.16.15-beta-324519fc",
31
- "@abtnode/constant": "1.16.15-beta-324519fc",
32
- "@abtnode/util": "1.16.15-beta-324519fc",
30
+ "@abtnode/auth": "1.16.15-beta-a635f48d",
31
+ "@abtnode/constant": "1.16.15-beta-a635f48d",
32
+ "@abtnode/util": "1.16.15-beta-a635f48d",
33
33
  "@ahooksjs/use-url-state": "^3.5.1",
34
34
  "@arcblock/did": "^1.18.89",
35
35
  "@arcblock/did-connect": "^2.7.9",
@@ -39,10 +39,10 @@
39
39
  "@arcblock/react-hooks": "^2.7.9",
40
40
  "@arcblock/terminal": "^2.7.9",
41
41
  "@arcblock/ux": "^2.7.9",
42
- "@blocklet/constant": "1.16.15-beta-324519fc",
42
+ "@blocklet/constant": "1.16.15-beta-a635f48d",
43
43
  "@blocklet/launcher-layout": "2.1.101",
44
44
  "@blocklet/list": "^0.12.31",
45
- "@blocklet/meta": "1.16.15-beta-324519fc",
45
+ "@blocklet/meta": "1.16.15-beta-a635f48d",
46
46
  "@blocklet/ui-react": "^2.7.9",
47
47
  "@emotion/react": "^11.10.4",
48
48
  "@emotion/styled": "^11.10.4",
@@ -98,7 +98,7 @@
98
98
  "babel-plugin-inline-react-svg": "^1.1.2",
99
99
  "glob": "^10.3.3"
100
100
  },
101
- "gitHead": "b1a9384dc9985e590bee01548ed4f38cba470a6b",
101
+ "gitHead": "a42c00d339896a089694a6275cee988422ecef69",
102
102
  "exports": {
103
103
  ".": {
104
104
  "import": "./es/index.js",