@abtnode/ux 1.16.29-beta-44e63d18 → 1.16.29-beta-7e212076
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/lib/blocklet/overview.js +25 -7
- package/lib/locales/ar.js +2 -1
- package/lib/locales/de.js +2 -1
- package/lib/locales/en.js +1 -0
- package/lib/locales/es.js +2 -1
- package/lib/locales/fr.js +2 -1
- package/lib/locales/hi.js +2 -1
- package/lib/locales/i18n.db +0 -0
- package/lib/locales/id.js +2 -1
- package/lib/locales/ja.js +2 -1
- package/lib/locales/ko.js +2 -1
- package/lib/locales/pt.js +2 -1
- package/lib/locales/ru.js +2 -1
- package/lib/locales/th.js +2 -1
- package/lib/locales/vi.js +2 -1
- package/lib/locales/zh-tw.js +2 -1
- package/lib/locales/zh.js +1 -0
- package/lib/team/members/invite-member.js +10 -6
- package/package.json +8 -8
package/lib/blocklet/overview.js
CHANGED
|
@@ -1,13 +1,15 @@
|
|
|
1
|
-
import Button from '@arcblock/ux/lib/Button';
|
|
2
1
|
import styled from '@emotion/styled';
|
|
3
2
|
import React, { useState } from 'react';
|
|
4
|
-
import
|
|
5
|
-
import
|
|
3
|
+
import { Box, Tooltip, Typography } from '@mui/material';
|
|
4
|
+
import { Icon } from '@iconify/react';
|
|
5
|
+
import QuestionMarkRoundedIcon from '@iconify-icons/material-symbols/question-mark-rounded';
|
|
6
|
+
import KeyboardArrowDownRoundedIcon from '@iconify-icons/material-symbols/keyboard-arrow-down-rounded';
|
|
7
|
+
import KeyboardArrowUpRoundedIcon from '@iconify-icons/material-symbols/keyboard-arrow-up-rounded';
|
|
8
|
+
import Button from '@arcblock/ux/lib/Button';
|
|
6
9
|
import InfoRow from '@arcblock/ux/lib/InfoRow';
|
|
7
10
|
import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
|
|
8
11
|
import Tag from '@arcblock/ux/lib/Tag';
|
|
9
12
|
import { getDisplayName, getWhoCanAccess } from '@blocklet/meta/lib/util';
|
|
10
|
-
import Typography from '@mui/material/Typography';
|
|
11
13
|
import { useBlockletContext } from '../contexts/blocklet';
|
|
12
14
|
import { useNodeContext } from '../contexts/node';
|
|
13
15
|
import DidAddress from '../did-address';
|
|
@@ -45,8 +47,20 @@ export default function BlockletOverview() {
|
|
|
45
47
|
did: appDid,
|
|
46
48
|
showQrcode: true
|
|
47
49
|
})
|
|
48
|
-
} : null, appPid ? {
|
|
49
|
-
name:
|
|
50
|
+
} : null, appPid && appDid !== appPid ? {
|
|
51
|
+
name: /*#__PURE__*/_jsxs(Box, {
|
|
52
|
+
sx: {
|
|
53
|
+
display: 'flex',
|
|
54
|
+
alignItems: 'center',
|
|
55
|
+
gap: 1
|
|
56
|
+
},
|
|
57
|
+
children: [t('blocklet.appPid'), /*#__PURE__*/_jsx(Tooltip, {
|
|
58
|
+
title: t('blocklet.whyNeedAppPid'),
|
|
59
|
+
children: /*#__PURE__*/_jsx(Icon, {
|
|
60
|
+
icon: QuestionMarkRoundedIcon
|
|
61
|
+
})
|
|
62
|
+
})]
|
|
63
|
+
}),
|
|
50
64
|
value: /*#__PURE__*/_jsx(DidAddress, {
|
|
51
65
|
did: appPid,
|
|
52
66
|
showQrcode: true
|
|
@@ -61,7 +75,11 @@ export default function BlockletOverview() {
|
|
|
61
75
|
style: {
|
|
62
76
|
marginLeft: '18px'
|
|
63
77
|
},
|
|
64
|
-
endIcon: showAllDIDs ? /*#__PURE__*/_jsx(
|
|
78
|
+
endIcon: showAllDIDs ? /*#__PURE__*/_jsx(Icon, {
|
|
79
|
+
icon: KeyboardArrowUpRoundedIcon
|
|
80
|
+
}) : /*#__PURE__*/_jsx(Icon, {
|
|
81
|
+
icon: KeyboardArrowDownRoundedIcon
|
|
82
|
+
}),
|
|
65
83
|
onClick: () => setShowAllDIDs(!showAllDIDs),
|
|
66
84
|
children: showAllDIDs ? t('common.collapseAll') : t('blocklet.router.showAllDIDs')
|
|
67
85
|
})]
|
package/lib/locales/ar.js
CHANGED
|
@@ -739,7 +739,8 @@ export default {
|
|
|
739
739
|
disconnectStoreTip: 'سيتم حذف بلوكليت من المخزن بعد الفصل. هل أنت متأكد من أنك تريد الفصل؟'
|
|
740
740
|
},
|
|
741
741
|
titleValidationError: 'يجب أن يكون طول العنوان على الأقل 3 أحرف',
|
|
742
|
-
descriptionValidationError: 'يجب أن تكون طول الوصف بين 3 و 160 حرفًا'
|
|
742
|
+
descriptionValidationError: 'يجب أن تكون طول الوصف بين 3 و 160 حرفًا',
|
|
743
|
+
whyNeedAppPid: 'إذا تم نقل تطبيقك، فإن DID الدائم هو DID الذي تم إنشاؤه عند تثبيت Blocklet هذا في الأصل.'
|
|
743
744
|
},
|
|
744
745
|
dashboard: {
|
|
745
746
|
nodeDid: 'عقدة',
|
package/lib/locales/de.js
CHANGED
|
@@ -739,7 +739,8 @@ export default {
|
|
|
739
739
|
disconnectStoreTip: 'Das Blocklet wird nach dem Trennen aus dem Store entfernt. Möchten Sie wirklich trennen?'
|
|
740
740
|
},
|
|
741
741
|
titleValidationError: 'Die Länge des Titels muss mindestens 3 Zeichen betragen',
|
|
742
|
-
descriptionValidationError: 'Die Beschreibungslänge muss zwischen 3 und 160 Zeichen liegen'
|
|
742
|
+
descriptionValidationError: 'Die Beschreibungslänge muss zwischen 3 und 160 Zeichen liegen',
|
|
743
|
+
whyNeedAppPid: 'Wenn Ihre Anwendung migriert wurde, ist die permanente DID die DID, die bei der ursprünglichen Installation dieses Blocklets generiert wurde.'
|
|
743
744
|
},
|
|
744
745
|
dashboard: {
|
|
745
746
|
nodeDid: 'Knoten',
|
package/lib/locales/en.js
CHANGED
|
@@ -372,6 +372,7 @@ export default {
|
|
|
372
372
|
noService: 'No Services',
|
|
373
373
|
appId: 'App DID',
|
|
374
374
|
appPid: 'Permanent DID',
|
|
375
|
+
whyNeedAppPid: 'If your application has been migrated, the permanent DID is the DID generated when this Blocklet was originally installed',
|
|
375
376
|
alsoKnownAs: 'Also Known As',
|
|
376
377
|
skSource: 'Owner Wallet',
|
|
377
378
|
reloadSuccess: 'Blocklet was reloaded successfully',
|
package/lib/locales/es.js
CHANGED
|
@@ -739,7 +739,8 @@ export default {
|
|
|
739
739
|
disconnectStoreTip: 'Después de la desconexión, se eliminará el blocklet de la tienda. ¿Seguro que desea desconectar?'
|
|
740
740
|
},
|
|
741
741
|
titleValidationError: 'La longitud del título debe ser de al menos 3 caracteres',
|
|
742
|
-
descriptionValidationError: 'La longitud de la descripción debe estar entre 3 y 160 caracteres'
|
|
742
|
+
descriptionValidationError: 'La longitud de la descripción debe estar entre 3 y 160 caracteres',
|
|
743
|
+
whyNeedAppPid: 'Si se ha migrado su aplicación, el DID permanente es el DID generado cuando este Blocklet se instaló originalmente.'
|
|
743
744
|
},
|
|
744
745
|
dashboard: {
|
|
745
746
|
nodeDid: 'Nodo',
|
package/lib/locales/fr.js
CHANGED
|
@@ -739,7 +739,8 @@ export default {
|
|
|
739
739
|
disconnectStoreTip: 'Le bloclet sera supprimé du store après sa déconnexion. Êtes-vous sûr de vouloir le déconnecter ?'
|
|
740
740
|
},
|
|
741
741
|
titleValidationError: "La longueur du titre doit être d'au moins 3 caractères",
|
|
742
|
-
descriptionValidationError: 'La longueur de la description doit être comprise entre 3 et 160 caractères'
|
|
742
|
+
descriptionValidationError: 'La longueur de la description doit être comprise entre 3 et 160 caractères',
|
|
743
|
+
whyNeedAppPid: "Si votre application a été migrée, le DID permanent est le DID généré lors de l'installation initiale de ce Blocklet."
|
|
743
744
|
},
|
|
744
745
|
dashboard: {
|
|
745
746
|
nodeDid: 'Noeud',
|
package/lib/locales/hi.js
CHANGED
|
@@ -739,7 +739,8 @@ export default {
|
|
|
739
739
|
disconnectStoreTip: 'ब्लॉकलेट को डिस्कनेक्ट करने के बाद उसे स्टोर से हटा दिया जाएगा। क्या आप वाकई में उसे डिस्कनेक्ट करना चाहते हैं?'
|
|
740
740
|
},
|
|
741
741
|
titleValidationError: 'शीर्षक की लंबाई कम से कम 3 अक्षर होनी चाहिए',
|
|
742
|
-
descriptionValidationError: 'विवरण की लंबाई 3 और 160 वर्णों के बीच होनी चाहिए'
|
|
742
|
+
descriptionValidationError: 'विवरण की लंबाई 3 और 160 वर्णों के बीच होनी चाहिए',
|
|
743
|
+
whyNeedAppPid: 'अगर आपका एप्लीकेशन माइग्रेट कर दिया गया है, तो परमानेंट DID वही DID है जो उस समय जनरेट की गई थी जब पहली बार यह ब्लॉकलेट इंस्टॉल किया गया था।'
|
|
743
744
|
},
|
|
744
745
|
dashboard: {
|
|
745
746
|
nodeDid: 'नोड',
|
package/lib/locales/i18n.db
CHANGED
|
Binary file
|
package/lib/locales/id.js
CHANGED
|
@@ -739,7 +739,8 @@ export default {
|
|
|
739
739
|
disconnectStoreTip: 'Setelah terputus, blocklet akan dihapus dari toko. Apa Anda yakin untuk memutuskan?'
|
|
740
740
|
},
|
|
741
741
|
titleValidationError: 'Panjang judul harus setidaknya 3 karakter',
|
|
742
|
-
descriptionValidationError: 'Panjang deskripsi harus antara 3 dan 160 karakter.'
|
|
742
|
+
descriptionValidationError: 'Panjang deskripsi harus antara 3 dan 160 karakter.',
|
|
743
|
+
whyNeedAppPid: 'Jika aplikasi Anda telah dimigrasikan, DID permanen adalah DID yang dihasilkan saat Blocklet ini pertama kali dipasang'
|
|
743
744
|
},
|
|
744
745
|
dashboard: {
|
|
745
746
|
nodeDid: 'Node',
|
package/lib/locales/ja.js
CHANGED
|
@@ -739,7 +739,8 @@ export default {
|
|
|
739
739
|
disconnectStoreTip: 'ブロックレットの接続を解除すると、ブロックレットはストアから削除されます。接続を解除してもよろしいですか?'
|
|
740
740
|
},
|
|
741
741
|
titleValidationError: 'タイトルの長さは最低3文字以上である必要があります',
|
|
742
|
-
descriptionValidationError: '説明の長さは3から160文字の間でなければなりません'
|
|
742
|
+
descriptionValidationError: '説明の長さは3から160文字の間でなければなりません',
|
|
743
|
+
whyNeedAppPid: 'アプリケーションが移行されている場合、永続的な DID はこの Blocklet が最初にインストールされたときに生成された DID です。'
|
|
743
744
|
},
|
|
744
745
|
dashboard: {
|
|
745
746
|
nodeDid: 'ノード',
|
package/lib/locales/ko.js
CHANGED
|
@@ -739,7 +739,8 @@ export default {
|
|
|
739
739
|
disconnectStoreTip: '연결이 끊어지면 Blocklet이 스토어에서 제거됩니다. 연결을 끊으시겠습니까?'
|
|
740
740
|
},
|
|
741
741
|
titleValidationError: '제목 길이는 최소 3자 이상이어야 합니다',
|
|
742
|
-
descriptionValidationError: '설명 길이는 3에서 160자 사이여야 합니다'
|
|
742
|
+
descriptionValidationError: '설명 길이는 3에서 160자 사이여야 합니다',
|
|
743
|
+
whyNeedAppPid: '애플리케이션이 마이그레이션된 경우 영구 DID는 이 Blocklet이 처음 설치되었을 때 생성된 DID입니다.'
|
|
743
744
|
},
|
|
744
745
|
dashboard: {
|
|
745
746
|
nodeDid: '노드',
|
package/lib/locales/pt.js
CHANGED
|
@@ -739,7 +739,8 @@ export default {
|
|
|
739
739
|
disconnectStoreTip: 'Após desconectado, o Blocklet será removido da loja. Você tem certeza que deseja desconectar?'
|
|
740
740
|
},
|
|
741
741
|
titleValidationError: 'O comprimento do título deve ter pelo menos 3 caracteres',
|
|
742
|
-
descriptionValidationError: 'O comprimento da descrição deve estar entre 3 e 160 caracteres.'
|
|
742
|
+
descriptionValidationError: 'O comprimento da descrição deve estar entre 3 e 160 caracteres.',
|
|
743
|
+
whyNeedAppPid: 'Se o seu aplicativo foi migrado, o DID permanente é o DID gerado quando este Blocklet foi instalado originalmente'
|
|
743
744
|
},
|
|
744
745
|
dashboard: {
|
|
745
746
|
nodeDid: 'Nó',
|
package/lib/locales/ru.js
CHANGED
|
@@ -739,7 +739,8 @@ export default {
|
|
|
739
739
|
disconnectStoreTip: 'Блоклет будет удален из магазина после отключения. Уверены, что хотите отключить?'
|
|
740
740
|
},
|
|
741
741
|
titleValidationError: 'Длина заголовка должна быть не менее 3 символов',
|
|
742
|
-
descriptionValidationError: 'Длина описания должна быть от 3 до 160 символов'
|
|
742
|
+
descriptionValidationError: 'Длина описания должна быть от 3 до 160 символов',
|
|
743
|
+
whyNeedAppPid: 'Если ваше приложение перенесено, постоянный DID — это DID, созданный при первоначальной установке этого Blocklet.'
|
|
743
744
|
},
|
|
744
745
|
dashboard: {
|
|
745
746
|
nodeDid: 'Узел',
|
package/lib/locales/th.js
CHANGED
|
@@ -739,7 +739,8 @@ export default {
|
|
|
739
739
|
disconnectStoreTip: 'เมื่อยกเลิกการเชื่อมต่อแล้ว Blocklet จะถูกลบออกจากร้าน คุณแน่ใจไหมว่าต้องการยกเลิกการเชื่อมต่อหรือไม่'
|
|
740
740
|
},
|
|
741
741
|
titleValidationError: 'ความยาวของชื่อต้องมีอย่างน้อย 3 ตัวอักษร',
|
|
742
|
-
descriptionValidationError: 'ความยาวคำอธิบายต้องอยู่ระหว่าง 3 ถึง 160 ตัวอักษร.'
|
|
742
|
+
descriptionValidationError: 'ความยาวคำอธิบายต้องอยู่ระหว่าง 3 ถึง 160 ตัวอักษร.',
|
|
743
|
+
whyNeedAppPid: 'หากแอปพลิเคชันของคุณได้รับการโยกย้ายมา DID ถาวรคือ DID ที่สร้างขึ้นเมื่อติดตั้ง Blocklet นี้เริ่มแรก'
|
|
743
744
|
},
|
|
744
745
|
dashboard: {
|
|
745
746
|
nodeDid: 'โหนด',
|
package/lib/locales/vi.js
CHANGED
|
@@ -739,7 +739,8 @@ export default {
|
|
|
739
739
|
disconnectStoreTip: 'Sau khi ngắt kết nối, Blocklet sẽ bị xóa khỏi cửa hàng. Bạn có chắc chắn muốn ngắt kết nối không?'
|
|
740
740
|
},
|
|
741
741
|
titleValidationError: 'Độ dài tiêu đề phải ít nhất 3 ký tự',
|
|
742
|
-
descriptionValidationError: 'Chiều dài mô tả phải từ 3 đến 160 ký tự.'
|
|
742
|
+
descriptionValidationError: 'Chiều dài mô tả phải từ 3 đến 160 ký tự.',
|
|
743
|
+
whyNeedAppPid: 'Nếu ứng dụng của bạn đã được di chuyển, DID vĩnh viễn là DID được tạo khi Blocklet này được cài đặt ban đầu'
|
|
743
744
|
},
|
|
744
745
|
dashboard: {
|
|
745
746
|
nodeDid: 'Nút',
|
package/lib/locales/zh-tw.js
CHANGED
|
@@ -739,7 +739,8 @@ export default {
|
|
|
739
739
|
disconnectStoreTip: '斷開連線後,blocklet 將從商店中移除。您確定要斷開連線嗎?'
|
|
740
740
|
},
|
|
741
741
|
titleValidationError: '標題長度必須至少為3到40個字符',
|
|
742
|
-
descriptionValidationError: '描述長度必須介於3到160個字符之間'
|
|
742
|
+
descriptionValidationError: '描述長度必須介於3到160個字符之間',
|
|
743
|
+
whyNeedAppPid: '如果已遷移您的應用程式,永久 DID 是最初安裝此 Blocklet 時產生的 DID。'
|
|
743
744
|
},
|
|
744
745
|
dashboard: {
|
|
745
746
|
nodeDid: '節點',
|
package/lib/locales/zh.js
CHANGED
|
@@ -33,7 +33,7 @@ export default function InviteMember({
|
|
|
33
33
|
inviteInfo: null,
|
|
34
34
|
role: '',
|
|
35
35
|
remark: '',
|
|
36
|
-
sourceAppPid: apps.length > 0 ? apps[0].
|
|
36
|
+
sourceAppPid: apps.length > 0 ? apps[0].appPid : null
|
|
37
37
|
});
|
|
38
38
|
const onCreate = async () => {
|
|
39
39
|
if (!currentState.role) {
|
|
@@ -44,6 +44,10 @@ export default function InviteMember({
|
|
|
44
44
|
currentState.error = null;
|
|
45
45
|
currentState.loading = true;
|
|
46
46
|
try {
|
|
47
|
+
let sourceAppPid = currentState.sourceAppPid ?? null;
|
|
48
|
+
if (sourceAppPid === teamDid) {
|
|
49
|
+
sourceAppPid = null;
|
|
50
|
+
}
|
|
47
51
|
const {
|
|
48
52
|
inviteInfo
|
|
49
53
|
} = await api.createMemberInvitation({
|
|
@@ -51,7 +55,7 @@ export default function InviteMember({
|
|
|
51
55
|
teamDid,
|
|
52
56
|
role: currentState.role,
|
|
53
57
|
remark: trimRemark,
|
|
54
|
-
sourceAppPid
|
|
58
|
+
sourceAppPid
|
|
55
59
|
}
|
|
56
60
|
});
|
|
57
61
|
currentState.inviteInfo = inviteInfo;
|
|
@@ -85,7 +89,7 @@ export default function InviteMember({
|
|
|
85
89
|
label: t('common.passport'),
|
|
86
90
|
disabled: currentState.loading,
|
|
87
91
|
children: apps.map(r => /*#__PURE__*/_jsx(MenuItem, {
|
|
88
|
-
value: r.
|
|
92
|
+
value: r.appPid,
|
|
89
93
|
children: /*#__PURE__*/_jsxs(Box, {
|
|
90
94
|
sx: {
|
|
91
95
|
display: 'flex',
|
|
@@ -100,16 +104,16 @@ export default function InviteMember({
|
|
|
100
104
|
gap: 1
|
|
101
105
|
},
|
|
102
106
|
children: [/*#__PURE__*/_jsx(Avatar, {
|
|
103
|
-
did: r.
|
|
107
|
+
did: r.appPid,
|
|
104
108
|
size: 28
|
|
105
109
|
}), r.appName]
|
|
106
110
|
}), /*#__PURE__*/_jsx(DID, {
|
|
107
|
-
did: r.
|
|
111
|
+
did: r.appPid,
|
|
108
112
|
compact: true,
|
|
109
113
|
responsive: false
|
|
110
114
|
})]
|
|
111
115
|
})
|
|
112
|
-
}, r.
|
|
116
|
+
}, r.appPid))
|
|
113
117
|
})]
|
|
114
118
|
}) : null, /*#__PURE__*/_jsxs(FormControl, {
|
|
115
119
|
fullWidth: true,
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@abtnode/ux",
|
|
3
|
-
"version": "1.16.29-beta-
|
|
3
|
+
"version": "1.16.29-beta-7e212076",
|
|
4
4
|
"description": "UX components shared across abtnode packages",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -25,9 +25,9 @@
|
|
|
25
25
|
"author": "linchen <linchen1987@foxmail.com> (http://github.com/linchen1987)",
|
|
26
26
|
"license": "Apache-2.0",
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@abtnode/auth": "1.16.29-beta-
|
|
29
|
-
"@abtnode/constant": "1.16.29-beta-
|
|
30
|
-
"@abtnode/util": "1.16.29-beta-
|
|
28
|
+
"@abtnode/auth": "1.16.29-beta-7e212076",
|
|
29
|
+
"@abtnode/constant": "1.16.29-beta-7e212076",
|
|
30
|
+
"@abtnode/util": "1.16.29-beta-7e212076",
|
|
31
31
|
"@ahooksjs/use-url-state": "^3.5.1",
|
|
32
32
|
"@arcblock/did": "^1.18.124",
|
|
33
33
|
"@arcblock/did-connect": "^2.10.3",
|
|
@@ -37,11 +37,11 @@
|
|
|
37
37
|
"@arcblock/react-hooks": "^2.10.3",
|
|
38
38
|
"@arcblock/terminal": "^2.10.3",
|
|
39
39
|
"@arcblock/ux": "^2.10.3",
|
|
40
|
-
"@blocklet/constant": "1.16.29-beta-
|
|
41
|
-
"@blocklet/js-sdk": "1.16.29-beta-
|
|
40
|
+
"@blocklet/constant": "1.16.29-beta-7e212076",
|
|
41
|
+
"@blocklet/js-sdk": "1.16.29-beta-7e212076",
|
|
42
42
|
"@blocklet/launcher-layout": "2.3.24",
|
|
43
43
|
"@blocklet/list": "^0.13.4",
|
|
44
|
-
"@blocklet/meta": "1.16.29-beta-
|
|
44
|
+
"@blocklet/meta": "1.16.29-beta-7e212076",
|
|
45
45
|
"@blocklet/ui-react": "^2.10.3",
|
|
46
46
|
"@blocklet/uploader": "0.1.18",
|
|
47
47
|
"@emotion/react": "^11.10.4",
|
|
@@ -108,5 +108,5 @@
|
|
|
108
108
|
"jest": "^29.7.0",
|
|
109
109
|
"jest-environment-jsdom": "^29.7.0"
|
|
110
110
|
},
|
|
111
|
-
"gitHead": "
|
|
111
|
+
"gitHead": "20c632cfb07f1e4fda4ab9b67ba0aad3b0149d3b"
|
|
112
112
|
}
|