Optimizes Imports
This commit is contained in:
@@ -1,13 +1,7 @@
|
|||||||
import { Component, OnDestroy, OnInit } from '@angular/core';
|
import {Component, OnInit} from '@angular/core';
|
||||||
import {AuthService} from './shared/service/auth.service';
|
import {AuthService} from './shared/service/auth.service';
|
||||||
import {UpdateService} from './shared/service-worker/update.service';
|
import {UpdateService} from './shared/service-worker/update.service';
|
||||||
import {
|
import {NgcCookieConsentService, NgcStatusChangeEvent,} from 'ngx-cookieconsent';
|
||||||
NgcCookieConsentService,
|
|
||||||
NgcInitializationErrorEvent,
|
|
||||||
NgcInitializingEvent,
|
|
||||||
NgcNoCookieLawEvent,
|
|
||||||
NgcStatusChangeEvent,
|
|
||||||
} from 'ngx-cookieconsent';
|
|
||||||
import {Subscription} from 'rxjs';
|
import {Subscription} from 'rxjs';
|
||||||
import {CookieConsertService} from './shared/cookie-consent/cookie-consert.service';
|
import {CookieConsertService} from './shared/cookie-consent/cookie-consert.service';
|
||||||
|
|
||||||
|
|||||||
@@ -1,9 +1,5 @@
|
|||||||
import {Component} from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
import {
|
import {faGithub, faLinkedinIn, faTwitter,} from '@fortawesome/free-brands-svg-icons';
|
||||||
faGithub,
|
|
||||||
faLinkedinIn,
|
|
||||||
faTwitter,
|
|
||||||
} from '@fortawesome/free-brands-svg-icons';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-footer',
|
selector: 'app-footer',
|
||||||
|
|||||||
@@ -1,24 +1,6 @@
|
|||||||
import {
|
import {animate, state, style, transition, trigger,} from '@angular/animations';
|
||||||
animate,
|
import {Component, EventEmitter, Input, OnDestroy, OnInit, Output, ViewContainerRef,} from '@angular/core';
|
||||||
state,
|
import {faQuestionCircle, faSignIn, faSignOutAlt, faUser,} from '@fortawesome/free-solid-svg-icons';
|
||||||
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 {Subscription} from 'rxjs';
|
||||||
import {AuthService} from 'src/app/shared/service/auth.service';
|
import {AuthService} from 'src/app/shared/service/auth.service';
|
||||||
import {User} from '../../shared/model/user/user.model';
|
import {User} from '../../shared/model/user/user.model';
|
||||||
|
|||||||
@@ -16,22 +16,10 @@ import { Subscription } from 'rxjs';
|
|||||||
import {AuthService} from 'src/app/shared/service/auth.service';
|
import {AuthService} from 'src/app/shared/service/auth.service';
|
||||||
import {Value} from '@sinclair/typebox/value'
|
import {Value} from '@sinclair/typebox/value'
|
||||||
import {User} from 'src/app/shared/model/user/user.model';
|
import {User} from 'src/app/shared/model/user/user.model';
|
||||||
import {
|
import {animate, animateChild, group, query, state, style, transition, trigger,} from '@angular/animations';
|
||||||
animate,
|
|
||||||
animateChild,
|
|
||||||
group,
|
|
||||||
query,
|
|
||||||
state,
|
|
||||||
style,
|
|
||||||
transition,
|
|
||||||
trigger,
|
|
||||||
} from '@angular/animations';
|
|
||||||
import {ValidatePasswordValidator} from '../../../shared/validators/validate-password.validator';
|
import {ValidatePasswordValidator} from '../../../shared/validators/validate-password.validator';
|
||||||
import {ValidateNotEmptyValidator} from '../../../shared/validators/validate-not-empty.validator';
|
import {ValidateNotEmptyValidator} from '../../../shared/validators/validate-not-empty.validator';
|
||||||
import {
|
import {NgcCookieConsentService,} from 'ngx-cookieconsent';
|
||||||
NgcCookieConsentService,
|
|
||||||
NgcStatusChangeEvent,
|
|
||||||
} from 'ngx-cookieconsent';
|
|
||||||
import {CookieConsertService} from '../../../shared/cookie-consent/cookie-consert.service';
|
import {CookieConsertService} from '../../../shared/cookie-consent/cookie-consert.service';
|
||||||
import {HttpError} from "../../../shared/model/httpError/httpError.model";
|
import {HttpError} from "../../../shared/model/httpError/httpError.model";
|
||||||
|
|
||||||
|
|||||||
@@ -1,22 +1,7 @@
|
|||||||
import {
|
import {Component, EventEmitter, Input, OnInit, Output,} from '@angular/core';
|
||||||
Component,
|
|
||||||
EventEmitter,
|
|
||||||
Input,
|
|
||||||
OnInit,
|
|
||||||
Output,
|
|
||||||
} from '@angular/core';
|
|
||||||
import {AuthService} from '../../../shared/service/auth.service';
|
import {AuthService} from '../../../shared/service/auth.service';
|
||||||
import {User} from '../../../shared/model/user/user.model';
|
import {User} from '../../../shared/model/user/user.model';
|
||||||
import {
|
import {animate, animateChild, group, query, state, style, transition, trigger,} from '@angular/animations';
|
||||||
animate,
|
|
||||||
animateChild,
|
|
||||||
group,
|
|
||||||
query,
|
|
||||||
state,
|
|
||||||
style,
|
|
||||||
transition,
|
|
||||||
trigger,
|
|
||||||
} from '@angular/animations';
|
|
||||||
import {FormControl, FormGroup, Validators} from '@angular/forms';
|
import {FormControl, FormGroup, Validators} from '@angular/forms';
|
||||||
import {ValidateNotEmptyValidator} from '../../../shared/validators/validate-not-empty.validator';
|
import {ValidateNotEmptyValidator} from '../../../shared/validators/validate-not-empty.validator';
|
||||||
import {ValidatePasswordValidator} from '../../../shared/validators/validate-password.validator';
|
import {ValidatePasswordValidator} from '../../../shared/validators/validate-password.validator';
|
||||||
|
|||||||
@@ -2,26 +2,12 @@ import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|||||||
import {FormControl, FormGroup, Validators} from '@angular/forms';
|
import {FormControl, FormGroup, Validators} from '@angular/forms';
|
||||||
import {MatIconRegistry} from '@angular/material/icon';
|
import {MatIconRegistry} from '@angular/material/icon';
|
||||||
import {DomSanitizer} from '@angular/platform-browser';
|
import {DomSanitizer} from '@angular/platform-browser';
|
||||||
import {
|
import {faEnvelope, faFingerprint, faLock, faUser,} from '@fortawesome/free-solid-svg-icons';
|
||||||
faEnvelope,
|
|
||||||
faFingerprint,
|
|
||||||
faLock,
|
|
||||||
faUser,
|
|
||||||
} from '@fortawesome/free-solid-svg-icons';
|
|
||||||
import {Subscription} from 'rxjs';
|
import {Subscription} from 'rxjs';
|
||||||
import {AuthService} from 'src/app/shared/service/auth.service';
|
import {AuthService} from 'src/app/shared/service/auth.service';
|
||||||
import {HttpError} from 'src/app/shared/model/httpError/httpError.model';
|
import {HttpError} from 'src/app/shared/model/httpError/httpError.model';
|
||||||
import {User} from 'src/app/shared/model/user/user.model';
|
import {User} from 'src/app/shared/model/user/user.model';
|
||||||
import {
|
import {animate, animateChild, group, query, state, style, transition, trigger,} from '@angular/animations';
|
||||||
animate,
|
|
||||||
animateChild,
|
|
||||||
group,
|
|
||||||
query,
|
|
||||||
state,
|
|
||||||
style,
|
|
||||||
transition,
|
|
||||||
trigger,
|
|
||||||
} from '@angular/animations';
|
|
||||||
import {ValidateEmailValidator} from '../../../shared/validators/validate-email.validator';
|
import {ValidateEmailValidator} from '../../../shared/validators/validate-email.validator';
|
||||||
import {ValidatePasswordValidator} from '../../../shared/validators/validate-password.validator';
|
import {ValidatePasswordValidator} from '../../../shared/validators/validate-password.validator';
|
||||||
import {ValidateNotEmptyValidator} from '../../../shared/validators/validate-not-empty.validator';
|
import {ValidateNotEmptyValidator} from '../../../shared/validators/validate-not-empty.validator';
|
||||||
|
|||||||
@@ -1,14 +1,5 @@
|
|||||||
import {
|
import {animate, animateChild, group, query, state, style, transition, trigger,} from '@angular/animations';
|
||||||
animate,
|
import {Component, EventEmitter, Input, Output} from '@angular/core';
|
||||||
animateChild,
|
|
||||||
group,
|
|
||||||
query,
|
|
||||||
state,
|
|
||||||
style,
|
|
||||||
transition,
|
|
||||||
trigger,
|
|
||||||
} from '@angular/animations';
|
|
||||||
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-header-slider',
|
selector: 'app-header-slider',
|
||||||
|
|||||||
@@ -1,11 +1,4 @@
|
|||||||
import {
|
import {Component, EventEmitter, Input, OnDestroy, OnInit, Output,} from '@angular/core';
|
||||||
Component,
|
|
||||||
EventEmitter,
|
|
||||||
Input,
|
|
||||||
OnDestroy,
|
|
||||||
OnInit,
|
|
||||||
Output,
|
|
||||||
} from '@angular/core';
|
|
||||||
import {faUser} from '@fortawesome/free-solid-svg-icons';
|
import {faUser} from '@fortawesome/free-solid-svg-icons';
|
||||||
import {SliderItemComponent} from 'src/app/shared/components/slider-item/slider-item.component';
|
import {SliderItemComponent} from 'src/app/shared/components/slider-item/slider-item.component';
|
||||||
import {User} from '../../../shared/model/user/user.model';
|
import {User} from '../../../shared/model/user/user.model';
|
||||||
|
|||||||
@@ -1,12 +1,4 @@
|
|||||||
import {
|
import {Component, ComponentRef, ElementRef, OnDestroy, OnInit, ViewChild, ViewContainerRef,} from '@angular/core';
|
||||||
Component,
|
|
||||||
ComponentRef,
|
|
||||||
ElementRef,
|
|
||||||
OnDestroy,
|
|
||||||
OnInit,
|
|
||||||
ViewChild,
|
|
||||||
ViewContainerRef,
|
|
||||||
} from '@angular/core';
|
|
||||||
import {faUser} from '@fortawesome/free-solid-svg-icons';
|
import {faUser} from '@fortawesome/free-solid-svg-icons';
|
||||||
import {LoginComponent} from './header-popup/login/login.component';
|
import {LoginComponent} from './header-popup/login/login.component';
|
||||||
import {SignupComponent} from './header-popup/signup/signup.component';
|
import {SignupComponent} from './header-popup/signup/signup.component';
|
||||||
|
|||||||
@@ -18,7 +18,9 @@ import { MatIconModule } from '@angular/material/icon';
|
|||||||
import {ErrorBoxComponent} from './header-popup/error-box/error-box.component';
|
import {ErrorBoxComponent} from './header-popup/error-box/error-box.component';
|
||||||
import {HelpComponent} from './header-popup/help/help.component';
|
import {HelpComponent} from './header-popup/help/help.component';
|
||||||
import {MyProfileComponent} from './header-popup/my-profile/my-profile.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 {
|
||||||
|
ProfilePicturePickerComponent
|
||||||
|
} from './header-popup/my-profile/profile-picture-picker/profile-picture-picker.component';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Component, OnInit } from '@angular/core';
|
import {Component} from '@angular/core';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-home',
|
selector: 'app-home',
|
||||||
|
|||||||
@@ -7,7 +7,6 @@ import {NgxGlideComponent} from "ngx-glide";
|
|||||||
import {HomeRouterModule} from "./home-router.module";
|
import {HomeRouterModule} from "./home-router.module";
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
HomeComponent,
|
HomeComponent,
|
||||||
|
|||||||
@@ -2,7 +2,8 @@ import {Component, HostListener, Input, OnInit, ViewChild} from '@angular/core';
|
|||||||
import {faCodeFork, faEye, faScaleBalanced, faStar} from '@fortawesome/free-solid-svg-icons';
|
import {faCodeFork, faEye, faScaleBalanced, faStar} from '@fortawesome/free-solid-svg-icons';
|
||||||
import {Language, Project} from "../../shared/model/project/project.model";
|
import {Language, Project} from "../../shared/model/project/project.model";
|
||||||
import {
|
import {
|
||||||
ApexChart, ApexDataLabels,
|
ApexChart,
|
||||||
|
ApexDataLabels,
|
||||||
ApexNonAxisChartSeries,
|
ApexNonAxisChartSeries,
|
||||||
ApexPlotOptions,
|
ApexPlotOptions,
|
||||||
ApexResponsive,
|
ApexResponsive,
|
||||||
|
|||||||
@@ -1,21 +1,5 @@
|
|||||||
import {
|
import {animate, animateChild, group, query, state, style, transition, trigger,} from '@angular/animations';
|
||||||
animate,
|
import {Component, EventEmitter, Input, Output,} from '@angular/core';
|
||||||
animateChild,
|
|
||||||
group,
|
|
||||||
query,
|
|
||||||
state,
|
|
||||||
style,
|
|
||||||
transition,
|
|
||||||
trigger,
|
|
||||||
} from '@angular/animations';
|
|
||||||
import {
|
|
||||||
Component,
|
|
||||||
ElementRef,
|
|
||||||
EventEmitter,
|
|
||||||
Input,
|
|
||||||
Output,
|
|
||||||
ViewEncapsulation,
|
|
||||||
} from '@angular/core';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-popup',
|
selector: 'app-popup',
|
||||||
|
|||||||
@@ -1,11 +1,5 @@
|
|||||||
import {
|
import {animate, state, style, transition, trigger,} from '@angular/animations';
|
||||||
animate,
|
import {Component, Input} from '@angular/core';
|
||||||
state,
|
|
||||||
style,
|
|
||||||
transition,
|
|
||||||
trigger,
|
|
||||||
} from '@angular/animations';
|
|
||||||
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-slider-item',
|
selector: 'app-slider-item',
|
||||||
|
|||||||
@@ -1,9 +1,6 @@
|
|||||||
import {NgModule} from '@angular/core';
|
import {NgModule} from '@angular/core';
|
||||||
import {CommonModule} from '@angular/common';
|
import {CommonModule} from '@angular/common';
|
||||||
import {
|
import {NgcCookieConsentConfig, NgcCookieConsentModule,} from 'ngx-cookieconsent';
|
||||||
NgcCookieConsentConfig,
|
|
||||||
NgcCookieConsentModule,
|
|
||||||
} from 'ngx-cookieconsent';
|
|
||||||
|
|
||||||
const cookieConfig: NgcCookieConsentConfig = {
|
const cookieConfig: NgcCookieConsentConfig = {
|
||||||
cookie: {
|
cookie: {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import {Injectable} from '@angular/core';
|
import {Injectable} from '@angular/core';
|
||||||
import { BehaviorSubject, Subject, Subscription } from 'rxjs';
|
import {BehaviorSubject} from 'rxjs';
|
||||||
import {CookieService} from 'ngx-cookie-service';
|
import {CookieService} from 'ngx-cookie-service';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
|
|||||||
@@ -1,23 +1,6 @@
|
|||||||
import {DOCUMENT} from '@angular/common';
|
import {DOCUMENT} from '@angular/common';
|
||||||
import {
|
import {AfterViewInit, Directive, ElementRef, EventEmitter, Inject, Input, OnDestroy, Output,} from '@angular/core';
|
||||||
AfterViewInit,
|
import {filter, fromEvent, Subscription,} from 'rxjs';
|
||||||
Directive,
|
|
||||||
ElementRef,
|
|
||||||
EventEmitter,
|
|
||||||
Inject,
|
|
||||||
Input,
|
|
||||||
OnDestroy,
|
|
||||||
Output,
|
|
||||||
ViewChild,
|
|
||||||
} from '@angular/core';
|
|
||||||
import {
|
|
||||||
combineLatest,
|
|
||||||
combineLatestWith,
|
|
||||||
filter,
|
|
||||||
fromEvent,
|
|
||||||
merge,
|
|
||||||
Subscription,
|
|
||||||
} from 'rxjs';
|
|
||||||
|
|
||||||
@Directive({
|
@Directive({
|
||||||
selector: '[appClickedOutside]',
|
selector: '[appClickedOutside]',
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Type, type Static } from '@sinclair/typebox'
|
import {type Static, Type} from '@sinclair/typebox'
|
||||||
|
|
||||||
|
|
||||||
export const HttpError = Type.Object({
|
export const HttpError = Type.Object({
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Type, type Static } from '@sinclair/typebox'
|
import {type Static, Type} from '@sinclair/typebox'
|
||||||
|
|
||||||
|
|
||||||
export const Language = Type.Object({
|
export const Language = Type.Object({
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Type, type Static } from '@sinclair/typebox'
|
import {type Static, Type} from '@sinclair/typebox'
|
||||||
|
|
||||||
|
|
||||||
export const Stack = Type.Object({
|
export const Stack = Type.Object({
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Type, type Static } from '@sinclair/typebox'
|
import {type Static, Type} from '@sinclair/typebox'
|
||||||
|
|
||||||
|
|
||||||
export const Token = Type.Object({
|
export const Token = Type.Object({
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { Type, type Static } from '@sinclair/typebox'
|
import {type Static, Type} from '@sinclair/typebox'
|
||||||
|
|
||||||
import {Token} from '../token/token.model';
|
import {Token} from '../token/token.model';
|
||||||
|
|
||||||
|
|||||||
@@ -1,12 +1,6 @@
|
|||||||
import {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';
|
import {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';
|
||||||
import {Injectable} from '@angular/core';
|
import {Injectable} from '@angular/core';
|
||||||
import {
|
import {first, map, Observable, of, Subject,} from 'rxjs';
|
||||||
first,
|
|
||||||
map,
|
|
||||||
Observable,
|
|
||||||
of,
|
|
||||||
Subject,
|
|
||||||
} from 'rxjs';
|
|
||||||
import {catchError} from 'rxjs/operators';
|
import {catchError} from 'rxjs/operators';
|
||||||
import {environment} from 'src/environments/environment';
|
import {environment} from 'src/environments/environment';
|
||||||
import {HttpError} from '../model/httpError/httpError.model';
|
import {HttpError} from '../model/httpError/httpError.model';
|
||||||
|
|||||||
@@ -1,11 +1,7 @@
|
|||||||
import {Injectable} from '@angular/core';
|
import {Injectable} from '@angular/core';
|
||||||
import {Language, Project} from "../model/project/project.model";
|
import {Language, Project} from "../model/project/project.model";
|
||||||
import {HttpClient} from "@angular/common/http";
|
import {HttpClient} from "@angular/common/http";
|
||||||
import {
|
import {map, Observable, switchMap, tap} from 'rxjs';
|
||||||
map, mergeMap,
|
|
||||||
Observable,
|
|
||||||
pipe, switchMap, take, tap
|
|
||||||
} from 'rxjs';
|
|
||||||
import {environment} from 'src/environments/environment';
|
import {environment} from 'src/environments/environment';
|
||||||
|
|
||||||
@Injectable({
|
@Injectable({
|
||||||
|
|||||||
@@ -2,10 +2,7 @@
|
|||||||
|
|
||||||
import 'zone.js/testing';
|
import 'zone.js/testing';
|
||||||
import {getTestBed} from '@angular/core/testing';
|
import {getTestBed} from '@angular/core/testing';
|
||||||
import {
|
import {BrowserDynamicTestingModule, platformBrowserDynamicTesting,} from '@angular/platform-browser-dynamic/testing';
|
||||||
BrowserDynamicTestingModule,
|
|
||||||
platformBrowserDynamicTesting,
|
|
||||||
} from '@angular/platform-browser-dynamic/testing';
|
|
||||||
|
|
||||||
// First, initialize the Angular testing environment.
|
// First, initialize the Angular testing environment.
|
||||||
getTestBed().initTestEnvironment(
|
getTestBed().initTestEnvironment(
|
||||||
|
|||||||
Reference in New Issue
Block a user