From 305c2c5ecb49a1349be2efb1ef557d61da9a64dc Mon Sep 17 00:00:00 2001 From: mhatvan Date: Thu, 5 Aug 2021 08:58:28 +0200 Subject: refactor: general code improvements - replace deprecated fs.exists with fs.existsSync - replace console.log with debug - replace hardcoded FERDI_VERSION in start.js with dynamic one from package.json - correct JSDoc annotations in Handler.js - simplify macOSPermissions.js - updates to various eslint rules - add FileReader to known globals --- src/i18n/messages/src/components/auth/Signup.json | 52 +++--- src/i18n/messages/src/lib/Menu.json | 204 +++++++++++----------- 2 files changed, 128 insertions(+), 128 deletions(-) (limited to 'src/i18n/messages') diff --git a/src/i18n/messages/src/components/auth/Signup.json b/src/i18n/messages/src/components/auth/Signup.json index 2628c9aa3..4a32628ef 100644 --- a/src/i18n/messages/src/components/auth/Signup.json +++ b/src/i18n/messages/src/components/auth/Signup.json @@ -4,11 +4,11 @@ "defaultMessage": "!!!Sign up", "file": "src/components/auth/Signup.js", "start": { - "line": 19, + "line": 20, "column": 12 }, "end": { - "line": 22, + "line": 23, "column": 3 } }, @@ -17,11 +17,11 @@ "defaultMessage": "!!!Firstname", "file": "src/components/auth/Signup.js", "start": { - "line": 23, + "line": 24, "column": 18 }, "end": { - "line": 26, + "line": 27, "column": 3 } }, @@ -30,11 +30,11 @@ "defaultMessage": "!!!Lastname", "file": "src/components/auth/Signup.js", "start": { - "line": 27, + "line": 28, "column": 17 }, "end": { - "line": 30, + "line": 31, "column": 3 } }, @@ -43,11 +43,11 @@ "defaultMessage": "!!!Email address", "file": "src/components/auth/Signup.js", "start": { - "line": 31, + "line": 32, "column": 14 }, "end": { - "line": 34, + "line": 35, "column": 3 } }, @@ -56,11 +56,11 @@ "defaultMessage": "!!!Password", "file": "src/components/auth/Signup.js", "start": { - "line": 39, + "line": 40, "column": 17 }, "end": { - "line": 42, + "line": 43, "column": 3 } }, @@ -69,11 +69,11 @@ "defaultMessage": "!!!By creating a Ferdi account you accept the", "file": "src/components/auth/Signup.js", "start": { - "line": 43, + "line": 44, "column": 13 }, "end": { - "line": 46, + "line": 47, "column": 3 } }, @@ -82,11 +82,11 @@ "defaultMessage": "!!!Terms of service", "file": "src/components/auth/Signup.js", "start": { - "line": 47, + "line": 48, "column": 9 }, "end": { - "line": 50, + "line": 51, "column": 3 } }, @@ -95,11 +95,11 @@ "defaultMessage": "!!!Privacy Statement", "file": "src/components/auth/Signup.js", "start": { - "line": 51, + "line": 52, "column": 11 }, "end": { - "line": 54, + "line": 55, "column": 3 } }, @@ -108,11 +108,11 @@ "defaultMessage": "!!!Create account", "file": "src/components/auth/Signup.js", "start": { - "line": 55, + "line": 56, "column": 21 }, "end": { - "line": 58, + "line": 59, "column": 3 } }, @@ -121,11 +121,11 @@ "defaultMessage": "!!!Already have an account, sign in?", "file": "src/components/auth/Signup.js", "start": { - "line": 59, + "line": 60, "column": 13 }, "end": { - "line": 62, + "line": 63, "column": 3 } }, @@ -134,11 +134,11 @@ "defaultMessage": "!!!Change server", "file": "src/components/auth/Signup.js", "start": { - "line": 63, + "line": 64, "column": 16 }, "end": { - "line": 66, + "line": 67, "column": 3 } }, @@ -147,11 +147,11 @@ "defaultMessage": "!!!Use Ferdi without an Account", "file": "src/components/auth/Signup.js", "start": { - "line": 67, + "line": 68, "column": 14 }, "end": { - "line": 70, + "line": 71, "column": 3 } }, @@ -160,11 +160,11 @@ "defaultMessage": "!!!A user with that email address already exists", "file": "src/components/auth/Signup.js", "start": { - "line": 71, + "line": 72, "column": 18 }, "end": { - "line": 74, + "line": 75, "column": 3 } } diff --git a/src/i18n/messages/src/lib/Menu.json b/src/i18n/messages/src/lib/Menu.json index 07d1b1b80..1ddd00c43 100644 --- a/src/i18n/messages/src/lib/Menu.json +++ b/src/i18n/messages/src/lib/Menu.json @@ -4,11 +4,11 @@ "defaultMessage": "!!!Edit", "file": "src/lib/Menu.js", "start": { - "line": 19, + "line": 20, "column": 8 }, "end": { - "line": 22, + "line": 23, "column": 3 } }, @@ -17,11 +17,11 @@ "defaultMessage": "!!!View", "file": "src/lib/Menu.js", "start": { - "line": 23, + "line": 24, "column": 8 }, "end": { - "line": 26, + "line": 27, "column": 3 } }, @@ -30,11 +30,11 @@ "defaultMessage": "!!!Find in Page", "file": "src/lib/Menu.js", "start": { - "line": 27, + "line": 28, "column": 14 }, "end": { - "line": 30, + "line": 31, "column": 3 } }, @@ -43,11 +43,11 @@ "defaultMessage": "!!!Speech", "file": "src/lib/Menu.js", "start": { - "line": 31, + "line": 32, "column": 10 }, "end": { - "line": 34, + "line": 35, "column": 3 } }, @@ -56,11 +56,11 @@ "defaultMessage": "!!!Start Speaking", "file": "src/lib/Menu.js", "start": { - "line": 35, + "line": 36, "column": 17 }, "end": { - "line": 38, + "line": 39, "column": 3 } }, @@ -69,11 +69,11 @@ "defaultMessage": "!!!Stop Speaking", "file": "src/lib/Menu.js", "start": { - "line": 39, + "line": 40, "column": 16 }, "end": { - "line": 42, + "line": 43, "column": 3 } }, @@ -82,11 +82,11 @@ "defaultMessage": "!!!Start Dictation", "file": "src/lib/Menu.js", "start": { - "line": 43, + "line": 44, "column": 18 }, "end": { - "line": 46, + "line": 47, "column": 3 } }, @@ -95,11 +95,11 @@ "defaultMessage": "!!!Emoji & Symbols", "file": "src/lib/Menu.js", "start": { - "line": 47, + "line": 48, "column": 16 }, "end": { - "line": 50, + "line": 51, "column": 3 } }, @@ -108,11 +108,11 @@ "defaultMessage": "!!!Open Quick Switch", "file": "src/lib/Menu.js", "start": { - "line": 51, + "line": 52, "column": 19 }, "end": { - "line": 54, + "line": 55, "column": 3 } }, @@ -121,11 +121,11 @@ "defaultMessage": "!!!Back", "file": "src/lib/Menu.js", "start": { - "line": 55, + "line": 56, "column": 8 }, "end": { - "line": 58, + "line": 59, "column": 3 } }, @@ -134,11 +134,11 @@ "defaultMessage": "!!!Forward", "file": "src/lib/Menu.js", "start": { - "line": 59, + "line": 60, "column": 11 }, "end": { - "line": 62, + "line": 63, "column": 3 } }, @@ -147,11 +147,11 @@ "defaultMessage": "!!!Toggle Dark Mode", "file": "src/lib/Menu.js", "start": { - "line": 63, + "line": 64, "column": 18 }, "end": { - "line": 66, + "line": 67, "column": 3 } }, @@ -160,11 +160,11 @@ "defaultMessage": "!!!Toggle Developer Tools", "file": "src/lib/Menu.js", "start": { - "line": 67, + "line": 68, "column": 18 }, "end": { - "line": 70, + "line": 71, "column": 3 } }, @@ -173,11 +173,11 @@ "defaultMessage": "!!!Toggle Todos Developer Tools", "file": "src/lib/Menu.js", "start": { - "line": 71, + "line": 72, "column": 23 }, "end": { - "line": 74, + "line": 75, "column": 3 } }, @@ -186,11 +186,11 @@ "defaultMessage": "!!!Toggle Service Developer Tools", "file": "src/lib/Menu.js", "start": { - "line": 75, + "line": 76, "column": 25 }, "end": { - "line": 78, + "line": 79, "column": 3 } }, @@ -199,11 +199,11 @@ "defaultMessage": "!!!Reload Service", "file": "src/lib/Menu.js", "start": { - "line": 79, + "line": 80, "column": 17 }, "end": { - "line": 82, + "line": 83, "column": 3 } }, @@ -212,11 +212,11 @@ "defaultMessage": "!!!Reload Ferdi", "file": "src/lib/Menu.js", "start": { - "line": 83, + "line": 84, "column": 15 }, "end": { - "line": 86, + "line": 87, "column": 3 } }, @@ -225,11 +225,11 @@ "defaultMessage": "!!!Lock Ferdi", "file": "src/lib/Menu.js", "start": { - "line": 87, + "line": 88, "column": 13 }, "end": { - "line": 90, + "line": 91, "column": 3 } }, @@ -238,11 +238,11 @@ "defaultMessage": "!!!Reload ToDos", "file": "src/lib/Menu.js", "start": { - "line": 91, + "line": 92, "column": 15 }, "end": { - "line": 94, + "line": 95, "column": 3 } }, @@ -251,11 +251,11 @@ "defaultMessage": "!!!Learn More", "file": "src/lib/Menu.js", "start": { - "line": 95, + "line": 96, "column": 13 }, "end": { - "line": 98, + "line": 99, "column": 3 } }, @@ -264,11 +264,11 @@ "defaultMessage": "!!!Changelog", "file": "src/lib/Menu.js", "start": { - "line": 99, + "line": 100, "column": 13 }, "end": { - "line": 102, + "line": 103, "column": 3 } }, @@ -277,11 +277,11 @@ "defaultMessage": "!!!Support", "file": "src/lib/Menu.js", "start": { - "line": 103, + "line": 104, "column": 11 }, "end": { - "line": 106, + "line": 107, "column": 3 } }, @@ -290,11 +290,11 @@ "defaultMessage": "!!!Copy Debug Information", "file": "src/lib/Menu.js", "start": { - "line": 107, + "line": 108, "column": 13 }, "end": { - "line": 110, + "line": 111, "column": 3 } }, @@ -303,11 +303,11 @@ "defaultMessage": "!!!Publish Debug Information", "file": "src/lib/Menu.js", "start": { - "line": 111, + "line": 112, "column": 20 }, "end": { - "line": 114, + "line": 115, "column": 3 } }, @@ -316,11 +316,11 @@ "defaultMessage": "!!!Ferdi Debug Information", "file": "src/lib/Menu.js", "start": { - "line": 115, + "line": 116, "column": 27 }, "end": { - "line": 118, + "line": 119, "column": 3 } }, @@ -329,11 +329,11 @@ "defaultMessage": "!!!Your Debug Information has been copied to your clipboard.", "file": "src/lib/Menu.js", "start": { - "line": 119, + "line": 120, "column": 23 }, "end": { - "line": 122, + "line": 123, "column": 3 } }, @@ -342,11 +342,11 @@ "defaultMessage": "!!!Unlock with Touch ID", "file": "src/lib/Menu.js", "start": { - "line": 123, + "line": 124, "column": 11 }, "end": { - "line": 126, + "line": 127, "column": 3 } }, @@ -355,11 +355,11 @@ "defaultMessage": "!!!unlock via Touch ID", "file": "src/lib/Menu.js", "start": { - "line": 127, + "line": 128, "column": 17 }, "end": { - "line": 130, + "line": 131, "column": 3 } }, @@ -368,11 +368,11 @@ "defaultMessage": "!!!Terms of Service", "file": "src/lib/Menu.js", "start": { - "line": 131, + "line": 132, "column": 7 }, "end": { - "line": 134, + "line": 135, "column": 3 } }, @@ -381,11 +381,11 @@ "defaultMessage": "!!!Privacy Statement", "file": "src/lib/Menu.js", "start": { - "line": 135, + "line": 136, "column": 11 }, "end": { - "line": 138, + "line": 139, "column": 3 } }, @@ -394,11 +394,11 @@ "defaultMessage": "!!!File", "file": "src/lib/Menu.js", "start": { - "line": 139, + "line": 140, "column": 8 }, "end": { - "line": 142, + "line": 143, "column": 3 } }, @@ -407,11 +407,11 @@ "defaultMessage": "!!!Services", "file": "src/lib/Menu.js", "start": { - "line": 143, + "line": 144, "column": 12 }, "end": { - "line": 146, + "line": 147, "column": 3 } }, @@ -420,11 +420,11 @@ "defaultMessage": "!!!What's new?", "file": "src/lib/Menu.js", "start": { - "line": 147, + "line": 148, "column": 16 }, "end": { - "line": 150, + "line": 151, "column": 3 } }, @@ -433,11 +433,11 @@ "defaultMessage": "!!!Settings", "file": "src/lib/Menu.js", "start": { - "line": 151, + "line": 152, "column": 12 }, "end": { - "line": 154, + "line": 155, "column": 3 } }, @@ -446,11 +446,11 @@ "defaultMessage": "!!!Check for updates", "file": "src/lib/Menu.js", "start": { - "line": 155, + "line": 156, "column": 19 }, "end": { - "line": 158, + "line": 159, "column": 3 } }, @@ -459,11 +459,11 @@ "defaultMessage": "!!!Auto-hide menu bar", "file": "src/lib/Menu.js", "start": { - "line": 159, + "line": 160, "column": 19 }, "end": { - "line": 162, + "line": 163, "column": 3 } }, @@ -472,11 +472,11 @@ "defaultMessage": "!!!Add New Service...", "file": "src/lib/Menu.js", "start": { - "line": 163, + "line": 164, "column": 17 }, "end": { - "line": 166, + "line": 167, "column": 3 } }, @@ -485,11 +485,11 @@ "defaultMessage": "!!!Add New Workspace...", "file": "src/lib/Menu.js", "start": { - "line": 167, + "line": 168, "column": 19 }, "end": { - "line": 170, + "line": 171, "column": 3 } }, @@ -498,11 +498,11 @@ "defaultMessage": "!!!Open workspace drawer", "file": "src/lib/Menu.js", "start": { - "line": 171, + "line": 172, "column": 23 }, "end": { - "line": 174, + "line": 175, "column": 3 } }, @@ -511,11 +511,11 @@ "defaultMessage": "!!!Close workspace drawer", "file": "src/lib/Menu.js", "start": { - "line": 175, + "line": 176, "column": 24 }, "end": { - "line": 178, + "line": 179, "column": 3 } }, @@ -524,11 +524,11 @@ "defaultMessage": "!!!Activate next service...", "file": "src/lib/Menu.js", "start": { - "line": 179, + "line": 180, "column": 23 }, "end": { - "line": 182, + "line": 183, "column": 3 } }, @@ -537,11 +537,11 @@ "defaultMessage": "!!!Activate previous service...", "file": "src/lib/Menu.js", "start": { - "line": 183, + "line": 184, "column": 27 }, "end": { - "line": 186, + "line": 187, "column": 3 } }, @@ -550,11 +550,11 @@ "defaultMessage": "!!!Disable notifications & audio", "file": "src/lib/Menu.js", "start": { - "line": 187, + "line": 188, "column": 11 }, "end": { - "line": 190, + "line": 191, "column": 3 } }, @@ -563,11 +563,11 @@ "defaultMessage": "!!!Enable notifications & audio", "file": "src/lib/Menu.js", "start": { - "line": 191, + "line": 192, "column": 13 }, "end": { - "line": 194, + "line": 195, "column": 3 } }, @@ -576,11 +576,11 @@ "defaultMessage": "!!!Workspaces", "file": "src/lib/Menu.js", "start": { - "line": 195, + "line": 196, "column": 14 }, "end": { - "line": 198, + "line": 199, "column": 3 } }, @@ -589,11 +589,11 @@ "defaultMessage": "!!!Default", "file": "src/lib/Menu.js", "start": { - "line": 199, + "line": 200, "column": 20 }, "end": { - "line": 202, + "line": 203, "column": 3 } }, @@ -602,11 +602,11 @@ "defaultMessage": "!!!Todos", "file": "src/lib/Menu.js", "start": { - "line": 203, + "line": 204, "column": 9 }, "end": { - "line": 206, + "line": 207, "column": 3 } }, @@ -615,11 +615,11 @@ "defaultMessage": "!!!Open Todos drawer", "file": "src/lib/Menu.js", "start": { - "line": 207, + "line": 208, "column": 19 }, "end": { - "line": 210, + "line": 211, "column": 3 } }, @@ -628,11 +628,11 @@ "defaultMessage": "!!!Close Todos drawer", "file": "src/lib/Menu.js", "start": { - "line": 211, + "line": 212, "column": 20 }, "end": { - "line": 214, + "line": 215, "column": 3 } }, @@ -641,11 +641,11 @@ "defaultMessage": "!!!Enable Todos", "file": "src/lib/Menu.js", "start": { - "line": 215, + "line": 216, "column": 15 }, "end": { - "line": 218, + "line": 219, "column": 3 } }, @@ -654,11 +654,11 @@ "defaultMessage": "!!!Home", "file": "src/lib/Menu.js", "start": { - "line": 219, + "line": 220, "column": 17 }, "end": { - "line": 222, + "line": 223, "column": 3 } } -- cgit v1.2.3-70-g09d2