@abtnode/ux 1.16.28-beta-bfbab430 → 1.16.28-beta-17c98819

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.
@@ -7,7 +7,7 @@ import Alert from '@arcblock/ux/lib/Alert';
7
7
  import AnimationWaiter from '@arcblock/ux/lib/AnimationWaiter';
8
8
  import Button from '@arcblock/ux/lib/Button';
9
9
  import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
10
- import { BLOCKLET_APP_SPACE_REQUIREMENT, BLOCKLET_CONFIGURABLE_KEY, BlockletEvents, BlockletGroup, BlockletStatus } from '@blocklet/constant';
10
+ import { BLOCKLET_APP_SPACE_REQUIREMENT, BLOCKLET_CONFIGURABLE_KEY, BlockletEvents, BlockletStatus } from '@blocklet/constant';
11
11
  import { StepProvider } from '@blocklet/launcher-layout/lib/context/step';
12
12
  import ResultMessage from '@blocklet/launcher-layout/lib/launch-result-message';
13
13
  import PageHeader from '@blocklet/launcher-layout/lib/page-header';
@@ -851,7 +851,7 @@ export default function AddComponentCore({
851
851
  }
852
852
  });
853
853
  }
854
- if (hasStartEngine(meta) && meta.group !== BlockletGroup.engine && !alreadyInstalled(meta.did)) {
854
+ if (hasStartEngine(meta) && !alreadyInstalled(meta.did)) {
855
855
  steps.push({
856
856
  key: 'config',
857
857
  name: t('common.config'),
@@ -122,6 +122,7 @@ function Header({
122
122
  });
123
123
  return;
124
124
  }
125
+ setLoading(true);
125
126
  if (initLogoUrl) {
126
127
  try {
127
128
  const filename = await uploadImageToProject({
@@ -135,10 +136,10 @@ function Header({
135
136
  });
136
137
  } catch (err) {
137
138
  Toast.error(err.message);
139
+ setLoading(false);
138
140
  return;
139
141
  }
140
142
  }
141
- setLoading(true);
142
143
  const saveKeys = Object.keys(saveSelectedEventsRef.current);
143
144
  try {
144
145
  await pAll(saveKeys.map(x => {
@@ -41,7 +41,7 @@ const uploadImageToProject = async ({
41
41
  };
42
42
 
43
43
  // 使用 Tus 协议上传文件
44
- const createUploadResponse = await axios.post(joinURL(WELLKNOWN_SERVICE_PATH_PREFIX, '/api/project', did, projectId, uploadType, 'upload'), formData, {
44
+ const createUploadResponse = await axios.post(joinURL(WELLKNOWN_SERVICE_PATH_PREFIX, '/api/project', did, projectId, uploadType, 'upload'), null, {
45
45
  headers: {
46
46
  'Tus-Resumable': '1.0.0',
47
47
  'Upload-Length': file.size,
@@ -53,7 +53,7 @@ const uploadImageToProject = async ({
53
53
  const uploadUrl = createUploadResponse.headers.location;
54
54
 
55
55
  // Upload the file in chunks
56
- const chunkSize = 5 * 1024 * 1024;
56
+ const chunkSize = 2 * 1024 * 1024;
57
57
  let offset = 0;
58
58
  let filename = '';
59
59
  for (const chunk of createFileChunks(file, chunkSize)) {
package/lib/locales/ar.js CHANGED
@@ -979,7 +979,10 @@ export default {
979
979
  testReceiver: 'مستقبل PushKit',
980
980
  testSend: 'اختبار إرسال مجموعة الدفع',
981
981
  inputTestReceiver: 'الرجاء إدخال مستقبل الاختبار',
982
- receiverRequired: 'مطلوب مستقبل PushKit'
982
+ receiverRequired: 'مطلوب مستقبل PushKit',
983
+ pushPath: 'مسار Api ل push-kit (افتراضي /api/push)',
984
+ did: 'PushKit Blocklet DID',
985
+ customOptions: 'خيارات مخصصة'
983
986
  }
984
987
  },
985
988
  router: {
package/lib/locales/de.js CHANGED
@@ -979,7 +979,10 @@ export default {
979
979
  testReceiver: 'PushKit-Empfänger',
980
980
  testSend: 'Test-Push-Kit senden',
981
981
  inputTestReceiver: 'Bitte geben Sie den Test-Empfänger ein',
982
- receiverRequired: 'PushKit-Empfänger ist erforderlich'
982
+ receiverRequired: 'PushKit-Empfänger ist erforderlich',
983
+ pushPath: 'Api-Pfad für Push-Kit (Standard /api/push)',
984
+ did: 'PushKit Blocklet DID',
985
+ customOptions: 'Benutzerdefinierte Optionen'
983
986
  }
984
987
  },
985
988
  router: {
package/lib/locales/en.js CHANGED
@@ -1493,7 +1493,7 @@ export default {
1493
1493
  installedButStopped: 'The app is installed successfully, but cannot be started. You can start it manually after resolving blocking issues',
1494
1494
  installedButError: 'The app is successfully installed, but failed to start',
1495
1495
  restoreFailed: 'Failed to restore app, please try again',
1496
- resourceBlocklet: 'Resource Blocklet cannot be installed as an application, you can mount this blocklet into existing applications.'
1496
+ resourceBlocklet: 'Blocklet cannot be installed as an application, you can add this blocklet into existing applications.'
1497
1497
  },
1498
1498
  steps: {
1499
1499
  introduction: 'Introduction',
package/lib/locales/es.js CHANGED
@@ -979,7 +979,10 @@ export default {
979
979
  testReceiver: 'Receptor PushKit',
980
980
  testSend: 'Probar enviar push-kit',
981
981
  inputTestReceiver: 'Introduzca el receptor de prueba did',
982
- receiverRequired: 'Se requiere receptor PushKit'
982
+ receiverRequired: 'Se requiere receptor PushKit',
983
+ pushPath: 'Ruta de API para push-kit (predeterminado /api/push)',
984
+ did: 'PushKit Blocklet DID',
985
+ customOptions: 'Opciones personalizadas'
983
986
  }
984
987
  },
985
988
  router: {
package/lib/locales/fr.js CHANGED
@@ -979,7 +979,10 @@ export default {
979
979
  testReceiver: 'Récepteur PushKit',
980
980
  testSend: "Tester l'envoi du kit push",
981
981
  inputTestReceiver: 'Veuillez saisir le destinataire du test',
982
- receiverRequired: 'Récepteur PushKit requis'
982
+ receiverRequired: 'Récepteur PushKit requis',
983
+ pushPath: 'Chemin API pour push-kit (par défaut /api/push)',
984
+ did: 'PushKit Blocklet DID',
985
+ customOptions: 'Options personnalisées'
983
986
  }
984
987
  },
985
988
  router: {
package/lib/locales/hi.js CHANGED
@@ -979,7 +979,10 @@ export default {
979
979
  testReceiver: 'पुष्कीत रिसीवर',
980
980
  testSend: 'टेस्ट पुश-किट भेजें',
981
981
  inputTestReceiver: 'कृपया परीक्षण रिसीवर इनपुट करें',
982
- receiverRequired: 'पुशकिट रिसीवर ज़रूरी हैं'
982
+ receiverRequired: 'पुशकिट रिसीवर ज़रूरी हैं',
983
+ pushPath: 'पुश-किट के लिए एपीआई पथ (डिफ़ॉल्ट /api/push)',
984
+ did: 'PushKit Blocklet DID',
985
+ customOptions: 'कस्टम विकल्प'
983
986
  }
984
987
  },
985
988
  router: {
Binary file
package/lib/locales/id.js CHANGED
@@ -979,7 +979,10 @@ export default {
979
979
  testReceiver: 'Penerima PushKit',
980
980
  testSend: 'Uji coba kiriman push-kit',
981
981
  inputTestReceiver: 'Masukkan penerima uji',
982
- receiverRequired: 'Diperlukan penerima PushKit'
982
+ receiverRequired: 'Diperlukan penerima PushKit',
983
+ pushPath: 'Jalur api untuk push-kit (default /api/push)',
984
+ did: 'PushKit Blocklet DID',
985
+ customOptions: 'Opsi Kustom'
983
986
  }
984
987
  },
985
988
  router: {
package/lib/locales/ja.js CHANGED
@@ -979,7 +979,10 @@ export default {
979
979
  testReceiver: 'PushKit レシーバー',
980
980
  testSend: 'プッシュキットの送信をテストする',
981
981
  inputTestReceiver: 'テストレシーバーdidを入力してください',
982
- receiverRequired: 'PushKit レシーバーが必要です'
982
+ receiverRequired: 'PushKit レシーバーが必要です',
983
+ pushPath: 'プッシュキットの API パス(デフォルト /api/push)',
984
+ did: 'PushKit Blocklet DID',
985
+ customOptions: 'カスタムオプション'
983
986
  }
984
987
  },
985
988
  router: {
package/lib/locales/ko.js CHANGED
@@ -979,7 +979,10 @@ export default {
979
979
  testReceiver: '푸시킷 수신기',
980
980
  testSend: '푸시 키트 보내기 테스트',
981
981
  inputTestReceiver: '테스트 수신자 입력 did',
982
- receiverRequired: 'PushKit 수신기가 필요함'
982
+ receiverRequired: 'PushKit 수신기가 필요함',
983
+ pushPath: '푸시-킷의 API 경로 (기본 /api/push)',
984
+ did: 'PushKit Blocklet DID',
985
+ customOptions: '사용자 정의 옵션'
983
986
  }
984
987
  },
985
988
  router: {
package/lib/locales/pt.js CHANGED
@@ -979,7 +979,10 @@ export default {
979
979
  testReceiver: 'Receptor PushKit',
980
980
  testSend: 'Teste o envio do push-kit',
981
981
  inputTestReceiver: 'Digite o receptor de teste',
982
- receiverRequired: 'É necessário o receptor PushKit'
982
+ receiverRequired: 'É necessário o receptor PushKit',
983
+ pushPath: 'Caminho da api para push-kit (padrão /api/push)',
984
+ did: 'PushKit Blocklet DID',
985
+ customOptions: 'Opções Personalizadas'
983
986
  }
984
987
  },
985
988
  router: {
package/lib/locales/ru.js CHANGED
@@ -979,7 +979,10 @@ export default {
979
979
  testReceiver: 'Приемник PushKit',
980
980
  testSend: 'Проверка отправки push-комплекта',
981
981
  inputTestReceiver: 'Пожалуйста, введите тестовый приемник',
982
- receiverRequired: 'Требуется приемник PushKit'
982
+ receiverRequired: 'Требуется приемник PushKit',
983
+ pushPath: 'Путь Api для push-kit (по умолчанию /api/push)',
984
+ did: 'PushKit Blocklet DID',
985
+ customOptions: 'Пользовательские настройки'
983
986
  }
984
987
  },
985
988
  router: {
package/lib/locales/th.js CHANGED
@@ -979,7 +979,10 @@ export default {
979
979
  testReceiver: 'ตัวรับ PushKit',
980
980
  testSend: 'ทดสอบการส่ง push-kit',
981
981
  inputTestReceiver: 'โปรดป้อนเครื่องรับทดสอบ',
982
- receiverRequired: 'จำเป็นต้องใช้ตัวรับ PushKit'
982
+ receiverRequired: 'จำเป็นต้องใช้ตัวรับ PushKit',
983
+ pushPath: 'เส้นทาง api สำหรับ push-kit (ค่าเริ่มต้น /api/push)',
984
+ did: 'PushKit Blocklet DID',
985
+ customOptions: 'ตัวเลือกที่กำหนดเอง'
983
986
  }
984
987
  },
985
988
  router: {
package/lib/locales/vi.js CHANGED
@@ -979,7 +979,10 @@ export default {
979
979
  testReceiver: 'Máy thu PushKit',
980
980
  testSend: 'Thử nghiệm đẩy push-kit',
981
981
  inputTestReceiver: 'Vui lòng nhập máy thu thử nghiệm',
982
- receiverRequired: 'Cần có bộ thu PushKit'
982
+ receiverRequired: 'Cần có bộ thu PushKit',
983
+ pushPath: 'Đường dẫn api cho push-kit (mặc định /api/push)',
984
+ did: 'PushKit Blocklet DID',
985
+ customOptions: 'Tùy Chọn Tùy Chỉnh'
983
986
  }
984
987
  },
985
988
  router: {
@@ -353,7 +353,7 @@ export default {
353
353
  uploaded: '已上傳',
354
354
  uploadToStore: '上傳至 Store',
355
355
  upload: '上傳',
356
- blockletStudio: '工作室',
356
+ blockletStudio: 'Studio',
357
357
  visitStore: '訪問 Store',
358
358
  reconnect: '重新連接'
359
359
  },
@@ -979,7 +979,10 @@ export default {
979
979
  testReceiver: 'PushKit 接收者',
980
980
  testSend: '測試推播套件發送',
981
981
  inputTestReceiver: '請輸入測試接收者 DID',
982
- receiverRequired: '需要 PushKit 接收者 DID'
982
+ receiverRequired: '需要 PushKit 接收者 DID',
983
+ pushPath: '推送套件的 API 路徑(預設 /api/push)',
984
+ did: 'PushKit Blocklet DID',
985
+ customOptions: '自訂選項'
983
986
  }
984
987
  },
985
988
  router: {
package/lib/locales/zh.js CHANGED
@@ -353,7 +353,7 @@ export default {
353
353
  uploaded: '已上传',
354
354
  uploadToStore: '上传到 Store',
355
355
  upload: '上传',
356
- blockletStudio: '工作室',
356
+ blockletStudio: 'Studio',
357
357
  visitStore: '访问 Store',
358
358
  reconnect: '重新连接'
359
359
  },
@@ -982,7 +982,10 @@ export default {
982
982
  testReceiver: 'PushKit 接收器',
983
983
  testSend: '测试推送',
984
984
  inputTestReceiver: '请输入测试接收者 DID',
985
- receiverRequired: '需要 PushKit 接收者 DID'
985
+ receiverRequired: '需要 PushKit 接收者 DID',
986
+ pushPath: '推送套件的 API 路径(默认 /api/push)',
987
+ did: 'PushKit Blocklet DID',
988
+ customOptions: '自定义选项'
986
989
  }
987
990
  },
988
991
  router: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/ux",
3
- "version": "1.16.28-beta-bfbab430",
3
+ "version": "1.16.28-beta-17c98819",
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.28-beta-bfbab430",
29
- "@abtnode/constant": "1.16.28-beta-bfbab430",
30
- "@abtnode/util": "1.16.28-beta-bfbab430",
28
+ "@abtnode/auth": "1.16.28-beta-17c98819",
29
+ "@abtnode/constant": "1.16.28-beta-17c98819",
30
+ "@abtnode/util": "1.16.28-beta-17c98819",
31
31
  "@ahooksjs/use-url-state": "^3.5.1",
32
32
  "@arcblock/did": "^1.18.123",
33
33
  "@arcblock/did-connect": "^2.9.90",
@@ -37,10 +37,10 @@
37
37
  "@arcblock/react-hooks": "^2.9.90",
38
38
  "@arcblock/terminal": "^2.9.90",
39
39
  "@arcblock/ux": "^2.9.90",
40
- "@blocklet/constant": "1.16.28-beta-bfbab430",
40
+ "@blocklet/constant": "1.16.28-beta-17c98819",
41
41
  "@blocklet/launcher-layout": "2.3.21",
42
42
  "@blocklet/list": "^0.12.111",
43
- "@blocklet/meta": "1.16.28-beta-bfbab430",
43
+ "@blocklet/meta": "1.16.28-beta-17c98819",
44
44
  "@blocklet/ui-react": "^2.9.90",
45
45
  "@blocklet/uploader": "^0.1.6",
46
46
  "@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": "f1fbf0752de46be00d1faa0d54eb7d28016e0bb9"
111
+ "gitHead": "952ebe5b093575757efe06237c3c3e80b6909d50"
112
112
  }