@abtnode/ux 1.16.15-beta-9318a201 → 1.16.15-beta-ed0db59e

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.
@@ -15,7 +15,7 @@ import { useNodeContext } from '../../contexts/node';
15
15
  import tableIcons from '../../table-icons';
16
16
  import TableStyle from '../../table';
17
17
  import Permission from '../../permission';
18
- import { formatError, isInstalling, isValidClusterSize, isBlockletDev, BlockletAdminRoles } from '../../util';
18
+ import { formatError, isInstalling, isValidClusterSize, BlockletAdminRoles } from '../../util';
19
19
  import blockletIcons from '../icons';
20
20
  import { jsx as _jsx } from "react/jsx-runtime";
21
21
  import { jsxs as _jsxs } from "react/jsx-runtime";
@@ -249,8 +249,7 @@ export default function ComponentEnvironment({
249
249
  permission: inService ? '' : 'mutate_blocklets',
250
250
  role: inService ? BlockletAdminRoles : [],
251
251
  children: hasPermission => /*#__PURE__*/_jsx(TableStyle, {
252
- className: isBlockletDev(blocklet) ? 'readonly-block config-table' : 'config-table',
253
- "data-disabled-text": t('blocklet.config.disabledText'),
252
+ className: "config-table",
254
253
  children: /*#__PURE__*/_jsx(MaterialTable, {
255
254
  title: /*#__PURE__*/_jsx("h4", {
256
255
  children: t('common.environment')
@@ -291,28 +290,6 @@ ComponentEnvironment.defaultProps = {
291
290
  ancestors: []
292
291
  };
293
292
  const Div = styled.div`
294
- .readonly-block {
295
- position: relative;
296
- &::after {
297
- content: attr(data-disabled-text);
298
- position: absolute;
299
- display: flex;
300
- align-items: center;
301
- justify-content: center;
302
- top: 0;
303
- bottom: 0;
304
- left: 0;
305
- right: 0;
306
- background-color: rgba(230, 230, 230, 0.7);
307
- font-size: 24px;
308
- letter-spacing: 2px;
309
- color: #e33371;
310
- padding: 20px;
311
- word-break: break-all;
312
- word-wrap: break-word;
313
- z-index: 10;
314
- }
315
- }
316
293
  .config-table {
317
294
  margin-bottom: 24px;
318
295
  position: relative;
@@ -189,6 +189,9 @@ function ComponentItem({
189
189
  } : null, blocklet.status !== 'running' ? {
190
190
  name: t('blocklet.stoppedAt'),
191
191
  value: formatToDatetime(blocklet.stoppedAt, locale)
192
+ } : null, blocklet.installedAt ? {
193
+ name: t('blocklet.installedAt'),
194
+ value: formatToDatetime(blocklet.installedAt, locale)
192
195
  } : null, hasStartEngine(blocklet.meta) ? {
193
196
  name: t('common.mountPoint'),
194
197
  value: mountPoint
package/es/locales/en.js CHANGED
@@ -424,7 +424,6 @@ module.exports = {
424
424
  publicInstanceTip: 'The access address of this blocklet will be displayed in the Store (along with your DID for accepting donations)',
425
425
  updatedTip: 'Access Control Modified'
426
426
  },
427
- disabledText: 'Please edit environment variables in ".env" file or "blocklet.yml" file',
428
427
  changedTip: 'Configuration updated, please restart Blocklet',
429
428
  missingRequired: 'Missing required configuration to start the blocklet',
430
429
  gotoFix: 'Go to fix',
package/es/locales/zh.js CHANGED
@@ -429,7 +429,6 @@ module.exports = {
429
429
  publicInstanceTip: '此应用的访问地址将展示在 Store 中(同时也会展示你的 DID,用于接受捐赠)',
430
430
  updatedTip: '访问控制已修改'
431
431
  },
432
- disabledText: '请在 ".env" 文件或 "blocklet.yml" 文件中编辑环境变量',
433
432
  changedTip: '配置已更新,请重启应用',
434
433
  missingRequired: '缺少启动应用的必填项',
435
434
  gotoFix: '去修复',
@@ -260,8 +260,7 @@ function ComponentEnvironment(_ref) {
260
260
  permission: inService ? '' : 'mutate_blocklets',
261
261
  role: inService ? _util2.BlockletAdminRoles : [],
262
262
  children: hasPermission => /*#__PURE__*/(0, _jsxRuntime.jsx)(_table.default, {
263
- className: (0, _util2.isBlockletDev)(blocklet) ? 'readonly-block config-table' : 'config-table',
264
- "data-disabled-text": t('blocklet.config.disabledText'),
263
+ className: "config-table",
265
264
  children: /*#__PURE__*/(0, _jsxRuntime.jsx)(_core.default, {
266
265
  title: /*#__PURE__*/(0, _jsxRuntime.jsx)("h4", {
267
266
  children: t('common.environment')
@@ -298,5 +297,5 @@ ComponentEnvironment.propTypes = {
298
297
  ComponentEnvironment.defaultProps = {
299
298
  ancestors: []
300
299
  };
301
- const Div = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .readonly-block {\n position: relative;\n &::after {\n content: attr(data-disabled-text);\n position: absolute;\n display: flex;\n align-items: center;\n justify-content: center;\n top: 0;\n bottom: 0;\n left: 0;\n right: 0;\n background-color: rgba(230, 230, 230, 0.7);\n font-size: 24px;\n letter-spacing: 2px;\n color: #e33371;\n padding: 20px;\n word-break: break-all;\n word-wrap: break-word;\n z-index: 10;\n }\n }\n .config-table {\n margin-bottom: 24px;\n position: relative;\n .hide-control {\n position: absolute;\n top: 10px;\n left: 200px;\n @media (max-width: ", "px) {\n left: 160px;\n }\n }\n\n .MuiToolbar-root {\n display: flex;\n }\n\n .MuiTableRow-head {\n display: none;\n }\n\n &.hide-header {\n .MuiToolbar-root {\n display: none;\n }\n }\n }\n\n .accordion {\n margin-bottom: 16px;\n &:last-of-type {\n margin-bottom: 0;\n }\n padding: 8px 0 8px 0px;\n &.MuiAccordion-root {\n background: transparent;\n box-shadow: none;\n border: 1px solid #ddd;\n border-radius: 4px;\n &::before,\n &::after {\n height: 0;\n }\n .MuiAccordionSummary-root {\n padding-left: 0;\n }\n .accordion-title {\n font-weight: bold;\n padding-left: 16px;\n }\n }\n }\n"])), props => props.theme.breakpoints.values.sm);
300
+ const Div = _styled.default.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n .config-table {\n margin-bottom: 24px;\n position: relative;\n .hide-control {\n position: absolute;\n top: 10px;\n left: 200px;\n @media (max-width: ", "px) {\n left: 160px;\n }\n }\n\n .MuiToolbar-root {\n display: flex;\n }\n\n .MuiTableRow-head {\n display: none;\n }\n\n &.hide-header {\n .MuiToolbar-root {\n display: none;\n }\n }\n }\n\n .accordion {\n margin-bottom: 16px;\n &:last-of-type {\n margin-bottom: 0;\n }\n padding: 8px 0 8px 0px;\n &.MuiAccordion-root {\n background: transparent;\n box-shadow: none;\n border: 1px solid #ddd;\n border-radius: 4px;\n &::before,\n &::after {\n height: 0;\n }\n .MuiAccordionSummary-root {\n padding-left: 0;\n }\n .accordion-title {\n font-weight: bold;\n padding-left: 16px;\n }\n }\n }\n"])), props => props.theme.breakpoints.values.sm);
302
301
  const EditDiv = _styled.default.div(_templateObject2 || (_templateObject2 = _taggedTemplateLiteral(["\n height: 60px;\n"])));
@@ -209,6 +209,9 @@ function ComponentItem(_ref) {
209
209
  } : null, blocklet.status !== 'running' ? {
210
210
  name: t('blocklet.stoppedAt'),
211
211
  value: (0, _util2.formatToDatetime)(blocklet.stoppedAt, locale)
212
+ } : null, blocklet.installedAt ? {
213
+ name: t('blocklet.installedAt'),
214
+ value: (0, _util2.formatToDatetime)(blocklet.installedAt, locale)
212
215
  } : null, (0, _util.hasStartEngine)(blocklet.meta) ? {
213
216
  name: t('common.mountPoint'),
214
217
  value: mountPoint
package/lib/locales/en.js CHANGED
@@ -426,7 +426,6 @@ module.exports = {
426
426
  publicInstanceTip: 'The access address of this blocklet will be displayed in the Store (along with your DID for accepting donations)',
427
427
  updatedTip: 'Access Control Modified'
428
428
  },
429
- disabledText: 'Please edit environment variables in ".env" file or "blocklet.yml" file',
430
429
  changedTip: 'Configuration updated, please restart Blocklet',
431
430
  missingRequired: 'Missing required configuration to start the blocklet',
432
431
  gotoFix: 'Go to fix',
package/lib/locales/zh.js CHANGED
@@ -431,7 +431,6 @@ module.exports = {
431
431
  publicInstanceTip: '此应用的访问地址将展示在 Store 中(同时也会展示你的 DID,用于接受捐赠)',
432
432
  updatedTip: '访问控制已修改'
433
433
  },
434
- disabledText: '请在 ".env" 文件或 "blocklet.yml" 文件中编辑环境变量',
435
434
  changedTip: '配置已更新,请重启应用',
436
435
  missingRequired: '缺少启动应用的必填项',
437
436
  gotoFix: '去修复',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/ux",
3
- "version": "1.16.15-beta-9318a201",
3
+ "version": "1.16.15-beta-ed0db59e",
4
4
  "description": "UX components shared across abtnode packages",
5
5
  "publishConfig": {
6
6
  "access": "public"
@@ -27,23 +27,23 @@
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-9318a201",
31
- "@abtnode/constant": "1.16.15-beta-9318a201",
32
- "@abtnode/util": "1.16.15-beta-9318a201",
30
+ "@abtnode/auth": "1.16.15-beta-ed0db59e",
31
+ "@abtnode/constant": "1.16.15-beta-ed0db59e",
32
+ "@abtnode/util": "1.16.15-beta-ed0db59e",
33
33
  "@ahooksjs/use-url-state": "^3.5.1",
34
34
  "@arcblock/did": "^1.18.89",
35
- "@arcblock/did-connect": "^2.7.6",
35
+ "@arcblock/did-connect": "^2.7.8",
36
36
  "@arcblock/did-motif": "^1.1.13",
37
- "@arcblock/icons": "^2.7.6",
38
- "@arcblock/nft-display": "2.7.6",
39
- "@arcblock/react-hooks": "^2.7.6",
40
- "@arcblock/terminal": "^2.7.6",
41
- "@arcblock/ux": "^2.7.6",
42
- "@blocklet/constant": "1.16.15-beta-9318a201",
43
- "@blocklet/launcher-layout": "2.1.93",
44
- "@blocklet/list": "^0.12.27",
45
- "@blocklet/meta": "1.16.15-beta-9318a201",
46
- "@blocklet/ui-react": "^2.7.6",
37
+ "@arcblock/icons": "^2.7.8",
38
+ "@arcblock/nft-display": "2.7.8",
39
+ "@arcblock/react-hooks": "^2.7.8",
40
+ "@arcblock/terminal": "^2.7.8",
41
+ "@arcblock/ux": "^2.7.8",
42
+ "@blocklet/constant": "1.16.15-beta-ed0db59e",
43
+ "@blocklet/launcher-layout": "2.1.97",
44
+ "@blocklet/list": "^0.12.30",
45
+ "@blocklet/meta": "1.16.15-beta-ed0db59e",
46
+ "@blocklet/ui-react": "^2.7.8",
47
47
  "@emotion/react": "^11.10.4",
48
48
  "@emotion/styled": "^11.10.4",
49
49
  "@iconify/react": "^4.0.0",
@@ -98,7 +98,7 @@
98
98
  "babel-plugin-inline-react-svg": "^1.1.2",
99
99
  "glob": "^10.3.3"
100
100
  },
101
- "gitHead": "f3722cbd4fe10c5fa083cad7e859ecff6095060d",
101
+ "gitHead": "647ebe45f6214ea5c284c9234f1319b6ff72f915",
102
102
  "exports": {
103
103
  ".": {
104
104
  "import": "./es/index.js",