@abtnode/ux 1.16.32-beta-f35ca4b8 → 1.16.32-beta-76103be3

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.
@@ -1,8 +1,9 @@
1
+ /* eslint-disable react/prop-types */
1
2
  import React from 'react';
2
3
  import { useLocaleContext } from '@arcblock/ux/lib/Locale/context';
3
4
  import SwitchControl from '@arcblock/ux/lib/Switch';
4
5
  import Box from '@mui/material/Box';
5
- import { Controller, useForm } from 'react-hook-form';
6
+ import { Controller, useForm, useFieldArray } from 'react-hook-form';
6
7
  import Button from '@mui/material/Button';
7
8
  import FormControl from '@mui/material/FormControl';
8
9
  import FormControlLabel from '@mui/material/FormControlLabel';
@@ -15,6 +16,10 @@ import pick from 'lodash/pick';
15
16
  import omit from 'lodash/omit';
16
17
  import merge from 'lodash/merge';
17
18
  import { SESSION_TTL, SESSION_CACHE_TTL } from '@abtnode/constant';
19
+ import TextField from '@mui/material/TextField';
20
+ import IconButton from '@mui/material/IconButton';
21
+ import DeleteIcon from '@mui/icons-material/Delete';
22
+ import AddIcon from '@mui/icons-material/Add';
18
23
  import { useBlockletContext } from '../../contexts/blocklet';
19
24
  import { useNodeContext } from '../../contexts/node';
20
25
  import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
@@ -26,8 +31,11 @@ const defaultForm = {
26
31
  requireVerified: false,
27
32
  requireUnique: false,
28
33
  trustOauthProviders: false,
34
+ trustedIssuers: [],
35
+ enableDomainBlackList: false,
29
36
  domainBlackList: [],
30
- trustedIssuers: []
37
+ enableDomainWhiteList: false,
38
+ domainWhiteList: []
31
39
  },
32
40
  phone: {
33
41
  enabled: false,
@@ -83,6 +91,24 @@ export default function CommonSettings() {
83
91
  } = useLocaleContext();
84
92
  const emailEnabled = watch('email.enabled');
85
93
  const phoneEnabled = watch('phone.enabled');
94
+ const enableDomainBlackList = watch('email.enableDomainBlackList');
95
+ const enableDomainWhiteList = watch('email.enableDomainWhiteList');
96
+ const {
97
+ fields: blackListFields,
98
+ append: appendBlackList,
99
+ remove: removeBlackList
100
+ } = useFieldArray({
101
+ control,
102
+ name: 'email.domainBlackList'
103
+ });
104
+ const {
105
+ fields: whiteListFields,
106
+ append: appendWhiteList,
107
+ remove: removeWhiteList
108
+ } = useFieldArray({
109
+ control,
110
+ name: 'email.domainWhiteList'
111
+ });
86
112
  const onSubmit = useMemoizedFn(async data => {
87
113
  try {
88
114
  const {
@@ -177,6 +203,78 @@ export default function CommonSettings() {
177
203
  }),
178
204
  label: t('blocklet.config.session.emailTrustOauthProviders')
179
205
  })
206
+ }), /*#__PURE__*/_jsx(Controller, {
207
+ name: "email.enableDomainBlackList",
208
+ control: control,
209
+ render: ({
210
+ field
211
+ }) => /*#__PURE__*/_jsx(FormControlLabel, {
212
+ control: /*#__PURE__*/_jsx(Switch, {
213
+ ...field,
214
+ checked: field.value
215
+ }),
216
+ label: t('blocklet.config.session.enableDomainBlackList')
217
+ })
218
+ }), enableDomainBlackList && /*#__PURE__*/_jsxs(Box, {
219
+ ml: 2,
220
+ children: [blackListFields.map((field, index) => /*#__PURE__*/_jsxs(Stack, {
221
+ direction: "row",
222
+ alignItems: "center",
223
+ my: 1,
224
+ maxWidth: "720px",
225
+ children: [/*#__PURE__*/_jsx(Controller, {
226
+ name: `email.domainBlackList.${index}`,
227
+ control: control,
228
+ render: props => /*#__PURE__*/_jsx(TextField, {
229
+ ...props.field,
230
+ size: "small",
231
+ fullWidth: true
232
+ })
233
+ }), /*#__PURE__*/_jsx(IconButton, {
234
+ onClick: () => removeBlackList(index),
235
+ children: /*#__PURE__*/_jsx(DeleteIcon, {})
236
+ })]
237
+ }, field.id)), /*#__PURE__*/_jsx(Button, {
238
+ startIcon: /*#__PURE__*/_jsx(AddIcon, {}),
239
+ onClick: () => appendBlackList(''),
240
+ children: t('blocklet.config.session.addDomain')
241
+ })]
242
+ }), /*#__PURE__*/_jsx(Controller, {
243
+ name: "email.enableDomainWhiteList",
244
+ control: control,
245
+ render: ({
246
+ field
247
+ }) => /*#__PURE__*/_jsx(FormControlLabel, {
248
+ control: /*#__PURE__*/_jsx(Switch, {
249
+ ...field,
250
+ checked: field.value
251
+ }),
252
+ label: t('blocklet.config.session.enableDomainWhiteList')
253
+ })
254
+ }), enableDomainWhiteList && /*#__PURE__*/_jsxs(Box, {
255
+ ml: 2,
256
+ children: [whiteListFields.map((field, index) => /*#__PURE__*/_jsxs(Stack, {
257
+ direction: "row",
258
+ alignItems: "center",
259
+ my: 1,
260
+ maxWidth: "720px",
261
+ children: [/*#__PURE__*/_jsx(Controller, {
262
+ name: `email.domainWhiteList.${index}`,
263
+ control: control,
264
+ render: props => /*#__PURE__*/_jsx(TextField, {
265
+ ...props.field,
266
+ size: "small",
267
+ fullWidth: true
268
+ })
269
+ }), /*#__PURE__*/_jsx(IconButton, {
270
+ onClick: () => removeWhiteList(index),
271
+ children: /*#__PURE__*/_jsx(DeleteIcon, {})
272
+ })]
273
+ }, field.id)), /*#__PURE__*/_jsx(Button, {
274
+ startIcon: /*#__PURE__*/_jsx(AddIcon, {}),
275
+ onClick: () => appendWhiteList(''),
276
+ children: t('blocklet.config.session.addDomain')
277
+ })]
180
278
  })]
