From 8f4243bb546c09456a882403b6d8d38c5a3371c4 Mon Sep 17 00:00:00 2001 From: Radoslav Irha Date: Wed, 3 Jan 2024 20:01:31 +0100 Subject: [PATCH] chore: eslint --- packages/cli/bin/config.js | 78 +++++++++---------- .../app/api/authentication/auth/services.ts | 2 +- ui/hikers-book/src/locale/messages.cs.xlf | 42 +++++----- ui/hikers-book/src/locale/messages.sk.xlf | 42 +++++----- ui/hikers-book/src/locale/messages.xlf | 38 ++++----- 5 files changed, 101 insertions(+), 101 deletions(-) diff --git a/packages/cli/bin/config.js b/packages/cli/bin/config.js index 7631dd9..1baf4c8 100755 --- a/packages/cli/bin/config.js +++ b/packages/cli/bin/config.js @@ -1,48 +1,48 @@ -'use strict'; +"use strict"; var __importDefault = (this && this.__importDefault) || function (mod) { - return (mod && mod.__esModule) ? mod : { 'default': mod }; + return (mod && mod.__esModule) ? mod : { "default": mod }; }; -Object.defineProperty(exports, '__esModule', { value: true }); +Object.defineProperty(exports, "__esModule", { value: true }); exports.config = void 0; -const chalk_1 = __importDefault(require('chalk')); -const fs_1 = __importDefault(require('fs')); -const json_merger_1 = require('json-merger'); -const log_symbols_1 = __importDefault(require('log-symbols')); +const chalk_1 = __importDefault(require("chalk")); +const fs_1 = __importDefault(require("fs")); +const json_merger_1 = require("json-merger"); +const log_symbols_1 = __importDefault(require("log-symbols")); const config = (sourceFile, targetFile, options) => { - if (!fs_1.default.existsSync(sourceFile)) { - console.error(log_symbols_1.default.error, chalk_1.default.red('Source file does not exist. Giving up.'), chalk_1.default.bgBlue(sourceFile)); - return; - } - if (fs_1.default.existsSync(targetFile)) { - try { - if (options.format === 'json') { - console.info(log_symbols_1.default.info, chalk_1.default.cyan('Merging missing json entries from'), chalk_1.default.bgBlue(sourceFile), chalk_1.default.cyan('into'), chalk_1.default.bgBlue(targetFile)); - const target = fs_1.default.readFileSync(targetFile, 'utf8'); - const source = fs_1.default.readFileSync(sourceFile, 'utf8'); - const result = (0, json_merger_1.mergeObjects)([JSON.parse(source), JSON.parse(target)]); - fs_1.default.writeFileSync(targetFile, JSON.stringify(result, null, 2), 'utf8'); - console.info(log_symbols_1.default.success, chalk_1.default.green('Done'), chalk_1.default.bgBlue(targetFile)); - } - else if (options.format === 'dotenv') { - console.info(log_symbols_1.default.warning, chalk_1.default.red(`Cannot merge missing entries for type ${options.format} in`), chalk_1.default.bgBlue(targetFile)); - } - else { - console.info(log_symbols_1.default.warning, chalk_1.default.red(`Cannot merge unsupported type ${options.format} in`), chalk_1.default.bgBlue(targetFile)); - } + if (!fs_1.default.existsSync(sourceFile)) { + console.error(log_symbols_1.default.error, chalk_1.default.red('Source file does not exist. Giving up.'), chalk_1.default.bgBlue(sourceFile)); + return; } - catch (error) { - console.error(log_symbols_1.default.error, chalk_1.default.red(error), chalk_1.default.bgBlue(targetFile)); + if (fs_1.default.existsSync(targetFile)) { + try { + if (options.format === 'json') { + console.info(log_symbols_1.default.info, chalk_1.default.cyan('Merging missing json entries from'), chalk_1.default.bgBlue(sourceFile), chalk_1.default.cyan('into'), chalk_1.default.bgBlue(targetFile)); + const target = fs_1.default.readFileSync(targetFile, 'utf8'); + const source = fs_1.default.readFileSync(sourceFile, 'utf8'); + const result = (0, json_merger_1.mergeObjects)([JSON.parse(source), JSON.parse(target)]); + fs_1.default.writeFileSync(targetFile, JSON.stringify(result, null, 2), 'utf8'); + console.info(log_symbols_1.default.success, chalk_1.default.green('Done'), chalk_1.default.bgBlue(targetFile)); + } + else if (options.format === 'dotenv') { + console.info(log_symbols_1.default.warning, chalk_1.default.red(`Cannot merge missing entries for type ${options.format} in`), chalk_1.default.bgBlue(targetFile)); + } + else { + console.info(log_symbols_1.default.warning, chalk_1.default.red(`Cannot merge unsupported type ${options.format} in`), chalk_1.default.bgBlue(targetFile)); + } + } + catch (error) { + console.error(log_symbols_1.default.error, chalk_1.default.red(error), chalk_1.default.bgBlue(targetFile)); + } } - } - else { - console.info(log_symbols_1.default.info, chalk_1.default.cyan(`Creating ${options.format}`), chalk_1.default.bgBlue(targetFile)); - try { - fs_1.default.writeFileSync(targetFile, fs_1.default.readFileSync(sourceFile, 'utf8'), 'utf8'); - console.info(log_symbols_1.default.success, chalk_1.default.green('Created'), chalk_1.default.bgBlue(targetFile)); + else { + console.info(log_symbols_1.default.info, chalk_1.default.cyan(`Creating ${options.format}`), chalk_1.default.bgBlue(targetFile)); + try { + fs_1.default.writeFileSync(targetFile, fs_1.default.readFileSync(sourceFile, 'utf8'), 'utf8'); + console.info(log_symbols_1.default.success, chalk_1.default.green('Created'), chalk_1.default.bgBlue(targetFile)); + } + catch (error) { + console.error(log_symbols_1.default.error, chalk_1.default.red(error), chalk_1.default.bgBlue(targetFile)); + } } - catch (error) { - console.error(log_symbols_1.default.error, chalk_1.default.red(error), chalk_1.default.bgBlue(targetFile)); - } - } }; exports.config = config; diff --git a/ui/hikers-book/src/app/api/authentication/auth/services.ts b/ui/hikers-book/src/app/api/authentication/auth/services.ts index 89aad2d..d738c7f 100644 --- a/ui/hikers-book/src/app/api/authentication/auth/services.ts +++ b/ui/hikers-book/src/app/api/authentication/auth/services.ts @@ -1,5 +1,5 @@ +export { APIAuthenticationAuthAuthenticateControllerService } from './services/api-authentication-auth-authenticate-controller.service'; export { APIAuthenticationAuthAuthProviderEmailControllerService } from './services/api-authentication-auth-auth-provider-email-controller.service'; export { APIAuthenticationAuthAuthProviderFacebookControllerService } from './services/api-authentication-auth-auth-provider-facebook-controller.service'; export { APIAuthenticationAuthAuthProviderGithubControllerService } from './services/api-authentication-auth-auth-provider-github-controller.service'; export { APIAuthenticationAuthAuthProviderGoogleControllerService } from './services/api-authentication-auth-auth-provider-google-controller.service'; -export { APIAuthenticationAuthAuthenticateControllerService } from './services/api-authentication-auth-authenticate-controller.service'; diff --git a/ui/hikers-book/src/locale/messages.cs.xlf b/ui/hikers-book/src/locale/messages.cs.xlf index 893a90a..e51bae2 100644 --- a/ui/hikers-book/src/locale/messages.cs.xlf +++ b/ui/hikers-book/src/locale/messages.cs.xlf @@ -4,14 +4,14 @@ - + - - + + src/app/modules/trips/trips/trips.component.html - 9,10 + 13,15 Creation date of trip Trip card on grid @@ -41,7 +41,7 @@ Sign in src/app/modules/auth/signin/signin.component.html - 4 + 5 Sign in form name Sign in form name @@ -51,7 +51,7 @@ Don't have an account? src/app/modules/auth/signin/signin.component.html - 45 + 60 Sign up question from sign in form Sign up question from sign in form @@ -61,7 +61,7 @@ Sign up src/app/modules/auth/signin/signin.component.html - 47 + 66 Sign up link from sign in form Sign up link from sign in form @@ -71,7 +71,7 @@ Sign up src/app/modules/auth/invitation/invitation.component.html - 4 + 5 Invitation form name Invitation form name @@ -81,7 +81,7 @@ Already have an account? src/app/modules/auth/signup/signup.component.html - 34 + 45 Ask user if has account yet Sign in question from sign up form @@ -91,7 +91,7 @@ Sign in src/app/modules/auth/signup/signup.component.html - 36 + 51 Sign in link from sign up form Sign in link from sign up form @@ -131,15 +131,15 @@ Email src/app/modules/auth/invitation/invitation.component.html - 11 + 18 src/app/modules/auth/signin/signin.component.html - 11 + 13 src/app/modules/auth/signup/signup.component.html - 11 + 13 Invitation form email Email @@ -149,11 +149,11 @@ Password src/app/modules/auth/invitation/invitation.component.html - 21 + 43 src/app/modules/auth/signin/signin.component.html - 15 + 25 Invitation form password Password @@ -163,7 +163,7 @@ Sign in src/app/modules/auth/signin/signin.component.html - 33,35 + 44,46 Sign in button Sign in @@ -173,11 +173,11 @@ Sign up src/app/modules/auth/invitation/invitation.component.html - 37,39 + 74,76 src/app/modules/auth/signup/signup.component.html - 22,24 + 31,33 Sign up button Sign up @@ -187,7 +187,7 @@ Sign up src/app/modules/auth/signup/signup.component.html - 4 + 5 Sign up form name Sign up form name @@ -197,7 +197,7 @@ Full name src/app/modules/auth/invitation/invitation.component.html - 16 + 30 Invitation form full name Full name @@ -207,7 +207,7 @@ Password confirm src/app/modules/auth/invitation/invitation.component.html - 26 + 56 Invitation form password confirm Password confirm diff --git a/ui/hikers-book/src/locale/messages.sk.xlf b/ui/hikers-book/src/locale/messages.sk.xlf index d2b3574..2e5010e 100644 --- a/ui/hikers-book/src/locale/messages.sk.xlf +++ b/ui/hikers-book/src/locale/messages.sk.xlf @@ -4,14 +4,14 @@ - + - - + + src/app/modules/trips/trips/trips.component.html - 9,10 + 13,15 Creation date of trip Trip card on grid @@ -41,7 +41,7 @@ Sign in src/app/modules/auth/signin/signin.component.html - 4 + 5 Sign in form name Sign in form name @@ -51,7 +51,7 @@ Don't have an account? src/app/modules/auth/signin/signin.component.html - 45 + 60 Sign up question from sign in form Sign up question from sign in form @@ -61,7 +61,7 @@ Sign up src/app/modules/auth/signin/signin.component.html - 47 + 66 Sign up link from sign in form Sign up link from sign in form @@ -71,7 +71,7 @@ Sign up src/app/modules/auth/invitation/invitation.component.html - 4 + 5 Invitation form name Invitation form name @@ -81,7 +81,7 @@ Already have an account? src/app/modules/auth/signup/signup.component.html - 34 + 45 Ask user if has account yet Sign in question from sign up form @@ -91,7 +91,7 @@ Sign in src/app/modules/auth/signup/signup.component.html - 36 + 51 Sign in link from sign up form Sign in link from sign up form @@ -131,15 +131,15 @@ Email src/app/modules/auth/invitation/invitation.component.html - 11 + 18 src/app/modules/auth/signin/signin.component.html - 11 + 13 src/app/modules/auth/signup/signup.component.html - 11 + 13 Invitation form email Email @@ -149,11 +149,11 @@ Password src/app/modules/auth/invitation/invitation.component.html - 21 + 43 src/app/modules/auth/signin/signin.component.html - 15 + 25 Invitation form password Password @@ -163,7 +163,7 @@ Sign in src/app/modules/auth/signin/signin.component.html - 33,35 + 44,46 Sign in button Sign in @@ -173,11 +173,11 @@ Sign up src/app/modules/auth/invitation/invitation.component.html - 37,39 + 74,76 src/app/modules/auth/signup/signup.component.html - 22,24 + 31,33 Sign up button Sign up @@ -187,7 +187,7 @@ Sign up src/app/modules/auth/signup/signup.component.html - 4 + 5 Sign up form name Sign up form name @@ -197,7 +197,7 @@ Full name src/app/modules/auth/invitation/invitation.component.html - 16 + 30 Invitation form full name Full name @@ -207,7 +207,7 @@ Password confirm src/app/modules/auth/invitation/invitation.component.html - 26 + 56 Invitation form password confirm Password confirm diff --git a/ui/hikers-book/src/locale/messages.xlf b/ui/hikers-book/src/locale/messages.xlf index 04abd80..b4fea83 100644 --- a/ui/hikers-book/src/locale/messages.xlf +++ b/ui/hikers-book/src/locale/messages.xlf @@ -4,11 +4,11 @@ - + src/app/modules/trips/trips/trips.component.html - 9,10 + 13,15 Creation date of trip Trip card on grid @@ -35,7 +35,7 @@ Don't have an account? src/app/modules/auth/signin/signin.component.html - 45 + 60 Sign up question from sign in form Sign up question from sign in form @@ -53,7 +53,7 @@ Sign in src/app/modules/auth/signup/signup.component.html - 36 + 51 Sign in link from sign up form Sign in link from sign up form @@ -62,7 +62,7 @@ Sign in src/app/modules/auth/signin/signin.component.html - 4 + 5 Sign in form name Sign in form name @@ -71,7 +71,7 @@ Sign up src/app/modules/auth/signin/signin.component.html - 47 + 66 Sign up link from sign in form Sign up link from sign in form @@ -89,7 +89,7 @@ Already have an account? src/app/modules/auth/signup/signup.component.html - 34 + 45 Ask user if has account yet Sign in question from sign up form @@ -107,7 +107,7 @@ Sign up src/app/modules/auth/invitation/invitation.component.html - 4 + 5 Invitation form name Invitation form name @@ -116,11 +116,11 @@ Password src/app/modules/auth/invitation/invitation.component.html - 21 + 43 src/app/modules/auth/signin/signin.component.html - 15 + 25 Invitation form password Password @@ -129,15 +129,15 @@ Email src/app/modules/auth/invitation/invitation.component.html - 11 + 18 src/app/modules/auth/signin/signin.component.html - 11 + 13 src/app/modules/auth/signup/signup.component.html - 11 + 13 Invitation form email Email @@ -146,7 +146,7 @@ Sign in src/app/modules/auth/signin/signin.component.html - 33,35 + 44,46 Sign in button Sign in @@ -155,11 +155,11 @@ Sign up src/app/modules/auth/invitation/invitation.component.html - 37,39 + 74,76 src/app/modules/auth/signup/signup.component.html - 22,24 + 31,33 Sign up button Sign up @@ -168,7 +168,7 @@ Sign up src/app/modules/auth/signup/signup.component.html - 4 + 5 Sign up form name Sign up form name @@ -177,7 +177,7 @@ Password confirm src/app/modules/auth/invitation/invitation.component.html - 26 + 56 Invitation form password confirm Password confirm @@ -186,7 +186,7 @@ Full name src/app/modules/auth/invitation/invitation.component.html - 16 + 30 Invitation form full name Full name