@abtnode/ux 1.16.27-beta-91ff0d1b → 1.16.27-beta-c450492a
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/configuration.js +28 -9
- package/es/locales/ar.js +5 -0
- package/es/locales/de.js +5 -0
- package/es/locales/en.js +5 -0
- package/es/locales/es.js +5 -0
- package/es/locales/fr.js +5 -0
- package/es/locales/hi.js +5 -0
- package/es/locales/i18n.db +0 -0
- package/es/locales/id.js +5 -0
- package/es/locales/ja.js +5 -0
- package/es/locales/ko.js +5 -0
- package/es/locales/pt.js +5 -0
- package/es/locales/ru.js +5 -0
- package/es/locales/th.js +5 -0
- package/es/locales/vi.js +5 -0
- package/es/locales/zh-tw.js +5 -0
- package/es/locales/zh.js +5 -0
- package/lib/actions.js +1 -1
- package/lib/blocklet/actions.js +1 -1
- package/lib/blocklet/add-cert.js +1 -1
- package/lib/blocklet/app-avatar.js +1 -1
- package/lib/blocklet/bundle-avatar.js +1 -1
- package/lib/blocklet/component/add-component-core.js +1 -1
- package/lib/blocklet/component/did-space/connect-to.js +1 -1
- package/lib/blocklet/component/did-space/item.js +1 -1
- package/lib/blocklet/component/domain-list.js +1 -1
- package/lib/blocklet/component/index.js +1 -1
- package/lib/blocklet/component/navigation/simple-select.js +1 -1
- package/lib/blocklet/component/setting.js +1 -1
- package/lib/blocklet/component/space-connector.js +1 -1
- package/lib/blocklet/component/space-selector.js +1 -1
- package/lib/blocklet/component/store-blocklet-list.js +1 -1
- package/lib/blocklet/component/switch-control.js +1 -1
- package/lib/blocklet/configuration.js +28 -9
- package/lib/blocklet/disk-info.js +1 -1
- package/lib/blocklet/log.js +1 -1
- package/lib/blocklet/mode.js +1 -1
- package/lib/blocklet/page-group.js +1 -1
- package/lib/blocklet/preferences/index.js +1 -1
- package/lib/blocklet/purchase/component-purchase.js +1 -1
- package/lib/blocklet/resource-type.js +1 -1
- package/lib/blocklet/router/add-domain.js +1 -1
- package/lib/blocklet/router/dns-tip.js +1 -1
- package/lib/blocklet/runtime-info.js +1 -1
- package/lib/blocklet/status.js +1 -1
- package/lib/blocklet/storage/action.js +1 -1
- package/lib/blocklet/storage/auto-check-update.js +1 -1
- package/lib/blocklet/storage/item.js +1 -1
- package/lib/blocklet/version.js +1 -1
- package/lib/clear-cache.js +1 -1
- package/lib/click-to-copy.js +1 -1
- package/lib/confirm.js +1 -1
- package/lib/did-address.js +1 -1
- package/lib/empty-spinner.js +1 -1
- package/lib/form/form-autocomplete-input.js +1 -1
- package/lib/form/form-select-input.js +1 -1
- package/lib/form/form-text-input.js +1 -1
- package/lib/images.js +1 -1
- package/lib/invitation/invitation-app.js +1 -1
- package/lib/launch-blocklet/content-layout.js +1 -1
- package/lib/locales/ar.js +5 -0
- package/lib/locales/de.js +5 -0
- package/lib/locales/en.js +5 -0
- package/lib/locales/es.js +5 -0
- package/lib/locales/fr.js +5 -0
- package/lib/locales/hi.js +5 -0
- package/lib/locales/i18n.db +0 -0
- package/lib/locales/id.js +5 -0
- package/lib/locales/ja.js +5 -0
- package/lib/locales/ko.js +5 -0
- package/lib/locales/pt.js +5 -0
- package/lib/locales/ru.js +5 -0
- package/lib/locales/th.js +5 -0
- package/lib/locales/vi.js +5 -0
- package/lib/locales/zh-tw.js +5 -0
- package/lib/locales/zh.js +5 -0
- package/lib/logs/log-terminal.js +1 -1
- package/lib/nav-logo.js +1 -1
- package/lib/notifications/tag.js +1 -1
- package/lib/passport-tag.js +1 -1
- package/lib/relative-time.js +1 -1
- package/lib/schema-form/passport-input.js +1 -1
- package/lib/schema-form/text-input.js +1 -1
- package/lib/store/item.js +1 -1
- package/lib/subscription/blocklet.js +1 -1
- package/lib/subscription/server.js +1 -1
- package/lib/tag.js +1 -1
- package/lib/team/members/member.js +1 -1
- package/lib/team/members/passport-item.js +1 -1
- package/lib/team/search-input.js +1 -1
- package/package.json +19 -19
|
@@ -10,7 +10,7 @@ import { LocaleContext } from '@arcblock/ux/lib/Locale/context';
|
|
|
10
10
|
import Button from '@arcblock/ux/lib/Button';
|
|
11
11
|
import LoopIcon from '@mui/icons-material/Loop';
|
|
12
12
|
import { EVENTS } from '@abtnode/constant';
|
|
13
|
-
import { BLOCKLET_CONFIGURABLE_KEY, SUPPORTED_LANGUAGES } from '@blocklet/constant';
|
|
13
|
+
import { BLOCKLET_CONFIGURABLE_KEY, BLOCKLET_TENANT_MODES, SUPPORTED_LANGUAGES } from '@blocklet/constant';
|
|
14
14
|
import { getWhoCanAccess } from '@blocklet/meta/lib/util';
|
|
15
15
|
import Toast from '@arcblock/ux/lib/Toast';
|
|
16
16
|
import FormTextInput from '../form/form-text-input';
|
|
@@ -83,6 +83,8 @@ function BlockletEnvironment({
|
|
|
83
83
|
const deletable = !customDelete || customDelete.value === 'yes';
|
|
84
84
|
const customLanguages = blocklet.environments.find(x => x.key === BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LANGUAGES);
|
|
85
85
|
const customUrl = blocklet.environments.find(x => x.key === BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL);
|
|
86
|
+
const customTenantMode = blocklet.environments.find(x => x.key === BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_TENANT_MODE);
|
|
87
|
+
const tenantMode = customTenantMode?.value || BLOCKLET_TENANT_MODES.SINGLE;
|
|
86
88
|
const copyrightOwner = blocklet.environments.find(x => x.key === BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_OWNER);
|
|
87
89
|
const copyrightYear = blocklet.environments.find(x => x.key === BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_YEAR);
|
|
88
90
|
const configurableEnvs = [{
|
|
@@ -172,7 +174,7 @@ function BlockletEnvironment({
|
|
|
172
174
|
setLoading(false);
|
|
173
175
|
}
|
|
174
176
|
};
|
|
175
|
-
const
|
|
177
|
+
const createBooleanConfigHandler = (key, value) => async e => {
|
|
176
178
|
if (loading) {
|
|
177
179
|
return;
|
|
178
180
|
}
|
|
@@ -187,8 +189,8 @@ function BlockletEnvironment({
|
|
|
187
189
|
input: {
|
|
188
190
|
did: blocklet.meta.did,
|
|
189
191
|
configs: [{
|
|
190
|
-
key: BLOCKLET_CONFIGURABLE_KEY
|
|
191
|
-
value: checked
|
|
192
|
+
key: BLOCKLET_CONFIGURABLE_KEY[key],
|
|
193
|
+
value: value(checked)
|
|
192
194
|
}]
|
|
193
195
|
}
|
|
194
196
|
});
|
|
@@ -199,6 +201,8 @@ function BlockletEnvironment({
|
|
|
199
201
|
setLoading(false);
|
|
200
202
|
}
|
|
201
203
|
};
|
|
204
|
+
const onDeletableChange = createBooleanConfigHandler('BLOCKLET_DELETABLE', checked => checked ? 'no' : 'yes');
|
|
205
|
+
const onTenantModeChange = createBooleanConfigHandler('BLOCKLET_APP_TENANT_MODE', checked => checked ? BLOCKLET_TENANT_MODES.MULTIPLE : BLOCKLET_TENANT_MODES.SINGLE);
|
|
202
206
|
const onUpdateCors = async value => {
|
|
203
207
|
const oldValue = site.corsAllowedOrigins || [];
|
|
204
208
|
const newValue = value.split(',').map(x => x.trim()).filter(Boolean);
|
|
@@ -261,7 +265,7 @@ function BlockletEnvironment({
|
|
|
261
265
|
style: {
|
|
262
266
|
marginTop: 0
|
|
263
267
|
},
|
|
264
|
-
disabled:
|
|
268
|
+
disabled: disabled,
|
|
265
269
|
loading: loading,
|
|
266
270
|
initialValue: item.value,
|
|
267
271
|
onSubmit: value => onSubmitConfig(item.key, value)
|
|
@@ -356,7 +360,7 @@ function BlockletEnvironment({
|
|
|
356
360
|
style: {
|
|
357
361
|
marginTop: 0
|
|
358
362
|
},
|
|
359
|
-
disabled:
|
|
363
|
+
disabled: disabled,
|
|
360
364
|
loading: loading,
|
|
361
365
|
options: languages,
|
|
362
366
|
noEmpty: true,
|
|
@@ -402,7 +406,7 @@ function BlockletEnvironment({
|
|
|
402
406
|
style: {
|
|
403
407
|
marginTop: 0
|
|
404
408
|
},
|
|
405
|
-
disabled:
|
|
409
|
+
disabled: disabled,
|
|
406
410
|
loading: loading,
|
|
407
411
|
initialValue: (site.corsAllowedOrigins || []).join(', '),
|
|
408
412
|
onSubmit: onUpdateCors
|
|
@@ -425,7 +429,6 @@ function BlockletEnvironment({
|
|
|
425
429
|
},
|
|
426
430
|
children: [/*#__PURE__*/_jsx(Box, {
|
|
427
431
|
className: "config-form",
|
|
428
|
-
mt: 2,
|
|
429
432
|
children: !inService && /*#__PURE__*/_jsxs(Box, {
|
|
430
433
|
className: "config-item",
|
|
431
434
|
children: [/*#__PURE__*/_jsxs(Box, {
|
|
@@ -450,7 +453,7 @@ function BlockletEnvironment({
|
|
|
450
453
|
mb: 0,
|
|
451
454
|
children: t('blocklet.config.sk')
|
|
452
455
|
}), /*#__PURE__*/_jsx(AppSk, {
|
|
453
|
-
disabled:
|
|
456
|
+
disabled: disabled,
|
|
454
457
|
loading: loading,
|
|
455
458
|
initialValue: blocklet.environments.find(x => x.key === 'BLOCKLET_APP_SK').value,
|
|
456
459
|
onChange: onAppSkChange
|
|
@@ -506,6 +509,22 @@ function BlockletEnvironment({
|
|
|
506
509
|
teamDid: did
|
|
507
510
|
})]
|
|
508
511
|
})
|
|
512
|
+
}), /*#__PURE__*/_jsx(Box, {
|
|
513
|
+
className: "config-form",
|
|
514
|
+
children: /*#__PURE__*/_jsxs(Box, {
|
|
515
|
+
className: "config-item",
|
|
516
|
+
children: [/*#__PURE__*/_jsxs(Box, {
|
|
517
|
+
className: "config-label",
|
|
518
|
+
children: [t('blocklet.config.tenantMode.name'), /*#__PURE__*/_jsx(Box, {
|
|
519
|
+
className: "config-desc",
|
|
520
|
+
children: t(`blocklet.config.tenantMode.${tenantMode}`)
|
|
521
|
+
})]
|
|
522
|
+
}), /*#__PURE__*/_jsx(Switch, {
|
|
523
|
+
disabled: disabled,
|
|
524
|
+
checked: tenantMode === BLOCKLET_TENANT_MODES.MULTIPLE,
|
|
525
|
+
onChange: onTenantModeChange
|
|
526
|
+
})]
|
|
527
|
+
})
|
|
509
528
|
})]
|
|
510
529
|
})]
|
|
511
530
|
});
|
package/es/locales/ar.js
CHANGED
|
@@ -504,6 +504,11 @@ export default {
|
|
|
504
504
|
action: 'مسح الذاكرة المؤقتة',
|
|
505
505
|
success: 'تم مسح {count} إدخالات التخزين المؤقت بنجاح',
|
|
506
506
|
description: 'هل أنت متأكد أنك تريد مسح الملفات المخزنة المؤقتة في جهاز التوجيه وخدمة كتلة الحجب؟ قد يتسبب هذا الإجراء في تراجع طفيف في الأداء على المدى القصير.'
|
|
507
|
+
},
|
|
508
|
+
tenantMode: {
|
|
509
|
+
name: 'وضع العديد من المستأجرين',
|
|
510
|
+
multiple: 'يعمل هذا البلوكليت في وضع عدة مستأجرين ، يجب عزل البيانات لكل مستأجر',
|
|
511
|
+
single: 'تعمل هذه البرمجية النصية في وضع المستأجر الواحد ، حيث يتم مشاركة جميع البيانات.'
|
|
507
512
|
}
|
|
508
513
|
},
|
|
509
514
|
overview: {
|
package/es/locales/de.js
CHANGED
|
@@ -504,6 +504,11 @@ export default {
|
|
|
504
504
|
action: 'Cache löschen',
|
|
505
505
|
success: 'Erfolgreich {count} Cache-Einträge gelöscht',
|
|
506
506
|
description: 'Bist du sicher, dass du zwischengespeicherte Dateien im Router und Blocklet-Service löschen möchtest? Diese Operation kann in naher Zukunft zu einer leichten Leistungseinbuße führen.'
|
|
507
|
+
},
|
|
508
|
+
tenantMode: {
|
|
509
|
+
name: 'Mehrere Mandantenmodus',
|
|
510
|
+
multiple: 'Dieses Blocklet läuft im Mehrmandantenmodus, Daten sollten für jeden Mandanten isoliert sein',
|
|
511
|
+
single: 'Dieser Blocklet läuft im Einzelmandantenmodus, alle Daten werden geteilt.'
|
|
507
512
|
}
|
|
508
513
|
},
|
|
509
514
|
overview: {
|
package/es/locales/en.js
CHANGED
|
@@ -434,6 +434,11 @@ export default {
|
|
|
434
434
|
enable: 'This blocklet can NOT currently be deleted',
|
|
435
435
|
disable: 'This blocklet can currently be deleted'
|
|
436
436
|
},
|
|
437
|
+
tenantMode: {
|
|
438
|
+
name: 'Multiple Tenant Mode',
|
|
439
|
+
multiple: 'This blocklet runs in multiple tenant mode, data should be isolated for each tenant',
|
|
440
|
+
single: 'This blocklet runs in single tenant mode, all data are shared'
|
|
441
|
+
},
|
|
437
442
|
walletType: {
|
|
438
443
|
name: 'Wallet Type',
|
|
439
444
|
description: 'Blocklet instance wallet type, will change the derived DID'
|
package/es/locales/es.js
CHANGED
|
@@ -504,6 +504,11 @@ export default {
|
|
|
504
504
|
action: 'Borrar caché',
|
|
505
505
|
success: 'Se eliminaron correctamente {count} entradas de caché',
|
|
506
506
|
description: '¿Estás seguro de que quieres borrar los archivos en caché en el router y el servicio de blocklet? Esta operación puede causar una ligera disminución en el rendimiento a corto plazo.'
|
|
507
|
+
},
|
|
508
|
+
tenantMode: {
|
|
509
|
+
name: 'Modo Multitenante Múltiple',
|
|
510
|
+
multiple: 'Este blocklet se ejecuta en modo de múltiples inquilinos, los datos deben estar aislados para cada inquilino',
|
|
511
|
+
single: 'Este blocklet se ejecuta en modo de inquilino único, todos los datos son compartidos'
|
|
507
512
|
}
|
|
508
513
|
},
|
|
509
514
|
overview: {
|
package/es/locales/fr.js
CHANGED
|
@@ -504,6 +504,11 @@ export default {
|
|
|
504
504
|
action: 'Effacer le cache',
|
|
505
505
|
success: '{count} entrées de cache effacées avec succès',
|
|
506
506
|
description: 'Êtes-vous sûr de vouloir effacer les fichiers mis en cache dans le routeur et le service de blocage? Cette opération peut entraîner une légère baisse des performances à court terme.'
|
|
507
|
+
},
|
|
508
|
+
tenantMode: {
|
|
509
|
+
name: 'Mode multi-locataire',
|
|
510
|
+
multiple: 'Ce bloclet fonctionne en mode locataire multiple, les données doivent être isolées pour chaque locataire',
|
|
511
|
+
single: 'Ce blocklet fonctionne en mode locataire unique, toutes les données sont partagées.'
|
|
507
512
|
}
|
|
508
513
|
},
|
|
509
514
|
overview: {
|
package/es/locales/hi.js
CHANGED
|
@@ -504,6 +504,11 @@ export default {
|
|
|
504
504
|
action: 'कैश साफ़ करें',
|
|
505
505
|
success: '{count} कैश एंट्री सफलतापूर्वक खाली की गईं',
|
|
506
506
|
description: 'क्या आप सुनिश्चित हैं कि आप राउटर और ब्लॉकलेट सेवा में कैश की फ़ाइलें साफ़ करना चाहते हैं? यह ऑपरेशन छोटी अवधि में हल्की प्रदर्शनमाप में कमी का कारण बन सकता है।'
|
|
507
|
+
},
|
|
508
|
+
tenantMode: {
|
|
509
|
+
name: 'एकाधिक किराये के लोगों का मोड',
|
|
510
|
+
multiple: 'यह ब्लॉकलेट मल्टी-किरायेदार मोड में चलता है, प्रत्येक किरायेदार के लिए डाटा अलग होना चाहिए',
|
|
511
|
+
single: 'यह ब्लॉकलेट सिंगल टेनेंट मोड में चलता है, सभी डेटा साझा किए जाते हैं।'
|
|
507
512
|
}
|
|
508
513
|
},
|
|
509
514
|
overview: {
|
package/es/locales/i18n.db
CHANGED
|
Binary file
|
package/es/locales/id.js
CHANGED
|
@@ -504,6 +504,11 @@ export default {
|
|
|
504
504
|
action: 'Bersihkan Cache',
|
|
505
505
|
success: 'Berhasil membersihkan {count} entri cache',
|
|
506
506
|
description: 'Apakah Anda yakin ingin menghapus file yang di-cache di router dan layanan blocklet? Operasi ini mungkin menyebabkan penurunan kinerja yang sedikit dalam jangka pendek.'
|
|
507
|
+
},
|
|
508
|
+
tenantMode: {
|
|
509
|
+
name: 'Mode Sewa Multipel',
|
|
510
|
+
multiple: 'Blocklet ini berjalan dalam mode penyewa ganda, data harus diisolasi untuk setiap penyewa',
|
|
511
|
+
single: 'Blok ini berjalan dalam mode penyewa tunggal, semua data dibagikan'
|
|
507
512
|
}
|
|
508
513
|
},
|
|
509
514
|
overview: {
|
package/es/locales/ja.js
CHANGED
|
@@ -504,6 +504,11 @@ export default {
|
|
|
504
504
|
action: 'キャッシュをクリア',
|
|
505
505
|
success: '{count}つのキャッシュエントリーを正常にクリアしました',
|
|
506
506
|
description: 'ルーターとブロックレットサービスのキャッシュファイルを削除してもよろしいですか?この操作により、短期間の間に少しパフォーマンスが低下する可能性があります。'
|
|
507
|
+
},
|
|
508
|
+
tenantMode: {
|
|
509
|
+
name: 'マルチテナントモード',
|
|
510
|
+
multiple: 'このブロックレットは複数のテナントモードで実行され、各テナントごとにデータが分離される必要があります',
|
|
511
|
+
single: 'このブロックレットはシングルテナントモードで実行され、すべてのデータが共有されています'
|
|
507
512
|
}
|
|
508
513
|
},
|
|
509
514
|
overview: {
|
package/es/locales/ko.js
CHANGED
|
@@ -504,6 +504,11 @@ export default {
|
|
|
504
504
|
action: '캐시 지우기',
|
|
505
505
|
success: '{count}개의 캐시 엔트리를 성공적으로 지웠습니다',
|
|
506
506
|
description: '라우터와 블록렛 서비스에서 캐시 파일을 지우시겠습니까? 이 작업은 단기간 내에 약간의 성능 저하를 일으킬 수 있습니다.'
|
|
507
|
+
},
|
|
508
|
+
tenantMode: {
|
|
509
|
+
name: '다중 테넌트 모드',
|
|
510
|
+
multiple: '이 블록렛은 여러 테넌트 모드에서 실행되며 각 테넌트마다 데이터가 격리되어야 합니다',
|
|
511
|
+
single: '이 블록렛은 단일 테넌트 모드에서 실행되며, 모든 데이터가 공유됩니다'
|
|
507
512
|
}
|
|
508
513
|
},
|
|
509
514
|
overview: {
|
package/es/locales/pt.js
CHANGED
|
@@ -504,6 +504,11 @@ export default {
|
|
|
504
504
|
action: 'Limpar Cache',
|
|
505
505
|
success: 'Entradas do cache {count} limpas com sucesso',
|
|
506
506
|
description: 'Você tem certeza de que deseja limpar os arquivos em cache no roteador e no serviço de bloco? Essa operação pode causar uma pequena redução de desempenho a curto prazo.'
|
|
507
|
+
},
|
|
508
|
+
tenantMode: {
|
|
509
|
+
name: 'Modo de Vários Locatários',
|
|
510
|
+
multiple: 'Este bloco funciona no modo de múltiplos inquilinos, os dados devem ser isolados para cada inquilino',
|
|
511
|
+
single: 'Este bloco de código é executado no modo de locatário único, todos os dados são compartilhados'
|
|
507
512
|
}
|
|
508
513
|
},
|
|
509
514
|
overview: {
|
package/es/locales/ru.js
CHANGED
|
@@ -504,6 +504,11 @@ export default {
|
|
|
504
504
|
action: 'Очистить кэш',
|
|
505
505
|
success: 'Успешно очищено {count} записей кэша',
|
|
506
506
|
description: 'Вы уверены, что хотите очистить кэшированные файлы в маршрутизаторе и службе блокировки? Эта операция может вызвать незначительное снижение производительности в короткой перспективе.'
|
|
507
|
+
},
|
|
508
|
+
tenantMode: {
|
|
509
|
+
name: 'Режим нескольких арендаторов',
|
|
510
|
+
multiple: 'Этот блоклет работает в режиме множественных арендодателей, данные должны быть изолированы для каждого арендодателя',
|
|
511
|
+
single: 'Этот блоклет работает в режиме с одним арендатором, все данные общие.'
|
|
507
512
|
}
|
|
508
513
|
},
|
|
509
514
|
overview: {
|
package/es/locales/th.js
CHANGED
|
@@ -504,6 +504,11 @@ export default {
|
|
|
504
504
|
action: 'ล้างแคช',
|
|
505
505
|
success: 'ล้าง {count} รายการแคชเรียบร้อยแล้ว',
|
|
506
506
|
description: 'คุณแน่ใจไหมว่าต้องการล้างแคชไฟล์ที่เก็บไว้ในเราเตอร์และบริการบล็อกเล็ท? การดำเนินการนี้อาจทำให้ประสิทธิภาพลดลงบ้างในช่วงสั้น'
|
|
507
|
+
},
|
|
508
|
+
tenantMode: {
|
|
509
|
+
name: 'โหมดหลายผู้เช่า',
|
|
510
|
+
multiple: 'บล็อกเล็ตนี้ทำงานในโหมดผู้เช่าหลายราย เนื้อหาควรถูกแยกกันสำหรับแต่ละผู้เช่า',
|
|
511
|
+
single: 'บล็อกเลตนี้ทำงานในโหมดลูกค้าเดี่ยว ข้อมูลทั้งหมดถูกแชร์'
|
|
507
512
|
}
|
|
508
513
|
},
|
|
509
514
|
overview: {
|
package/es/locales/vi.js
CHANGED
|
@@ -504,6 +504,11 @@ export default {
|
|
|
504
504
|
action: 'Xóa Cache',
|
|
505
505
|
success: '{count} mục cache đã được xóa thành công',
|
|
506
506
|
description: 'Bạn có chắc chắn muốn xóa các tệp được lưu trữ tạm thời trong bộ định tuyến và dịch vụ blocklet không? Thao tác này có thể làm giảm hiệu suất một chút trong thời gian ngắn.'
|
|
507
|
+
},
|
|
508
|
+
tenantMode: {
|
|
509
|
+
name: 'Chế độ Đa Người Thuê',
|
|
510
|
+
multiple: 'Blocklet này chạy trong chế độ nhiều người thuê, dữ liệu được cô lập cho mỗi người thuê',
|
|
511
|
+
single: 'Khối mã này chạy trong chế độ khách hàng đơn, tất cả dữ liệu được chia sẻ'
|
|
507
512
|
}
|
|
508
513
|
},
|
|
509
514
|
overview: {
|
package/es/locales/zh-tw.js
CHANGED
|
@@ -504,6 +504,11 @@ export default {
|
|
|
504
504
|
action: '清除快取',
|
|
505
505
|
success: '成功清除{count}個快取項目',
|
|
506
506
|
description: '你確定要清除路由器和區塊服務中的快取文件嗎?這個操作可能會導致短期內性能略微下降。'
|
|
507
|
+
},
|
|
508
|
+
tenantMode: {
|
|
509
|
+
name: '多租戶模式',
|
|
510
|
+
multiple: '該區塊以多租戶模式運行,每個租戶的數據應該是隔離的',
|
|
511
|
+
single: '這個 blocklet 在單租戶模式下運行,所有數據都是共享的'
|
|
507
512
|
}
|
|
508
513
|
},
|
|
509
514
|
overview: {
|
package/es/locales/zh.js
CHANGED
|
@@ -505,6 +505,11 @@ export default {
|
|
|
505
505
|
action: '清除缓存',
|
|
506
506
|
success: '成功清除了 {count} 个缓存条目',
|
|
507
507
|
description: '您确定要清除缓存在网关和服务中的文件吗?此操作可能会在短期内导致轻微的性能降低。'
|
|
508
|
+
},
|
|
509
|
+
tenantMode: {
|
|
510
|
+
name: '多租户模式',
|
|
511
|
+
multiple: '该应用在多租户模式下运行,每个租户的数据应该是隔离的',
|
|
512
|
+
single: '该应用运行在单租户模式下,所有数据都是共享的'
|
|
508
513
|
}
|
|
509
514
|
},
|
|
510
515
|
overview: {
|
package/lib/actions.js
CHANGED
|
@@ -25,7 +25,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
25
25
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
26
26
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
27
27
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
28
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
28
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
29
29
|
function Actions(_ref) {
|
|
30
30
|
let {
|
|
31
31
|
actions,
|
package/lib/blocklet/actions.js
CHANGED
|
@@ -50,7 +50,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
50
50
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
51
51
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
52
52
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
53
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
53
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
54
54
|
function BlockletActions(_ref) {
|
|
55
55
|
let {
|
|
56
56
|
blocklet,
|
package/lib/blocklet/add-cert.js
CHANGED
|
@@ -27,7 +27,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
27
27
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
28
28
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
29
29
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
30
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
30
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
31
31
|
const isCertInProgress = status => ['waiting', 'creating', 'renewaling'].includes(status);
|
|
32
32
|
function Add(props) {
|
|
33
33
|
var _certState$value2, _certState$value3;
|
|
@@ -16,7 +16,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
16
16
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
18
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
19
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
19
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
20
20
|
function BlockletAppAvatar(_ref) {
|
|
21
21
|
let {
|
|
22
22
|
blocklet,
|
|
@@ -18,7 +18,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
18
18
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
19
19
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
20
20
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
21
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
21
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
22
22
|
function BlockletAvatar(_ref) {
|
|
23
23
|
let {
|
|
24
24
|
blocklet,
|
|
@@ -52,7 +52,7 @@ const _excluded = ["name", "validation"],
|
|
|
52
52
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
53
53
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
54
54
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
55
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
55
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
56
56
|
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; }
|
|
57
57
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
58
58
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -45,7 +45,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
45
45
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
46
46
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
47
47
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
48
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
48
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
49
49
|
function ConnectTo(_ref) {
|
|
50
50
|
let {
|
|
51
51
|
onConnect
|
|
@@ -30,7 +30,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
30
30
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
31
31
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
32
32
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
33
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
33
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
34
34
|
var SpacesConnected = function SpacesConnected(props) {
|
|
35
35
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)("svg", _objectSpread(_objectSpread({}, props), {}, {
|
|
36
36
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)("circle", {
|
|
@@ -48,7 +48,7 @@ function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e;
|
|
|
48
48
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
49
49
|
function _taggedTemplateLiteral(strings, raw) { if (!raw) { raw = strings.slice(0); } return Object.freeze(Object.defineProperties(strings, { raw: { value: Object.freeze(raw) } })); }
|
|
50
50
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
51
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
51
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
52
52
|
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; }
|
|
53
53
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
54
54
|
function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
@@ -56,7 +56,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
56
56
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
57
57
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
58
58
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
59
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
59
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
60
60
|
function BlockletComponent(_ref) {
|
|
61
61
|
var _blocklet$optionalCom;
|
|
62
62
|
let {
|
|
@@ -24,7 +24,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
24
24
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
25
25
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
26
26
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
27
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
27
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
28
28
|
function SimpleSelect(_ref) {
|
|
29
29
|
let {
|
|
30
30
|
fullWidth,
|
|
@@ -26,7 +26,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
26
26
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
27
27
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
28
28
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
29
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
29
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
30
30
|
function ComponentSetting(_ref) {
|
|
31
31
|
let {
|
|
32
32
|
blocklet,
|
|
@@ -35,7 +35,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
35
35
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
36
36
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
37
37
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
38
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
38
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
39
39
|
function useAppUrl(blocklet) {
|
|
40
40
|
var _blocklet$site;
|
|
41
41
|
const appUrls = blocklet === null || blocklet === void 0 || (_blocklet$site = blocklet.site) === null || _blocklet$site === void 0 || (_blocklet$site = _blocklet$site.domainAliases) === null || _blocklet$site === void 0 || (_blocklet$site = _blocklet$site.sort((a, b) => {
|
|
@@ -29,7 +29,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
29
29
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
30
30
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
31
31
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
32
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
32
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
33
33
|
const DEFAULT_GATEWAY_LIST = [{
|
|
34
34
|
value: 'https://www.didspaces.com/app',
|
|
35
35
|
label: 'Prod DID Spaces',
|
|
@@ -34,7 +34,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
34
34
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
35
35
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
36
36
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
37
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
37
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
38
38
|
const getStoreDetail = (meta, endpoint) => {
|
|
39
39
|
return (0, _urlJoin.default)(endpoint, "/blocklets/".concat(meta.did));
|
|
40
40
|
};
|
|
@@ -33,7 +33,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
33
33
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
34
34
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
35
35
|
function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
|
|
36
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
36
|
+
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } } return target; }
|
|
37
37
|
function SwitchControl(_ref) {
|
|
38
38
|
let {
|
|
39
39
|
labelProps,
|