181
279
  }), /*#__PURE__*/_jsxs(Box, {
182
280
  sx: {
@@ -1,5 +1,5 @@
1
1
  import { LocaleContext } from '@arcblock/ux/lib/Locale/context';
2
- import { useContext, useState } from 'react';
2
+ import { useContext, useMemo, useState } from 'react';
3
3
  import styled from '@emotion/styled';
4
4
  import PropTypes from 'prop-types';
5
5
  import Badge from '@mui/material/Badge';
@@ -26,6 +26,7 @@ import Line from './line';
26
26
  import Actions from '../../actions';
27
27
  import ComponentInfoDialog from './component-info-dialog';
28
28
  import ComponentCellMountPoint from './component-cell-mount-poin';
29
+ import { useNodeContext } from '../../contexts/node';
29
30
  import { jsx as _jsx, jsxs as _jsxs, Fragment as _Fragment } from "react/jsx-runtime";
30
31
  const isResource = component => !component?.meta?.group;
31
32
  const getComponentName = (componentId, app) => {
@@ -62,6 +63,9 @@ export default function ComponentCell({
62
63
  const [showDeleteConfirm, setShowDeleteConfirm] = useState(false);
63
64
  const [loading, setLoading] = useState(false);
64
65
  const [confirmSetting, setConfirmSetting] = useState(null);
66
+ const {
67
+ info: nodeInfo
68
+ } = useNodeContext();
65
69
  const [showComponentConfiguration, setShowComponentConfiguration] = useState(false);
66
70
  const {
67
71
  deletingBlocklets: deletingComponents
@@ -98,6 +102,11 @@ export default function ComponentCell({
98
102
  setLoading(false);
99
103
  setShowDeleteConfirm(false);
100
104
  };
105
+ const usingDocker = useMemo(() => {
106
+ const enableDocker = !!nodeInfo.enableDocker;
107
+ const keys = new Set((blocklet.configs || []).map(x => x.key));
108
+ return enableDocker ? !keys.has('SKIP_DOCKER') : keys.has('USE_DOCKER');
109
+ }, [blocklet.configs, nodeInfo.enableDocker]);
101
110
  return /*#__PURE__*/_jsxs(_Fragment, {
102
111
  children: [/*#__PURE__*/_jsxs(StyledComponentRow, {
103
112
  display: "flex",
@@ -163,6 +172,16 @@ export default function ComponentCell({
163
172
  icon: "octicon:package-dependents-16"
164
173
  })
165
174
  })
175
+ }), usingDocker && /*#__PURE__*/_jsx(Tooltip, {
176
+ title: t('blocklet.usingDocker'),
177
+ children: /*#__PURE__*/_jsx(Box, {
178
+ display: "flex",
179
+ color: "primary.main",
180
+ ml: 1,
181
+ children: /*#__PURE__*/_jsx(Icon, {
182
+ icon: "catppuccin:docker-ignore"
183
+ })
184
+ })
166
185
  })]
167
186
  })]
168
187
  })]
package/lib/locales/ar.js CHANGED
@@ -502,7 +502,10 @@ export default {
502
502
  phoneEnabled: 'طلب رقم هاتف المستخدم عند تسجيل الدخول (غير مدعوم بعد)',
503
503
  phoneRequireVerified: 'يجب التحقق من رقم هاتف المستخدم قبل تسجيل الدخول',
504
504
  phoneRequireUnique: 'تتطلب رقم هاتف المستخدم أن يكون فريدًا عبر جميع المستخدمين',
505
- emailTrustOauthProviders: 'ثق بمزودي OAuth لحالة التحقق من البريد الإلكتروني'
505
+ emailTrustOauthProviders: 'ثق بمزودي OAuth لحالة التحقق من البريد الإلكتروني',
506
+ enableDomainBlackList: 'تمكين قائمة النطاق البريدي السوداء (رفض النطاقات البريدية المدرجة)',
507
+ enableDomainWhiteList: 'تمكين قائمة النطاقات البيضاء للبريد الإلكتروني (السماح فقط لنطاقات البريد الإلكتروني المدرجة بالدخول)',
508
+ addDomain: 'أضف مصدرًا لاسترداد القائمة (بتنسيق نص عادي ، واحدة لكل سطر)'
506
509
  },
507
510
  clearCache: {
508
511
  name: 'إدارة التخزين المؤقت',
@@ -760,7 +763,8 @@ export default {
760
763
  },
761
764
  titleValidationError: 'يجب أن يكون طول العنوان على الأقل 3 أحرف',
762
765
  descriptionValidationError: 'يجب أن تكون طول الوصف بين 3 و 80 حرفًا',
763
- whyNeedAppPid: 'إذا تم نقل تطبيقك، فإن DID الدائم هو DID الذي تم إنشاؤه عند تثبيت Blocklet هذا في الأصل.'
766
+ whyNeedAppPid: 'إذا تم نقل تطبيقك، فإن DID الدائم هو DID الذي تم إنشاؤه عند تثبيت Blocklet هذا في الأصل.',
767
+ usingDocker: 'سيعمل هذا البلوكليت باستخدام دوكر.'
764
768
  },
765
769
  dashboard: {
766
770
  nodeDid: 'عقدة',
package/lib/locales/de.js CHANGED
@@ -502,7 +502,10 @@ export default {
502
502
  phoneEnabled: 'Benutzer-Telefonnummer bei der Anmeldung anfordern (noch nicht unterstützt)',
503
503
  phoneRequireVerified: 'Benutzerhandynummer muss vor der Anmeldung überprüft werden',
504
504
  phoneRequireUnique: 'Benötigen Sie eine eindeutige Telefonnummer für Benutzer in der gesamten Benutzerbasis',
505
- emailTrustOauthProviders: 'Vertraue OAuth-Anbietern für den E-Mail-Verifizierungsstatus'
505
+ emailTrustOauthProviders: 'Vertraue OAuth-Anbietern für den E-Mail-Verifizierungsstatus',
506
+ enableDomainBlackList: 'E-Mail-Domäne Blacklist aktivieren (abgelehnte E-Mail-Domains)',
507
+ enableDomainWhiteList: 'Aktiviere E-Mail-Domänen-Whitelist (nur aufgeführte E-Mail-Domänen zur Anmeldung zulassen)',
508
+ addDomain: 'Füge eine Quelle hinzu, um die Liste abzurufen (im Klartextformat, eine Domain pro Zeile)'
506
509
  },
507
510
  clearCache: {
508
511
  name: 'Cache-Verwaltung',
@@ -760,7 +763,8 @@ export default {
760
763
  },
761
764
  titleValidationError: 'Die Länge des Titels muss mindestens 3 Zeichen betragen',
762
765
  descriptionValidationError: 'Beschreibungslänge muss zwischen 3 und 80 Zeichen liegen',
763
- whyNeedAppPid: 'Wenn Ihre Anwendung migriert wurde, ist die permanente DID die DID, die bei der ursprünglichen Installation dieses Blocklets generiert wurde.'
766
+ whyNeedAppPid: 'Wenn Ihre Anwendung migriert wurde, ist die permanente DID die DID, die bei der ursprünglichen Installation dieses Blocklets generiert wurde.',
767
+ usingDocker: 'Dieses Blocklet wird mit Docker ausgeführt.'
764
768
  },
765
769
  dashboard: {
766
770
  nodeDid: 'Knoten',
package/lib/locales/en.js CHANGED
@@ -354,6 +354,7 @@ export default {
354
354
  },
355
355
  blocklet: {
356
356
  external: 'External',
357
+ usingDocker: 'This Blocklet will run using docker',
357
358
  notFound: 'Blocklet not found on this server, maybe it has been deleted',
358
359
  installFromMarket: 'Install New Blocklets',
359
360
  installFromUrl: 'Install From Url',
@@ -510,7 +511,10 @@ export default {
510
511
  phoneEnabled: 'Request user phone number on login (not supported yet)',
511
512
  phoneRequireVerified: 'Require user phone number to be verified before login',
512
513
  phoneRequireUnique: 'Require user phone number to be unique across all users',
513
- emailTrustOauthProviders: 'Trust OAuth providers for email verification status'
514
+ emailTrustOauthProviders: 'Trust OAuth providers for email verification status',
515
+ enableDomainBlackList: 'Enable email domain black list (reject listed email domains)',
516
+ enableDomainWhiteList: 'Enable email domain white list (only allow listed email domains to login)',
517
+ addDomain: 'Add source to fetch the list (in plain text format, one domain per line)'
514
518
  },
515
519
  clearCache: {
516
520
  name: 'Cache Management',
package/lib/locales/es.js CHANGED
@@ -502,7 +502,10 @@ export default {
502
502
  phoneEnabled: 'Solicitar número de teléfono del usuario al iniciar sesión (aún no compatible)',
503
503
  phoneRequireVerified: 'Requerir verificación del número de teléfono del usuario antes de iniciar sesión',
504
504
  phoneRequireUnique: 'Requerir que el número de teléfono del usuario sea único entre todos los usuarios',
505
- emailTrustOauthProviders: 'Confíe en los proveedores de OAuth para verificar el estado del correo electrónico'
505
+ emailTrustOauthProviders: 'Confíe en los proveedores de OAuth para verificar el estado del correo electrónico',
506
+ enableDomainBlackList: 'Habilitar lista negra de dominios de correo electrónico (rechazar dominios de correo electrónico listados)',
507
+ enableDomainWhiteList: 'Permitir lista blanca de dominios de correo electrónico (solo permitir que los dominios de correo electrónico enumerados inicien sesión)',
508
+ addDomain: 'Añadir fuente para obtener la lista (en formato de texto plano, un dominio por línea)'
506
509
  },
507
510
  clearCache: {
508
511
  name: 'Gestión de la Caché',
@@ -760,7 +763,8 @@ export default {
760
763
  },
761
764
  titleValidationError: 'La longitud del título debe ser de al menos 3 caracteres',
762
765
  descriptionValidationError: 'La longitud de la descripción debe estar entre 3 y 80 caracteres',
763
- whyNeedAppPid: 'Si se ha migrado su aplicación, el DID permanente es el DID generado cuando este Blocklet se instaló originalmente.'
766
+ whyNeedAppPid: 'Si se ha migrado su aplicación, el DID permanente es el DID generado cuando este Blocklet se instaló originalmente.',
767
+ usingDocker: 'Este Blocklet se ejecutará usando docker'
764
768
  },
765
769
  dashboard: {
766
770
  nodeDid: 'Nodo',
package/lib/locales/fr.js CHANGED
@@ -502,7 +502,10 @@ export default {
502
502
  phoneEnabled: "Demander le numéro de téléphone de l'utilisateur lors de la connexion (non pris en charge pour le moment)",
503
503
  phoneRequireVerified: "Le numéro de téléphone de l'utilisateur doit être vérifié avant de se connecter",
504
504
  phoneRequireUnique: "Exiger un numéro de téléphone unique pour l'ensemble des utilisateurs",
505
- emailTrustOauthProviders: "Faites confiance aux fournisseurs OAuth pour le statut de vérification de l'email"
505
+ emailTrustOauthProviders: "Faites confiance aux fournisseurs OAuth pour le statut de vérification de l'email",
506
+ enableDomainBlackList: 'Activer la liste noire de domaine de messagerie électronique (rejeter les domaines de messagerie électronique répertoriés)',
507
+ enableDomainWhiteList: "Activer la liste blanche de domaine d'e-mails (autoriser uniquement les domaines d'e-mails répertoriés à se connecter)",
508
+ addDomain: 'Ajouter une source pour récupérer la liste (au format texte brut, un domaine par ligne)'
506
509
  },
507
510
  clearCache: {
508
511
  name: 'Gestion du cache',
@@ -760,7 +763,8 @@ export default {
760
763
  },
761
764
  titleValidationError: "La longueur du titre doit être d'au moins 3 caractères",
762
765
  descriptionValidationError: 'La longueur de la description doit être comprise entre 3 et 80 caractères',
763
- 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."
766
+ 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.",
767
+ usingDocker: 'Ce Blocklet fonctionnera en utilisant Docker.'
764
768
  },
765
769
  dashboard: {
766
770
  nodeDid: 'Noeud',
package/lib/locales/hi.js CHANGED
@@ -502,7 +502,10 @@ export default {
502
502
  phoneEnabled: 'लॉगिन पर उपयोगकर्ता का फोन नंबर अनुरोध करें (अभी तक समर्थित नहीं है)',
503
503
  phoneRequireVerified: 'लॉगिन से पहले उपयोगकर्ता का फ़ोन नंबर सत्यापित करना आवश्यक है',
504
504
  phoneRequireUnique: 'सभी उपयोगकर्ताओं के लिए उपयोगकर्ता फ़ोन नंबर को अद्वितीय बनाना आवश्यक है',
505
- emailTrustOauthProviders: 'ईमेल सत्यापन स्थिति के लिए OAuth प्रदाताओं पर भरोसा करें'
505
+ emailTrustOauthProviders: 'ईमेल सत्यापन स्थिति के लिए OAuth प्रदाताओं पर भरोसा करें',
506
+ enableDomainBlackList: 'ईमेल डोमेन ब्लैकलिस्ट सक्षम करें (सूचीबद्ध ईमेल डोमेनों को अस्वीकार करें)',
507
+ enableDomainWhiteList: 'ईमेल डोमेन व्हाइटलिस्ट सक्षम करें (केवल सूचीबद्ध ईमेल डोमेन को लॉगिन करने दें)',
508
+ addDomain: 'सूची लाने के लिए स्रोत जोड़ें (सादा पाठ रूप में, प्रत्येक डोमेन प्रति पंक्ति)'
506
509
  },
507
510
  clearCache: {
508
511
  name: 'कैश प्रबंधन',
@@ -760,7 +763,8 @@ export default {
760
763
  },
761
764
  titleValidationError: 'शीर्षक की लंबाई कम से कम 3 अक्षर होनी चाहिए',
762
765
  descriptionValidationError: 'विवरण लंबाई 3 और 80 वर्णों के बीच होना चाहिए',
763
- whyNeedAppPid: 'अगर आपका एप्लीकेशन माइग्रेट कर दिया गया है, तो परमानेंट DID वही DID है जो उस समय जनरेट की गई थी जब पहली बार यह ब्लॉकलेट इंस्टॉल किया गया था।'
766
+ whyNeedAppPid: 'अगर आपका एप्लीकेशन माइग्रेट कर दिया गया है, तो परमानेंट DID वही DID है जो उस समय जनरेट की गई थी जब पहली बार यह ब्लॉकलेट इंस्टॉल किया गया था।',
767
+ usingDocker: 'यह ब्लॉकलेट डॉकर का उपयोग करके चलेगा।'
764
768
  },
765
769
  dashboard: {
766
770
  nodeDid: 'नोड',
Binary file
package/lib/locales/id.js CHANGED
@@ -502,7 +502,10 @@ export default {
502
502
  phoneEnabled: 'Meminta nomor telepon pengguna saat login (belum didukung)',
503
503
  phoneRequireVerified: 'Memerlukan nomor telepon pengguna untuk diverifikasi sebelum login',
504
504
  phoneRequireUnique: 'Haruslah nomor telepon pengguna unik di antara semua pengguna',
505
- emailTrustOauthProviders: 'Percayai penyedia OAuth untuk status verifikasi email'
505
+ emailTrustOauthProviders: 'Percayai penyedia OAuth untuk status verifikasi email',
506
+ enableDomainBlackList: 'Aktifkan daftar hitam domain email (tolak domain email yang terdaftar)',
507
+ enableDomainWhiteList: 'Aktifkan daftar putih domain email (hanya memperbolehkan domain email yang terdaftar untuk login)',
508
+ addDomain: 'Tambahkan sumber untuk mengambil daftar (dalam format teks biasa, satu domain per baris)'
506
509
  },
507
510
  clearCache: {
508
511
  name: 'Manajemen Cache',
@@ -760,7 +763,8 @@ export default {
760
763
  },
761
764
  titleValidationError: 'Panjang judul harus setidaknya 3 karakter',
762
765
  descriptionValidationError: 'Panjang deskripsi harus antara 3 dan 80 karakter',
763
- whyNeedAppPid: 'Jika aplikasi Anda telah dimigrasikan, DID permanen adalah DID yang dihasilkan saat Blocklet ini pertama kali dipasang'
766
+ whyNeedAppPid: 'Jika aplikasi Anda telah dimigrasikan, DID permanen adalah DID yang dihasilkan saat Blocklet ini pertama kali dipasang',
767
+ usingDocker: 'Blocklet ini akan berjalan menggunakan docker'
764
768
  },
765
769
  dashboard: {
766
770
  nodeDid: 'Node',
package/lib/locales/ja.js CHANGED
@@ -502,7 +502,10 @@ export default {
502
502
  phoneEnabled: 'ログイン時にユーザーの電話番号をリクエストする(まだサポートされていません)',
503
503
  phoneRequireVerified: 'ログイン前にユーザーの電話番号を確認する必要があります',
504
504
  phoneRequireUnique: 'すべてのユーザー全体でユーザーの電話番号が一意であることを要求する',
505
- emailTrustOauthProviders: 'メール確認ステータスのOAuthプロバイダーを信頼する'
505
+ emailTrustOauthProviders: 'メール確認ステータスのOAuthプロバイダーを信頼する',
506
+ enableDomainBlackList: 'メールドメインのブラックリストを有効にする(リストされたメールドメインを拒否する)',
507
+ enableDomainWhiteList: 'メールドメインホワイトリストを有効にする(リストされたメールドメインのみログインを許可)',
508
+ addDomain: 'リストを取得するためのソースを追加します(プレーンテキスト形式、1行ごとに1つのドメイン)'
506
509
  },
507
510
  clearCache: {
508
511
  name: 'キャッシュ管理',
@@ -760,7 +763,8 @@ export default {
760
763
  },
761
764
  titleValidationError: 'タイトルの長さは最低3文字以上である必要があります',
762
765
  descriptionValidationError: '説明の長さは3〜80文字の間でなければなりません',
763
- whyNeedAppPid: 'アプリケーションが移行されている場合、永続的な DID はこの Blocklet が最初にインストールされたときに生成された DID です。'
766
+ whyNeedAppPid: 'アプリケーションが移行されている場合、永続的な DID はこの Blocklet が最初にインストールされたときに生成された DID です。',
767
+ usingDocker: 'このBlockletはdockerを使用して実行されます'
764
768
  },
765
769
  dashboard: {
766
770
  nodeDid: 'ノード',
package/lib/locales/ko.js CHANGED
@@ -502,7 +502,10 @@ export default {
502
502
  phoneEnabled: '로그인시 사용자 전화번호 요청 (아직 지원되지 않음)',
503
503
  phoneRequireVerified: '로그인 전에 사용자 전화번호를 확인해야 합니다',
504
504
  phoneRequireUnique: '모든 사용자를 통틀어 사용자 전화번호가 고유해야 함',
505
- emailTrustOauthProviders: '이메일 확인 상태를 위한 OAuth 제공 업체 신뢰'
505
+ emailTrustOauthProviders: '이메일 확인 상태를 위한 OAuth 제공 업체 신뢰',
506
+ enableDomainBlackList: '이메일 도메인 블랙리스트 활성화(목록된 이메일 도메인 거부)',
507
+ enableDomainWhiteList: '이메일 도메인 화이트리스트 활성화 (목록에 포함된 이메일 도메인만 로그인 허용)',
508
+ addDomain: '목록을 가져 오는 소스 추가 (일반 텍스트 형식, 한 번에 도메인)'
506
509
  },
507
510
  clearCache: {
508
511
  name: '캐시 관리',
@@ -760,7 +763,8 @@ export default {
760
763
  },
761
764
  titleValidationError: '제목 길이는 최소 3자 이상이어야 합니다',
762
765
  descriptionValidationError: '설명 길이는 3에서 80 자여야합니다.',
763
- whyNeedAppPid: '애플리케이션이 마이그레이션된 경우 영구 DID는 이 Blocklet이 처음 설치되었을 때 생성된 DID입니다.'
766
+ whyNeedAppPid: '애플리케이션이 마이그레이션된 경우 영구 DID는 이 Blocklet이 처음 설치되었을 때 생성된 DID입니다.',
767
+ usingDocker: '이 블록 렛은 도커를 사용하여 실행됩니다'
764
768
  },
765
769
  dashboard: {
766
770
  nodeDid: '노드',
package/lib/locales/pt.js CHANGED
@@ -502,7 +502,10 @@ export default {
502
502
  phoneEnabled: 'Solicitar número de telefone do usuário no login (ainda não suportado)',
503
503
  phoneRequireVerified: 'Exigir que o número de telefone do usuário seja verificado antes de fazer login',
504
504
  phoneRequireUnique: 'O número de telefone do usuário deve ser exclusivo entre todos os usuários',
505
- emailTrustOauthProviders: 'Confie nos provedores OAuth para o status de verificação de email'
505
+ emailTrustOauthProviders: 'Confie nos provedores OAuth para o status de verificação de email',
506
+ enableDomainBlackList: 'Ativar lista negra de domínios de e-mail (recusar domínios de e-mail listados)',
507
+ enableDomainWhiteList: 'Ativar lista branca de domínio de e-mail (permitir apenas domínios de e-mail listados para fazer login)',
508
+ addDomain: 'Adicionar fonte para buscar a lista (em formato de texto simples, um domínio por linha)'
506
509
  },
507
510
  clearCache: {
508
511
  name: 'Gerenciamento de Cache',
@@ -760,7 +763,8 @@ export default {
760
763
  },
761
764
  titleValidationError: 'O comprimento do título deve ter pelo menos 3 caracteres',
762
765
  descriptionValidationError: 'O comprimento da descrição deve estar entre 3 e 80 caracteres',
763
- whyNeedAppPid: 'Se o seu aplicativo foi migrado, o DID permanente é o DID gerado quando este Blocklet foi instalado originalmente'
766
+ whyNeedAppPid: 'Se o seu aplicativo foi migrado, o DID permanente é o DID gerado quando este Blocklet foi instalado originalmente',
767
+ usingDocker: 'Este Blocklet será executado usando docker'
764
768
  },
765
769
  dashboard: {
766
770
  nodeDid: 'Nó',
package/lib/locales/ru.js CHANGED
@@ -502,7 +502,10 @@ export default {
502
502
  phoneEnabled: 'Запросить номер телефона пользователя при входе (пока не поддерживается)',
503
503
  phoneRequireVerified: 'Требуется подтверждение номера телефона пользователя перед входом',
504
504
  phoneRequireUnique: 'Требуется, чтобы номер телефона пользователя был уникальным для всех пользователей',
505
- emailTrustOauthProviders: 'Доверьте поставщикам OAuth статус проверки электронной почты'
505
+ emailTrustOauthProviders: 'Доверьте поставщикам OAuth статус проверки электронной почты',
506
+ enableDomainBlackList: 'Активировать черный список доменов электронной почты (отклонить список доменов электронной почты)',
507
+ enableDomainWhiteList: 'Включить белый список доменов электронной почты (разрешить вход только по указанным доменам электронной почты)',
508
+ addDomain: 'Добавьте источник для получения списка (в формате обычного текста, один домен на строку)'
506
509
  },
507
510
  clearCache: {
508
511
  name: 'Управление кэшем',
@@ -760,7 +763,8 @@ export default {
760
763
  },
761
764
  titleValidationError: 'Длина заголовка должна быть не менее 3 символов',
762
765
  descriptionValidationError: 'Длина описания должна быть от 3 до 80 символов',
763
- whyNeedAppPid: 'Если ваше приложение перенесено, постоянный DID — это DID, созданный при первоначальной установке этого Blocklet.'
766
+ whyNeedAppPid: 'Если ваше приложение перенесено, постоянный DID — это DID, созданный при первоначальной установке этого Blocklet.',
767
+ usingDocker: 'Этот блоклет будет работать с использованием Docker.'
764
768
  },
765
769
  dashboard: {
766
770
  nodeDid: 'Узел',
package/lib/locales/th.js CHANGED
@@ -502,7 +502,10 @@ export default {
502
502
  phoneEnabled: 'ขอหมายเลขโทรศัพท์ผู้ใช้เมื่อเข้าสู่ระบบ (ยังไม่รองรับ)',
503
503
  phoneRequireVerified: 'ต้องการให้หมายเลขโทรศัพท์ของผู้ใช้ได้รับการยืนยันก่อนการเข้าสู่ระบบ',
504
504
  phoneRequireUnique: 'ต้องการหมายเลขโทรศัพท์ของผู้ใช้เพื่อเป็นเอกลักษณ์ในทุกผู้ใช้',
505
- emailTrustOauthProviders: '信任 OAuth ในสถานะการตรวจสอบอีเมล'
505
+ emailTrustOauthProviders: '信任 OAuth ในสถานะการตรวจสอบอีเมล',
506
+ enableDomainBlackList: 'เปิดใช้งานรายชื่อดำของโดเมนอีเมล (ปฏิเสธโดเมนอีเมลที่รายการ)',
507
+ enableDomainWhiteList: 'เปิดใช้งานรายชื่อที่ยญสีขาวของโดเมนอีเมล (อนุญาตเฉพาะโดเมนอีเมลที่ระบุให้เข้าสู่ระบบ)',
508
+ addDomain: 'เพิ่มแหล่งที่มาเพื่อเรียกดูรายการ (ในรูปแบบข้อความธรรมดา, หนึ่งโดเมนต่อบรรทัด)'
506
509
  },
507
510
  clearCache: {
508
511
  name: 'การจัดการแคช',
@@ -760,7 +763,8 @@ export default {
760
763
  },
761
764
  titleValidationError: 'ความยาวของชื่อต้องมีอย่างน้อย 3 ตัวอักษร',
762
765
  descriptionValidationError: 'ความยาวของคำอธิบายต้องอยู่ระหว่าง 3 และ 80 ตัวอักษร',
763
- whyNeedAppPid: 'หากแอปพลิเคชันของคุณได้รับการโยกย้ายมา DID ถาวรคือ DID ที่สร้างขึ้นเมื่อติดตั้ง Blocklet นี้เริ่มแรก'
766
+ whyNeedAppPid: 'หากแอปพลิเคชันของคุณได้รับการโยกย้ายมา DID ถาวรคือ DID ที่สร้างขึ้นเมื่อติดตั้ง Blocklet นี้เริ่มแรก',
767
+ usingDocker: 'Blocklet นี้จะทำงานโดยใช้ docker'
764
768
  },
765
769
  dashboard: {
766
770
  nodeDid: 'โหนด',
package/lib/locales/vi.js CHANGED
@@ -502,7 +502,10 @@ export default {
502
502
  phoneEnabled: 'Yêu cầu số điện thoại người dùng khi đăng nhập (chưa được hỗ trợ)',
503
503
  phoneRequireVerified: 'Yêu cầu xác minh số điện thoại người dùng trước khi đăng nhập',
504
504
  phoneRequireUnique: 'Yêu cầu số điện thoại người dùng phải duy nhất trong tất cả người dùng',
505
- emailTrustOauthProviders: 'Tin tưởng các nhà cung cấp OAuth để kiểm tra trạng thái xác minh email'
505
+ emailTrustOauthProviders: 'Tin tưởng các nhà cung cấp OAuth để kiểm tra trạng thái xác minh email',
506
+ enableDomainBlackList: 'Kích hoạt danh sách đen tên miền email (từ chối các tên miền email đã liệt kê)',
507
+ enableDomainWhiteList: 'Kích hoạt danh sách trắng tên miền email (chỉ cho phép các tên miền email được liệt kê để đăng nhập)',
508
+ addDomain: 'Thêm nguồn để lấy danh sách (dưới dạng văn bản thường, một miền trên mỗi dòng)'
506
509
  },
507
510
  clearCache: {
508
511
  name: 'Quản lý Cache',
@@ -760,7 +763,8 @@ export default {
760
763
  },
761
764
  titleValidationError: 'Độ dài tiêu đề phải ít nhất 3 ký tự',
762
765
  descriptionValidationError: 'Độ dài mô tả phải từ 3 đến 80 ký tự',
763
- 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'
766
+ 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',
767
+ usingDocker: 'Blocklet này sẽ chạy bằng docker'
764
768
  },
765
769
  dashboard: {
766
770
  nodeDid: 'Nút',
@@ -502,7 +502,10 @@ export default {
502
502
  phoneEnabled: '在登錄時請求使用者電話號碼(目前不支援)',
503
503
  phoneRequireVerified: '在登錄前要求用戶驗證電話號碼',
504
504
  phoneRequireUnique: '要求使用者電話號碼在所有用戶中是唯一的',
505
- emailTrustOauthProviders: '信任OAuth提供商進行電子郵件驗證狀態'
505
+ emailTrustOauthProviders: '信任OAuth提供商進行電子郵件驗證狀態',
506
+ enableDomainBlackList: '啟用電子郵件域黑名單(拒絕列出的電子郵件域)',
507
+ enableDomainWhiteList: '啟用電子郵件域白名單(僅允許列出的電子郵件域登錄)',
508
+ addDomain: '添加來源以獲取清單(純文本格式,每行一個域名)'
506
509
  },
507
510
  clearCache: {
508
511
  name: '快取管理',
@@ -760,7 +763,8 @@ export default {
760
763
  },
761
764
  titleValidationError: '標題長度必須至少為3到40個字符',
762
765
  descriptionValidationError: '描述長度必須介於3到80個字元之間',
763
- whyNeedAppPid: '如果已遷移您的應用程式,永久 DID 是最初安裝此 Blocklet 時產生的 DID。'
766
+ whyNeedAppPid: '如果已遷移您的應用程式,永久 DID 是最初安裝此 Blocklet 時產生的 DID。',
767
+ usingDocker: '這個Blocklet將使用docker運行'
764
768
  },
765
769
  dashboard: {
766
770
  nodeDid: '節點',
package/lib/locales/zh.js CHANGED
@@ -503,7 +503,10 @@ export default {
503
503
  phoneEnabled: '在登录时请求用户电话号码(目前不支持)',
504
504
  phoneRequireVerified: '在登录前要求用户验证电话号码',
505
505
  phoneRequireUnique: '要求用户电话号码在所有用户中是唯一的',
506
- emailTrustOauthProviders: '信任OAuth提供商进行电子邮件验证状态'
506
+ emailTrustOauthProviders: '信任OAuth提供商进行电子邮件验证状态',
507
+ enableDomainBlackList: '启用电子邮件域黑名单(拒绝列出的电子邮件域)',
508
+ enableDomainWhiteList: '启用电子邮件域白名单(仅允许列出的电子邮件域登录)',
509
+ addDomain: '添加源以获取列表(纯文本格式,每行一个域名)'
507
510
  },
508
511
  clearCache: {
509
512
  name: '缓存管理',
@@ -760,7 +763,8 @@ export default {
760
763
  installToThisServer: '安装到此服务器'
761
764
  },
762
765
  titleValidationError: '标题长度必须至少为3到40个字符',
763
- descriptionValidationError: '描述长度必须介于3到80个字符之间'
766
+ descriptionValidationError: '描述长度必须介于3到80个字符之间',
767
+ usingDocker: '这个 Blocklet 将使用 docker 运行'
764
768
  },
765
769
  dashboard: {
766
770
  nodeDid: '节点地址',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@abtnode/ux",
3
- "version": "1.16.32-beta-f35ca4b8",
3
+ "version": "1.16.32-beta-76103be3",
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.32-beta-f35ca4b8",
29
- "@abtnode/constant": "1.16.32-beta-f35ca4b8",
30
- "@abtnode/util": "1.16.32-beta-f35ca4b8",
28
+ "@abtnode/auth": "1.16.32-beta-76103be3",
29
+ "@abtnode/constant": "1.16.32-beta-76103be3",
30
+ "@abtnode/util": "1.16.32-beta-76103be3",
31
31
  "@ahooksjs/use-url-state": "^3.5.1",
32
32
  "@arcblock/did": "^1.18.135",
33
33
  "@arcblock/did-connect": "^2.10.33",
@@ -37,13 +37,13 @@
37
37
  "@arcblock/react-hooks": "^2.10.33",
38
38
  "@arcblock/terminal": "^2.10.33",
39
39
  "@arcblock/ux": "^2.10.33",
40
- "@blocklet/constant": "1.16.32-beta-f35ca4b8",
41
- "@blocklet/js-sdk": "1.16.32-beta-f35ca4b8",
40
+ "@blocklet/constant": "1.16.32-beta-76103be3",
41
+ "@blocklet/js-sdk": "1.16.32-beta-76103be3",
42
42
  "@blocklet/launcher-layout": "2.10.33",
43
- "@blocklet/list": "^0.13.26",
44
- "@blocklet/meta": "1.16.32-beta-f35ca4b8",
43
+ "@blocklet/list": "^0.13.27",
44
+ "@blocklet/meta": "1.16.32-beta-76103be3",
45
45
  "@blocklet/ui-react": "^2.10.33",
46
- "@blocklet/uploader": "0.1.34",
46
+ "@blocklet/uploader": "0.1.36",
47
47
  "@emotion/react": "^11.10.4",
48
48
  "@emotion/styled": "^11.10.4",
49
49
  "@iconify-icons/logos": "^1.2.36",
@@ -108,5 +108,5 @@
108
108
  "jest": "^29.7.0",
109
109
  "jest-environment-jsdom": "^29.7.0"
110
110
  },
111
- "gitHead": "061103ce2e5a200eb4c318b41ccb7ea92b6c4ca3"
111
+ "gitHead": "6d7afe107a349b1267b29e7f2216db9997085015"
112
112
  }