@abtnode/ux 1.16.27-beta-4022dde0 → 1.16.27-beta-21d213c5

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,15 +15,17 @@ import Typography from '@mui/material/Typography';
15
15
  import useTheme from '@mui/material/styles/useTheme';
16
16
  import noop from 'lodash/noop';
17
17
  import trim from 'lodash/trim';
18
+ import pRetry from 'p-retry';
18
19
  import PropTypes from 'prop-types';
19
20
  import useAsync from 'react-use/lib/useAsync';
20
21
  import useSetState from 'react-use/lib/useSetState';
21
22
  import { useDomainContext } from '../../contexts/domain';
22
23
  import { useNodeContext } from '../../contexts/node';
23
- import { sleep, validateDomain } from '../../util';
24
+ import { validateDomain } from '../../util';
24
25
  import { axios } from '../../util/api';
25
26
  import DNSTip from './dns-tip';
26
27
  import { parseDomainFromURL } from './util';
28
+ import ConfirmDialog from '../../../lib/confirm';
27
29
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
28
30
  export default function AddDomain({
29
31
  siteId,
@@ -34,9 +36,14 @@ export default function AddDomain({
34
36
  appId,
35
37
  appPk,
36
38
  onSuccess,
39
+ onError,
37
40
  disabled,
38
41
  autoFocus,
39
42
  inBlockletSetup,
43
+ shouldCheckDomain,
44
+ onStateChange,
45
+ currentIp,
46
+ resolveDomain,
40
47
  ...props
41
48
  }) {
42
49
  const {
@@ -53,7 +60,7 @@ export default function AddDomain({
53
60
  key: 'sm'
54
61
  });
55
62
  const [state, setState] = useSetState({
56
- loading: false,
63
+ submittingDomain: false,
57
64
  domain: defaultCustomDomain,
58
65
  error: null,
59
66
  type: info?.nftDomainUrl ? 'nftDomain' : 'inputDomain',
@@ -80,6 +87,151 @@ export default function AddDomain({
80
87
  });
81
88
  }
82
89
  const nftDomainService = nftDomainURLState.value;
90
+ const resetState = () => {
91
+ setState({
92
+ invalidDNSDomain: null
93
+ });
94
+ };
95
+ const addDomain = async domain => {
96
+ onStateChange(t('setup.domain.addingDomain'));
97
+ await api.addDomainAlias({
98
+ input: {
99
+ id: siteId,
100
+ domainAlias: domain,
101
+ teamDid,
102
+ inBlockletSetup: true
103
+ }
104
+ });
105
+ setState({
106
+ submittingDomain: false
107
+ });
108
+ onSuccess({
109
+ domain,
110
+ type: 'inputDomain'
111
+ });
112
+ };
113
+ const submitDomain = async ({
114
+ domain,
115
+ type,
116
+ nftDid,
117
+ chainHost
118
+ }) => {
119
+ try {
120
+ if (!shouldCheckDomain) {
121
+ if (type === 'inputDomain') {
122
+ await addDomain(domain);
123
+ return;
124
+ }
125
+ onSuccess({
126
+ domain,
127
+ type,
128
+ nftDid,
129
+ chainHost
130
+ });
131
+ return;
132
+ }
133
+ onStateChange({
134
+ text: t('setup.domain.checkingResolvable')
135
+ });
136
+ let counter = 30;
137
+ const timeout = 3000;
138
+ const retries = import.meta.env?.PROD || process?.env?.NODE_ENV === 'production' ? counter * 1000 / timeout : 0; // 重试 10 * 3000 = 30s 左右
139
+
140
+ const timer = setInterval(() => {
141
+ if (counter <= 0) {
142
+ clearInterval(timer);
143
+ return;
144
+ }
145
+ onStateChange({
146
+ text: `${t('setup.domain.checkingResolvable')} (${counter--}s)`
147
+ });
148
+ }, 1000);
149
+ const address = await pRetry(async () => {
150
+ const {
151
+ data
152
+ } = await resolveDomain(domain);
153
+ if (!data.address) {
154
+ throw new Error('Cannot resolve domain');
155
+ }
156
+ return data.address;
157
+ }, {
158
+ retries,
159
+ minTimeout: timeout,
160
+ maxTimeout: timeout,
161
+ onFailedAttempt: console.error
162
+ }).catch(console.error);
163
+ clearInterval(timer);
164
+ if (!address) {
165
+ const err = t('setup.domain.cannotResolve', {
166
+ domain
167
+ });
168
+ if (type === 'nftDomain') {
169
+ Toast.error(err);
170
+ onSuccess({
171
+ domain,
172
+ type: 'nftDomain'
173
+ });
174
+ return;
175
+ }
176
+ onStateChange({
177
+ text: ''
178
+ });
179
+ setState({
180
+ invalidDNSDomain: {
181
+ domain,
182
+ error: err
183
+ },
184
+ domain,
185
+ type,
186
+ submittingDomain: false
187
+ });
188
+ return;
189
+ }
190
+ if (address !== currentIp) {
191
+ const err = t('setup.domain.resolvedAddressError', {
192
+ domain,
193
+ curDomain: window.location.hostname
194
+ });
195
+ if (type === 'nftDomain') {
196
+ Toast.error(err);
197
+ onSuccess({
198
+ domain,
199
+ type: 'nftDomain'
200
+ });
201
+ return;
202
+ }
203
+ onStateChange({
204
+ text: ''
205
+ });
206
+ setState({
207
+ invalidDNSDomain: {
208
+ domain,
209
+ error: err
210
+ },
211
+ domain,
212
+ type,
213
+ submittingDomain: false
214
+ });
215
+ return;
216
+ }
217
+ if (type === 'nftDomain') {
218
+ onSuccess({
219
+ domain,
220
+ type: 'nftDomain'
221
+ });
222
+ return;
223
+ }
224
+ await addDomain(domain);
225
+ } catch (err) {
226
+ Toast.error(err.message);
227
+ onStateChange({
228
+ text: ''
229
+ });
230
+ setState({
231
+ submittingDomain: false
232
+ });
233
+ }
234
+ };
83
235
  const handleAuthSuccess = async ({
84
236
  domain,
85
237
  nftDid,
@@ -87,6 +239,9 @@ export default function AddDomain({
87
239
  }) => {
88
240
  try {
89
241
  const tmpDomain = parseDomainFromURL(domain);
242
+ setState({
243
+ submittingDomain: true
244
+ });
90
245
  await api.addDomainAlias({
91
246
  input: {
92
247
  id: siteId,
@@ -98,14 +253,14 @@ export default function AddDomain({
98
253
  inBlockletSetup
99
254
  }
100
255
  });
101
- await sleep(2000);
256
+ const type = 'nftDomain';
102
257
  setState({
103
258
  showNFTDomainAuth: false,
104
- type: 'nftDomain'
259
+ type
105
260
  });
106
- onSuccess({
261
+ await submitDomain({
107
262
  domain: tmpDomain,
108
- type: state.type,
263
+ type,
109
264
  nftDid,
110
265
  chainHost
111
266
  });
@@ -113,14 +268,15 @@ export default function AddDomain({
113
268
  Toast.error(error.message);
114
269
  } finally {
115
270
  setState({
116
- showNFTDomainAuth: false
271
+ showNFTDomainAuth: false,
272
+ submittingDomain: false
117
273
  });
118
274
  }
119
275
  };
120
276
  const handleAdd = async () => {
121
277
  try {
122
278
  setState({
123
- loading: true
279
+ submittingDomain: true
124
280
  });
125
281
  const domain = parseDomainFromURL(state.domain);
126
282
  if (info.nftDomainUrl && nftDomainService) {
@@ -136,35 +292,29 @@ export default function AddDomain({
136
292
  return;
137
293
  }
138
294
  }
139
- await api.addDomainAlias({
140
- input: {
141
- id: siteId,
142
- domainAlias: domain,
143
- teamDid
144
- }
145
- });
146
- await sleep(2000);
147
- setState({
148
- loading: false,
149
- domain: ''
150
- });
151
- onSuccess({
295
+ await submitDomain({
152
296
  domain,
153
297
  type: state.type
154
298
  });
155
299
  } catch (error) {
156
- domainContext.setError(error.message);
157
300
  setState({
158
- loading: false
301
+ submittingDomain: false
159
302
  });
303
+ domainContext.setError(error.message);
160
304
  }
161
305
  };
162
306
  const error = domainContext.error || state.error; // TODO: state error 可能不需要了
163
307
 
164
- const domainTypes = {
165
- inputDomain: {
166
- name: t('router.domainAlias.inputDomain'),
167
- component: /*#__PURE__*/_jsxs(Box, {
308
+ return /*#__PURE__*/_jsx(Box, {
309
+ ...props,
310
+ children: /*#__PURE__*/_jsxs(Box, {
311
+ sx: {
312
+ display: 'flex',
313
+ flexDirection: 'column',
314
+ justifyContent: 'flex-start',
315
+ gap: '1em'
316
+ },
317
+ children: [/*#__PURE__*/_jsxs(Box, {
168
318
  sx: {
169
319
  display: 'flex',
170
320
  flexDirection: 'column',
@@ -172,7 +322,6 @@ export default function AddDomain({
172
322
  },
173
323
  children: [info.nftDomainUrl && nftDomainService && /*#__PURE__*/_jsxs(Box, {
174
324
  sx: {
175
- maxWidth: '640px',
176
325
  color: theme.palette.text.primary
177
326
  },
178
327
  children: [/*#__PURE__*/_jsx(Typography, {
@@ -195,7 +344,8 @@ export default function AddDomain({
195
344
  })]
196
345
  }), /*#__PURE__*/_jsx(TextField, {
197
346
  sx: {
198
- display: 'block'
347
+ display: 'block',
348
+ marginTop: '8px'
199
349
  },
200
350
  label: t('router.domainAlias.add.domainDescription'),
201
351
  helperText: state.type === 'inputDomain' && error || t('router.domainAlias.add.helperText'),
@@ -242,7 +392,7 @@ export default function AddDomain({
242
392
  "data-cy": "confirm-add-domain",
243
393
  fullWidth: isMobile,
244
394
  variant: "contained",
245
- loading: state.loading,
395
+ loading: state.submittingDomain,
246
396
  onClick: handleAdd,
247
397
  children: t('common.add')
248
398
  })
@@ -269,40 +419,16 @@ export default function AddDomain({
269
419
  marginTop: '4px'
270
420
  }
271
421
  })]
272
- })
273
- }
274
- };
275
- const inputDomainTypes = Object.keys(domainTypes);
276
- inputDomainTypes.sort(x => {
277
- // 优先展示 nft domain
278
- if (x === 'inputDomain') {
279
- return 1;
280
- }
281
- return -1;
282
- });
283
- return /*#__PURE__*/_jsx(Box, {
284
- ...props,
285
- children: /*#__PURE__*/_jsxs(Box, {
286
- sx: {
287
- display: 'flex',
288
- flexDirection: 'column',
289
- justifyContent: 'flex-start',
290
- gap: '1em'
291
- },
292
- children: [inputDomainTypes.map((type, index) => /*#__PURE__*/_jsxs(Box, {
293
- children: [inputDomainTypes.length > 1 && /*#__PURE__*/_jsx(Box, {
294
- sx: {
295
- fontWeight: 700,
296
- color: theme.palette.text.primary
297
- },
298
- children: `${t(`optionsOrder.${index + 1}`)}: ${domainTypes[type]?.name}`
299
- }), /*#__PURE__*/_jsx(Box, {
300
- sx: {
301
- marginTop: '8px'
302
- },
303
- children: domainTypes[type]?.component
304
- })]
305
- }, type)), nftDomainService && /*#__PURE__*/_jsx(Connect, {
422
+ }), state.invalidDNSDomain && /*#__PURE__*/_jsx(ConfirmDialog, {
423
+ title: t('common.reminder'),
424
+ description: t('setup.domain.invalidDNSReminder', {
425
+ error: state.invalidDNSDomain.error
426
+ }),
427
+ color: "primary",
428
+ confirm: t('setup.domain.continueAdd'),
429
+ onConfirm: () => addDomain(state.invalidDNSDomain.domain, state.type),
430
+ onCancel: resetState
431
+ }), nftDomainService && /*#__PURE__*/_jsx(Connect, {
306
432
  open: state.showNFTDomainAuth,
307
433
  popup: true,
308
434
  useSocket: false,
@@ -319,7 +445,7 @@ export default function AddDomain({
319
445
  onSuccess: handleAuthSuccess,
320
446
  onClose: () => setState({
321
447
  showNFTDomainAuth: false,
322
- loading: false
448
+ submittingDomain: false
323
449
  }),
324
450
  checkTimeout: 60 * 5000,
325
451
  showDownload: false,
@@ -335,6 +461,7 @@ export default function AddDomain({
335
461
  }
336
462
  AddDomain.propTypes = {
337
463
  siteId: PropTypes.string.isRequired,
464
+ currentIp: PropTypes.string,
338
465
  teamDid: PropTypes.string.isRequired,
339
466
  cnameDomain: PropTypes.string.isRequired,
340
467
  defaultCustomDomain: PropTypes.string,
@@ -344,15 +471,24 @@ AddDomain.propTypes = {
344
471
  appPk: PropTypes.string,
345
472
  disabled: PropTypes.bool,
346
473
  autoFocus: PropTypes.bool,
347
- inBlockletSetup: PropTypes.bool
474
+ inBlockletSetup: PropTypes.bool,
475
+ shouldCheckDomain: PropTypes.bool,
476
+ onStateChange: PropTypes.func,
477
+ resolveDomain: PropTypes.func,
478
+ onError: PropTypes.func
348
479
  };
349
480
  AddDomain.defaultProps = {
350
481
  defaultCustomDomain: '',
482
+ currentIp: '',
351
483
  onInputDomain: noop,
352
484
  onSuccess: noop,
353
485
  appId: '',
354
486
  appPk: '',
355
487
  disabled: false,
356
488
  autoFocus: true,
357
- inBlockletSetup: false
489
+ inBlockletSetup: false,
490
+ shouldCheckDomain: false,
491
+ onStateChange: () => {},
492
+ resolveDomain: () => {},
493
+ onError: () => {}
358
494
  };
@@ -3,7 +3,6 @@ import trim from 'lodash/trim';
3
3
  import { createContext, useContext } from 'react';
4
4
  import useSetState from 'react-use/lib/useSetState';
5
5
  import { validateDomain } from '../util';
6
- import { useNodeContext } from './node';
7
6
  import { jsx as _jsx } from "react/jsx-runtime";
8
7
  const DomainContext = /*#__PURE__*/createContext({});
9
8
  const {
@@ -20,12 +19,8 @@ function DomainProvider({
20
19
  error: null
21
20
  });
22
21
  const {
23
- locale,
24
- t
22
+ locale
25
23
  } = useLocaleContext();
26
- const {
27
- api
28
- } = useNodeContext();
29
24
  const value = {
30
25
  error: state.error,
31
26
  domain: state.domain,
@@ -41,22 +36,6 @@ function DomainProvider({
41
36
  domain: tmpDomain,
42
37
  error: errMessage
43
38
  });
44
- },
45
- validateDomain: async (domain, type) => {
46
- if (!state.error && type && type !== 'nftDomain') {
47
- const result = await api.isDidDomain({
48
- input: {
49
- domain
50
- }
51
- });
52
- if (result.value === true) {
53
- setState({
54
- error: t('router.domainAlias.add.isDidDomainError')
55
- });
56
- return false;
57
- }
58
- }
59
- return true;
60
39
  }
61
40
  };
62
41
  return /*#__PURE__*/_jsx(Provider, {
package/lib/locales/ar.js CHANGED
@@ -666,7 +666,7 @@ export default {
666
666
  createResource: 'إنشاء مورد',
667
667
  addResource: 'أضف الإصدار',
668
668
  productTitle: 'منتج',
669
- versionTitle: 'نسخة',
669
+ versionTitle: 'تخطيط الإصدار',
670
670
  imgTitle: 'الصور',
671
671
  resourceTitle: 'موارد',
672
672
  blockletEmptyTip: 'لا توجد أي كتل هنا',
@@ -695,7 +695,8 @@ export default {
695
695
  noDescription: 'الوصف المطلوب للكتلة',
696
696
  noNote: 'ملاحظة الإصدار مطلوبة',
697
697
  inValidVersion: 'نسخة الوحدة غير صالحة',
698
- noResource: 'يرجى اختيار المورد المراد ربطه'
698
+ noResource: 'يرجى اختيار المورد المراد ربطه',
699
+ noFirstDid: 'يرجى إنشاء بلوكليت ديد أولاً'
699
700
  },
700
701
  packTip: 'حالياً ، يمكن تثبيت البلوكليتس مباشرة كتطبيقات. سيتم تضمين المكونات وتكوينات التطبيق تلقائيًا في البلوكليت.',
701
702
  resourceChangedWarning: 'لقد قمت بتعديل المورد، يرجى حفظه في الوقت المناسب',
@@ -703,7 +704,7 @@ export default {
703
704
  installResourceTip2: 'إذا كنت ترغب في رؤية المزيد من النصائح، يرجى زيارة',
704
705
  installResourceHelp: 'وثيقة المساعدة',
705
706
  componentIncluded: 'مدرج',
706
- componentForceRequired: 'مجبر مطلوب',
707
+ componentForceRequired: 'مطلوب',
707
708
  download: 'تحميل {name}',
708
709
  delete: 'احذف {name}',
709
710
  copyInstallUrl: 'انسخ عنوان URL للتثبيت',
@@ -731,13 +732,13 @@ export default {
731
732
  allComponentsNotRunning: 'لا يعمل بلوكلتس، يرجى تشغيله أولاً',
732
733
  resourceEmptyTip: 'لا توجد موارد متاحة',
733
734
  information: 'معلومات',
734
- newVersionTitle: 'نسخة جديدة',
735
735
  steps: {
736
736
  information: 'صف البيانات الأساسية لحاجزك. سيتم تقديم هذه المعلومات للمستخدمين في المتجر.',
737
737
  resources: 'الرجاء تحديد الموارد التي يجب ربطها معالبلوكليت الحالي ، حيث ستتم تثبيت هذه الموارد جنباً إلى جنب مع البلوكليت.',
738
738
  blocklets: 'حدد العناصر النمطية لتكون مرتبطة.',
739
- version: 'ضع رقم إصدار النسخة والملاحظة.',
740
- introduction: 'يمكن أن يسلط مقدمة واضحة الضوء بشكل فعال على Blocklet الخاص بك. يمكنك استخدام بناء Markdown لكتابته ومعاينته.'
739
+ version: 'تعيين نسخة الإصدار وسجل التغييرات.',
740
+ introduction: 'يمكن أن يسلط مقدمة واضحة الضوء بشكل فعال على Blocklet الخاص بك. يمكنك استخدام بناء Markdown لكتابته ومعاينته.',
741
+ branding: 'صف معلوماتك الأساسية للبلوكليت الخاص بك. ستُعرض هذه المعلومات للمستخدمين في المتجر.'
741
742
  },
742
743
  branding: 'العلامة التجارية',
743
744
  brandingHelp: 'سيتم عرض مزيد من المعلومات حول البلوكلت في المتجر'
package/lib/locales/de.js CHANGED
@@ -666,7 +666,7 @@ export default {
666
666
  createResource: 'Erstellen Sie Ressource',
667
667
  addResource: 'Veröffentlichung hinzufügen',
668
668
  productTitle: 'Produkt',
669
- versionTitle: 'Version',
669
+ versionTitle: 'Versionierung',
670
670
  imgTitle: 'Bilder',
671
671
  resourceTitle: 'Ressourcen',
672
672
  blockletEmptyTip: 'Es gibt hier keine Blocklets',
@@ -695,7 +695,8 @@ export default {
695
695
  noDescription: 'Blocklet-Beschreibung ist erforderlich',
696
696
  noNote: 'Versionshinweis wird benötigt',
697
697
  inValidVersion: 'Ungültige Blocklet-Version',
698
- noResource: 'Bitte wählen Sie die Ressource aus, die zugeordnet werden soll'
698
+ noResource: 'Bitte wählen Sie die Ressource aus, die zugeordnet werden soll',
699
+ noFirstDid: 'Bitte erstellen Sie zuerst eine Blocklet-DID'
699
700
  },
700
701
  packTip: 'Derzeit können Blocklets direkt als Anwendungen installiert werden. Komponenten und Anwendungskonfigurationen werden automatisch in das Blocklet aufgenommen.',
701
702
  resourceChangedWarning: 'Sie haben die Ressource geändert, bitte rechtzeitig speichern',
@@ -703,7 +704,7 @@ export default {
703
704
  installResourceTip2: 'Wenn du mehr Tipps sehen möchtest, besuche bitte',
704
705
  installResourceHelp: 'Hilfe-Dokument',
705
706
  componentIncluded: 'Eingeschlossen',
706
- componentForceRequired: 'Erzwungen Erforderlich',
707
+ componentForceRequired: 'Erforderlich',
707
708
  download: 'Download {name}',
708
709
  delete: 'Lösche {name}',
709
710
  copyInstallUrl: 'Kopiere Installations-URL',
@@ -731,13 +732,13 @@ export default {
731
732
  allComponentsNotRunning: 'Blocklets läuft nicht, bitte starten Sie es zuerst',
732
733
  resourceEmptyTip: 'Keine verfügbaren Ressourcen',
733
734
  information: 'Information',
734
- newVersionTitle: 'Neue Version',
735
735
  steps: {
736
736
  information: 'Beschreiben Sie die Grundinformationen Ihrer Blocklet. Diese Informationen werden den Benutzern im Shop präsentiert werden.',
737
737
  resources: 'Bitte wählen Sie die Ressourcen aus, die mit dem aktuellen Blocklet verbunden werden sollen, da diese Ressourcen zusammen mit dem Blocklet installiert werden sollen.',
738
738
  blocklets: 'Wählen Sie die zu verknüpfenden Blocklets aus.',
739
- version: 'Setze die Versionsnummer der Veröffentlichung und die Notiz.',
740
- introduction: 'Eine klare Einführung kann Ihren Blocklet effektiv hervorheben. Sie können Markdown-Syntax verwenden, um es zu schreiben und eine Vorschau anzuzeigen.'
739
+ version: 'Setzen Sie die Versionsnummer und das Änderungsprotokoll.',
740
+ introduction: 'Eine klare Einführung kann Ihren Blocklet effektiv hervorheben. Sie können Markdown-Syntax verwenden, um es zu schreiben und eine Vorschau anzuzeigen.',
741
+ branding: 'Beschreiben Sie die grundlegenden Informationen Ihres Blocklets. Diese Informationen werden den Benutzern im Store angezeigt.'
741
742
  },
742
743
  branding: 'Branding',
743
744
  brandingHelp: 'Weitere Informationen über den Blocklet werden im Store angezeigt'
package/lib/locales/en.js CHANGED
@@ -666,8 +666,7 @@ export default {
666
666
  tenantScope: 'Tenant',
667
667
  addResource: 'Add Blocklet',
668
668
  productTitle: 'Product',
669
- versionTitle: 'Version',
670
- newVersionTitle: 'New version',
669
+ versionTitle: 'Versioning',
671
670
  imgTitle: 'Images',
672
671
  resourceTitle: 'Resources',
673
672
  blockletEmptyTip: 'There aren’t any blocklets here',
@@ -695,13 +694,13 @@ export default {
695
694
  installResourceTip2: 'If you want to see more tips, please visit',
696
695
  installResourceHelp: 'Help Document',
697
696
  componentIncluded: 'Included',
698
- componentForceRequired: 'Forced Required',
697
+ componentForceRequired: 'Required',
699
698
  steps: {
700
699
  branding: 'Describe the basic information of your Blocklet. This information will be presented to users in the store.',
701
700
  introduction: 'A clear introduction can effectively highlight your Blocklet. You can use Markdown syntax to write and preview it.',
702
701
  resources: 'Please select the resources that need to be associated with the current Blocklet, as these resources will be installed along with the Blocklet.',
703
702
  blocklets: 'Please select the Blocklets that need to be associated and installed when installing the current Blocklet.',
704
- version: 'Set the release version number and the note.'
703
+ version: 'Set the release version and the change log.'
705
704
  },
706
705
  connect: {
707
706
  title: 'Create Blocklet DID',
@@ -723,6 +722,7 @@ export default {
723
722
  releaseNote: 'Release Note',
724
723
  errorTip: {
725
724
  noDid: 'Blocklet DID is required',
725
+ noFirstDid: 'Please create Blocklet DID first',
726
726
  noTitle: 'Blocklet Title is required',
727
727
  noVersion: 'Blocklet Version is required',
728
728
  inValidVersion: 'Invalid Blocklet Version',
@@ -1037,7 +1037,6 @@ export default {
1037
1037
  }
1038
1038
  },
1039
1039
  domainAlias: {
1040
- inputDomain: 'Manually config domain',
1041
1040
  nftDomain: 'Automatic config with DID Domain',
1042
1041
  showTipHint: 'How do I configure domain name resolution?',
1043
1042
  add: {
package/lib/locales/es.js CHANGED
@@ -666,7 +666,7 @@ export default {
666
666
  createResource: 'Crear Recurso',
667
667
  addResource: 'Agregar lanzamiento',
668
668
  productTitle: 'Producto',
669
- versionTitle: 'Versión',
669
+ versionTitle: 'Versionando',
670
670
  imgTitle: 'Imágenes',
671
671
  resourceTitle: 'Recursos',
672
672
  blockletEmptyTip: 'Aquí no hay bloqueadores',
@@ -695,7 +695,8 @@ export default {
695
695
  noDescription: 'La descripción de Blocklet es requerida',
696
696
  noNote: 'Se requiere la Nota de Lanzamiento',
697
697
  inValidVersion: 'Versión de Blocklet no válida',
698
- noResource: 'Por favor, selecciona el recurso a asociar'
698
+ noResource: 'Por favor, selecciona el recurso a asociar',
699
+ noFirstDid: 'Por favor, crea Blocklet DID primero'
699
700
  },
700
701
  packTip: 'Actualmente, los blocklets se pueden instalar directamente como aplicaciones. Los componentes y las configuraciones de la aplicación se incluirán automáticamente en el Blocklet',
701
702
  resourceChangedWarning: 'Ha modificado el recurso, por favor guárdelo a tiempo',
@@ -703,7 +704,7 @@ export default {
703
704
  installResourceTip2: 'Si desea ver más consejos, visite {name}',
704
705
  installResourceHelp: 'Ayuda Documento',
705
706
  componentIncluded: 'Incluido',
706
- componentForceRequired: 'Obligatorio Requerido',
707
+ componentForceRequired: 'Requerido',
707
708
  download: 'Descargar {name}',
708
709
  delete: 'Eliminar {name}',
709
710
  copyInstallUrl: 'Copiar URL de instalación',
@@ -731,13 +732,13 @@ export default {
731
732
  allComponentsNotRunning: 'Blocklets no está ejecutándose, por favor inícialo primero',
732
733
  resourceEmptyTip: 'No hay recursos disponibles',
733
734
  information: 'Información',
734
- newVersionTitle: 'Nueva versión',
735
735
  steps: {
736
736
  information: 'Describe la información básica de tu Bloque de Construcción. Esta información se presentará a los usuarios en la tienda.',
737
737
  resources: 'Por favor selecciona los recursos que necesitan ser asociados con el Blocklet actual, ya que estos recursos se instalarán junto con el Blocklet.',
738
738
  blocklets: 'Selecciona los blocklets a asociar.',
739
- version: 'Establezca el número de versión de lanzamiento y la nota.',
740
- introduction: 'Una introducción clara puede resaltar eficazmente tu Blocklet. Puedes usar la sintaxis de Markdown para escribir y previsualizarlo.'
739
+ version: 'Establecer la versión de lanzamiento y el registro de cambios.',
740
+ introduction: 'Una introducción clara puede resaltar eficazmente tu Blocklet. Puedes usar la sintaxis de Markdown para escribir y previsualizarlo.',
741
+ branding: 'Describe la información básica de tu Blocklet. Esta información se presentará a los usuarios en la tienda.'
741
742
  },
742
743
  branding: 'Branding',
743
744
  brandingHelp: 'Se mostrará más información sobre el blocklet en la tienda'
package/lib/locales/fr.js CHANGED
@@ -666,7 +666,7 @@ export default {
666
666
  createResource: 'Créer une ressource',
667
667
  addResource: 'Ajouter une publication',
668
668
  productTitle: 'Produit',
669
- versionTitle: 'Version',
669
+ versionTitle: 'Versionnage',
670
670
  imgTitle: 'Images',
671
671
  resourceTitle: 'Ressources',
672
672
  blockletEmptyTip: "Il n'y a pas de blocs ici",
@@ -695,7 +695,8 @@ export default {
695
695
  noDescription: 'La description du Blocklet est requise',
696
696
  noNote: 'La note de version est requise',
697
697
  inValidVersion: 'Version de Blocklet invalide',
698
- noResource: 'Veuillez sélectionner la ressource à associer'
698
+ noResource: 'Veuillez sélectionner la ressource à associer',
699
+ noFirstDid: "Veuillez créer d'abord un DID de Blocklet"
699
700
  },
700
701
  packTip: "Actuellement, les bloclets peuvent être installés directement en tant qu'applications. Les composants et les configurations d'application seront automatiquement inclus dans le bloclet.",
701
702
  resourceChangedWarning: "Vous avez modifié la ressource, veuillez l'enregistrer à temps",
@@ -703,7 +704,7 @@ export default {
703
704
  installResourceTip2: 'Si vous souhaitez voir plus de conseils, veuillez visiter',
704
705
  installResourceHelp: "Document d'aide",
705
706
  componentIncluded: 'Inclus',
706
- componentForceRequired: 'Forcé Requis',
707
+ componentForceRequired: 'Requis',
707
708
  download: 'Télécharger {name}',
708
709
  delete: 'Supprimez {name}',
709
710
  copyInstallUrl: "Copier l'URL d'installation",
@@ -731,13 +732,13 @@ export default {
731
732
  allComponentsNotRunning: "Blocklets ne fonctionne pas, veuillez le démarrer d'abord",
732
733
  resourceEmptyTip: 'Aucune ressource disponible',
733
734
  information: 'Information',
734
- newVersionTitle: 'Nouvelle version',
735
735
  steps: {
736
736
  information: 'Décrivez les informations de base de votre bloc. Ces informations seront présentées aux utilisateurs dans le magasin.',
737
737
  resources: 'Veuillez sélectionner les ressources qui doivent être associées à le Blocklet actuel, car ces ressources seront installées avec le Blocklet.',
738
738
  blocklets: 'Sélectionnez les bloclets à associer.',
739
- version: 'Définissez le numéro de version de la publication et la note.',
740
- introduction: "Une introduction claire peut mettre en valeur efficacement votre Blocklet. Vous pouvez utiliser la syntaxe Markdown pour l'écrire et le prévisualiser."
739
+ version: 'Définir la version de sortie et le journal des modifications.',
740
+ introduction: "Une introduction claire peut mettre en valeur efficacement votre Blocklet. Vous pouvez utiliser la syntaxe Markdown pour l'écrire et le prévisualiser.",
741
+ branding: 'Décrivez les informations de base de votre Blocklet. Ces informations seront présentées aux utilisateurs dans le magasin.'
741
742
  },
742
743
  branding: 'Branding',
743
744
  brandingHelp: "Plus d'informations sur le blocklet seront affichées dans le magasin"