@abtnode/ux 1.16.34 → 1.16.35

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,10 +83,10 @@ function SpaceDelete({
83
83
  onCancel: e => handleOpen(e, false),
84
84
  children: /*#__PURE__*/_jsx(Typography, {
85
85
  sx: {
86
- wordBreak: 'break-all'
86
+ wordWrap: 'break-word'
87
87
  },
88
- children: t('common.delConfirmDescription', {
89
- data: `${spaceGateway?.name}`
88
+ children: t('storage.spaces.gateway.delete.descForStorage', {
89
+ name: `${spaceGateway?.name}`
90
90
  })
91
91
  })
92
92
  })]
@@ -98,17 +98,17 @@ function DeleteDIDSpacesGateWay({
98
98
  props: {
99
99
  size: 'small',
100
100
  variant: 'outlined',
101
- loading
101
+ disabled: loading
102
102
  }
103
103
  },
104
104
  onConfirm: handleOnConfirm,
105
105
  onCancel: handleOnCancel,
106
106
  children: /*#__PURE__*/_jsx(Typography, {
107
107
  sx: {
108
- wordBreak: 'break-all'
108
+ wordWrap: 'break-word'
109
109
  },
110
- children: t('common.delConfirmDescription', {
111
- data: `${spaceGateway?.name}`
110
+ children: t('storage.spaces.gateway.delete.descForBackup', {
111
+ name: `${spaceGateway?.name}`
112
112
  })
113
113
  })
114
114
  })]
@@ -8,10 +8,10 @@ import { BlockletStorageProvider, useBlockletStorageContext } from '../../../con
8
8
  import { jsx as _jsx } from "react/jsx-runtime";
9
9
  function Backup() {
10
10
  const {
11
- spaceGatewaysLoading,
11
+ spaceGatewaysFirstLoading,
12
12
  spaceGateways
13
13
  } = useBlockletStorageContext();
14
- if (spaceGatewaysLoading) {
14
+ if (spaceGatewaysFirstLoading) {
15
15
  return /*#__PURE__*/_jsx(Center, {
16
16
  relative: "parent",
17
17
  children: /*#__PURE__*/_jsx(CircularProgress, {})
@@ -1,8 +1,8 @@
1
1
  /* eslint-disable react/no-unstable-nested-components */
2
- import styled from '@emotion/styled';
3
2
  import PropTypes from 'prop-types';
4
3
  import React, { useEffect, useState } from 'react';
5
4
  import { Link, useNavigate, useParams } from 'react-router-dom';
5
+ import { toAddress } from '@arcblock/did';
6
6
  import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
7
7
  import AddIcon from '@mui/icons-material/Add';
8
8
  import NewFileIcon from '@mui/icons-material/AddBox';
@@ -102,6 +102,15 @@ export default function ProjectList({
102
102
  setOpenDidConnect(false);
103
103
  setDeleteConfirm(null);
104
104
  };
105
+ const customSearch = (searchText, row, columns) => {
106
+ let key = searchText?.trim();
107
+ if (!key) return true;
108
+ key = toAddress(key).toLocaleLowerCase();
109
+ return columns.some((col, index) => {
110
+ const columnVal = row[index];
111
+ return columnVal && col.searchable && col.display !== 'excluded' && col.display !== 'false' && columnVal.toLocaleLowerCase().includes(key);
112
+ });
113
+ };
105
114
  useEffect(() => {
106
115
  getProjects();
107
116
  }, []); // eslint-disable-line react-hooks/exhaustive-deps
@@ -170,6 +179,7 @@ export default function ProjectList({
170
179
  label: 'Version',
171
180
  name: 'blockletVersion',
172
181
  options: {
182
+ searchable: false,
173
183
  customBodyRender: value => {
174
184
  return value ? /*#__PURE__*/_jsx(Tag, {
175
185
  type: "success",
@@ -268,6 +278,7 @@ export default function ProjectList({
268
278
  label: t('common.updatedAt'),
269
279
  name: 'updatedAt',
270
280
  options: {
281
+ searchable: false,
271
282
  customBodyRender: value => {
272
283
  return /*#__PURE__*/_jsx(RelativeTime, {
273
284
  value: Number(value),
@@ -279,6 +290,7 @@ export default function ProjectList({
279
290
  label: t('common.actions'),
280
291
  name: 'actions',
281
292
  options: {
293
+ searchable: false,
282
294
  customBodyRenderLite: rawIndex => {
283
295
  const project = projects[rawIndex];
284
296
  return /*#__PURE__*/_jsxs(Box, {
@@ -366,7 +378,7 @@ export default function ProjectList({
366
378
  success: t('blocklet.publish.deleteProject.success')
367
379
  }
368
380
  }) : null;
369
- return /*#__PURE__*/_jsxs(Main, {
381
+ return /*#__PURE__*/_jsxs(Box, {
370
382
  children: [/*#__PURE__*/_jsxs(Box, {
371
383
  display: "flex",
372
384
  justifyContent: "space-between",
@@ -403,8 +415,6 @@ export default function ProjectList({
403
415
  }
404
416
  }), t('blocklet.publish.createBlocklet')]
405
417
  })]
406
- }), /*#__PURE__*/_jsx(Box, {
407
- mt: 3
408
418
  }), /*#__PURE__*/_jsx(Datatable, {
409
419
  className: "main-table",
410
420
  locale: locale,
@@ -415,7 +425,13 @@ export default function ProjectList({
415
425
  download: false,
416
426
  filter: false,
417
427
  print: false,
418
- search: false
428
+ search: true,
429
+ viewColumns: false,
430
+ searchAlwaysOpen: true,
431
+ rowsPerPageOptions: [10, 20, 50, 100],
432
+ searchPlaceholder: t('blocklet.list.searchPlaceholder'),
433
+ searchDebounceTime: 400,
434
+ customSearch
419
435
  }
420
436
  }), deleteConfirm && /*#__PURE__*/_jsx(Confirm, {
421
437
  title: `${t('common.delete')} ${deleteConfirm.blockletTitle}`,
@@ -457,9 +473,4 @@ ProjectList.propTypes = {
457
473
  };
458
474
  ProjectList.defaultProps = {
459
475
  initUrl: null
460
- };
461
- const Main = styled(Box)`
462
- .main-table > div:first-child {
463
- display: none;
464
- }
465
- `;
476
+ };
@@ -3,6 +3,7 @@ import propTypes from 'prop-types';
3
3
  import toast from '@arcblock/ux/lib/Toast';
4
4
  import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
5
5
  import { BLOCKLET_CONFIGURABLE_KEY } from '@blocklet/constant';
6
+ import isUndefined from 'lodash/isUndefined';
6
7
  import { useBlockletContext } from './blocklet';
7
8
  import { getSpaceBackupEndpoint } from '../util/spaces';
8
9
  import useSpaceGateways from '../hooks/use-space-gateways';
@@ -25,6 +26,7 @@ import useBackups from '../hooks/use-backups';
25
26
  * updateSpaceGateway: (spaceGateway: SpaceGateway) => Promise<void>,
26
27
  * refreshSpaceGateways: () => void,
27
28
  * spaceGatewaysLoading: boolean,
29
+ * spaceGatewaysFirstLoading: boolean,
28
30
  * spaceGatewayIsSelected: (spaceGateway: SpaceGateway) => boolean,
29
31
  * updateAutoBackup: (autoBackup: { enabled: boolean }) => Promise<void>,
30
32
  *
@@ -58,14 +60,15 @@ function BlockletStorageProvider({
58
60
  const {
59
61
  blocklet
60
62
  } = useBlockletContext();
61
- const [spaceGatewaysLoading, setSpaceGatewaysLoading] = useState(false);
62
63
  const [spaceGatewaysRefresh, setSpaceGatewaysRefresh] = useState(false);
63
64
  const {
64
- spaceGateways
65
+ data: spaceGateways,
66
+ loading: spaceGatewaysLoading,
67
+ mutate: mutateSpaceGateways
65
68
  } = useSpaceGateways({
66
- refresh: spaceGatewaysRefresh,
67
- setLoading: setSpaceGatewaysLoading
69
+ refresh: spaceGatewaysRefresh
68
70
  });
71
+ const spaceGatewaysFirstLoading = isUndefined(spaceGateways);
69
72
  const backupProgress = useBackupProgress({
70
73
  appDid: blocklet?.appDid
71
74
  });
@@ -109,9 +112,13 @@ function BlockletStorageProvider({
109
112
  *
110
113
  */
111
114
  const addSpaceGateway = async (spaceGateway, endpoint) => {
112
- spaceGateways.push({
113
- ...spaceGateway,
114
- loading: true
115
+ mutateSpaceGateways(prev => {
116
+ const newSpaceGateways = [...prev];
117
+ newSpaceGateways.push({
118
+ ...spaceGateway,
119
+ loading: true
120
+ });
121
+ return newSpaceGateways;
115
122
  });
116
123
  await api.addBlockletSpaceGateway({
117
124
  input: {
@@ -164,6 +171,11 @@ function BlockletStorageProvider({
164
171
  spaceGatewayDid: spaceGateway?.did
165
172
  }
166
173
  });
174
+ mutateSpaceGateways(prev => {
175
+ const newSpaceGateways = [...prev];
176
+ newSpaceGateways.splice(newSpaceGateways.indexOf(spaceGateway), 1);
177
+ return newSpaceGateways;
178
+ });
167
179
  refreshSpaceGateways();
168
180
  setSelectedSpaceGateway(spaceGateway);
169
181
  };
@@ -206,13 +218,14 @@ function BlockletStorageProvider({
206
218
  const spaceGatewayIsSelected = spaceGateway => spaceGateway?.endpoint === backupEndpoint;
207
219
  return /*#__PURE__*/_jsx(Provider, {
208
220
  value: {
209
- spaceGateways,
221
+ spaceGateways: spaceGateways || [],
210
222
  selectedSpaceGateway,
211
223
  addSpaceGateway,
212
224
  deleteSpaceGateway,
213
225
  updateSpaceGateway,
214
226
  refreshSpaceGateways,
215
227
  spaceGatewaysLoading,
228
+ spaceGatewaysFirstLoading,
216
229
  spaceGatewayIsSelected,
217
230
  updateAutoBackup,
218
231
  backupEndpoint,
@@ -1,5 +1,4 @@
1
- import { useState } from 'react';
2
- import { useAsyncEffect } from 'ahooks';
1
+ import { useRequest } from 'ahooks';
3
2
  import toast from '@arcblock/ux/lib/Toast';
4
3
  import { useNodeContext } from '../contexts/node';
5
4
  import { updateSpaceGatewaysFromDIDSpaces } from '../util/space-gateway';
@@ -7,18 +6,18 @@ import { formatError } from '../util';
7
6
  import { useBlockletContext } from '../contexts/blocklet';
8
7
 
9
8
  /**
10
- * @description
9
+ * @typedef {import('../contexts/blocklet-storage').SpaceGateway} SpaceGateway
11
10
  * @param {{
12
- * blockletDid: string,
13
- * setLoading: (bool: boolean) => void,
14
11
  * refresh: boolean,
15
- * }} { blockletDid, setLoading = () => undefined, refreshBlocklet }
12
+ * }}
16
13
  * @return {{
17
- * spaceGateways: Array<import('../contexts/blocklet-storage').SpaceGateway>
18
- * }} {spaceGateways}
14
+ * data: Array<SpaceGateway>,
15
+ * error: Error,
16
+ * mutate: (data?: Array<SpaceGateway> | ((oldData?: Array<SpaceGateway>) => Array<SpaceGateway> | undefined)) => void,
17
+ * loading: boolean,
18
+ * }}
19
19
  */
20
20
  export default function useSpaceGateways({
21
- setLoading,
22
21
  refresh
23
22
  } = {}) {
24
23
  /** @type {{ blocklet: import('@abtnode/client').BlockletState }} */
@@ -26,38 +25,36 @@ export default function useSpaceGateways({
26
25
  blocklet
27
26
  } = useBlockletContext();
28
27
  const blockletDid = blocklet?.meta?.did;
29
- const [spaceGateways, setSpaceGateways] = useState([]);
30
28
  const {
31
29
  api
32
30
  } = useNodeContext();
33
- useAsyncEffect(async () => {
34
- try {
35
- if (!blockletDid) {
36
- setSpaceGateways([]);
37
- return;
31
+ return useRequest(async () => {
32
+ if (!blockletDid) {
33
+ return [];
34
+ }
35
+ const {
36
+ spaceGateways
37
+ } = await api.getBlockletSpaceGateways({
38
+ input: {
39
+ did: blockletDid
40
+ }
41
+ });
42
+ const latestSpaceGateways = await updateSpaceGatewaysFromDIDSpaces({
43
+ blockletDid,
44
+ nodeApi: api,
45
+ spaceGateways
46
+ });
47
+ return latestSpaceGateways ?? [];
48
+ }, {
49
+ refreshDeps: [blockletDid, refresh],
50
+ onError(error) {
51
+ // @note: 当用户是未登录的时候,不要直接报错,引导用户登陆即可
52
+ if (error?.message?.includes('not logged')) {
53
+ console.warn(error);
54
+ } else {
55
+ console.error(error);
56
+ toast.error(formatError(error));
38
57
  }
39
- setLoading?.(true);
40
- const {
41
- spaceGateways: _spaceGateways
42
- } = await api.getBlockletSpaceGateways({
43
- input: {
44
- did: blockletDid
45
- }
46
- });
47
- const latestSpaceGateways = await updateSpaceGatewaysFromDIDSpaces({
48
- blockletDid,
49
- nodeApi: api,
50
- spaceGateways: _spaceGateways
51
- });
52
- setSpaceGateways(latestSpaceGateways ?? []);
53
- } catch (error) {
54
- console.error(error);
55
- toast.error(formatError(error));
56
- } finally {
57
- setLoading?.(false);
58
58
  }
59
- }, [blockletDid, refresh]);
60
- return {
61
- spaceGateways
62
- };
59
+ });
63
60
  }
package/lib/locales/ar.js CHANGED
@@ -605,7 +605,8 @@ export default {
605
605
  },
606
606
  list: {
607
607
  download: 'تحميل',
608
- star: 'نجم'
608
+ star: 'نجم',
609
+ searchPlaceholder: 'ابحث عن بلوكليت بالاسم أو DID'
609
610
  },
610
611
  component: {
611
612
  container: 'تكوين عالمي',
@@ -1797,13 +1798,15 @@ export default {
1797
1798
  label: 'أدخل عنوان URL لأماكن DID',
1798
1799
  failed: 'فشل إضافة مساحات الـDID',
1799
1800
  invalidUrl: 'رابط بوابة أماكن DID غير صالح',
1800
- duplicate: 'هل توجد مساحة DID ({name}) بالفعل'
1801
+ duplicate: '{name} متصل بالفعل بهذا البلوكليت'
1801
1802
  },
1802
1803
  delete: {
1803
- title: 'حذف البوابة',
1804
- succeeded: 'حذف DID Spaces {name} بنجاح',
1805
- failed: 'فشل حذف البوابة',
1806
- failedForSelected: 'غير قادر على حذف مساحة DID المحددة'
1804
+ title: 'قطع الاتصال',
1805
+ succeeded: 'تم قطع الاتصال بنجاح من DID Spaces {name}',
1806
+ failed: 'فشل قطع الاتصال من بوابة',
1807
+ failedForSelected: 'غير قادر على قطع الاتصال من مساحة DID Spaces',
1808
+ descForBackup: 'بعد قطع الاتصال من {name}، لن تتمكن من النسخ الاحتياطي للبلوكليت إلى DID Space هذا. هل أنت متأكد أنك تريد قطع الاتصال؟\nيمكنك استعادة عمليات النسخ الاحتياطي عن طريق إعادة الاتصال بـ {name}.',
1809
+ descForStorage: 'بعد قطع الاتصال من {name}، لن تتمكن من تخزين البيانات من هذا البلوكليت إلى DID Space هذا. هل أنت متأكد أنك تريد قطع الاتصال؟\nيمكنك استعادة عمليات التخزين عن طريق إعادة الاتصال بـ {name}.'
1807
1810
  },
1808
1811
  connect: {
1809
1812
  title: 'قم بتوصيل مساحات DID',
package/lib/locales/de.js CHANGED
@@ -605,7 +605,8 @@ export default {
605
605
  },
606
606
  list: {
607
607
  download: 'Herunterladen',
608
- star: 'Stern'
608
+ star: 'Stern',
609
+ searchPlaceholder: 'Suche nach Blocklet-Name oder DID'
609
610
  },
610
611
  component: {
611
612
  container: 'Globale Konfiguration',
@@ -1797,13 +1798,15 @@ export default {
1797
1798
  label: 'Geben Sie die URL der DID Spaces ein',
1798
1799
  failed: 'Fehler beim Hinzufügen von DID Spaces',
1799
1800
  invalidUrl: 'Ungültige DID-Spaces-Gateway-URL',
1800
- duplicate: 'DID Space({name}) existiert bereits'
1801
+ duplicate: '{name} ist bereits mit diesem Blocklet verbunden'
1801
1802
  },
1802
1803
  delete: {
1803
- title: 'Lösche Gateway',
1804
- succeeded: 'Löschen Sie DID Spaces {name} Erfolg',
1805
- failed: 'Löschen des Gateways fehlgeschlagen',
1806
- failedForSelected: 'Kann den ausgewählten DID-Space nicht löschen'
1804
+ title: 'Trennen',
1805
+ succeeded: 'Erfolgreich getrennt von DID Spaces {name}',
1806
+ failed: 'Fehler beim Trennen von Gateway',
1807
+ failedForSelected: 'Kann den ausgewählten DID-Space nicht trennen',
1808
+ descForBackup: 'Nach dem Trennen von {name} können Sie Blocklet nicht mehr auf dieses DID Space sichern. Sind Sie sicher, dass Sie trennen möchten?\nSie können die Sicherungsoperationen wiederherstellen, indem Sie sich erneut mit {name} verbinden.',
1809
+ descForStorage: 'Nach dem Trennen von {name} können Sie Blocklet nicht mehr auf dieses DID Space sichern. Sind Sie sicher, dass Sie trennen möchten?\nSie können die Sicherungsoperationen wiederherstellen, indem Sie sich erneut mit {name} verbinden.'
1807
1810
  },
1808
1811
  connect: {
1809
1812
  title: 'Verbinde DID Spaces',
package/lib/locales/en.js CHANGED
@@ -624,7 +624,8 @@ export default {
624
624
  },
625
625
  list: {
626
626
  download: 'Download',
627
- star: 'Star'
627
+ star: 'Star',
628
+ searchPlaceholder: 'Search by Blocklet Name or DID'
628
629
  },
629
630
  component: {
630
631
  container: 'Global Config',
@@ -1810,13 +1811,15 @@ export default {
1810
1811
  label: 'Enter the url of the DID Spaces',
1811
1812
  failed: 'Add DID Spaces failed',
1812
1813
  invalidUrl: 'Invalid DID Spaces gateway url',
1813
- duplicate: 'DID Space({name}) already exist'
1814
+ duplicate: '{name} is already connected to this blocklet'
1814
1815
  },
1815
1816
  delete: {
1816
- title: 'Delete gateway',
1817
- succeeded: 'Delete DID Spaces{name} Success',
1818
- failed: 'Delete gateway failed',
1819
- failedForSelected: 'Unable to delete a selected DID Spaces'
1817
+ title: 'Disconnect',
1818
+ succeeded: 'Successfully disconnected from DID Spaces {name}',
1819
+ failed: 'Failed to disconnect from gateway',
1820
+ failedForSelected: 'Unable to disconnect from the selected DID Spaces',
1821
+ descForBackup: 'After disconnecting from {name}, you will no longer be able to back up Blocklet to this DID Space. Are you sure you want to disconnect?\nYou can restore backup operations by reconnecting to {name}.',
1822
+ descForStorage: 'After disconnecting from {name}, you will no longer be able to store data from this Blocklet to this DID Space. Are you sure you want to disconnect?\nYou can resume data storage by reconnecting to {name}.'
1820
1823
  },
1821
1824
  connect: {
1822
1825
  title: 'Connect DID Spaces',
package/lib/locales/es.js CHANGED
@@ -605,7 +605,8 @@ export default {
605
605
  },
606
606
  list: {
607
607
  download: 'Descargar',
608
- star: 'Estrella'
608
+ star: 'Estrella',
609
+ searchPlaceholder: 'Buscar por nombre de Blocklet o DID'
609
610
  },
610
611
  component: {
611
612
  container: 'Configuración Global',
@@ -1797,13 +1798,15 @@ export default {
1797
1798
  label: 'Por favor ingrese la URL de los Espacios DID',
1798
1799
  failed: 'No se pudo agregar los Espacios de DID',
1799
1800
  invalidUrl: 'URL de puerta de enlace de espacios de DID no válida',
1800
- duplicate: '¿Ya existe el espacio DID ({name})?'
1801
+ duplicate: '{name} ya está conectado a este Blocklet'
1801
1802
  },
1802
1803
  delete: {
1803
- title: 'Eliminar gateway',
1804
- succeeded: 'Eliminar espacios de DID {name} éxito',
1805
- failed: 'Eliminar puerta de enlace falló',
1806
- failedForSelected: 'No se puede eliminar un DID Espacios seleccionado'
1804
+ title: 'Desconectar',
1805
+ succeeded: 'Desconectado de DID Spaces {name}',
1806
+ failed: 'Error al desconectar de la puerta de enlace',
1807
+ failedForSelected: 'No se puede desconectar del DID Space seleccionado',
1808
+ descForBackup: 'Después de desconectar de {name}, no podrás hacer copias de seguridad de Blocklet a este DID Space. ¿Estás seguro de que quieres desconectar?\nPuedes restaurar las operaciones de copia de seguridad conectando nuevamente con {name}.',
1809
+ descForStorage: 'Después de desconectar de {name}, no podrás hacer copias de seguridad de Blocklet a este DID Space. ¿Estás seguro de que quieres desconectar?\nPuedes restaurar las operaciones de copia de seguridad conectando nuevamente con {name}.'
1807
1810
  },
1808
1811
  connect: {
1809
1812
  title: 'Conectar espacios de DID',
package/lib/locales/fr.js CHANGED
@@ -605,7 +605,8 @@ export default {
605
605
  },
606
606
  list: {
607
607
  download: 'Télécharger',
608
- star: 'Étoile'
608
+ star: 'Étoile',
609
+ searchPlaceholder: 'Rechercher par nom de Blocklet ou DID'
609
610
  },
610
611
  component: {
611
612
  container: 'Configuration globale',
@@ -1797,13 +1798,15 @@ export default {
1797
1798
  label: "Entrez l'URL des DID Spaces",
1798
1799
  failed: "Échec de l'ajout des espaces DID",
1799
1800
  invalidUrl: 'URL de passerelle DID Spaces invalide',
1800
- duplicate: 'DID Space({name}) existe déjà'
1801
+ duplicate: '{name} est déjà connecté à ce Blocklet'
1801
1802
  },
1802
1803
  delete: {
1803
- title: 'Supprimer la passerelle',
1804
- succeeded: 'Supprimer DID Spaces {name} Succès',
1805
- failed: 'Échec de la suppression de la passerelle',
1806
- failedForSelected: "Impossible de supprimer l'espace DID sélectionné"
1804
+ title: 'Déconnecter',
1805
+ succeeded: 'Déconnecté de DID Spaces {name}',
1806
+ failed: 'Erreur lors de la déconnexion de la passerelle',
1807
+ failedForSelected: 'Impossible de déconnecter du DID Space sélectionné',
1808
+ descForBackup: 'Après la déconnexion de {name}, vous ne pourrez plus faire de sauvegarde de Blocklet à ce DID Space. Êtes-vous sûr de vouloir déconnecter ?\nVous pouvez restaurer les opérations de sauvegarde en vous reconnectant à {name}.',
1809
+ descForStorage: 'Après la déconnexion de {name}, vous ne pourrez plus faire de sauvegarde de Blocklet à ce DID Space. Êtes-vous sûr de vouloir déconnecter ?\nVous pouvez restaurer les opérations de sauvegarde en vous reconnectant à {name}.'
1807
1810
  },
1808
1811
  connect: {
1809
1812
  title: 'Connectez-vous à DID Spaces',
package/lib/locales/hi.js CHANGED
@@ -605,7 +605,8 @@ export default {
605
605
  },
606
606
  list: {
607
607
  download: 'डाउनलोड करें',
608
- star: 'तारा'
608
+ star: 'तारा',
609
+ searchPlaceholder: 'ब्लॉकलेट नाम या DID से खोजें'
609
610
  },
610
611
  component: {
611
612
  container: 'वैश्विक समाकृति',
@@ -1797,13 +1798,15 @@ export default {
1797
1798
  label: 'DID Spaces के URL दर्ज करें',
1798
1799
  failed: 'DID Spaces जोड़ने में विफल',
1799
1800
  invalidUrl: 'अमान्य डीआईडी स्पेस गेटवे यूआरएल',
1800
- duplicate: 'DID Space({name}) पहले से मौजूद है'
1801
+ duplicate: '{name} पहले से ही इस ब्लॉकलेट से कनेक्ट है'
1801
1802
  },
1802
1803
  delete: {
1803
1804
  title: 'गेटवे को हटाएं',
1804
- succeeded: 'DID स्थान {name} को हटाएँ सफलता',
1805
+ succeeded: 'गेटवे को हटाएं सफलता',
1805
1806
  failed: 'गेटवे हटाना विफल हुआ',
1806
- failedForSelected: 'चयनित डीआईडी स्थानों को हटाने में असमर्थ'
1807
+ failedForSelected: 'चयनित डीआईडी स्थानों को हटाने में असमर्थ',
1808
+ descForBackup: 'गेटवे को हटाने के बाद, आप इस ब्लॉकलेट को इस DID Space से बैकअप नहीं कर सकते हैं। क्या आप इसे हटाना चाहते हैं?',
1809
+ descForStorage: 'गेटवे को हटाने के बाद, आप इस ब्लॉकलेट को इस DID Space से स्टोरेज नहीं कर सकते हैं। क्या आप इसे हटाना चाहते हैं?'
1807
1810
  },
1808
1811
  connect: {
1809
1812
  title: 'जुड़े DID Spaces',
package/lib/locales/id.js CHANGED
@@ -605,7 +605,8 @@ export default {
605
605
  },
606
606
  list: {
607
607
  download: 'Unduh',
608
- star: 'Bintang'
608
+ star: 'Bintang',
609
+ searchPlaceholder: 'Cari nama Bloklet atau DID'
609
610
  },
610
611
  component: {
611
612
  container: 'Konfigurasi Global',
@@ -1797,13 +1798,15 @@ export default {
1797
1798
  label: 'Masukkan URL Ruang DID',
1798
1799
  failed: 'Gagal menambahkan DID Spaces',
1799
1800
  invalidUrl: 'URL gateway ruang DID tidak valid',
1800
- duplicate: 'Ruang DID ({name}) sudah ada'
1801
+ duplicate: '{name} sudah terhubung dengan Blocklet ini'
1801
1802
  },
1802
1803
  delete: {
1803
- title: 'Hapus gateway',
1804
- succeeded: 'Hapus Ruang DID {name} Berhasil.',
1804
+ title: 'Hapus',
1805
+ succeeded: 'Berhasil menghapus DID Spaces {name}',
1805
1806
  failed: 'Gagal menghapus gerbang',
1806
- failedForSelected: 'Tidak dapat menghapus DID Spaces yang dipilih'
1807
+ failedForSelected: 'Tidak dapat menghapus DID Spaces yang dipilih',
1808
+ descForBackup: 'Setelah menghapus {name}, Anda tidak akan dapat membuat cadangan dari Blocklet ke DID Space ini. Apakah Anda yakin ingin menghapus?\nAnda dapat memulihkan operasi pencadangan dengan menghubungkan kembali ke {name}.',
1809
+ descForStorage: 'Setelah menghapus {name}, Anda tidak akan dapat menyimpan data dari Blocklet ke DID Space ini. Apakah Anda yakin ingin menghapus?\nAnda dapat memulihkan operasi penyimpanan dengan menghubungkan kembali ke {name}.'
1807
1810
  },
1808
1811
  connect: {
1809
1812
  title: 'Hubungkan Ruang DID',
package/lib/locales/ja.js CHANGED
@@ -605,7 +605,8 @@ export default {
605
605
  },
606
606
  list: {
607
607
  download: 'ダウンロード',
608
- star: '星'
608
+ star: '星',
609
+ searchPlaceholder: 'ブロックレット名またはDIDで検索'
609
610
  },
610
611
  component: {
611
612
  container: 'グローバル設定',
@@ -1797,13 +1798,15 @@ export default {
1797
1798
  label: 'DID SpacesのURLを入力してください',
1798
1799
  failed: 'DIDスペースの追加に失敗しました',
1799
1800
  invalidUrl: '無効なDIDスペースゲートウェイのURL',
1800
- duplicate: 'DIDスペース({name})は既に存在していますか?'
1801
+ duplicate: '{name} は既にこのBlockletに接続されています'
1801
1802
  },
1802
1803
  delete: {
1803
- title: 'ゲートウェイを削除する',
1804
- succeeded: 'DID スペース {name} の削除に成功しました',
1805
- failed: 'ゲートウェイの削除に失敗しました',
1806
- failedForSelected: '選択したDIDスペースを削除できません'
1804
+ title: '切断',
1805
+ succeeded: 'DID Space {name}を正常に切断しました',
1806
+ failed: '切断に失敗しました',
1807
+ failedForSelected: '選択したDID Spaceを切断できません',
1808
+ descForBackup: '切断後、このBlockletからDID Spaceへのバックアップはできなくなります。切断してもよろしいですか?\n切断後、{name}に再接続することでバックアップ操作を復元できます。',
1809
+ descForStorage: '切断後、このBlockletからDID Spaceへのデータ保存はできなくなります。切断してもよろしいですか?\n切断後、{name}に再接続することでデータ保存操作を復元できます。'
1807
1810
  },
1808
1811
  connect: {
1809
1812
  title: 'DIDスペースを接続する',
package/lib/locales/ko.js CHANGED
@@ -605,7 +605,8 @@ export default {
605
605
  },
606
606
  list: {
607
607
  download: '다운로드',
608
- star: '별'
608
+ star: '별',
609
+ searchPlaceholder: '블록렛 이름 또는 DID로 검색'
609
610
  },
610
611
  component: {
611
612
  container: '글로벌 설정',
@@ -1797,13 +1798,15 @@ export default {
1797
1798
  label: 'DID Spaces의 URL을 입력하세요',
1798
1799
  failed: 'DID 스페이스 추가 실패',
1799
1800
  invalidUrl: '잘못된 DID 공간 게이트웨이 URL',
1800
- duplicate: 'DID 스페이스({name}) 이미 존재합니까?'
1801
+ duplicate: '{name} 은(는) 이미 이 Blocklet에 연결되어 있습니다'
1801
1802
  },
1802
1803
  delete: {
1803
- title: '게이트웨이 삭제하기',
1804
- succeeded: 'DID 공간 {name} 삭제 성공',
1805
- failed: '게이트웨이 삭제 실패',
1806
- failedForSelected: '선택한 DID 스페이스를 삭제할 수 없습니다'
1804
+ title: '연결 해제',
1805
+ succeeded: 'DID Space {name}을(를) 성공적으로 연결 해제했습니다',
1806
+ failed: '연결 해제에 실패했습니다',
1807
+ failedForSelected: '선택한 DID Space를 연결 해제할 수 없습니다',
1808
+ descForBackup: '연결 해제 후, 이 Blocklet에서 이 DID Space로의 백업은 불가능합니다. 연결 해제하시겠습니까?\n연결 해제 후, {name}에 다시 연결하여 백업 작업을 복원할 수 있습니다.',
1809
+ descForStorage: '연결 해제 후, 이 Blocklet에서 이 DID Space로의 데이터 저장은 불가능합니다. 연결 해제하시겠습니까?\n연결 해제 후, {name}에 다시 연결하여 데이터 저장 작업을 복원할 수 있습니다.'
1807
1810
  },
1808
1811
  connect: {
1809
1812
  title: 'DID 공간 연결하기',
package/lib/locales/pt.js CHANGED
@@ -605,7 +605,8 @@ export default {
605
605
  },
606
606
  list: {
607
607
  download: 'Baixar',
608
- star: 'Estrela'
608
+ star: 'Estrela',
609
+ searchPlaceholder: 'Pesquise por nome do Blocklet ou DID'
609
610
  },
610
611
  component: {
611
612
  container: 'Configuração Global',
@@ -1797,13 +1798,15 @@ export default {
1797
1798
  label: 'Digite a URL dos Espaços DID',
1798
1799
  failed: 'Falha ao adicionar DID Spaces',
1799
1800
  invalidUrl: 'URL de gateway de espaços DID inválida',
1800
- duplicate: 'O espaço DID ({name})existe'
1801
+ duplicate: '{name} já está conectado a este Blocklet'
1801
1802
  },
1802
1803
  delete: {
1803
- title: 'Excluir gateway',
1804
- succeeded: 'Espaços DIDs {name} excluídos com sucesso.',
1805
- failed: 'Falha ao excluir o gateway',
1806
- failedForSelected: 'Não é possível excluir um DID Spaces selecionado'
1804
+ title: 'Desconectar',
1805
+ succeeded: 'DID Space {name} desconectado com sucesso',
1806
+ failed: 'Falha ao desconectar',
1807
+ failedForSelected: 'Não é possível desconectar um DID Space selecionado',
1808
+ descForBackup: 'Após desconectar de {name}, você não poderá mais fazer backup deste Blocklet para este DID Space. Você deseja desconectar?',
1809
+ descForStorage: 'Após desconectar de {name}, você não poderá mais fazer backup deste Blocklet para este DID Space. Você deseja desconectar?'
1807
1810
  },
1808
1811
  connect: {
1809
1812
  title: 'Conecte os Espaços de DID',
package/lib/locales/ru.js CHANGED
@@ -605,7 +605,8 @@ export default {
605
605
  },
606
606
  list: {
607
607
  download: 'Скачать',
608
- star: 'Звезда'
608
+ star: 'Звезда',
609
+ searchPlaceholder: 'Поиск по названию блоклета или DID'
609
610
  },
610
611
  component: {
611
612
  container: 'Глобальная конфигурация',
@@ -1797,13 +1798,15 @@ export default {
1797
1798
  label: 'Введите URL-адрес DID Spaces',
1798
1799
  failed: 'Не удалось добавить пространства DID',
1799
1800
  invalidUrl: 'Неверный URL-адрес шлюза DID Spaces',
1800
- duplicate: 'Пространство DID({name}) уже существует'
1801
+ duplicate: '{name} уже подключен к этому Blocklet'
1801
1802
  },
1802
1803
  delete: {
1803
- title: 'Удалить шлюз',
1804
- succeeded: 'Успешное удаление DID Spaces {name}',
1805
- failed: 'Не удалось удалить шлюз',
1806
- failedForSelected: 'Невозможно удалить выбранное пространство DID'
1804
+ title: 'Отключить',
1805
+ succeeded: 'DID Space {name} отключен успешно',
1806
+ failed: 'Не удалось отключить',
1807
+ failedForSelected: 'Не удается отключить выбранный DID Space',
1808
+ descForBackup: 'После отключения от {name}, вы не сможете больше делать резервную копию этого Blocklet в этот DID Space. Вы хотите отключить?',
1809
+ descForStorage: 'После отключения от {name}, вы не сможете больше делать резервную копию этого Blocklet в этот DID Space. Вы хотите отключить?'
1807
1810
  },
1808
1811
  connect: {
1809
1812
  title: 'Подключиться к DID Spaces',
package/lib/locales/th.js CHANGED
@@ -605,7 +605,8 @@ export default {
605
605
  },
606
606
  list: {
607
607
  download: 'ดาวน์โหลด',
608
- star: 'ดาว'
608
+ star: 'ดาว',
609
+ searchPlaceholder: 'ค้นหาโดยชื่อบล็อกเล็ตหรือ DID'
609
610
  },
610
611
  component: {
611
612
  container: 'การตั้งค่าทั่วโลก',
@@ -1797,13 +1798,15 @@ export default {
1797
1798
  label: 'ป้อน URL ของพื้นที่ DID',
1798
1799
  failed: 'เพิ่ม DID Spaces ล้มเหลว',
1799
1800
  invalidUrl: 'URL ของเกตเวย์พื้นที่ DID ไม่ถูกต้อง',
1800
- duplicate: 'มีพื้นที่ DID ({name}) อยู่แล้ว'
1801
+ duplicate: '{name} เชื่อมต่อกับ blocklet นี้แล้ว'
1801
1802
  },
1802
1803
  delete: {
1803
- title: 'ลบเกตเวย์',
1804
- succeeded: 'ลบพื้นที่ DID {name} สำเร็จแล้ว.',
1805
- failed: 'การลบเกตเวย์ล้มเหลว',
1806
- failedForSelected: 'ไม่สามารถลบ DID Spaces ที่เลือกได้'
1804
+ title: 'ลบ',
1805
+ succeeded: 'ลบ DID Space {name} สำเร็จแล้ว',
1806
+ failed: 'การลบล้มเหลว',
1807
+ failedForSelected: 'ไม่สามารถลบ DID Space ที่เลือกได้',
1808
+ descForBackup: 'หลังจากลบ {name}, คุณจะไม่สามารถสำรองข้อมูลจาก Blocklet นี้ไปยัง DID Space นี้ได้อีกต่อไป คุณต้องการลบหรือไม่?',
1809
+ descForStorage: 'หลังจากลบ {name}, คุณจะไม่สามารถสำรองข้อมูลจาก Blocklet นี้ไปยัง DID Space นี้ได้อีกต่อไป คุณต้องการลบหรือไม่?'
1807
1810
  },
1808
1811
  connect: {
1809
1812
  title: 'เชื่อมต่อห้อง DID Spaces',
package/lib/locales/vi.js CHANGED
@@ -605,7 +605,8 @@ export default {
605
605
  },
606
606
  list: {
607
607
  download: 'Tải xuống',
608
- star: 'Ngôi sao'
608
+ star: 'Ngôi sao',
609
+ searchPlaceholder: 'Tìm kiếm theo tên khối hoặc DID'
609
610
  },
610
611
  component: {
611
612
  container: 'Cấu hình Toàn cầu',
@@ -1797,13 +1798,15 @@ export default {
1797
1798
  label: 'Nhập URL của Không gian DID',
1798
1799
  failed: 'Thêm DID Spaces thất bại',
1799
1800
  invalidUrl: 'URL cổng không gian DID không hợp lệ',
1800
- duplicate: 'DID Space ({name}) đã tồn tại'
1801
+ duplicate: '{name} đã được kết nối với Blocklet này'
1801
1802
  },
1802
1803
  delete: {
1803
- title: 'Xóa cổng kết nối',
1804
- succeeded: 'Xóa Dịch vụ DID Thành công {name}.',
1805
- failed: 'Xóa cổng không thành công',
1806
- failedForSelected: 'Không thể xóa DID Spaces đã chọn'
1804
+ title: 'Ngắt kết nối',
1805
+ succeeded: 'Ngắt kết nối DID Space {name} thành công',
1806
+ failed: 'Ngắt kết nối thất bại',
1807
+ failedForSelected: 'Không thể ngắt kết nối DID Space đã chọn',
1808
+ descForBackup: 'Sau khi ngắt kết nối từ {name}, bạn sẽ không thể sao lưu dữ liệu từ Blocklet này đến DID Space này nữa. Bạn có muốn ngắt kết nối?',
1809
+ descForStorage: 'Sau khi ngắt kết nối từ {name}, bạn sẽ không thể lưu dữ liệu từ Blocklet này đến DID Space này nữa. Bạn có muốn ngắt kết nối?'
1807
1810
  },
1808
1811
  connect: {
1809
1812
  title: 'Kết nối DID Spaces',
@@ -605,7 +605,8 @@ export default {
605
605
  },
606
606
  list: {
607
607
  download: '下載',
608
- star: '星'
608
+ star: '星',
609
+ searchPlaceholder: '按 Blocklet 名稱或 DID 搜尋'
609
610
  },
610
611
  component: {
611
612
  container: '全球配置',
@@ -1797,13 +1798,15 @@ export default {
1797
1798
  label: '請輸入DID Spaces的網址',
1798
1799
  failed: '添加DID空間失敗',
1799
1800
  invalidUrl: '無效的DID空間網關URL',
1800
- duplicate: 'DID空間({name})已經存在嗎?'
1801
+ duplicate: '{name} 已連接到此 Blocklet'
1801
1802
  },
1802
1803
  delete: {
1803
- title: '刪除網關',
1804
- succeeded: '刪除 DID 空間 {name} 成功',
1805
- failed: '刪除閘道失敗',
1806
- failedForSelected: '無法刪除所選的DID空間'
1804
+ title: '斷開連接',
1805
+ succeeded: '成功斷開連接 DID Space {name}',
1806
+ failed: '斷開連接失敗',
1807
+ failedForSelected: '無法斷開連接所選的 DID Space',
1808
+ descForBackup: '斷開連接後,您將無法再將此Blocklet的數據備份到此 DID Space。您確定要斷開連接嗎?\n斷開連接後,您可以重新連接到{name}以恢復備份操作。',
1809
+ descForStorage: '斷開連接後,您將無法再將此Blocklet的數據備份到此 DID Space。您確定要斷開連接嗎?\n斷開連接後,您可以重新連接到{name}以恢復備份操作。'
1807
1810
  },
1808
1811
  connect: {
1809
1812
  title: '連接DID空間',
package/lib/locales/zh.js CHANGED
@@ -619,7 +619,8 @@ export default {
619
619
  },
620
620
  list: {
621
621
  download: '下载数',
622
- star: '收藏数'
622
+ star: '收藏数',
623
+ searchPlaceholder: '按 Blocklet 名称或 DID 搜索'
623
624
  },
624
625
  component: {
625
626
  container: '全局配置',
@@ -1809,13 +1810,15 @@ export default {
1809
1810
  label: '输入 DID Spaces 的地址',
1810
1811
  failed: '添加 DID Spaces 失败',
1811
1812
  invalidUrl: '无效的 DID Spaces 网关地址',
1812
- duplicate: 'DID Space({name}) 已存在'
1813
+ duplicate: '{name} 已连接到此 Blocklet'
1813
1814
  },
1814
1815
  delete: {
1815
- title: '删除 DID Spaces',
1816
- succeeded: '删除 DID Spaces{name} 成功',
1817
- failed: '删除 DID Spaces 失败',
1818
- failedForSelected: '无法删除一个已选中的 DID Spaces'
1816
+ title: '断开连接',
1817
+ succeeded: '成功断开连接 DID Space {name}',
1818
+ failed: '断开连接失败',
1819
+ failedForSelected: '无法断开连接所选的 DID Space',
1820
+ descForBackup: '断开连接后,您将无法再将此 Blocklet 的数据备份到此 DID Space。您确定要断开连接吗?\n断开连接后,您可以重新连接到 {name} 以恢复备份操作。',
1821
+ descForStorage: '断开连接后,您将无法再将此 Blocklet 的数据备份到此 DID Space。您确定要断开连接吗?\n断开连接后,您可以重新连接到 {name} 以恢复备份操作。'
1819
1822
  },
1820
1823
  connect: {
1821
1824
  title: '连接到 DID Spaces',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/ux",
3
- "version": "1.16.34",
3
+ "version": "1.16.35",
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.34",
29
- "@abtnode/constant": "1.16.34",
30
- "@abtnode/util": "1.16.34",
28
+ "@abtnode/auth": "1.16.35",
29
+ "@abtnode/constant": "1.16.35",
30
+ "@abtnode/util": "1.16.35",
31
31
  "@ahooksjs/use-url-state": "^3.5.1",
32
32
  "@arcblock/did": "^1.18.162",
33
33
  "@arcblock/did-connect": "^2.11.1",
@@ -37,13 +37,13 @@
37
37
  "@arcblock/react-hooks": "^2.11.1",
38
38
  "@arcblock/terminal": "^2.11.1",
39
39
  "@arcblock/ux": "^2.11.1",
40
- "@blocklet/constant": "1.16.34",
40
+ "@blocklet/constant": "1.16.35",
41
41
  "@blocklet/did-domain-react": "^0.3.45",
42
42
  "@blocklet/did-space-react": "^0.5.82",
43
- "@blocklet/js-sdk": "1.16.34",
43
+ "@blocklet/js-sdk": "1.16.35",
44
44
  "@blocklet/launcher-layout": "^2.11.1",
45
45
  "@blocklet/list": "^0.15.9",
46
- "@blocklet/meta": "1.16.34",
46
+ "@blocklet/meta": "1.16.35",
47
47
  "@blocklet/ui-react": "^2.11.1",
48
48
  "@blocklet/uploader": "^0.1.58",
49
49
  "@emotion/react": "^11.10.4",
@@ -114,5 +114,5 @@
114
114
  "jest": "^29.7.0",
115
115
  "jest-environment-jsdom": "^29.7.0"
116
116
  },
117
- "gitHead": "843b12c2cbf9c11497dea690783735f0a83551c9"
117
+ "gitHead": "a1888a5814c97a1cf6adfcee4e4d0721eabba7c3"
118
118
  }