Optimizes Imports
This commit is contained in:
@@ -1,27 +1,9 @@
|
||||
import {
|
||||
animate,
|
||||
state,
|
||||
style,
|
||||
transition,
|
||||
trigger,
|
||||
} from '@angular/animations';
|
||||
import {
|
||||
Component,
|
||||
EventEmitter,
|
||||
Input,
|
||||
OnDestroy,
|
||||
OnInit,
|
||||
Output,
|
||||
ViewContainerRef,
|
||||
} from '@angular/core';
|
||||
import {
|
||||
faQuestionCircle, faSignIn,
|
||||
faSignOutAlt,
|
||||
faUser,
|
||||
} from '@fortawesome/free-solid-svg-icons';
|
||||
import { Subscription } from 'rxjs';
|
||||
import { AuthService } from 'src/app/shared/service/auth.service';
|
||||
import { User } from '../../shared/model/user/user.model';
|
||||
import {animate, state, style, transition, trigger,} from '@angular/animations';
|
||||
import {Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewContainerRef,} from '@angular/core';
|
||||
import {faQuestionCircle, faSignIn, faSignOutAlt, faUser,} from '@fortawesome/free-solid-svg-icons';
|
||||
import {Subscription} from 'rxjs';
|
||||
import {AuthService} from 'src/app/shared/service/auth.service';
|
||||
import {User} from '../../shared/model/user/user.model';
|
||||
import {IconDefinition} from "@fortawesome/free-regular-svg-icons";
|
||||
import {Value} from "@sinclair/typebox/value";
|
||||
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { ActivatedRoute, Router } from '@angular/router';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { AuthService } from 'src/app/shared/service/auth.service';
|
||||
import {ActivatedRoute, Router} from '@angular/router';
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {AuthService} from 'src/app/shared/service/auth.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-callback',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, Input } from '@angular/core';
|
||||
import {Component, Input} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-error-box',
|
||||
@@ -7,7 +7,7 @@ import { Component, Input } from '@angular/core';
|
||||
})
|
||||
export class ErrorBoxComponent {
|
||||
@Input()
|
||||
errorMessage: string | null = 'Error, please try again later.';
|
||||
errorMessage: string | null = 'Error, please try again later.';
|
||||
|
||||
constructor() {}
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
||||
import {Component, EventEmitter, Input, Output} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-help',
|
||||
@@ -7,13 +7,13 @@ import { Component, EventEmitter, Input, Output } from '@angular/core';
|
||||
})
|
||||
export class HelpComponent {
|
||||
@Input()
|
||||
state: boolean = false;
|
||||
state: boolean = false;
|
||||
|
||||
@Input()
|
||||
ignoreClickOutside!: HTMLDivElement[];
|
||||
ignoreClickOutside!: HTMLDivElement[];
|
||||
|
||||
@Output()
|
||||
stateChange = new EventEmitter<boolean>();
|
||||
stateChange = new EventEmitter<boolean>();
|
||||
|
||||
constructor() {}
|
||||
|
||||
|
||||
@@ -8,31 +8,19 @@ import {
|
||||
OnInit,
|
||||
Output,
|
||||
} from '@angular/core';
|
||||
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
||||
import { MatIconRegistry } from '@angular/material/icon';
|
||||
import { DomSanitizer } from '@angular/platform-browser';
|
||||
import { faLock, faUser } from '@fortawesome/free-solid-svg-icons';
|
||||
import { Subscription } from 'rxjs';
|
||||
import { AuthService } from 'src/app/shared/service/auth.service';
|
||||
import { Value } from '@sinclair/typebox/value'
|
||||
import { User } from 'src/app/shared/model/user/user.model';
|
||||
import {
|
||||
animate,
|
||||
animateChild,
|
||||
group,
|
||||
query,
|
||||
state,
|
||||
style,
|
||||
transition,
|
||||
trigger,
|
||||
} from '@angular/animations';
|
||||
import { ValidatePasswordValidator } from '../../../shared/validators/validate-password.validator';
|
||||
import { ValidateNotEmptyValidator } from '../../../shared/validators/validate-not-empty.validator';
|
||||
import {
|
||||
NgcCookieConsentService,
|
||||
NgcStatusChangeEvent,
|
||||
} from 'ngx-cookieconsent';
|
||||
import { CookieConsertService } from '../../../shared/cookie-consent/cookie-consert.service';
|
||||
import {FormControl, FormGroup, Validators} from '@angular/forms';
|
||||
import {MatIconRegistry} from '@angular/material/icon';
|
||||
import {DomSanitizer} from '@angular/platform-browser';
|
||||
import {faLock, faUser} from '@fortawesome/free-solid-svg-icons';
|
||||
import {Subscription} from 'rxjs';
|
||||
import {AuthService} from 'src/app/shared/service/auth.service';
|
||||
import {Value} from '@sinclair/typebox/value'
|
||||
import {User} from 'src/app/shared/model/user/user.model';
|
||||
import {animate, animateChild, group, query, state, style, transition, trigger,} from '@angular/animations';
|
||||
import {ValidatePasswordValidator} from '../../../shared/validators/validate-password.validator';
|
||||
import {ValidateNotEmptyValidator} from '../../../shared/validators/validate-not-empty.validator';
|
||||
import {NgcCookieConsentService,} from 'ngx-cookieconsent';
|
||||
import {CookieConsertService} from '../../../shared/cookie-consent/cookie-consert.service';
|
||||
import {HttpError} from "../../../shared/model/httpError/httpError.model";
|
||||
|
||||
const GOOGLE_LOGO_SVG = 'assets/img/providers/google.svg';
|
||||
|
||||
@@ -1,26 +1,11 @@
|
||||
import {
|
||||
Component,
|
||||
EventEmitter,
|
||||
Input,
|
||||
OnInit,
|
||||
Output,
|
||||
} from '@angular/core';
|
||||
import { AuthService } from '../../../shared/service/auth.service';
|
||||
import { User } from '../../../shared/model/user/user.model';
|
||||
import {
|
||||
animate,
|
||||
animateChild,
|
||||
group,
|
||||
query,
|
||||
state,
|
||||
style,
|
||||
transition,
|
||||
trigger,
|
||||
} from '@angular/animations';
|
||||
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
||||
import { ValidateNotEmptyValidator } from '../../../shared/validators/validate-not-empty.validator';
|
||||
import { ValidatePasswordValidator } from '../../../shared/validators/validate-password.validator';
|
||||
import { faFileUpload } from '@fortawesome/free-solid-svg-icons';
|
||||
import {Component, EventEmitter, Input, OnInit, Output,} from '@angular/core';
|
||||
import {AuthService} from '../../../shared/service/auth.service';
|
||||
import {User} from '../../../shared/model/user/user.model';
|
||||
import {animate, animateChild, group, query, state, style, transition, trigger,} from '@angular/animations';
|
||||
import {FormControl, FormGroup, Validators} from '@angular/forms';
|
||||
import {ValidateNotEmptyValidator} from '../../../shared/validators/validate-not-empty.validator';
|
||||
import {ValidatePasswordValidator} from '../../../shared/validators/validate-password.validator';
|
||||
import {faFileUpload} from '@fortawesome/free-solid-svg-icons';
|
||||
|
||||
@Component({
|
||||
selector: 'app-my-profile',
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import { Component, EventEmitter, Output } from '@angular/core';
|
||||
import { AuthService } from '../../../../shared/service/auth.service';
|
||||
import {Component, EventEmitter, Output} from '@angular/core';
|
||||
import {AuthService} from '../../../../shared/service/auth.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-profile-picture-picker',
|
||||
|
||||
@@ -1,30 +1,16 @@
|
||||
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
||||
import { FormControl, FormGroup, Validators } from '@angular/forms';
|
||||
import { MatIconRegistry } from '@angular/material/icon';
|
||||
import { DomSanitizer } from '@angular/platform-browser';
|
||||
import {
|
||||
faEnvelope,
|
||||
faFingerprint,
|
||||
faLock,
|
||||
faUser,
|
||||
} from '@fortawesome/free-solid-svg-icons';
|
||||
import { Subscription } from 'rxjs';
|
||||
import { AuthService } from 'src/app/shared/service/auth.service';
|
||||
import { HttpError } from 'src/app/shared/model/httpError/httpError.model';
|
||||
import { User } from 'src/app/shared/model/user/user.model';
|
||||
import {
|
||||
animate,
|
||||
animateChild,
|
||||
group,
|
||||
query,
|
||||
state,
|
||||
style,
|
||||
transition,
|
||||
trigger,
|
||||
} from '@angular/animations';
|
||||
import { ValidateEmailValidator } from '../../../shared/validators/validate-email.validator';
|
||||
import { ValidatePasswordValidator } from '../../../shared/validators/validate-password.validator';
|
||||
import { ValidateNotEmptyValidator } from '../../../shared/validators/validate-not-empty.validator';
|
||||
import {Component, EventEmitter, Input, OnInit, Output} from '@angular/core';
|
||||
import {FormControl, FormGroup, Validators} from '@angular/forms';
|
||||
import {MatIconRegistry} from '@angular/material/icon';
|
||||
import {DomSanitizer} from '@angular/platform-browser';
|
||||
import {faEnvelope, faFingerprint, faLock, faUser,} from '@fortawesome/free-solid-svg-icons';
|
||||
import {Subscription} from 'rxjs';
|
||||
import {AuthService} from 'src/app/shared/service/auth.service';
|
||||
import {HttpError} from 'src/app/shared/model/httpError/httpError.model';
|
||||
import {User} from 'src/app/shared/model/user/user.model';
|
||||
import {animate, animateChild, group, query, state, style, transition, trigger,} from '@angular/animations';
|
||||
import {ValidateEmailValidator} from '../../../shared/validators/validate-email.validator';
|
||||
import {ValidatePasswordValidator} from '../../../shared/validators/validate-password.validator';
|
||||
import {ValidateNotEmptyValidator} from '../../../shared/validators/validate-not-empty.validator';
|
||||
import {Value} from "@sinclair/typebox/value";
|
||||
|
||||
const GOOGLE_LOGO_SVG = 'assets/img/providers/google.svg';
|
||||
|
||||
@@ -1,14 +1,5 @@
|
||||
import {
|
||||
animate,
|
||||
animateChild,
|
||||
group,
|
||||
query,
|
||||
state,
|
||||
style,
|
||||
transition,
|
||||
trigger,
|
||||
} from '@angular/animations';
|
||||
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
||||
import {animate, animateChild, group, query, state, style, transition, trigger,} from '@angular/animations';
|
||||
import {Component, EventEmitter, Input, Output} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-header-slider',
|
||||
@@ -45,16 +36,16 @@ import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
||||
})
|
||||
export class HeaderSliderComponent {
|
||||
@Input()
|
||||
ignoreClickOutside!: HTMLDivElement[];
|
||||
ignoreClickOutside!: HTMLDivElement[];
|
||||
|
||||
@Input()
|
||||
clickOutsideStopWatching: boolean = false;
|
||||
clickOutsideStopWatching: boolean = false;
|
||||
|
||||
@Input()
|
||||
state: boolean = false;
|
||||
state: boolean = false;
|
||||
|
||||
@Output()
|
||||
stateChange = new EventEmitter<boolean>();
|
||||
stateChange = new EventEmitter<boolean>();
|
||||
|
||||
constructor() {}
|
||||
|
||||
|
||||
@@ -1,16 +1,9 @@
|
||||
import {
|
||||
Component,
|
||||
EventEmitter,
|
||||
Input,
|
||||
OnDestroy,
|
||||
OnInit,
|
||||
Output,
|
||||
} from '@angular/core';
|
||||
import { faUser } from '@fortawesome/free-solid-svg-icons';
|
||||
import { SliderItemComponent } from 'src/app/shared/components/slider-item/slider-item.component';
|
||||
import { User } from '../../../shared/model/user/user.model';
|
||||
import { AuthService } from '../../../shared/service/auth.service';
|
||||
import { Subscription } from 'rxjs';
|
||||
import {Component, EventEmitter, Input, OnDestroy, OnInit, Output,} from '@angular/core';
|
||||
import {faUser} from '@fortawesome/free-solid-svg-icons';
|
||||
import {SliderItemComponent} from 'src/app/shared/components/slider-item/slider-item.component';
|
||||
import {User} from '../../../shared/model/user/user.model';
|
||||
import {AuthService} from '../../../shared/service/auth.service';
|
||||
import {Subscription} from 'rxjs';
|
||||
import {Value} from "@sinclair/typebox/value";
|
||||
|
||||
@Component({
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { Component, EventEmitter, OnInit, Output } from '@angular/core';
|
||||
import { Subscription } from 'rxjs';
|
||||
import { AuthService } from 'src/app/shared/service/auth.service';
|
||||
import { SliderItemComponent } from 'src/app/shared/components/slider-item/slider-item.component';
|
||||
import { User } from 'src/app/shared/model/user/user.model';
|
||||
import {Component, EventEmitter, OnInit, Output} from '@angular/core';
|
||||
import {Subscription} from 'rxjs';
|
||||
import {AuthService} from 'src/app/shared/service/auth.service';
|
||||
import {SliderItemComponent} from 'src/app/shared/components/slider-item/slider-item.component';
|
||||
import {User} from 'src/app/shared/model/user/user.model';
|
||||
import {Value} from "@sinclair/typebox/value";
|
||||
|
||||
@Component({
|
||||
|
||||
@@ -1,20 +1,12 @@
|
||||
import {
|
||||
Component,
|
||||
ComponentRef,
|
||||
ElementRef,
|
||||
OnDestroy,
|
||||
OnInit,
|
||||
ViewChild,
|
||||
ViewContainerRef,
|
||||
} from '@angular/core';
|
||||
import { faUser } from '@fortawesome/free-solid-svg-icons';
|
||||
import { LoginComponent } from './header-popup/login/login.component';
|
||||
import { SignupComponent } from './header-popup/signup/signup.component';
|
||||
import { AuthService } from '../shared/service/auth.service';
|
||||
import { User } from '../shared/model/user/user.model';
|
||||
import { Subscription } from 'rxjs';
|
||||
import { HelpComponent } from './header-popup/help/help.component';
|
||||
import { MyProfileComponent } from './header-popup/my-profile/my-profile.component';
|
||||
import {Component, ComponentRef, ElementRef, OnDestroy, OnInit, ViewChild, ViewContainerRef,} from '@angular/core';
|
||||
import {faUser} from '@fortawesome/free-solid-svg-icons';
|
||||
import {LoginComponent} from './header-popup/login/login.component';
|
||||
import {SignupComponent} from './header-popup/signup/signup.component';
|
||||
import {AuthService} from '../shared/service/auth.service';
|
||||
import {User} from '../shared/model/user/user.model';
|
||||
import {Subscription} from 'rxjs';
|
||||
import {HelpComponent} from './header-popup/help/help.component';
|
||||
import {MyProfileComponent} from './header-popup/my-profile/my-profile.component';
|
||||
import {Value} from "@sinclair/typebox/value";
|
||||
|
||||
@Component({
|
||||
|
||||
@@ -1,24 +1,26 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule, NgOptimizedImage } from '@angular/common';
|
||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||
import {NgModule} from '@angular/core';
|
||||
import {CommonModule, NgOptimizedImage} from '@angular/common';
|
||||
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
||||
|
||||
import { HeaderComponent } from './header.component';
|
||||
import { HeaderSliderComponent } from './header-slider/header-slider.component';
|
||||
import { NavSliderComponent } from './header-slider/nav-slider/nav-slider.component';
|
||||
import { UserSliderComponent } from './header-slider/user-slider/user-slider.component';
|
||||
import { HeaderDropdownComponent } from './header-dropdown/header-dropdown.component';
|
||||
import { SharedModule } from '../shared/shared.module';
|
||||
import { AppRouterModule } from '../app-router.module';
|
||||
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
||||
import { LoginComponent } from './header-popup/login/login.component';
|
||||
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
||||
import { SignupComponent } from './header-popup/signup/signup.component';
|
||||
import { CallbackComponent } from './header-popup/callback/callback.component';
|
||||
import { MatIconModule } from '@angular/material/icon';
|
||||
import { ErrorBoxComponent } from './header-popup/error-box/error-box.component';
|
||||
import { HelpComponent } from './header-popup/help/help.component';
|
||||
import { MyProfileComponent } from './header-popup/my-profile/my-profile.component';
|
||||
import { ProfilePicturePickerComponent } from './header-popup/my-profile/profile-picture-picker/profile-picture-picker.component';
|
||||
import {HeaderComponent} from './header.component';
|
||||
import {HeaderSliderComponent} from './header-slider/header-slider.component';
|
||||
import {NavSliderComponent} from './header-slider/nav-slider/nav-slider.component';
|
||||
import {UserSliderComponent} from './header-slider/user-slider/user-slider.component';
|
||||
import {HeaderDropdownComponent} from './header-dropdown/header-dropdown.component';
|
||||
import {SharedModule} from '../shared/shared.module';
|
||||
import {AppRouterModule} from '../app-router.module';
|
||||
import {FontAwesomeModule} from '@fortawesome/angular-fontawesome';
|
||||
import {LoginComponent} from './header-popup/login/login.component';
|
||||
import {FormsModule, ReactiveFormsModule} from '@angular/forms';
|
||||
import {SignupComponent} from './header-popup/signup/signup.component';
|
||||
import {CallbackComponent} from './header-popup/callback/callback.component';
|
||||
import {MatIconModule} from '@angular/material/icon';
|
||||
import {ErrorBoxComponent} from './header-popup/error-box/error-box.component';
|
||||
import {HelpComponent} from './header-popup/help/help.component';
|
||||
import {MyProfileComponent} from './header-popup/my-profile/my-profile.component';
|
||||
import {
|
||||
ProfilePicturePickerComponent
|
||||
} from './header-popup/my-profile/profile-picture-picker/profile-picture-picker.component';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
|
||||
Reference in New Issue
Block a user