General Code Cleanup
This commit is contained in:
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { ChangeDetectorRef, Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
|
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
|
||||||
import { FormsModule } from '@angular/forms';
|
import { FormsModule } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
|
|||||||
@@ -2,7 +2,6 @@ import { Component } from '@angular/core';
|
|||||||
import { HttpClient } from '@angular/common/http';
|
import { HttpClient } from '@angular/common/http';
|
||||||
import { FormsModule } from '@angular/forms';
|
import { FormsModule } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
import { Account } from '../../../models/Account';
|
|
||||||
import { Title } from '@angular/platform-browser';
|
import { Title } from '@angular/platform-browser';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { Authentication, SessionType } from '../../../services/Authentication';
|
import { Authentication, SessionType } from '../../../services/Authentication';
|
||||||
|
|||||||
@@ -2,13 +2,12 @@ import { Component } from '@angular/core';
|
|||||||
import { HttpClient } from '@angular/common/http';
|
import { HttpClient } from '@angular/common/http';
|
||||||
import { FormsModule } from '@angular/forms';
|
import { FormsModule } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
import { Account } from '../../../models/Account';
|
|
||||||
import { Title } from '@angular/platform-browser';
|
import { Title } from '@angular/platform-browser';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { Authentication } from '../../../services/Authentication';
|
import { Authentication } from '../../../services/Authentication';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'account-login',
|
selector: 'account-logout',
|
||||||
templateUrl: './logout.component.html',
|
templateUrl: './logout.component.html',
|
||||||
imports: [ FormsModule, CommonModule ],
|
imports: [ FormsModule, CommonModule ],
|
||||||
standalone: true
|
standalone: true
|
||||||
|
|||||||
+1
-1
@@ -1,4 +1,4 @@
|
|||||||
import { ChangeDetectorRef, Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
|
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
|
||||||
import { FormsModule } from '@angular/forms';
|
import { FormsModule } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
|
|||||||
@@ -7,7 +7,7 @@ import { Title } from '@angular/platform-browser';
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'account-register',
|
selector: 'account-settings',
|
||||||
templateUrl: './settings.component.html',
|
templateUrl: './settings.component.html',
|
||||||
imports: [ FormsModule, CommonModule ]
|
imports: [ FormsModule, CommonModule ]
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { ChangeDetectorRef, Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
|
import { HttpClient, HttpHeaders, HttpParams } from '@angular/common/http';
|
||||||
import { FormsModule } from '@angular/forms';
|
import { FormsModule } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute } from '@angular/router';
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { Title } from '@angular/platform-browser';
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'account-forgot',
|
selector: 'legal-about',
|
||||||
templateUrl: './about.component.html',
|
templateUrl: './about.component.html',
|
||||||
imports: [ FormsModule, CommonModule ]
|
imports: [ FormsModule, CommonModule ]
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ import { Title } from '@angular/platform-browser';
|
|||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'account-forgot',
|
selector: 'project-mist',
|
||||||
templateUrl: './mist.component.html',
|
templateUrl: './mist.component.html',
|
||||||
imports: [ FormsModule, CommonModule ]
|
imports: [ FormsModule, CommonModule ]
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -1,17 +1,17 @@
|
|||||||
import { Component } from '@angular/core';
|
import { Component } from '@angular/core';
|
||||||
import { HttpClient } from '@angular/common/http';
|
import { HttpClient } from '@angular/common/http';
|
||||||
import { FormsModule } from '@angular/forms';
|
import { FormsModule, NgModel } from '@angular/forms';
|
||||||
import { Router, ActivatedRoute } from '@angular/router';
|
import { Router, ActivatedRoute, RouterModule } from '@angular/router';
|
||||||
import { Title } from '@angular/platform-browser';
|
import { Title } from '@angular/platform-browser';
|
||||||
import { CommonModule } from '@angular/common';
|
import { CommonModule } from '@angular/common';
|
||||||
import { Authentication } from '../../../services/Authentication';
|
import { Authentication } from '../../../services/Authentication';
|
||||||
import { Product } from 'app/models/Product';
|
import { Product } from 'app/models/Product';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'account-forgot',
|
selector: 'catalog',
|
||||||
templateUrl: './catalog.component.html',
|
templateUrl: './catalog.component.html',
|
||||||
styleUrl: './catalog.component.css',
|
styleUrl: './catalog.component.css',
|
||||||
imports: [ FormsModule, CommonModule ]
|
imports: [ FormsModule, CommonModule, RouterModule ]
|
||||||
})
|
})
|
||||||
export class CatalogComponent {
|
export class CatalogComponent {
|
||||||
|
|
||||||
@@ -25,7 +25,5 @@ export class CatalogComponent {
|
|||||||
this.Products = response;
|
this.Products = response;
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
};
|
};
|
||||||
|
|
||||||
}
|
}
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Injectable } from "@angular/core";
|
import { Injectable } from "@angular/core";
|
||||||
import { Account } from "../models/Account";
|
import { Account } from "../models/Account";
|
||||||
import { BehaviorSubject, Observable } from "rxjs";
|
import { BehaviorSubject, Observable } from "rxjs";
|
||||||
import { HttpClient, HttpHandler, HttpHeaders, HttpParams } from "@angular/common/http";
|
import { HttpClient, HttpHeaders, HttpParams } from "@angular/common/http";
|
||||||
|
|
||||||
@Injectable({ providedIn: 'root' })
|
@Injectable({ providedIn: 'root' })
|
||||||
export class Authentication{
|
export class Authentication{
|
||||||
|
|||||||
Reference in New Issue
Block a user