@abtnode/ux 1.16.27-beta-91ff0d1b → 1.16.27-beta-725ce3a6
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/blocklet/publish/project-list.js +1 -1
- package/es/locales/ar.js +12 -8
- package/es/locales/de.js +12 -8
- package/es/locales/en.js +20 -16
- package/es/locales/es.js +12 -8
- package/es/locales/fr.js +12 -8
- package/es/locales/hi.js +12 -8
- package/es/locales/i18n.db +0 -0
- package/es/locales/id.js +12 -8
- package/es/locales/ja.js +12 -8
- package/es/locales/ko.js +12 -8
- package/es/locales/pt.js +12 -8
- package/es/locales/ru.js +12 -8
- package/es/locales/th.js +12 -8
- package/es/locales/vi.js +12 -8
- package/es/locales/zh-tw.js +27 -23
- package/es/locales/zh.js +25 -21
- package/es/team/members/index.js +10 -5
- 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/publish/project-list.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 +12 -8
- package/lib/locales/de.js +12 -8
- package/lib/locales/en.js +20 -16
- package/lib/locales/es.js +12 -8
- package/lib/locales/fr.js +12 -8
- package/lib/locales/hi.js +12 -8
- package/lib/locales/i18n.db +0 -0
- package/lib/locales/id.js +12 -8
- package/lib/locales/ja.js +12 -8
- package/lib/locales/ko.js +12 -8
- package/lib/locales/pt.js +12 -8
- package/lib/locales/ru.js +12 -8
- package/lib/locales/th.js +12 -8
- package/lib/locales/vi.js +12 -8
- package/lib/locales/zh-tw.js +27 -23
- package/lib/locales/zh.js +25 -21
- 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/index.js +9 -4
- 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
package/es/locales/zh-tw.js
CHANGED
|
@@ -134,8 +134,8 @@ export default {
|
|
|
134
134
|
collapseAll: '折疊所有',
|
|
135
135
|
community: '社區',
|
|
136
136
|
complete: '完成',
|
|
137
|
-
componentBasicInfo: '
|
|
138
|
-
components: '
|
|
137
|
+
componentBasicInfo: 'Blocklet 基本資訊',
|
|
138
|
+
components: 'Blocklets',
|
|
139
139
|
config: '配置',
|
|
140
140
|
configuration: '配置',
|
|
141
141
|
configNavigation: '導航',
|
|
@@ -353,7 +353,7 @@ export default {
|
|
|
353
353
|
uploaded: '已上傳',
|
|
354
354
|
uploadToStore: '上傳至 Store',
|
|
355
355
|
upload: '上傳',
|
|
356
|
-
blockletStudio: '
|
|
356
|
+
blockletStudio: '工作室',
|
|
357
357
|
visitStore: '訪問 Store',
|
|
358
358
|
reconnect: '重新連接'
|
|
359
359
|
},
|
|
@@ -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: {
|
|
@@ -563,49 +568,49 @@ export default {
|
|
|
563
568
|
didSpaceConfigTip: '請完成以下授權過程以將應用程式資料存儲在DID空間中',
|
|
564
569
|
didSpaceConnected: '授權給存儲: {endpoint}',
|
|
565
570
|
checkUpdateTitle: '檢查更新',
|
|
566
|
-
updateTitle: '
|
|
567
|
-
noUpdate: '
|
|
568
|
-
add: '
|
|
569
|
-
selectComponent: '
|
|
571
|
+
updateTitle: '更新 Blocklet',
|
|
572
|
+
noUpdate: '沒有 Blocklet可更新',
|
|
573
|
+
add: '添加 Blocklet',
|
|
574
|
+
selectComponent: '選擇 Blocklet',
|
|
570
575
|
selectRegistry: '選擇 Blocklet 商店',
|
|
571
|
-
selectRegistryTip: '您可以切換 Blocklet
|
|
576
|
+
selectRegistryTip: '您可以切換 Blocklet Store 以查看更多 Blocklet',
|
|
572
577
|
selectInstance: '選擇實例',
|
|
573
578
|
selectInstanceTip: '您可以選擇現有實例或建立新實例。現有實例將使用先前保存的配置和數據',
|
|
574
579
|
newInstance: '建立新實例',
|
|
575
|
-
noComponent: '
|
|
580
|
+
noComponent: '沒有 Blocklets',
|
|
576
581
|
mountPoint: '掛載點是什麼?',
|
|
577
582
|
mountPointTip: "如果您將掛載點設置為 '/my-prefix',則以該掛載點開頭的所有請求都將被路由到所選組件。",
|
|
578
|
-
delete: '
|
|
579
|
-
deleteDescription: '
|
|
583
|
+
delete: '刪除 Blocklet',
|
|
584
|
+
deleteDescription: '刪除後此 Blocklet 將無法被讀取。確認刪除?',
|
|
580
585
|
purchase: '需要付款',
|
|
581
586
|
tip: {
|
|
582
587
|
stopBlocklet: '請先停止運行 Blocklet',
|
|
583
|
-
requiredBy: '
|
|
588
|
+
requiredBy: '該 Blocklet 是{name}所需的'
|
|
584
589
|
},
|
|
585
590
|
choose: '選擇',
|
|
586
|
-
addWithName: '
|
|
587
|
-
installingCanCloseWindowTip: '
|
|
588
|
-
installSuccessTip: '
|
|
591
|
+
addWithName: '將 Blocklet 新增至 {name}',
|
|
592
|
+
installingCanCloseWindowTip: '正在背景安裝 Blocklet,您可以安全關閉此視窗',
|
|
593
|
+
installSuccessTip: '恭喜,Blocklet 安裝成功!',
|
|
589
594
|
missDownloadTokenTip: '沒有有效的下載令牌,無法增加付費組件',
|
|
590
595
|
purchaseComponentSecondCheckTip: '請出示您的區塊鏈購買NFT以繼續',
|
|
591
|
-
installComponentError: '
|
|
592
|
-
downloadComponentError: '
|
|
596
|
+
installComponentError: '安裝 Blocklet 時出現錯誤,請重試',
|
|
597
|
+
downloadComponentError: '下載 Blocklet 出錯,請重試',
|
|
593
598
|
addComponentTip: {
|
|
594
599
|
introduction: '歡迎使用新增元件精靈',
|
|
595
600
|
isFree: '你可以免費使用<b>{name}</b>作為元件;',
|
|
596
|
-
isPurchase: '在使用<b>{name}</b>作為組件之前,您需要驗證NFT',
|
|
601
|
+
isPurchase: '在使用<b>{name}</b>作為組件之前,您需要驗證 NFT',
|
|
597
602
|
belowInformation: '以下是該組件的資訊:',
|
|
598
|
-
verifyNFT: '請選擇驗證NFT的方法',
|
|
603
|
+
verifyNFT: '請選擇驗證 NFT 的方法',
|
|
599
604
|
config: '請填寫元件的配置',
|
|
600
605
|
environment: '請填寫元件的環境',
|
|
601
|
-
fromUrl: '
|
|
606
|
+
fromUrl: '從 URL 新增 Blocklet'
|
|
602
607
|
},
|
|
603
608
|
addNext: '新增 {name}',
|
|
604
609
|
upgradeNext: '升級 {name}',
|
|
605
610
|
setting: '設定',
|
|
606
611
|
components: '{name} 元件的相依性',
|
|
607
612
|
noDependencies: '{name}沒有任何依賴',
|
|
608
|
-
relatedComponents: '
|
|
613
|
+
relatedComponents: '相關區塊',
|
|
609
614
|
required: '需要'
|
|
610
615
|
},
|
|
611
616
|
router: {
|
|
@@ -694,7 +699,6 @@ export default {
|
|
|
694
699
|
installResourceHelp: '幫助文件',
|
|
695
700
|
componentIncluded: '已包含',
|
|
696
701
|
componentForceRequired: '強制要求',
|
|
697
|
-
productListTitle: 'Blocklet Studio',
|
|
698
702
|
download: '下載 {name}',
|
|
699
703
|
delete: '刪除 {name}',
|
|
700
704
|
copyInstallUrl: '複製安裝連結',
|
|
@@ -1474,7 +1478,7 @@ export default {
|
|
|
1474
1478
|
prepareSpace: '準備空間'
|
|
1475
1479
|
},
|
|
1476
1480
|
installRelatedDependencies: '安裝相關依賴',
|
|
1477
|
-
installRelatedComponents: '
|
|
1481
|
+
installRelatedComponents: '安裝相關的 Blocklets'
|
|
1478
1482
|
},
|
|
1479
1483
|
issuePassport: {
|
|
1480
1484
|
title: '收到護照',
|
package/es/locales/zh.js
CHANGED
|
@@ -132,8 +132,8 @@ export default {
|
|
|
132
132
|
collapseAll: '收起全部',
|
|
133
133
|
community: '社区地址',
|
|
134
134
|
complete: '完成',
|
|
135
|
-
componentBasicInfo: '
|
|
136
|
-
components: '
|
|
135
|
+
componentBasicInfo: 'Blocklet 基础信息',
|
|
136
|
+
components: 'Blocklets',
|
|
137
137
|
config: '配置',
|
|
138
138
|
configuration: '配置',
|
|
139
139
|
configNavigation: '导航',
|
|
@@ -353,7 +353,7 @@ export default {
|
|
|
353
353
|
uploaded: '已上传',
|
|
354
354
|
uploadToStore: '上传到 Store',
|
|
355
355
|
upload: '上传',
|
|
356
|
-
blockletStudio: '
|
|
356
|
+
blockletStudio: '工作室',
|
|
357
357
|
visitStore: '访问 Store',
|
|
358
358
|
reconnect: '重新连接'
|
|
359
359
|
},
|
|
@@ -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: {
|
|
@@ -566,29 +571,29 @@ export default {
|
|
|
566
571
|
didSpaceConfigTip: '完成以下授权流程,即可将应用数据存储到 DID Spaces 中',
|
|
567
572
|
didSpaceConnected: '正在授权存储到:{endpoint}',
|
|
568
573
|
checkUpdateTitle: '检查更新',
|
|
569
|
-
updateTitle: '
|
|
570
|
-
noUpdate: '
|
|
571
|
-
add: '
|
|
572
|
-
selectComponent: '
|
|
574
|
+
updateTitle: '更新 Blocklet',
|
|
575
|
+
noUpdate: '没有需要更新的 Blocklet',
|
|
576
|
+
add: '添加 Blocklet',
|
|
577
|
+
selectComponent: '选择 Blocklet',
|
|
573
578
|
selectRegistry: '选择应用商店',
|
|
574
|
-
selectRegistryTip: '
|
|
579
|
+
selectRegistryTip: '您可以切换应用商店以查看更多 Blocklet',
|
|
575
580
|
selectInstance: '选择实例',
|
|
576
581
|
selectInstanceTip: '您可以选择已有实例 或 创建新的实例。已有实例将使用之前保存的配置和数据',
|
|
577
582
|
newInstance: '创建新实例',
|
|
578
|
-
noComponent: '
|
|
579
|
-
mountPoint: '
|
|
580
|
-
mountPointTip: "如果你填写了 '/my-prefix'
|
|
581
|
-
delete: '
|
|
582
|
-
deleteDescription: '
|
|
583
|
+
noComponent: '暂无 Blocklets',
|
|
584
|
+
mountPoint: 'Blocklet 的挂载点是什么?',
|
|
585
|
+
mountPointTip: "如果你填写了 '/my-prefix',那么所有以其为前缀的请求都会被转发到配置的 Blocklet",
|
|
586
|
+
delete: '删除 Blocklet',
|
|
587
|
+
deleteDescription: '删除后此 Blocklet 将无法访问。确认删除?',
|
|
583
588
|
purchase: '需要支付',
|
|
584
589
|
tip: {
|
|
585
590
|
stopBlocklet: '请先停止运行应用',
|
|
586
|
-
requiredBy: '{name}
|
|
591
|
+
requiredBy: '{name} 需要该 Blocklet'
|
|
587
592
|
},
|
|
588
593
|
choose: '选择',
|
|
589
|
-
addWithName: '
|
|
590
|
-
installingCanCloseWindowTip: '
|
|
591
|
-
installSuccessTip: '
|
|
594
|
+
addWithName: '将 Blocklet 添加到 {name}',
|
|
595
|
+
installingCanCloseWindowTip: '正在后台安装 Blocklet 中, 您可以放心关掉此窗口',
|
|
596
|
+
installSuccessTip: '恭喜您,Blocklet 安装成功!',
|
|
592
597
|
missDownloadTokenTip: '缺少下载凭证,无法下载',
|
|
593
598
|
purchaseComponentSecondCheckTip: '请在 钱包 提供应用购买凭证',
|
|
594
599
|
installComponentError: '安装组件遇到错误,请重试',
|
|
@@ -601,14 +606,14 @@ export default {
|
|
|
601
606
|
verifyNFT: '请选择验证凭证方式',
|
|
602
607
|
config: '请填写组件的相关配置',
|
|
603
608
|
environment: '请填写组件的环境变量',
|
|
604
|
-
fromUrl: '
|
|
609
|
+
fromUrl: '从 URL 添加 Blocklet'
|
|
605
610
|
},
|
|
606
611
|
addNext: '添加 {name}',
|
|
607
612
|
upgradeNext: '升级 {name}',
|
|
608
613
|
setting: '参数设置',
|
|
609
614
|
components: '{name} 组件的依赖',
|
|
610
615
|
noDependencies: '{name}没有任何依赖',
|
|
611
|
-
relatedComponents: '
|
|
616
|
+
relatedComponents: '相关 Blocklets',
|
|
612
617
|
required: '必须'
|
|
613
618
|
},
|
|
614
619
|
router: {
|
|
@@ -697,7 +702,6 @@ export default {
|
|
|
697
702
|
noDescription: '请填写 Blocklet 描述',
|
|
698
703
|
noNote: '请填写 发布说明'
|
|
699
704
|
},
|
|
700
|
-
productListTitle: 'Blocklet Studio',
|
|
701
705
|
download: '下载 {name}',
|
|
702
706
|
delete: '删除 {name}',
|
|
703
707
|
copyInstallUrl: '复制安装链接',
|
|
@@ -1481,7 +1485,7 @@ export default {
|
|
|
1481
1485
|
prepareSpace: '准备空间'
|
|
1482
1486
|
},
|
|
1483
1487
|
installRelatedDependencies: '安装相关依赖',
|
|
1484
|
-
installRelatedComponents: '
|
|
1488
|
+
installRelatedComponents: '安装相关的 Blocklets'
|
|
1485
1489
|
},
|
|
1486
1490
|
issuePassport: {
|
|
1487
1491
|
title: '领取通行证',
|
package/es/team/members/index.js
CHANGED
|
@@ -5,7 +5,7 @@ import styled from '@emotion/styled';
|
|
|
5
5
|
import isEmpty from 'lodash/isEmpty';
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import classnames from 'classnames';
|
|
8
|
-
import { Badge, IconButton, Tooltip, Checkbox, Box, FormControlLabel
|
|
8
|
+
import { Badge, IconButton, Tooltip, Checkbox, Box, FormControlLabel } from '@mui/material';
|
|
9
9
|
import Dialog, { useConfirm } from '@arcblock/ux/lib/Dialog';
|
|
10
10
|
import AddIcon from '@mui/icons-material/Add';
|
|
11
11
|
import LoopIcon from '@mui/icons-material/Loop';
|
|
@@ -40,6 +40,12 @@ import { parseAvatar } from './util';
|
|
|
40
40
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
41
41
|
const ROLE_ALL = '$all';
|
|
42
42
|
const ROLE_NONE = '$none';
|
|
43
|
+
function shortenString(str) {
|
|
44
|
+
if (str?.length > 10) {
|
|
45
|
+
return `${str.slice(0, 8)}...${str.slice(-2)}`;
|
|
46
|
+
}
|
|
47
|
+
return str;
|
|
48
|
+
}
|
|
43
49
|
const getCount = (counts, name) => {
|
|
44
50
|
const item = counts.find(x => x.key === name);
|
|
45
51
|
return item?.value || 0;
|
|
@@ -84,7 +90,7 @@ function SimpleInfo({
|
|
|
84
90
|
className: "member-meta",
|
|
85
91
|
children: [/*#__PURE__*/_jsx("div", {
|
|
86
92
|
className: "member-text",
|
|
87
|
-
children: user.fullName
|
|
93
|
+
children: shortenString(user.fullName)
|
|
88
94
|
}), Array.isArray(user.tags) && user.tags.length > 0 && /*#__PURE__*/_jsx("div", {
|
|
89
95
|
className: "member-tags",
|
|
90
96
|
children: user.tags.map(x => /*#__PURE__*/_jsx(Tag, {
|
|
@@ -140,7 +146,6 @@ export default function MemberList({
|
|
|
140
146
|
const {
|
|
141
147
|
appIdList = []
|
|
142
148
|
} = useBlockletContext();
|
|
143
|
-
const isMobile = useMediaQuery(theme => theme.breakpoints.down('md'));
|
|
144
149
|
const {
|
|
145
150
|
teamDid,
|
|
146
151
|
invitations,
|
|
@@ -304,8 +309,8 @@ export default function MemberList({
|
|
|
304
309
|
customBodyRender: e => {
|
|
305
310
|
return /*#__PURE__*/_jsx(DidAddress, {
|
|
306
311
|
size: 14,
|
|
307
|
-
responsive:
|
|
308
|
-
compact:
|
|
312
|
+
responsive: false,
|
|
313
|
+
compact: true,
|
|
309
314
|
copyable: false,
|
|
310
315
|
did: e
|
|
311
316
|
});
|
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,
|
|
@@ -43,7 +43,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
43
43
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
44
44
|
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); }
|
|
45
45
|
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; }
|
|
46
|
-
function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var
|
|
46
|
+
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; }
|
|
47
47
|
const languages = Object.keys(_constant2.SUPPORTED_LANGUAGES).map(x => ({
|
|
48
48
|
code: x,
|
|
49
49
|
name: _constant2.SUPPORTED_LANGUAGES[x].nativeName,
|
|
@@ -104,6 +104,8 @@ function BlockletEnvironment(_ref) {
|
|
|
104
104
|
const deletable = !customDelete || customDelete.value === 'yes';
|
|
105
105
|
const customLanguages = blocklet.environments.find(x => x.key === _constant2.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_LANGUAGES);
|
|
106
106
|
const customUrl = blocklet.environments.find(x => x.key === _constant2.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_URL);
|
|
107
|
+
const customTenantMode = blocklet.environments.find(x => x.key === _constant2.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_TENANT_MODE);
|
|
108
|
+
const tenantMode = (customTenantMode === null || customTenantMode === void 0 ? void 0 : customTenantMode.value) || _constant2.BLOCKLET_TENANT_MODES.SINGLE;
|
|
107
109
|
const copyrightOwner = blocklet.environments.find(x => x.key === _constant2.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_OWNER);
|
|
108
110
|
const copyrightYear = blocklet.environments.find(x => x.key === _constant2.BLOCKLET_CONFIGURABLE_KEY.BLOCKLET_APP_COPYRIGHT_YEAR);
|
|
109
111
|
const configurableEnvs = [{
|
|
@@ -193,7 +195,7 @@ function BlockletEnvironment(_ref) {
|
|
|
193
195
|
setLoading(false);
|
|
194
196
|
}
|
|
195
197
|
};
|
|
196
|
-
const
|
|
198
|
+
const createBooleanConfigHandler = (key, value) => async e => {
|
|
197
199
|
if (loading) {
|
|
198
200
|
return;
|
|
199
201
|
}
|
|
@@ -208,8 +210,8 @@ function BlockletEnvironment(_ref) {
|
|
|
208
210
|
input: {
|
|
209
211
|
did: blocklet.meta.did,
|
|
210
212
|
configs: [{
|
|
211
|
-
key: _constant2.BLOCKLET_CONFIGURABLE_KEY
|
|
212
|
-
value: checked
|
|
213
|
+
key: _constant2.BLOCKLET_CONFIGURABLE_KEY[key],
|
|
214
|
+
value: value(checked)
|
|
213
215
|
}]
|
|
214
216
|
}
|
|
215
217
|
});
|
|
@@ -220,6 +222,8 @@ function BlockletEnvironment(_ref) {
|
|
|
220
222
|
setLoading(false);
|
|
221
223
|
}
|
|
222
224
|
};
|
|
225
|
+
const onDeletableChange = createBooleanConfigHandler('BLOCKLET_DELETABLE', checked => checked ? 'no' : 'yes');
|
|
226
|
+
const onTenantModeChange = createBooleanConfigHandler('BLOCKLET_APP_TENANT_MODE', checked => checked ? _constant2.BLOCKLET_TENANT_MODES.MULTIPLE : _constant2.BLOCKLET_TENANT_MODES.SINGLE);
|
|
223
227
|
const onUpdateCors = async value => {
|
|
224
228
|
const oldValue = site.corsAllowedOrigins || [];
|
|
225
229
|
const newValue = value.split(',').map(x => x.trim()).filter(Boolean);
|
|
@@ -281,7 +285,7 @@ function BlockletEnvironment(_ref) {
|
|
|
281
285
|
style: {
|
|
282
286
|
marginTop: 0
|
|
283
287
|
},
|
|
284
|
-
disabled:
|
|
288
|
+
disabled: disabled,
|
|
285
289
|
loading: loading,
|
|
286
290
|
initialValue: item.value,
|
|
287
291
|
onSubmit: value => onSubmitConfig(item.key, value)
|
|
@@ -376,7 +380,7 @@ function BlockletEnvironment(_ref) {
|
|
|
376
380
|
style: {
|
|
377
381
|
marginTop: 0
|
|
378
382
|
},
|
|
379
|
-
disabled:
|
|
383
|
+
disabled: disabled,
|
|
380
384
|
loading: loading,
|
|
381
385
|
options: languages,
|
|
382
386
|
noEmpty: true,
|
|
@@ -422,7 +426,7 @@ function BlockletEnvironment(_ref) {
|
|
|
422
426
|
style: {
|
|
423
427
|
marginTop: 0
|
|
424
428
|
},
|
|
425
|
-
disabled:
|
|
429
|
+
disabled: disabled,
|
|
426
430
|
loading: loading,
|
|
427
431
|
initialValue: (site.corsAllowedOrigins || []).join(', '),
|
|
428
432
|
onSubmit: onUpdateCors
|
|
@@ -445,7 +449,6 @@ function BlockletEnvironment(_ref) {
|
|
|
445
449
|
},
|
|
446
450
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
|
|
447
451
|
className: "config-form",
|
|
448
|
-
mt: 2,
|
|
449
452
|
children: !inService && /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
|
|
450
453
|
className: "config-item",
|
|
451
454
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
|
|
@@ -470,7 +473,7 @@ function BlockletEnvironment(_ref) {
|
|
|
470
473
|
mb: 0,
|
|
471
474
|
children: t('blocklet.config.sk')
|
|
472
475
|
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_appSk.default, {
|
|
473
|
-
disabled:
|
|
476
|
+
disabled: disabled,
|
|
474
477
|
loading: loading,
|
|
475
478
|
initialValue: blocklet.environments.find(x => x.key === 'BLOCKLET_APP_SK').value,
|
|
476
479
|
onChange: onAppSkChange
|
|
@@ -526,6 +529,22 @@ function BlockletEnvironment(_ref) {
|
|
|
526
529
|
teamDid: did
|
|
527
530
|
})]
|
|
528
531
|
})
|
|
532
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
|
|
533
|
+
className: "config-form",
|
|
534
|
+
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
|
|
535
|
+
className: "config-item",
|
|
536
|
+
children: [/*#__PURE__*/(0, _jsxRuntime.jsxs)(_Box.default, {
|
|
537
|
+
className: "config-label",
|
|
538
|
+
children: [t('blocklet.config.tenantMode.name'), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Box.default, {
|
|
539
|
+
className: "config-desc",
|
|
540
|
+
children: t("blocklet.config.tenantMode.".concat(tenantMode))
|
|
541
|
+
})]
|
|
542
|
+
}), /*#__PURE__*/(0, _jsxRuntime.jsx)(_Switch.default, {
|
|
543
|
+
disabled: disabled,
|
|
544
|
+
checked: tenantMode === _constant2.BLOCKLET_TENANT_MODES.MULTIPLE,
|
|
545
|
+
onChange: onTenantModeChange
|
|
546
|
+
})]
|
|
547
|
+
})
|
|
529
548
|
})]
|
|
530
549
|
})]
|
|
531
550
|
}));
|
|
@@ -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 BlockletDiskInfo(_ref) {
|
|
29
29
|
let {
|
|
30
30
|
blocklet
|
package/lib/blocklet/log.js
CHANGED
|
@@ -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 BlockletLog(_ref) {
|
|
40
40
|
let {
|
|
41
41
|
blocklet
|