foris 5.2.0 → 5.3.0-beta.1bb8abd6
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/bootstrap/DownloadButton.js +7 -2
- package/bootstrap/PasswordInput.js +6 -3
- package/bootstrap/Select.js +5 -11
- package/common/WiFiSettings/ResetWiFiSettings.js +4 -4
- package/common/WiFiSettings/WiFiForm.js +18 -11
- package/common/WiFiSettings/WiFiSettings.js +8 -0
- package/common/WiFiSettings/constants.js +18 -19
- package/foris-5.3.0.tgz +0 -0
- package/index.js +1 -0
- package/package.json +6 -6
- package/translations/cs/LC_MESSAGES/forisjs.po +116 -57
- package/translations/da/LC_MESSAGES/forisjs.po +152 -52
- package/translations/de/LC_MESSAGES/forisjs.po +131 -72
- package/translations/el/LC_MESSAGES/forisjs.po +152 -52
- package/translations/en/LC_MESSAGES/forisjs.po +152 -52
- package/translations/es/LC_MESSAGES/forisjs.po +153 -52
- package/translations/fi/LC_MESSAGES/forisjs.po +152 -52
- package/translations/fo/LC_MESSAGES/forisjs.po +152 -52
- package/translations/forisjs.pot +103 -54
- package/translations/fr/LC_MESSAGES/forisjs.po +168 -70
- package/translations/hr/LC_MESSAGES/forisjs.po +152 -52
- package/translations/hu/LC_MESSAGES/forisjs.po +153 -52
- package/translations/it/LC_MESSAGES/forisjs.po +152 -52
- package/translations/ja/LC_MESSAGES/forisjs.po +153 -52
- package/translations/ko/LC_MESSAGES/forisjs.po +152 -52
- package/translations/lt/LC_MESSAGES/forisjs.po +152 -52
- package/translations/nb_NO/LC_MESSAGES/forisjs.po +116 -57
- package/translations/nl/LC_MESSAGES/forisjs.po +154 -52
- package/translations/pl/LC_MESSAGES/forisjs.po +153 -52
- package/translations/pt_BR/LC_MESSAGES/forisjs.po +361 -0
- package/translations/ro/LC_MESSAGES/forisjs.po +152 -52
- package/translations/ru/LC_MESSAGES/forisjs.po +121 -58
- package/translations/sk/LC_MESSAGES/forisjs.po +123 -61
- package/translations/sv/LC_MESSAGES/forisjs.po +161 -54
- package/utils/validations.js +6 -2
- package/foris-5.2.0.tgz +0 -0
package/utils/validations.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
/*
|
|
2
|
-
* Copyright (C) 2019 CZ.NIC z.s.p.o. (
|
|
2
|
+
* Copyright (C) 2019-2022 CZ.NIC z.s.p.o. (https://www.nic.cz/)
|
|
3
3
|
*
|
|
4
4
|
* This is free software, licensed under the GNU General Public License v3.
|
|
5
5
|
* See /LICENSE for more information.
|
|
@@ -14,6 +14,7 @@ export const ERROR_MESSAGES = {
|
|
|
14
14
|
IPv6: _("This is not a valid IPv6 address."),
|
|
15
15
|
IPv6Prefix: _("This is not a valid IPv6 prefix."),
|
|
16
16
|
domain: _("This is not a valid domain name."),
|
|
17
|
+
hostname: _("This is not a valid hostname."),
|
|
17
18
|
DUID: _("This is not a valid DUID."),
|
|
18
19
|
MAC: _("This is not a valid MAC address."),
|
|
19
20
|
MultipleEmails: _("Doesn't contain a list of emails separated by commas."),
|
|
@@ -23,7 +24,8 @@ const REs = {
|
|
|
23
24
|
IPv4: /^((25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.){3}(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$/,
|
|
24
25
|
IPv6: /^(([0-9a-fA-F]{1,4}:){7,7}[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,7}:|([0-9a-fA-F]{1,4}:){1,6}:[0-9a-fA-F]{1,4}|([0-9a-fA-F]{1,4}:){1,5}(:[0-9a-fA-F]{1,4}){1,2}|([0-9a-fA-F]{1,4}:){1,4}(:[0-9a-fA-F]{1,4}){1,3}|([0-9a-fA-F]{1,4}:){1,3}(:[0-9a-fA-F]{1,4}){1,4}|([0-9a-fA-F]{1,4}:){1,2}(:[0-9a-fA-F]{1,4}){1,5}|[0-9a-fA-F]{1,4}:((:[0-9a-fA-F]{1,4}){1,6})|:((:[0-9a-fA-F]{1,4}){1,7}|:)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1,4}){0,4}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:))|(:(((:[0-9A-Fa-f]{1,4}){1,7})|((:[0-9A-Fa-f]{1,4}){0,5}:((25[0-5]|2[0-4]d|1dd|[1-9]?d)(.(25[0-5]|2[0-4]d|1dd|[1-9]?d)){3}))|:)))(%.+)?s*(\/([0-9]|[1-9][0-9]|1[0-1][0-9]|12[0-8]))$/,
|
|
26
|
-
domain: /^[
|
|
27
|
+
domain: /^([a-z0-9]+(-[a-z0-9]+)*\.)+[a-z]{2,}$/,
|
|
28
|
+
hostname: /^[a-z\d]([a-z\d-]{0,61}[a-z\d])?(\.[a-z\d]([a-z\d-]{0,61}[a-z\d])?)*$/i,
|
|
27
29
|
DUID: /^([0-9a-fA-F]{2}){4}([0-9a-fA-F]{2})*$/,
|
|
28
30
|
MAC: /^([a-fA-F0-9]{2}:){5}[a-fA-F0-9]{2}$/,
|
|
29
31
|
MultipleEmails: /^([a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+ *)( *, *[a-zA-Z0-9_.+-]+@[a-zA-Z0-9-]+\.[a-zA-Z0-9-.]+ *)*$/,
|
|
@@ -40,6 +42,7 @@ const validateIPv4Address = createValidator("IPv4");
|
|
|
40
42
|
const validateIPv6Address = createValidator("IPv6");
|
|
41
43
|
const validateIPv6Prefix = createValidator("IPv6Prefix");
|
|
42
44
|
const validateDomain = createValidator("domain");
|
|
45
|
+
const validateHostname = createValidator("hostname");
|
|
43
46
|
const validateDUID = createValidator("DUID");
|
|
44
47
|
const validateMAC = createValidator("MAC");
|
|
45
48
|
const validateMultipleEmails = createValidator("MultipleEmails");
|
|
@@ -49,6 +52,7 @@ export {
|
|
|
49
52
|
validateIPv6Address,
|
|
50
53
|
validateIPv6Prefix,
|
|
51
54
|
validateDomain,
|
|
55
|
+
validateHostname,
|
|
52
56
|
validateDUID,
|
|
53
57
|
validateMAC,
|
|
54
58
|
validateMultipleEmails,
|
package/foris-5.2.0.tgz
DELETED
|
Binary file
|