Skip to content

Commit

Permalink
chore: eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
radoslavirha committed Jan 3, 2024
1 parent df73f63 commit 8f4243b
Show file tree
Hide file tree
Showing 5 changed files with 101 additions and 101 deletions.
78 changes: 39 additions & 39 deletions packages/cli/bin/config.js
Original file line number Diff line number Diff line change
@@ -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;
2 changes: 1 addition & 1 deletion ui/hikers-book/src/app/api/authentication/auth/services.ts
Original file line number Diff line number Diff line change
@@ -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';
42 changes: 21 additions & 21 deletions ui/hikers-book/src/locale/messages.cs.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,14 @@
<body>
<trans-unit id="trip_created_at" datatype="html">
<source>
<x id="INTERPOLATION" equiv-text="&lt;/p&gt; &lt;/mat-card-content&gt;"/>
<x id="INTERPOLATION" equiv-text="{{ trip.createdAt | date }}"/>
</source>
<target>
<x id="INTERPOLATION" equiv-text="&lt;/p&gt; &lt;/mat-card-content&gt;"/>
<target state="new">
<x id="INTERPOLATION" equiv-text="{{ trip.createdAt | date }}"/>
</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/modules/trips/trips/trips.component.html</context>
<context context-type="linenumber">9,10</context>
<context context-type="linenumber">13,15</context>
</context-group>
<note priority="1" from="description">Creation date of trip</note>
<note priority="1" from="meaning">Trip card on grid</note>
Expand Down Expand Up @@ -41,7 +41,7 @@
<target state="new">Sign in</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/modules/auth/signin/signin.component.html</context>
<context context-type="linenumber">4</context>
<context context-type="linenumber">5</context>
</context-group>
<note priority="1" from="description">Sign in form name</note>
<note priority="1" from="meaning">Sign in form name</note>
Expand All @@ -51,7 +51,7 @@
<target state="new">Don&apos;t have an account?</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/modules/auth/signin/signin.component.html</context>
<context context-type="linenumber">45</context>
<context context-type="linenumber">60</context>
</context-group>
<note priority="1" from="description">Sign up question from sign in form</note>
<note priority="1" from="meaning">Sign up question from sign in form</note>
Expand All @@ -61,7 +61,7 @@
<target state="new">Sign up</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/modules/auth/signin/signin.component.html</context>
<context context-type="linenumber">47</context>
<context context-type="linenumber">66</context>
</context-group>
<note priority="1" from="description">Sign up link from sign in form</note>
<note priority="1" from="meaning">Sign up link from sign in form</note>
Expand All @@ -71,7 +71,7 @@
<target state="new">Sign up</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/modules/auth/invitation/invitation.component.html</context>
<context context-type="linenumber">4</context>
<context context-type="linenumber">5</context>
</context-group>
<note priority="1" from="description">Invitation form name</note>
<note priority="1" from="meaning">Invitation form name</note>
Expand All @@ -81,7 +81,7 @@
<target state="new">Already have an account?</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/modules/auth/signup/signup.component.html</context>
<context context-type="linenumber">34</context>
<context context-type="linenumber">45</context>
</context-group>
<note priority="1" from="description">Ask user if has account yet</note>
<note priority="1" from="meaning">Sign in question from sign up form</note>
Expand All @@ -91,7 +91,7 @@
<target state="new">Sign in</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/modules/auth/signup/signup.component.html</context>
<context context-type="linenumber">36</context>
<context context-type="linenumber">51</context>
</context-group>
<note priority="1" from="description">Sign in link from sign up form</note>
<note priority="1" from="meaning">Sign in link from sign up form</note>
Expand Down Expand Up @@ -131,15 +131,15 @@
<target state="new">Email</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/modules/auth/invitation/invitation.component.html</context>
<context context-type="linenumber">11</context>
<context context-type="linenumber">18</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/modules/auth/signin/signin.component.html</context>
<context context-type="linenumber">11</context>
<context context-type="linenumber">13</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/modules/auth/signup/signup.component.html</context>
<context context-type="linenumber">11</context>
<context context-type="linenumber">13</context>
</context-group>
<note priority="1" from="description">Invitation form email</note>
<note priority="1" from="meaning">Email</note>
Expand All @@ -149,11 +149,11 @@
<target state="new">Password</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/modules/auth/invitation/invitation.component.html</context>
<context context-type="linenumber">21</context>
<context context-type="linenumber">43</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/modules/auth/signin/signin.component.html</context>
<context context-type="linenumber">15</context>
<context context-type="linenumber">25</context>
</context-group>
<note priority="1" from="description">Invitation form password</note>
<note priority="1" from="meaning">Password</note>
Expand All @@ -163,7 +163,7 @@
<target state="new"> Sign in </target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/modules/auth/signin/signin.component.html</context>
<context context-type="linenumber">33,35</context>
<context context-type="linenumber">44,46</context>
</context-group>
<note priority="1" from="description">Sign in button</note>
<note priority="1" from="meaning">Sign in</note>
Expand All @@ -173,11 +173,11 @@
<target state="new"> Sign up </target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/modules/auth/invitation/invitation.component.html</context>
<context context-type="linenumber">37,39</context>
<context context-type="linenumber">74,76</context>
</context-group>
<context-group purpose="location">
<context context-type="sourcefile">src/app/modules/auth/signup/signup.component.html</context>
<context context-type="linenumber">22,24</context>
<context context-type="linenumber">31,33</context>
</context-group>
<note priority="1" from="description">Sign up button</note>
<note priority="1" from="meaning">Sign up</note>
Expand All @@ -187,7 +187,7 @@
<target state="new">Sign up</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/modules/auth/signup/signup.component.html</context>
<context context-type="linenumber">4</context>
<context context-type="linenumber">5</context>
</context-group>
<note priority="1" from="description">Sign up form name</note>
<note priority="1" from="meaning">Sign up form name</note>
Expand All @@ -197,7 +197,7 @@
<target state="new">Full name</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/modules/auth/invitation/invitation.component.html</context>
<context context-type="linenumber">16</context>
<context context-type="linenumber">30</context>
</context-group>
<note priority="1" from="description">Invitation form full name</note>
<note priority="1" from="meaning">Full name</note>
Expand All @@ -207,7 +207,7 @@
<target state="new">Password confirm</target>
<context-group purpose="location">
<context context-type="sourcefile">src/app/modules/auth/invitation/invitation.component.html</context>
<context context-type="linenumber">26</context>
<context context-type="linenumber">56</context>
</context-group>
<note priority="1" from="description">Invitation form password confirm</note>
<note priority="1" from="meaning">Password confirm</note>
Expand Down
Loading

0 comments on commit 8f4243b

Please sign in to comment.