Optimizes Imports
This commit is contained in:
@@ -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',
|
||||
@@ -56,13 +40,13 @@ import {
|
||||
})
|
||||
export class PopupComponent {
|
||||
@Input()
|
||||
state: boolean = false;
|
||||
state: boolean = false;
|
||||
|
||||
@Input()
|
||||
ignoreClickOutside!: HTMLDivElement[];
|
||||
ignoreClickOutside!: HTMLDivElement[];
|
||||
|
||||
@Output()
|
||||
stateChange = new EventEmitter<boolean>(false);
|
||||
stateChange = new EventEmitter<boolean>(false);
|
||||
|
||||
constructor() {}
|
||||
|
||||
|
||||
@@ -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 {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {NgcCookieConsentConfig, NgcCookieConsentModule,} from 'ngx-cookieconsent';
|
||||
|
||||
const cookieConfig: NgcCookieConsentConfig = {
|
||||
cookie: {
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { BehaviorSubject, Subject, Subscription } from 'rxjs';
|
||||
import { CookieService } from 'ngx-cookie-service';
|
||||
import {Injectable} from '@angular/core';
|
||||
import {BehaviorSubject} from 'rxjs';
|
||||
import {CookieService} from 'ngx-cookie-service';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
|
||||
@@ -1,39 +1,22 @@
|
||||
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 {DOCUMENT} from '@angular/common';
|
||||
import {AfterViewInit, Directive, ElementRef, EventEmitter, Inject, Input, OnDestroy, Output,} from '@angular/core';
|
||||
import {filter, fromEvent, Subscription,} from 'rxjs';
|
||||
|
||||
@Directive({
|
||||
selector: '[appClickedOutside]',
|
||||
})
|
||||
export class ClickedOutsideDirective implements AfterViewInit, OnDestroy {
|
||||
@Input()
|
||||
ignoreElementList!: HTMLDivElement[];
|
||||
ignoreElementList!: HTMLDivElement[];
|
||||
|
||||
@Input()
|
||||
includeClickedOutside!: HTMLDivElement[];
|
||||
includeClickedOutside!: HTMLDivElement[];
|
||||
|
||||
@Input()
|
||||
clickOutsideStopWatching: boolean = false;
|
||||
clickOutsideStopWatching: boolean = false;
|
||||
|
||||
@Output()
|
||||
clickOutside: EventEmitter<void> = new EventEmitter();
|
||||
clickOutside: EventEmitter<void> = new EventEmitter();
|
||||
|
||||
eventListener!: Subscription;
|
||||
|
||||
|
||||
@@ -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,6 +1,6 @@
|
||||
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';
|
||||
|
||||
|
||||
export const User = Type.Object({
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { SwUpdate } from '@angular/service-worker';
|
||||
import { interval } from 'rxjs';
|
||||
import {Injectable} from '@angular/core';
|
||||
import {SwUpdate} from '@angular/service-worker';
|
||||
import {interval} from 'rxjs';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
|
||||
@@ -1,16 +1,10 @@
|
||||
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
|
||||
import { Injectable } from '@angular/core';
|
||||
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';
|
||||
import { User } from '../model/user/user.model';
|
||||
import {HttpClient, HttpHeaders, HttpParams} from '@angular/common/http';
|
||||
import {Injectable} from '@angular/core';
|
||||
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';
|
||||
import {User} from '../model/user/user.model';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root',
|
||||
|
||||
@@ -1,12 +1,8 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
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 { environment } from 'src/environments/environment';
|
||||
import {map, Observable, switchMap, tap} from 'rxjs';
|
||||
import {environment} from 'src/environments/environment';
|
||||
|
||||
@Injectable({
|
||||
providedIn: 'root'
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { ClickedOutsideDirective } from './directive/clicked-outside/clicked-outside.directive';
|
||||
import { SliderItemComponent } from './components/slider-item/slider-item.component';
|
||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||
import { HttpClientModule } from '@angular/common/http';
|
||||
import { PopupComponent } from './components/popup/popup.component';
|
||||
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
||||
import { CookieConsentModule } from './cookie-consent/cookie-consent.module';
|
||||
import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {ClickedOutsideDirective} from './directive/clicked-outside/clicked-outside.directive';
|
||||
import {SliderItemComponent} from './components/slider-item/slider-item.component';
|
||||
import {BrowserAnimationsModule} from '@angular/platform-browser/animations';
|
||||
import {HttpClientModule} from '@angular/common/http';
|
||||
import {PopupComponent} from './components/popup/popup.component';
|
||||
import {FontAwesomeModule} from '@fortawesome/angular-fontawesome';
|
||||
import {CookieConsentModule} from './cookie-consent/cookie-consent.module';
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { AbstractControl } from '@angular/forms';
|
||||
import {AbstractControl} from '@angular/forms';
|
||||
|
||||
export function ValidateEmailValidator(control: AbstractControl) {
|
||||
const email = control.value;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { AbstractControl } from '@angular/forms';
|
||||
import {AbstractControl} from '@angular/forms';
|
||||
|
||||
export function ValidateNotEmptyValidator(control: AbstractControl) {
|
||||
const value = control.value;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { AbstractControl } from '@angular/forms';
|
||||
import {AbstractControl} from '@angular/forms';
|
||||
|
||||
export function ValidatePasswordValidator(control: AbstractControl) {
|
||||
var password = control.value;
|
||||
|
||||
Reference in New Issue
Block a user