@abtnode/ux 1.16.23-beta-abdda301 → 1.16.23-beta-035db744
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/es/blocklet/logo-uploader.js +3 -0
- package/es/blocklet/publish/create-release.js +82 -6
- package/es/blocklet/router/action/add-rule.js +3 -1
- package/es/blocklet/router/action/config-routing-rule.js +3 -1
- package/es/blocklet/router/action/update-rule.js +3 -1
- package/es/locales/en.js +4 -0
- package/es/locales/zh.js +3 -0
- package/lib/blocklet/logo-uploader.js +3 -0
- package/lib/blocklet/publish/create-release.js +83 -7
- package/lib/blocklet/router/action/add-rule.js +3 -1
- package/lib/blocklet/router/action/config-routing-rule.js +3 -1
- package/lib/blocklet/router/action/update-rule.js +3 -1
- package/lib/locales/en.js +4 -0
- package/lib/locales/zh.js +3 -0
- package/package.json +23 -21
|
@@ -49,6 +49,9 @@ export default function LogoUploader({
|
|
|
49
49
|
popup: true,
|
|
50
50
|
onUploadFinish: onFinish,
|
|
51
51
|
plugins: ['ImageEditor'],
|
|
52
|
+
installerProps: {
|
|
53
|
+
disabled: true
|
|
54
|
+
},
|
|
52
55
|
apiPathProps: {
|
|
53
56
|
uploader: joinUrl(prefix, uploadPrefix, type, did),
|
|
54
57
|
disableMediaKitPrefix: true
|
|
@@ -14,6 +14,7 @@ import IconButton from '@mui/material/IconButton';
|
|
|
14
14
|
import DeleteOutlineIcon from '@mui/icons-material/DeleteOutline';
|
|
15
15
|
import InputAdornment from '@mui/material/InputAdornment';
|
|
16
16
|
import Spinner from '@mui/material/CircularProgress';
|
|
17
|
+
import Dialog from '@mui/material/Dialog';
|
|
17
18
|
import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
|
|
18
19
|
import Button from '@arcblock/ux/lib/Button';
|
|
19
20
|
import Toast from '@arcblock/ux/lib/Toast';
|
|
@@ -26,6 +27,7 @@ import BlockletBundleAvatar from '../bundle-avatar';
|
|
|
26
27
|
import { useNodeContext } from '../../contexts/node';
|
|
27
28
|
import { useBlockletContext } from '../../contexts/blocklet';
|
|
28
29
|
import EmptySpinner from '../../empty-spinner';
|
|
30
|
+
import ClickToCopy from '../../click-to-copy';
|
|
29
31
|
import { formatError } from '../../util';
|
|
30
32
|
import Resource from './resource';
|
|
31
33
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -34,6 +36,8 @@ import { Fragment as _Fragment } from "react/jsx-runtime";
|
|
|
34
36
|
const allowedFileTypes = ['image/*', '.jpg', '.jpeg', '.png', '.gif', '.svg'];
|
|
35
37
|
const maxFileSize = 1024 * 1024 * 10; // 10 MB
|
|
36
38
|
|
|
39
|
+
const serverEndpoint = window.env?.serverEndpoint;
|
|
40
|
+
|
|
37
41
|
// eslint-disable-next-line import/no-unresolved
|
|
38
42
|
const UploaderComponent = /*#__PURE__*/lazy(() => import('@blocklet/uploader/react').then(res => ({
|
|
39
43
|
default: res.Uploader
|
|
@@ -130,6 +134,7 @@ export default function CreateRelease({
|
|
|
130
134
|
const uploaderLogoRef = useRef(null);
|
|
131
135
|
const uploaderScreenshotRef = useRef(null);
|
|
132
136
|
const [projectType, setProjectType] = useState();
|
|
137
|
+
const [installResourceTip, setInstallResourceTip] = useState();
|
|
133
138
|
const releaseId = inputReleaseId === 'create' ? '' : inputReleaseId;
|
|
134
139
|
const mode = inputReleaseId === 'create' ? 'create' : 'edit';
|
|
135
140
|
const tabs = [];
|
|
@@ -309,6 +314,72 @@ export default function CreateRelease({
|
|
|
309
314
|
const onTabChange = x => {
|
|
310
315
|
setTab(x);
|
|
311
316
|
};
|
|
317
|
+
let installButton = null;
|
|
318
|
+
if (isPublished && serverEndpoint) {
|
|
319
|
+
const blockletMetaUrl = joinUrl(serverEndpoint, `/api/project/${blocklet.meta.did}/${projectId}/${releaseId}/release/blocklet.json`);
|
|
320
|
+
if (projectType === 'pack') {
|
|
321
|
+
const url = new URL(serverEndpoint);
|
|
322
|
+
url.pathname = joinUrl(url.pathname, '/launch-blocklet/agreement');
|
|
323
|
+
url.searchParams.set('blocklet_meta_url', blockletMetaUrl);
|
|
324
|
+
installButton = /*#__PURE__*/_jsx(Button, {
|
|
325
|
+
variant: "outlined",
|
|
326
|
+
style: {
|
|
327
|
+
marginRight: 8
|
|
328
|
+
},
|
|
329
|
+
children: /*#__PURE__*/_jsx("a", {
|
|
330
|
+
href: url.href,
|
|
331
|
+
target: "_blank",
|
|
332
|
+
rel: "noreferrer",
|
|
333
|
+
children: t('common.install')
|
|
334
|
+
})
|
|
335
|
+
});
|
|
336
|
+
} else {
|
|
337
|
+
installButton = /*#__PURE__*/_jsxs(_Fragment, {
|
|
338
|
+
children: [/*#__PURE__*/_jsx(Button, {
|
|
339
|
+
variant: "outlined",
|
|
340
|
+
style: {
|
|
341
|
+
marginRight: 8
|
|
342
|
+
},
|
|
343
|
+
onClick: () => setInstallResourceTip(blockletMetaUrl),
|
|
344
|
+
children: t('common.install')
|
|
345
|
+
}), /*#__PURE__*/_jsx(Dialog, {
|
|
346
|
+
fullWidth: true,
|
|
347
|
+
maxWidth: "sm",
|
|
348
|
+
open: installResourceTip,
|
|
349
|
+
onClose: () => setInstallResourceTip(''),
|
|
350
|
+
children: /*#__PURE__*/_jsxs(Box, {
|
|
351
|
+
sx: {
|
|
352
|
+
py: 5,
|
|
353
|
+
px: 4,
|
|
354
|
+
wordBreak: 'break-all'
|
|
355
|
+
},
|
|
356
|
+
children: [/*#__PURE__*/_jsx(Typography, {
|
|
357
|
+
variant: "h6",
|
|
358
|
+
sx: {
|
|
359
|
+
mb: 2
|
|
360
|
+
},
|
|
361
|
+
children: t('blocklet.publish.installResourceTip')
|
|
362
|
+
}), /*#__PURE__*/_jsx(ClickToCopy, {
|
|
363
|
+
children: installResourceTip
|
|
364
|
+
}), /*#__PURE__*/_jsxs(Typography, {
|
|
365
|
+
sx: {
|
|
366
|
+
mt: 2
|
|
367
|
+
},
|
|
368
|
+
children: [t('blocklet.publish.installResourceTip2'), /*#__PURE__*/_jsx("a", {
|
|
369
|
+
style: {
|
|
370
|
+
marginLeft: 4
|
|
371
|
+
},
|
|
372
|
+
href: "https://www.arcblock.io/docs/blocklet-developer/R3weqCy7WPI8ggudt0C2alWv",
|
|
373
|
+
target: "_blank",
|
|
374
|
+
rel: "noreferrer",
|
|
375
|
+
children: t('blocklet.publish.installResourceHelp')
|
|
376
|
+
})]
|
|
377
|
+
})]
|
|
378
|
+
})
|
|
379
|
+
})]
|
|
380
|
+
});
|
|
381
|
+
}
|
|
382
|
+
}
|
|
312
383
|
return /*#__PURE__*/_jsxs(Main, {
|
|
313
384
|
...rest,
|
|
314
385
|
children: [/*#__PURE__*/_jsxs(Box, {
|
|
@@ -354,12 +425,14 @@ export default function CreateRelease({
|
|
|
354
425
|
color: "inherit"
|
|
355
426
|
}), t('common.release')]
|
|
356
427
|
})]
|
|
357
|
-
}), isPublished && /*#__PURE__*/
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
428
|
+
}), isPublished && /*#__PURE__*/_jsxs(_Fragment, {
|
|
429
|
+
children: [installButton, /*#__PURE__*/_jsx(Button, {
|
|
430
|
+
variant: "contained",
|
|
431
|
+
children: /*#__PURE__*/_jsx("a", {
|
|
432
|
+
href: joinUrl(`${WELLKNOWN_SERVICE_PATH_PREFIX}/api/project/${blocklet.meta.did}/${projectId}/${releaseId}/download/${(release.files || [])[0]}`),
|
|
433
|
+
children: t('common.download')
|
|
434
|
+
})
|
|
435
|
+
})]
|
|
363
436
|
})]
|
|
364
437
|
})]
|
|
365
438
|
}), /*#__PURE__*/_jsxs(Box, {
|
|
@@ -624,6 +697,9 @@ export default function CreateRelease({
|
|
|
624
697
|
uploaderLogoRef.current.close();
|
|
625
698
|
},
|
|
626
699
|
plugins: ['ImageEditor'],
|
|
700
|
+
installerProps: {
|
|
701
|
+
disabled: true
|
|
702
|
+
},
|
|
627
703
|
apiPathProps: {
|
|
628
704
|
uploader: uploadLogoPrefix,
|
|
629
705
|
disableMediaKitPrefix: true
|
|
@@ -104,7 +104,9 @@ export default function AddRule({
|
|
|
104
104
|
autoComplete: "off",
|
|
105
105
|
variant: "outlined",
|
|
106
106
|
name: "pathPrefix",
|
|
107
|
-
|
|
107
|
+
inputProps: {
|
|
108
|
+
'data-cy': 'path-prefix-input'
|
|
109
|
+
},
|
|
108
110
|
fullWidth: true,
|
|
109
111
|
autoFocus: true,
|
|
110
112
|
helperText: params.pathPrefixHint || t('router.rule.add.pathPrefixTip'),
|
|
@@ -111,7 +111,9 @@ export default function ConfigRoutingRule({
|
|
|
111
111
|
autoComplete: "off",
|
|
112
112
|
variant: "outlined",
|
|
113
113
|
name: "url",
|
|
114
|
-
|
|
114
|
+
inputProps: {
|
|
115
|
+
'data-cy': 'redirect-url-input'
|
|
116
|
+
},
|
|
115
117
|
fullWidth: true,
|
|
116
118
|
value: params.url,
|
|
117
119
|
helperText: t('router.urlHelperText'),
|
|
@@ -108,7 +108,9 @@ export default function UpdateRule({
|
|
|
108
108
|
autoComplete: "off",
|
|
109
109
|
variant: "outlined",
|
|
110
110
|
name: "pathPrefix",
|
|
111
|
-
|
|
111
|
+
inputProps: {
|
|
112
|
+
'data-cy': 'path-prefix-input'
|
|
113
|
+
},
|
|
112
114
|
fullWidth: true,
|
|
113
115
|
autoFocus: true,
|
|
114
116
|
helperText: params.helperText || t('router.rule.add.pathPrefixTip'),
|
package/es/locales/en.js
CHANGED
|
@@ -648,6 +648,10 @@ export default {
|
|
|
648
648
|
saveDraftSuccess: 'Draft saved successfully',
|
|
649
649
|
packTip: 'Components and application configuration will be automatically included in the blocklet',
|
|
650
650
|
resourceChangedWarning: 'You have modified the resource, please save it in time',
|
|
651
|
+
installResourceTip: 'Please add the component in an application, component URL:',
|
|
652
|
+
installResourceTip2: 'If you want to see more tips, please visit',
|
|
653
|
+
// translate to en
|
|
654
|
+
installResourceHelp: 'Help Document',
|
|
651
655
|
connect: {
|
|
652
656
|
title: 'Create Blocklet DID',
|
|
653
657
|
scan: 'Scan the QR code below to generate Blocklet DID',
|
package/es/locales/zh.js
CHANGED
|
@@ -657,6 +657,9 @@ export default {
|
|
|
657
657
|
saveDraftSuccess: '保存成功',
|
|
658
658
|
packTip: 'Blocklet 中将自动包含组件和应用配置',
|
|
659
659
|
resourceChangedWarning: '您修改了资源,请及时保存',
|
|
660
|
+
installResourceTip: '请在应用中添加组件,组件 URL:',
|
|
661
|
+
installResourceTip2: '如果你需要更多提示,请查看',
|
|
662
|
+
installResourceHelp: '帮助文档',
|
|
660
663
|
connect: {
|
|
661
664
|
title: '创建 Blocklet DID',
|
|
662
665
|
scan: '扫描下面的二维码来生成 Blocklet DID',
|
|
@@ -60,6 +60,9 @@ function LogoUploader(_ref) {
|
|
|
60
60
|
popup: true,
|
|
61
61
|
onUploadFinish: onFinish,
|
|
62
62
|
plugins: ['ImageEditor'],
|
|
63
|
+
installerProps: {
|
|
64
|
+
disabled: true
|
|
65
|
+
},
|
|
63
66
|
apiPathProps: {
|
|
64
67
|
uploader: (0, _urlJoin.default)(prefix, uploadPrefix, type, did),
|
|
65
68
|
disableMediaKitPrefix: true
|
|
@@ -20,6 +20,7 @@ var _IconButton = _interopRequireDefault(require("@mui/material/IconButton"));
|
|
|
20
20
|
var _DeleteOutline = _interopRequireDefault(require("@mui/icons-material/DeleteOutline"));
|
|
21
21
|
var _InputAdornment = _interopRequireDefault(require("@mui/material/InputAdornment"));
|
|
22
22
|
var _CircularProgress = _interopRequireDefault(require("@mui/material/CircularProgress"));
|
|
23
|
+
var _Dialog = _interopRequireDefault(require("@mui/material/Dialog"));
|
|
23
24
|
var _context = require("@arcblock/ux/lib/Locale/context");
|
|
24
25
|
var _Button = _interopRequireDefault(require("@arcblock/ux/lib/Button"));
|
|
25
26
|
var _Toast = _interopRequireDefault(require("@arcblock/ux/lib/Toast"));
|
|
@@ -32,10 +33,11 @@ var _bundleAvatar = _interopRequireDefault(require("../bundle-avatar"));
|
|
|
32
33
|
var _node = require("../../contexts/node");
|
|
33
34
|
var _blocklet = require("../../contexts/blocklet");
|
|
34
35
|
var _emptySpinner = _interopRequireDefault(require("../../empty-spinner"));
|
|
36
|
+
var _clickToCopy = _interopRequireDefault(require("../../click-to-copy"));
|
|
35
37
|
var _util = require("../../util");
|
|
36
38
|
var _resource = _interopRequireDefault(require("./resource"));
|
|
37
39
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
38
|
-
var _templateObject;
|
|
40
|
+
var _window$env, _templateObject;
|
|
39
41
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
40
42
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
41
43
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -49,6 +51,8 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
49
51
|
const allowedFileTypes = ['image/*', '.jpg', '.jpeg', '.png', '.gif', '.svg'];
|
|
50
52
|
const maxFileSize = 1024 * 1024 * 10; // 10 MB
|
|
51
53
|
|
|
54
|
+
const serverEndpoint = (_window$env = window.env) === null || _window$env === void 0 ? void 0 : _window$env.serverEndpoint;
|
|
55
|
+
|
|
52
56
|
// eslint-disable-next-line import/no-unresolved
|
|
53
57
|
const UploaderComponent = /*#__PURE__*/(0, _react.lazy)(() => Promise.resolve().then(() => _interopRequireWildcard(require('@blocklet/uploader/react'))).then(res => ({
|
|
54
58
|
default: res.Uploader
|
|
@@ -146,6 +150,7 @@ function CreateRelease(_ref2) {
|
|
|
146
150
|
const uploaderLogoRef = (0, _react.useRef)(null);
|
|
147
151
|
const uploaderScreenshotRef = (0, _react.useRef)(null);
|
|
148
152
|
const [projectType, setProjectType] = (0, _react.useState)();
|
|
153
|
+
const [installResourceTip, setInstallResourceTip] = (0, _react.useState)();
|
|
149
154
|
const releaseId = inputReleaseId === 'create' ? '' : inputReleaseId;
|
|
150
155
|
const mode = inputReleaseId === 'create' ? 'create' : 'edit';
|
|
151
156
|
const tabs = [];
|
|
@@ -325,6 +330,72 @@ function CreateRelease(_ref2) {
|
|
|
325
330
|
const onTabChange = x => {
|
|
326
331
|
setTab(x);
|
|
327
332
|
};
|
|
333
|
+
let installButton = null;
|
|
334
|
+
if (isPublished && serverEndpoint) {
|
|
335
|
+
const blockletMetaUrl = (0, _urlJoin.default)(serverEndpoint, "/api/project/".concat(blocklet.meta.did, "/").concat(projectId, "/").concat(releaseId, "/release/blocklet.json"));
|
|
336
|
+
if (projectType === 'pack') {
|
|
337
|
+
const url = new URL(serverEndpoint);
|
|
338
|
+
url.pathname = (0, _urlJoin.default)(url.pathname, '/launch-blocklet/agreement');
|
|
339
|
+
url.searchParams.set('blocklet_meta_url', blockletMetaUrl);
|
|
340
|
+
installButton = /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
341
|
+
variant: "outlined",
|
|
342
|
+
style: {
|
|
343
|
+
marginRight: 8
|
|
344
|
+
},
|
|
345
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
346
|
+
href: url.href,
|
|
347
|
+
target: "_blank",
|
|
348
|
+
rel: "noreferrer",
|
|
349
|
+
children: t('common.install')
|
|
350
|
+
})
|
|
351
|
+
});
|
|
352
|
+
} else {
|
|
353
|
+
installButton = /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
354
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
355
|
+
variant: "outlined",
|
|
356
|
+
style: {
|
|
357
|
+
marginRight: 8
|
|
358
|
+
},
|
|
359
|
+
onClick: () => setInstallResourceTip(blockletMetaUrl),
|
|
360
|
+
children: t('common.install')
|
|
361
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Dialog.default, {
|
|
362
|
+
fullWidth: true,
|
|
363
|
+
maxWidth: "sm",
|
|
364
|
+
open: installResourceTip,
|
|
365
|
+
onClose: () => setInstallResourceTip(''),
|
|
366
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
|
|
367
|
+
sx: {
|
|
368
|
+
py: 5,
|
|
369
|
+
px: 4,
|
|
370
|
+
wordBreak: 'break-all'
|
|
371
|
+
},
|
|
372
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Typography.default, {
|
|
373
|
+
variant: "h6",
|
|
374
|
+
sx: {
|
|
375
|
+
mb: 2
|
|
376
|
+
},
|
|
377
|
+
children: t('blocklet.publish.installResourceTip')
|
|
378
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_clickToCopy.default, {
|
|
379
|
+
children: installResourceTip
|
|
380
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Typography.default, {
|
|
381
|
+
sx: {
|
|
382
|
+
mt: 2
|
|
383
|
+
},
|
|
384
|
+
children: [t('blocklet.publish.installResourceTip2'), /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
385
|
+
style: {
|
|
386
|
+
marginLeft: 4
|
|
387
|
+
},
|
|
388
|
+
href: "https://www.arcblock.io/docs/blocklet-developer/R3weqCy7WPI8ggudt0C2alWv",
|
|
389
|
+
target: "_blank",
|
|
390
|
+
rel: "noreferrer",
|
|
391
|
+
children: t('blocklet.publish.installResourceHelp')
|
|
392
|
+
})]
|
|
393
|
+
})]
|
|
394
|
+
})
|
|
395
|
+
})]
|
|
396
|
+
});
|
|
397
|
+
}
|
|
398
|
+
}
|
|
328
399
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(Main, _objectSpread(_objectSpread({}, rest), {}, {
|
|
329
400
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
|
|
330
401
|
className: "sticky-header",
|
|
@@ -369,12 +440,14 @@ function CreateRelease(_ref2) {
|
|
|
369
440
|
color: "inherit"
|
|
370
441
|
}), t('common.release')]
|
|
371
442
|
})]
|
|
372
|
-
}), isPublished && /*#__PURE__*/(0, _jsxRuntime.
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
443
|
+
}), isPublished && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_jsxRuntime.Fragment, {
|
|
444
|
+
children: [installButton, /*#__PURE__*/(0, _jsxRuntime.jsx)(_Button.default, {
|
|
445
|
+
variant: "contained",
|
|
446
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("a", {
|
|
447
|
+
href: (0, _urlJoin.default)("".concat(_constant2.WELLKNOWN_SERVICE_PATH_PREFIX, "/api/project/").concat(blocklet.meta.did, "/").concat(projectId, "/").concat(releaseId, "/download/").concat((release.files || [])[0])),
|
|
448
|
+
children: t('common.download')
|
|
449
|
+
})
|
|
450
|
+
})]
|
|
378
451
|
})]
|
|
379
452
|
})]
|
|
380
453
|
}), /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
|
|
@@ -639,6 +712,9 @@ function CreateRelease(_ref2) {
|
|
|
639
712
|
uploaderLogoRef.current.close();
|
|
640
713
|
},
|
|
641
714
|
plugins: ['ImageEditor'],
|
|
715
|
+
installerProps: {
|
|
716
|
+
disabled: true
|
|
717
|
+
},
|
|
642
718
|
apiPathProps: {
|
|
643
719
|
uploader: uploadLogoPrefix,
|
|
644
720
|
disableMediaKitPrefix: true
|
|
@@ -114,7 +114,9 @@ function AddRule(_ref) {
|
|
|
114
114
|
autoComplete: "off",
|
|
115
115
|
variant: "outlined",
|
|
116
116
|
name: "pathPrefix",
|
|
117
|
-
|
|
117
|
+
inputProps: {
|
|
118
|
+
'data-cy': 'path-prefix-input'
|
|
119
|
+
},
|
|
118
120
|
fullWidth: true,
|
|
119
121
|
autoFocus: true,
|
|
120
122
|
helperText: params.pathPrefixHint || t('router.rule.add.pathPrefixTip'),
|
|
@@ -124,7 +124,9 @@ function ConfigRoutingRule(_ref) {
|
|
|
124
124
|
autoComplete: "off",
|
|
125
125
|
variant: "outlined",
|
|
126
126
|
name: "url",
|
|
127
|
-
|
|
127
|
+
inputProps: {
|
|
128
|
+
'data-cy': 'redirect-url-input'
|
|
129
|
+
},
|
|
128
130
|
fullWidth: true,
|
|
129
131
|
value: params.url,
|
|
130
132
|
helperText: t('router.urlHelperText'),
|
|
@@ -116,7 +116,9 @@ function UpdateRule(_ref) {
|
|
|
116
116
|
autoComplete: "off",
|
|
117
117
|
variant: "outlined",
|
|
118
118
|
name: "pathPrefix",
|
|
119
|
-
|
|
119
|
+
inputProps: {
|
|
120
|
+
'data-cy': 'path-prefix-input'
|
|
121
|
+
},
|
|
120
122
|
fullWidth: true,
|
|
121
123
|
autoFocus: true,
|
|
122
124
|
helperText: params.helperText || t('router.rule.add.pathPrefixTip'),
|
package/lib/locales/en.js
CHANGED
|
@@ -654,6 +654,10 @@ var _default = exports.default = {
|
|
|
654
654
|
saveDraftSuccess: 'Draft saved successfully',
|
|
655
655
|
packTip: 'Components and application configuration will be automatically included in the blocklet',
|
|
656
656
|
resourceChangedWarning: 'You have modified the resource, please save it in time',
|
|
657
|
+
installResourceTip: 'Please add the component in an application, component URL:',
|
|
658
|
+
installResourceTip2: 'If you want to see more tips, please visit',
|
|
659
|
+
// translate to en
|
|
660
|
+
installResourceHelp: 'Help Document',
|
|
657
661
|
connect: {
|
|
658
662
|
title: 'Create Blocklet DID',
|
|
659
663
|
scan: 'Scan the QR code below to generate Blocklet DID',
|
package/lib/locales/zh.js
CHANGED
|
@@ -663,6 +663,9 @@ var _default = exports.default = {
|
|
|
663
663
|
saveDraftSuccess: '保存成功',
|
|
664
664
|
packTip: 'Blocklet 中将自动包含组件和应用配置',
|
|
665
665
|
resourceChangedWarning: '您修改了资源,请及时保存',
|
|
666
|
+
installResourceTip: '请在应用中添加组件,组件 URL:',
|
|
667
|
+
installResourceTip2: '如果你需要更多提示,请查看',
|
|
668
|
+
installResourceHelp: '帮助文档',
|
|
666
669
|
connect: {
|
|
667
670
|
title: '创建 Blocklet DID',
|
|
668
671
|
scan: '扫描下面的二维码来生成 Blocklet DID',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/ux",
|
|
3
|
-
"version": "1.16.23-beta-
|
|
3
|
+
"version": "1.16.23-beta-035db744",
|
|
4
4
|
"description": "UX components shared across abtnode packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -15,11 +15,13 @@
|
|
|
15
15
|
"lint:fix": "npm run lint -- --fix",
|
|
16
16
|
"prepublishOnly": "npm run build",
|
|
17
17
|
"prebuild": "rm -fr lib/",
|
|
18
|
+
"build:core-ux": "npm run build",
|
|
18
19
|
"build": "npm run build:lib && npm run build:es && npm run autoexports",
|
|
19
20
|
"build:lib": "babel src --out-dir lib --copy-files",
|
|
20
21
|
"build:es": "babel --config-file ./babel.config.es.js src --out-dir es --copy-files",
|
|
21
22
|
"autoexports": "node tools/auto-exports.js",
|
|
22
23
|
"watch": "npm run build:es -- -w",
|
|
24
|
+
"turbo:client": "npm run watch",
|
|
23
25
|
"coverage": "npm run test -- --coverage",
|
|
24
26
|
"test": "node tools/jest.js"
|
|
25
27
|
},
|
|
@@ -27,35 +29,35 @@
|
|
|
27
29
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
28
30
|
"license": "Apache-2.0",
|
|
29
31
|
"dependencies": {
|
|
30
|
-
"@abtnode/auth": "1.16.23-beta-
|
|
31
|
-
"@abtnode/constant": "1.16.23-beta-
|
|
32
|
-
"@abtnode/util": "1.16.23-beta-
|
|
32
|
+
"@abtnode/auth": "1.16.23-beta-035db744",
|
|
33
|
+
"@abtnode/constant": "1.16.23-beta-035db744",
|
|
34
|
+
"@abtnode/util": "1.16.23-beta-035db744",
|
|
33
35
|
"@ahooksjs/use-url-state": "^3.5.1",
|
|
34
|
-
"@arcblock/did": "^1.18.
|
|
35
|
-
"@arcblock/did-connect": "^2.9.
|
|
36
|
+
"@arcblock/did": "^1.18.110",
|
|
37
|
+
"@arcblock/did-connect": "^2.9.24",
|
|
36
38
|
"@arcblock/did-motif": "^1.1.13",
|
|
37
|
-
"@arcblock/icons": "^2.9.
|
|
38
|
-
"@arcblock/nft-display": "2.9.
|
|
39
|
-
"@arcblock/react-hooks": "^2.9.
|
|
40
|
-
"@arcblock/terminal": "^2.9.
|
|
41
|
-
"@arcblock/ux": "^2.9.
|
|
42
|
-
"@blocklet/constant": "1.16.23-beta-
|
|
39
|
+
"@arcblock/icons": "^2.9.24",
|
|
40
|
+
"@arcblock/nft-display": "2.9.24",
|
|
41
|
+
"@arcblock/react-hooks": "^2.9.24",
|
|
42
|
+
"@arcblock/terminal": "^2.9.24",
|
|
43
|
+
"@arcblock/ux": "^2.9.24",
|
|
44
|
+
"@blocklet/constant": "1.16.23-beta-035db744",
|
|
43
45
|
"@blocklet/launcher-layout": "2.2.51",
|
|
44
|
-
"@blocklet/list": "^0.12.
|
|
45
|
-
"@blocklet/meta": "1.16.23-beta-
|
|
46
|
-
"@blocklet/ui-react": "^2.9.
|
|
47
|
-
"@blocklet/uploader": "^0.0.
|
|
46
|
+
"@blocklet/list": "^0.12.69",
|
|
47
|
+
"@blocklet/meta": "1.16.23-beta-035db744",
|
|
48
|
+
"@blocklet/ui-react": "^2.9.24",
|
|
49
|
+
"@blocklet/uploader": "^0.0.69",
|
|
48
50
|
"@emotion/react": "^11.10.4",
|
|
49
51
|
"@emotion/styled": "^11.10.4",
|
|
50
52
|
"@iconify/react": "^4.0.0",
|
|
51
53
|
"@material-table/core": "^0.2.62",
|
|
52
|
-
"@mui/icons-material": "
|
|
54
|
+
"@mui/icons-material": "5.15.5",
|
|
53
55
|
"@mui/lab": "5.0.0-alpha.162",
|
|
54
|
-
"@mui/material": "
|
|
55
|
-
"@mui/styles": "
|
|
56
|
+
"@mui/material": "5.15.5",
|
|
57
|
+
"@mui/styles": "5.15.5",
|
|
56
58
|
"@mui/x-date-pickers": "^6.19.0",
|
|
57
59
|
"@mui/x-tree-view": "^6.17.0",
|
|
58
|
-
"@ocap/client": "1.18.
|
|
60
|
+
"@ocap/client": "1.18.110",
|
|
59
61
|
"@uiw/react-markdown-preview": "4.0.6",
|
|
60
62
|
"ahooks": "^3.7.8",
|
|
61
63
|
"axios": "^0.27.2",
|
|
@@ -105,7 +107,7 @@
|
|
|
105
107
|
"jest": "^29.7.0",
|
|
106
108
|
"jest-environment-jsdom": "^29.7.0"
|
|
107
109
|
},
|
|
108
|
-
"gitHead": "
|
|
110
|
+
"gitHead": "43b1f85fa413b81be8b8015031ac271a9d9f3456",
|
|
109
111
|
"exports": {
|
|
110
112
|
".": {
|
|
111
113
|
"import": "./es/index.js",
|