Merge pull request #66 from HideyoshiNakazone/devel
Devel - Optimizes Imports
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
import { CallbackComponent } from './header/header-popup/callback/callback.component';
|
||||
import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {RouterModule, Routes} from '@angular/router';
|
||||
import {CallbackComponent} from './header/header-popup/callback/callback.component';
|
||||
|
||||
|
||||
const routes: Routes = [
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { environment } from 'src/environments/environment';
|
||||
import { ServiceWorkerModule } from '@angular/service-worker';
|
||||
import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {environment} from 'src/environments/environment';
|
||||
import {ServiceWorkerModule} from '@angular/service-worker';
|
||||
|
||||
@NgModule({
|
||||
declarations: [],
|
||||
|
||||
@@ -1,15 +1,9 @@
|
||||
import { Component, OnDestroy, 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 { Subscription } from 'rxjs';
|
||||
import { CookieConsertService } from './shared/cookie-consent/cookie-consert.service';
|
||||
import {Component, OnInit} from '@angular/core';
|
||||
import {AuthService} from './shared/service/auth.service';
|
||||
import {UpdateService} from './shared/service-worker/update.service';
|
||||
import {NgcCookieConsentService, NgcStatusChangeEvent,} from 'ngx-cookieconsent';
|
||||
import {Subscription} from 'rxjs';
|
||||
import {CookieConsertService} from './shared/cookie-consent/cookie-consert.service';
|
||||
|
||||
@Component({
|
||||
selector: 'app-root',
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { BrowserModule } from '@angular/platform-browser';
|
||||
import {NgModule} from '@angular/core';
|
||||
import {BrowserModule} from '@angular/platform-browser';
|
||||
|
||||
import { AppComponent } from './app.component';
|
||||
import { HeaderModule } from './header/header.module';
|
||||
import { SharedModule } from './shared/shared.module';
|
||||
import { AppRouterModule } from './app-router.module';
|
||||
import { FontAwesomeModule } from '@fortawesome/angular-fontawesome';
|
||||
import { AppServiceWorkerModule } from './app-service-worker.module';
|
||||
import { ServiceWorkerModule } from '@angular/service-worker';
|
||||
import { environment } from '../environments/environment';
|
||||
import { FooterComponent } from './footer/footer.component';
|
||||
import {AppComponent} from './app.component';
|
||||
import {HeaderModule} from './header/header.module';
|
||||
import {SharedModule} from './shared/shared.module';
|
||||
import {AppRouterModule} from './app-router.module';
|
||||
import {FontAwesomeModule} from '@fortawesome/angular-fontawesome';
|
||||
import {AppServiceWorkerModule} from './app-service-worker.module';
|
||||
import {ServiceWorkerModule} from '@angular/service-worker';
|
||||
import {environment} from '../environments/environment';
|
||||
import {FooterComponent} from './footer/footer.component';
|
||||
|
||||
@NgModule({
|
||||
declarations: [AppComponent, FooterComponent],
|
||||
|
||||
@@ -1,9 +1,5 @@
|
||||
import { Component } from '@angular/core';
|
||||
import {
|
||||
faGithub,
|
||||
faLinkedinIn,
|
||||
faTwitter,
|
||||
} from '@fortawesome/free-brands-svg-icons';
|
||||
import {Component} from '@angular/core';
|
||||
import {faGithub, faLinkedinIn, faTwitter,} from '@fortawesome/free-brands-svg-icons';
|
||||
|
||||
@Component({
|
||||
selector: 'app-footer',
|
||||
|
||||
@@ -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: [
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {RouterModule, Routes} from '@angular/router';
|
||||
import {HomeComponent} from "./home.component";
|
||||
|
||||
const routes: Routes = [
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import {Component} from '@angular/core';
|
||||
|
||||
@Component({
|
||||
selector: 'app-home',
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import {NgModule} from '@angular/core';
|
||||
import {CommonModule, NgOptimizedImage} from '@angular/common';
|
||||
import {HomeComponent} from "./home.component";
|
||||
import {StackSliderComponent} from "./stack-slider/stack-slider.component";
|
||||
@@ -7,7 +7,6 @@ import {NgxGlideComponent} from "ngx-glide";
|
||||
import {HomeRouterModule} from "./home-router.module";
|
||||
|
||||
|
||||
|
||||
@NgModule({
|
||||
declarations: [
|
||||
HomeComponent,
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import {ComponentFixture, TestBed} from '@angular/core/testing';
|
||||
|
||||
import { StackCardComponent } from './stack-card.component';
|
||||
import {StackCardComponent} from './stack-card.component';
|
||||
|
||||
describe('StackCardComponent', () => {
|
||||
let component: StackCardComponent;
|
||||
let fixture: ComponentFixture<StackCardComponent>;
|
||||
let component: StackCardComponent;
|
||||
let fixture: ComponentFixture<StackCardComponent>;
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [StackCardComponent]
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [StackCardComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(StackCardComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
fixture = TestBed.createComponent(StackCardComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -1,21 +1,21 @@
|
||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
||||
import {ComponentFixture, TestBed} from '@angular/core/testing';
|
||||
|
||||
import { StackSliderComponent } from './stack-slider.component';
|
||||
import {StackSliderComponent} from './stack-slider.component';
|
||||
|
||||
describe('StackSliderComponent', () => {
|
||||
let component: StackSliderComponent;
|
||||
let fixture: ComponentFixture<StackSliderComponent>;
|
||||
let component: StackSliderComponent;
|
||||
let fixture: ComponentFixture<StackSliderComponent>;
|
||||
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [StackSliderComponent]
|
||||
beforeEach(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [StackSliderComponent]
|
||||
});
|
||||
fixture = TestBed.createComponent(StackSliderComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
fixture = TestBed.createComponent(StackSliderComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
||||
|
||||
@@ -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,6 +1,6 @@
|
||||
import { NgModule } from '@angular/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { RouterModule, Routes } from '@angular/router';
|
||||
import {NgModule} from '@angular/core';
|
||||
import {CommonModule} from '@angular/common';
|
||||
import {RouterModule, Routes} from '@angular/router';
|
||||
import {ProjectsComponent} from "./projects.component";
|
||||
|
||||
const routes: Routes = [
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import {NgModule} from "@angular/core";
|
||||
import {ProjectsComponent} from "./projects.component";
|
||||
import {CommonModule, NgOptimizedImage} from "@angular/common";
|
||||
import { ProjectCardComponent } from './project-card/project-card.component';
|
||||
import {ProjectCardComponent} from './project-card/project-card.component';
|
||||
import {MatIconModule} from "@angular/material/icon";
|
||||
import {FontAwesomeModule} from "@fortawesome/angular-fontawesome";
|
||||
import {NgApexchartsModule} from "ng-apexcharts";
|
||||
|
||||
@@ -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;
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
import { enableProdMode } from '@angular/core';
|
||||
import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||
import {enableProdMode} from '@angular/core';
|
||||
import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
|
||||
|
||||
import { AppModule } from './app/app.module';
|
||||
import { environment } from './environments/environment';
|
||||
import {AppModule} from './app/app.module';
|
||||
import {environment} from './environments/environment';
|
||||
|
||||
if (environment.production) {
|
||||
enableProdMode();
|
||||
|
||||
@@ -1,11 +1,8 @@
|
||||
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
|
||||
|
||||
import 'zone.js/testing';
|
||||
import { getTestBed } from '@angular/core/testing';
|
||||
import {
|
||||
BrowserDynamicTestingModule,
|
||||
platformBrowserDynamicTesting,
|
||||
} from '@angular/platform-browser-dynamic/testing';
|
||||
import {getTestBed} from '@angular/core/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