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 {UpdateService} from './shared/service-worker/update.service';
|
||||
import {
|
||||
NgcCookieConsentService,
|
||||
NgcInitializationErrorEvent,
|
||||
NgcInitializingEvent,
|
||||
NgcNoCookieLawEvent,
|
||||
NgcStatusChangeEvent,
|
||||
} from 'ngx-cookieconsent';
|
||||
import {NgcCookieConsentService, NgcStatusChangeEvent,} from 'ngx-cookieconsent';
|
||||
import {Subscription} from 'rxjs';
|
||||
import {CookieConsertService} from './shared/cookie-consent/cookie-consert.service';
|
||||
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
import {Component} from '@angular/core';
|
||||
import {
|
||||
faGithub,
|
||||
faLinkedinIn,
|
||||
faTwitter,
|
||||
} from '@fortawesome/free-brands-svg-icons';
|
||||
import {faGithub, faLinkedinIn, faTwitter,} from '@fortawesome/free-brands-svg-icons';
|
||||
|
||||
@Component({
|
||||
selector: 'app-footer',
|
||||
|
||||
@@ -1,24 +1,6 @@
|
||||
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 {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';
|
||||
|
||||
@@ -16,22 +16,10 @@ 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 {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 {NgcCookieConsentService,} from 'ngx-cookieconsent';
|
||||
import {CookieConsertService} from '../../../shared/cookie-consent/cookie-consert.service';
|
||||
import {HttpError} from "../../../shared/model/httpError/httpError.model";
|
||||
|
||||
|
||||
@@ -1,22 +1,7 @@
|
||||
import {
|
||||
Component,
|
||||
EventEmitter,
|
||||
Input,
|
||||
OnInit,
|
||||
Output,
|
||||
} from '@angular/core';
|
||||
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 {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';
|
||||
|
||||
@@ -2,26 +2,12 @@ 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 {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 {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';
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -1,11 +1,4 @@
|
||||
import {
|
||||
Component,
|
||||
EventEmitter,
|
||||
Input,
|
||||
OnDestroy,
|
||||
OnInit,
|
||||
Output,
|
||||
} from '@angular/core';
|
||||
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';
|
||||
|
||||
@@ -1,12 +1,4 @@
|
||||
import {
|
||||
Component,
|
||||
ComponentRef,
|
||||
ElementRef,
|
||||
OnDestroy,
|
||||
OnInit,
|
||||
ViewChild,
|
||||
ViewContainerRef,
|
||||
} from '@angular/core';
|
||||
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';
|
||||
|
||||
@@ -18,7 +18,9 @@ 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 {
|
||||
ProfilePicturePickerComponent
|
||||
} from './header-popup/my-profile/profile-picture-picker/profile-picture-picker.component';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {Component} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-home',
|
||||
|
||||
@@ -7,7 +7,6 @@ import {NgxGlideComponent} from "ngx-glide";
|
||||
import {HomeRouterModule} from "./home-router.module";
|
||||
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
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 {Language, Project} from "../../shared/model/project/project.model";
|
||||
import {
|
||||
ApexChart, ApexDataLabels,
|
||||
ApexChart,
|
||||
ApexDataLabels,
|
||||
ApexNonAxisChartSeries,
|
||||
ApexPlotOptions,
|
||||
ApexResponsive,
|
||||
|
||||
@@ -1,21 +1,5 @@
|
||||
import {
|
||||
animate,
|
||||
animateChild,
|
||||
group,
|
||||
query,
|
||||
state,
|
||||
style,
|
||||
transition,
|
||||
trigger,
|
||||
} from '@angular/animations';
|
||||
import {
|
||||
Component,
|
||||
ElementRef,
|
||||
EventEmitter,
|
||||
Input,
|
||||
Output,
|
||||
ViewEncapsulation,
|
||||
} 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-popup',
|
||||
|
||||
@@ -1,11 +1,5 @@
|
||||
import {
|
||||
animate,
|
||||
state,
|
||||
style,
|
||||
transition,
|
||||
trigger,
|
||||
} from '@angular/animations';
|
||||
import { Component, EventEmitter, Input, OnInit, Output } from '@angular/core';
|
||||
import {animate, state, style, transition, trigger,} from '@angular/animations';
|
||||
import {Component, Input} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-slider-item',
|
||||
|
||||
@@ -1,9 +1,6 @@
|
||||
import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {
|
||||
NgcCookieConsentConfig,
|
||||
NgcCookieConsentModule,
|
||||
} from 'ngx-cookieconsent';
|
||||
import {NgcCookieConsentConfig, NgcCookieConsentModule,} from 'ngx-cookieconsent';
|
||||
|
||||
const cookieConfig: NgcCookieConsentConfig = {
|
||||
cookie: {
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
import {Injectable} from '@angular/core';
|
||||
import { BehaviorSubject, Subject, Subscription } from 'rxjs';
|
||||
import {BehaviorSubject} from 'rxjs';
|
||||
import {CookieService} from 'ngx-cookie-service';
|
||||
|
||||
@Injectable({
|
||||
|
||||
@@ -1,23 +1,6 @@
|
||||
import {DOCUMENT} from '@angular/common';
|
||||
import {
|
||||
AfterViewInit,
|
||||
Directive,
|
||||
ElementRef,
|
||||
EventEmitter,
|
||||
Inject,
|
||||
Input,
|
||||
OnDestroy,
|
||||
Output,
|
||||
ViewChild,
|
||||
} from '@angular/core';
|
||||
import {
|
||||
combineLatest,
|
||||
combineLatestWith,
|
||||
filter,
|
||||
fromEvent,
|
||||
merge,
|
||||
Subscription,
|
||||
} from 'rxjs';
|
||||
import {AfterViewInit, Directive, ElementRef, EventEmitter, Inject, Input, OnDestroy, Output,} from '@angular/core';
|
||||
import {filter, fromEvent, Subscription,} from 'rxjs';
|
||||
|
||||
@Directive({
|
||||
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({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Type, type Static } from '@sinclair/typebox'
|
||||
import {type Static, Type} from '@sinclair/typebox'
|
||||
|
||||
|
||||
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({
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Type, type Static } from '@sinclair/typebox'
|
||||
import {type Static, Type} from '@sinclair/typebox'
|
||||
|
||||
|
||||
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';
|
||||
|
||||
|
||||
@@ -1,12 +1,6 @@
|
||||
import {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';
|
||||
import {Injectable} from '@angular/core';
|
||||
import {
|
||||
first,
|
||||
map,
|
||||
Observable,
|
||||
of,
|
||||
Subject,
|
||||
} from 'rxjs';
|
||||
import {first, map, Observable, of, Subject,} from 'rxjs';
|
||||
import {catchError} from 'rxjs/operators';
|
||||
import {environment} from 'src/environments/environment';
|
||||
import {HttpError} from '../model/httpError/httpError.model';
|
||||
|
||||
@@ -1,11 +1,7 @@
|
||||
import {Injectable} from '@angular/core';
|
||||
import {Language, Project} from "../model/project/project.model";
|
||||
import {HttpClient} from "@angular/common/http";
|
||||
import {
|
||||
map, mergeMap,
|
||||
Observable,
|
||||
pipe, switchMap, take, tap
|
||||
} from 'rxjs';
|
||||
import {map, Observable, switchMap, tap} from 'rxjs';
|
||||
import {environment} from 'src/environments/environment';
|
||||
|
||||
@Injectable({
|
||||
|
||||
@@ -2,10 +2,7 @@
|
||||
|
||||
import 'zone.js/testing';
|
||||
import {getTestBed} from '@angular/core/testing';
|
||||
import {
|
||||
BrowserDynamicTestingModule,
|
||||
platformBrowserDynamicTesting,
|
||||
} from '@angular/platform-browser-dynamic/testing';
|
||||
import {BrowserDynamicTestingModule, platformBrowserDynamicTesting,} from '@angular/platform-browser-dynamic/testing';
|
||||
|
||||
// First, initialize the Angular testing environment.
|
||||
getTestBed().initTestEnvironment(
|
||||
|
||||
Reference in New Issue
Block a user