@growy/strapi-plugin-encrypted-field 1.0.3 → 1.0.5
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/admin/src/index.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Key } from '@strapi/icons';
|
|
2
2
|
|
|
3
3
|
export default {
|
|
4
4
|
register(app) {
|
|
@@ -14,7 +14,7 @@ export default {
|
|
|
14
14
|
id: 'encrypted-field.description',
|
|
15
15
|
defaultMessage: 'Campo de texto que se cifra automáticamente con AES-256-GCM',
|
|
16
16
|
},
|
|
17
|
-
icon:
|
|
17
|
+
icon: Key,
|
|
18
18
|
components: {
|
|
19
19
|
Input: async () => import('./components/Input.jsx'),
|
|
20
20
|
},
|
|
@@ -22,7 +22,7 @@ export default {
|
|
|
22
22
|
base: [
|
|
23
23
|
{
|
|
24
24
|
sectionTitle: {
|
|
25
|
-
id: 'encrypted-field.options.
|
|
25
|
+
id: 'encrypted-field.options.base.settings',
|
|
26
26
|
defaultMessage: 'Configuración',
|
|
27
27
|
},
|
|
28
28
|
items: [
|
|
@@ -50,6 +50,30 @@ export default {
|
|
|
50
50
|
defaultMessage: 'Este campo no será devuelto por la API',
|
|
51
51
|
},
|
|
52
52
|
},
|
|
53
|
+
{
|
|
54
|
+
name: 'maxLength',
|
|
55
|
+
type: 'number',
|
|
56
|
+
intlLabel: {
|
|
57
|
+
id: 'encrypted-field.options.maxLength.label',
|
|
58
|
+
defaultMessage: 'Longitud máxima',
|
|
59
|
+
},
|
|
60
|
+
description: {
|
|
61
|
+
id: 'encrypted-field.options.maxLength.description',
|
|
62
|
+
defaultMessage: 'Número máximo de caracteres permitidos',
|
|
63
|
+
},
|
|
64
|
+
},
|
|
65
|
+
{
|
|
66
|
+
name: 'minLength',
|
|
67
|
+
type: 'number',
|
|
68
|
+
intlLabel: {
|
|
69
|
+
id: 'encrypted-field.options.minLength.label',
|
|
70
|
+
defaultMessage: 'Longitud mínima',
|
|
71
|
+
},
|
|
72
|
+
description: {
|
|
73
|
+
id: 'encrypted-field.options.minLength.description',
|
|
74
|
+
defaultMessage: 'Número mínimo de caracteres requeridos',
|
|
75
|
+
},
|
|
76
|
+
},
|
|
53
77
|
],
|
|
54
78
|
},
|
|
55
79
|
],
|
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
"encrypted-field.label": "Encrypted Text",
|
|
3
3
|
"encrypted-field.description": "Text field that is automatically encrypted with AES-256-GCM",
|
|
4
4
|
"encrypted-field.placeholder": "Enter text to encrypt...",
|
|
5
|
-
"encrypted-field.options.
|
|
5
|
+
"encrypted-field.options.base.settings": "Settings",
|
|
6
6
|
"encrypted-field.options.required.label": "Required field",
|
|
7
7
|
"encrypted-field.options.required.description": "You won't be able to save without this field",
|
|
8
8
|
"encrypted-field.options.private.label": "Private field",
|
|
9
9
|
"encrypted-field.options.private.description": "This field will not be returned by the API",
|
|
10
|
+
"encrypted-field.options.maxLength.label": "Maximum length",
|
|
11
|
+
"encrypted-field.options.maxLength.description": "Maximum number of characters allowed",
|
|
12
|
+
"encrypted-field.options.minLength.label": "Minimum length",
|
|
13
|
+
"encrypted-field.options.minLength.description": "Minimum number of characters required",
|
|
10
14
|
"encrypted-field.options.advanced.regex": "Validation",
|
|
11
15
|
"encrypted-field.options.regex.label": "RegEx pattern",
|
|
12
16
|
"encrypted-field.options.regex.description": "Validation pattern before encryption"
|
|
@@ -2,11 +2,15 @@
|
|
|
2
2
|
"encrypted-field.label": "Texto Cifrado",
|
|
3
3
|
"encrypted-field.description": "Campo de texto que se cifra automáticamente con AES-256-GCM",
|
|
4
4
|
"encrypted-field.placeholder": "Ingresa el texto a cifrar...",
|
|
5
|
-
"encrypted-field.options.
|
|
5
|
+
"encrypted-field.options.base.settings": "Configuración",
|
|
6
6
|
"encrypted-field.options.required.label": "Campo requerido",
|
|
7
7
|
"encrypted-field.options.required.description": "No se podrá guardar sin este campo",
|
|
8
8
|
"encrypted-field.options.private.label": "Campo privado",
|
|
9
9
|
"encrypted-field.options.private.description": "Este campo no será devuelto por la API",
|
|
10
|
+
"encrypted-field.options.maxLength.label": "Longitud máxima",
|
|
11
|
+
"encrypted-field.options.maxLength.description": "Número máximo de caracteres permitidos",
|
|
12
|
+
"encrypted-field.options.minLength.label": "Longitud mínima",
|
|
13
|
+
"encrypted-field.options.minLength.description": "Número mínimo de caracteres requeridos",
|
|
10
14
|
"encrypted-field.options.advanced.regex": "Validación",
|
|
11
15
|
"encrypted-field.options.regex.label": "RegEx pattern",
|
|
12
16
|
"encrypted-field.options.regex.description": "Patrón de validación antes de cifrar"
|