clean code
This commit is contained in:
parent
8c3e7c3028
commit
349b578a3d
11 changed files with 13 additions and 26 deletions
|
|
@ -5,7 +5,6 @@ import { Router } from '@angular/router';
|
|||
import { CommonModule } from '@angular/common';
|
||||
import { ErrorService } from '../../services/error.service';
|
||||
import { AuthService } from '../../services/auth.service';
|
||||
import { HttpErrorResponse } from '@angular/common/http';
|
||||
|
||||
@Component({
|
||||
selector: 'app-auth',
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import { FormsModule, NgForm } from '@angular/forms';
|
|||
import { ActivatedRoute, RouterLink } from '@angular/router';
|
||||
import { AuthService } from '../../../services/auth.service';
|
||||
import { ErrorService } from '../../../services/error.service';
|
||||
import { HttpErrorResponse } from '@angular/common/http';
|
||||
|
||||
@Component({
|
||||
selector: 'app-forgot-password',
|
||||
|
|
|
|||
|
|
@ -88,7 +88,9 @@
|
|||
></app-btn-large>
|
||||
<app-btn-large
|
||||
[value]="'Guest Log in'"
|
||||
[disabled]="authData.guestLogin"
|
||||
[disabled]="
|
||||
authData.guestLogin || (!!authData.mail && !!authData.password)
|
||||
"
|
||||
(click)="guestLogin()"
|
||||
></app-btn-large>
|
||||
</div>
|
||||
|
|
|
|||
|
|
@ -1,10 +1,9 @@
|
|||
import { Component, ViewChild } from '@angular/core';
|
||||
import { Component } from '@angular/core';
|
||||
import { BtnLargeComponent } from '../../../shared/components/buttons/btn-large/btn-large.component';
|
||||
import { FormsModule, NgForm } from '@angular/forms';
|
||||
import { Router, RouterLink } from '@angular/router';
|
||||
import { AuthService } from '../../../services/auth.service';
|
||||
import { ErrorService } from '../../../services/error.service';
|
||||
import { HttpErrorResponse } from '@angular/common/http';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { environment } from '../../../environments/environment';
|
||||
|
||||
|
|
|
|||
|
|
@ -5,7 +5,6 @@ import { ActivatedRoute, Router, RouterLink } from '@angular/router';
|
|||
import { CommonModule } from '@angular/common';
|
||||
import { AuthService } from '../../../services/auth.service';
|
||||
import { ErrorService } from '../../../services/error.service';
|
||||
import { HttpErrorResponse } from '@angular/common/http';
|
||||
|
||||
@Component({
|
||||
selector: 'app-register',
|
||||
|
|
|
|||
|
|
@ -1,12 +1,4 @@
|
|||
import {
|
||||
Component,
|
||||
EventEmitter,
|
||||
OnChanges,
|
||||
OnInit,
|
||||
Output,
|
||||
SimpleChanges,
|
||||
ViewChild,
|
||||
} from '@angular/core';
|
||||
import { Component, OnInit, ViewChild } from '@angular/core';
|
||||
import { HeaderComponent } from '../../../shared/components/header/header.component';
|
||||
import { HeroBannerComponent } from './hero-banner/hero-banner.component';
|
||||
import { CategoriesComponent } from './categories/categories.component';
|
||||
|
|
|
|||
|
|
@ -1,14 +1,10 @@
|
|||
import { CommonModule } from '@angular/common';
|
||||
import {
|
||||
ChangeDetectorRef,
|
||||
Component,
|
||||
ElementRef,
|
||||
EventEmitter,
|
||||
HostListener,
|
||||
Input,
|
||||
Output,
|
||||
Renderer2,
|
||||
ViewChild,
|
||||
} from '@angular/core';
|
||||
import { environment } from '../../../../environments/environment';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { Component, Input, OnInit } from '@angular/core';
|
||||
import { Component, OnInit } from '@angular/core';
|
||||
import { ErrorService } from '../../../services/error.service';
|
||||
|
||||
@Component({
|
||||
|
|
|
|||
|
|
@ -1,4 +1,4 @@
|
|||
import { Component, Input, input } from '@angular/core';
|
||||
import { Component, Input } from '@angular/core';
|
||||
import { BtnLargeComponent } from '../buttons/btn-large/btn-large.component';
|
||||
import { Router, RouterLink } from '@angular/router';
|
||||
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
import { Component } from '@angular/core';
|
||||
import { CommonModule, Location } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'app-imprint',
|
||||
standalone: true,
|
||||
|
|
|
|||
|
|
@ -28,12 +28,12 @@ form {
|
|||
}
|
||||
input::file-selector-button {
|
||||
width: fit-content;
|
||||
box-shadow: 1px 1px 3px rgba(0, 0, 0, 0.5);
|
||||
box-shadow: 1px 1px 3px rgba($black, 0.5);
|
||||
border-radius: 6px;
|
||||
padding: 6px;
|
||||
color: $white;
|
||||
background-color: blue;
|
||||
border: 1px solid blue;
|
||||
background-color: $blue;
|
||||
border: 1px solid $blue;
|
||||
transition: 300ms ease-in-out;
|
||||
cursor: pointer;
|
||||
}
|
||||
|
|
@ -54,8 +54,8 @@ form {
|
|||
padding: 9px;
|
||||
p {
|
||||
color: $red;
|
||||
font-size: 12px !important;
|
||||
font-weight: 400 !important;
|
||||
font-size: 12px;
|
||||
font-weight: 400;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue