diff --git a/.eslintrc.js b/.eslintrc.js index 6704a85b2..398d64c84 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -82,4 +82,12 @@ module.exports = { "one-var": ["error", "never"], "max-statements-per-line": ["error", { "max": 1 }] }, + "overrides": [ + { + "files": [ "src/languages/*.js" ], + "rules": { + "comma-dangle": ["error", "always-multiline"], + } + } + ] } diff --git a/src/languages/da-DK.js b/src/languages/da-DK.js index c43e3181a..fa9ceac7c 100644 --- a/src/languages/da-DK.js +++ b/src/languages/da-DK.js @@ -143,5 +143,5 @@ export default { Inactive: "Inactive", Token: "Token", "Show URI": "Show URI", - "Clear all statistics": "Clear all Statistics" + "Clear all statistics": "Clear all Statistics", } diff --git a/src/languages/de-DE.js b/src/languages/de-DE.js index cff49cb0c..223d23b92 100644 --- a/src/languages/de-DE.js +++ b/src/languages/de-DE.js @@ -114,8 +114,8 @@ export default { "Repeat Password": "Wiederhole das Passwort", "Resource Record Type": "Resource Record Type", "Import/Export Backup": "Import/Export Backup", - "Export": "Export", - "Import": "Import", + Export: "Export", + Import: "Import", respTime: "Antw. Zeit (ms)", notAvailableShort: "N/A", "Default enabled": "Standardmäßig aktiviert", @@ -142,5 +142,5 @@ export default { Inactive: "Inaktiv", Token: "Token", "Show URI": "URI Anzeigen", - "Clear all statistics": "Lösche alle Statistiken" + "Clear all statistics": "Lösche alle Statistiken", } diff --git a/src/languages/en.js b/src/languages/en.js index 9b692b517..9b3e5422a 100644 --- a/src/languages/en.js +++ b/src/languages/en.js @@ -142,5 +142,5 @@ export default { Inactive: "Inactive", Token: "Token", "Show URI": "Show URI", - "Clear all statistics": "Clear all Statistics" + "Clear all statistics": "Clear all Statistics", } diff --git a/src/languages/es-ES.js b/src/languages/es-ES.js index 7b24bcd04..ca3e4d757 100644 --- a/src/languages/es-ES.js +++ b/src/languages/es-ES.js @@ -143,5 +143,5 @@ export default { Inactive: "Inactive", Token: "Token", "Show URI": "Show URI", - "Clear all statistics": "Clear all Statistics" + "Clear all statistics": "Clear all Statistics", } diff --git a/src/languages/et-EE.js b/src/languages/et-EE.js index c196da13f..551e0c675 100644 --- a/src/languages/et-EE.js +++ b/src/languages/et-EE.js @@ -143,5 +143,5 @@ export default { Inactive: "Inactive", Token: "Token", "Show URI": "Show URI", - "Clear all statistics": "Clear all Statistics" + "Clear all statistics": "Clear all Statistics", } diff --git a/src/languages/fr-FR.js b/src/languages/fr-FR.js index 137148623..6d61beb00 100644 --- a/src/languages/fr-FR.js +++ b/src/languages/fr-FR.js @@ -143,5 +143,5 @@ export default { Inactive: "Inactive", Token: "Token", "Show URI": "Show URI", - "Clear all statistics": "Clear all Statistics" + "Clear all statistics": "Clear all Statistics", } diff --git a/src/languages/it-IT.js b/src/languages/it-IT.js index 5c171bec6..a2e1d5b5f 100644 --- a/src/languages/it-IT.js +++ b/src/languages/it-IT.js @@ -143,5 +143,5 @@ export default { Inactive: "Inactive", Token: "Token", "Show URI": "Show URI", - "Clear all statistics": "Clear all Statistics" + "Clear all statistics": "Clear all Statistics", } diff --git a/src/languages/ja.js b/src/languages/ja.js index 2e1b5f33e..eff5279f2 100644 --- a/src/languages/ja.js +++ b/src/languages/ja.js @@ -143,5 +143,5 @@ export default { Inactive: "Inactive", Token: "Token", "Show URI": "Show URI", - "Clear all statistics": "Clear all Statistics" + "Clear all statistics": "Clear all Statistics", } diff --git a/src/languages/ko-KR.js b/src/languages/ko-KR.js index 2f9a002dd..e730d7148 100644 --- a/src/languages/ko-KR.js +++ b/src/languages/ko-KR.js @@ -143,5 +143,5 @@ export default { Inactive: "Inactive", Token: "Token", "Show URI": "Show URI", - "Clear all statistics": "Clear all Statistics" + "Clear all statistics": "Clear all Statistics", } diff --git a/src/languages/nl-NL.js b/src/languages/nl-NL.js index 80b69fd9d..8e61125f4 100644 --- a/src/languages/nl-NL.js +++ b/src/languages/nl-NL.js @@ -143,5 +143,5 @@ export default { Inactive: "Inactive", Token: "Token", "Show URI": "Show URI", - "Clear all statistics": "Clear all Statistics" + "Clear all statistics": "Clear all Statistics", } diff --git a/src/languages/pl.js b/src/languages/pl.js index 1b5ffd139..a63005aa3 100644 --- a/src/languages/pl.js +++ b/src/languages/pl.js @@ -143,5 +143,5 @@ export default { Inactive: "Inactive", Token: "Token", "Show URI": "Show URI", - "Clear all statistics": "Clear all Statistics" + "Clear all statistics": "Clear all Statistics", } diff --git a/src/languages/ru-RU.js b/src/languages/ru-RU.js index 11ad56874..b1e2b1ef4 100644 --- a/src/languages/ru-RU.js +++ b/src/languages/ru-RU.js @@ -143,5 +143,5 @@ export default { Inactive: "Inactive", Token: "Token", "Show URI": "Show URI", - "Clear all statistics": "Clear all Statistics" + "Clear all statistics": "Clear all Statistics", } diff --git a/src/languages/sr-latn.js b/src/languages/sr-latn.js index 251be1556..b0e5489f1 100644 --- a/src/languages/sr-latn.js +++ b/src/languages/sr-latn.js @@ -143,5 +143,5 @@ export default { Inactive: "Inactive", Token: "Token", "Show URI": "Show URI", - "Clear all statistics": "Clear all Statistics" + "Clear all statistics": "Clear all Statistics", } diff --git a/src/languages/sr.js b/src/languages/sr.js index d213732f9..e6e3ba4c2 100644 --- a/src/languages/sr.js +++ b/src/languages/sr.js @@ -143,5 +143,5 @@ export default { Inactive: "Inactive", Token: "Token", "Show URI": "Show URI", - "Clear all statistics": "Clear all Statistics" + "Clear all statistics": "Clear all Statistics", } diff --git a/src/languages/sv-SE.js b/src/languages/sv-SE.js index 4ab1a7394..38f27dac3 100644 --- a/src/languages/sv-SE.js +++ b/src/languages/sv-SE.js @@ -143,5 +143,5 @@ export default { Inactive: "Inactive", Token: "Token", "Show URI": "Show URI", - "Clear all statistics": "Clear all Statistics" + "Clear all statistics": "Clear all Statistics", } diff --git a/src/languages/zh-CN.js b/src/languages/zh-CN.js index 488beaa38..a19901685 100644 --- a/src/languages/zh-CN.js +++ b/src/languages/zh-CN.js @@ -142,5 +142,5 @@ export default { Inactive: "Inactive", Token: "Token", "Show URI": "Show URI", - "Clear all statistics": "Clear all Statistics" + "Clear all statistics": "Clear all Statistics", } diff --git a/src/languages/zh-HK.js b/src/languages/zh-HK.js index 686f59701..187e1a12b 100644 --- a/src/languages/zh-HK.js +++ b/src/languages/zh-HK.js @@ -142,5 +142,5 @@ export default { Inactive: "未生效", Token: "Token", "Show URI": "顯示 URI", - "Clear all statistics": "清除所有歷史記錄" + "Clear all statistics": "清除所有歷史記錄", } diff --git a/src/pages/EditMonitor.vue b/src/pages/EditMonitor.vue index 420c4900e..f98bb7560 100644 --- a/src/pages/EditMonitor.vue +++ b/src/pages/EditMonitor.vue @@ -219,6 +219,7 @@ export default { dnsresolvetypeOptions: [], // Source: https://digitalfortress.tech/tips/top-15-commonly-used-regex/ + // eslint-disable-next-line ipRegexPattern: "((^\s*((([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5])\.){3}([0-9]|[1-9][0-9]|1[0-9]{2}|2[0-4][0-9]|25[0-5]))\s*$)|(^\s*((([0-9A-Fa-f]{1,4}:){7}([0-9A-Fa-f]{1,4}|:))|(([0-9A-Fa-f]{1,4}:){6}(:[0-9A-Fa-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){5}(((:[0-9A-Fa-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9A-Fa-f]{1,4}:){4}(((:[0-9A-Fa-f]{1,4}){1,3})|((:[0-9A-Fa-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9A-Fa-f]{1,4}:){3}(((:[0-9A-Fa-f]{1,4}){1,4})|((:[0-9A-Fa-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\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