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 { FormsModule } from '@angular/forms';
|
||||
import { Router, ActivatedRoute } from '@angular/router';
|
||||
|
||||
@@ -2,7 +2,6 @@ import { Component } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { Router, ActivatedRoute } from '@angular/router';
|
||||
import { Account } from '../../../models/Account';
|
||||
import { Title } from '@angular/platform-browser';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { Authentication, SessionType } from '../../../services/Authentication';
|
||||
|
||||
@@ -2,13 +2,12 @@ import { Component } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { Router, ActivatedRoute } from '@angular/router';
|
||||
import { Account } from '../../../models/Account';
|
||||
import { Title } from '@angular/platform-browser';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { Authentication } from '../../../services/Authentication';
|
||||
|
||||
@Component({
|
||||
selector: 'account-login',
|
||||
selector: 'account-logout',
|
||||
templateUrl: './logout.component.html',
|
||||
imports: [ FormsModule, CommonModule ],
|
||||
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 { FormsModule } from '@angular/forms';
|
||||
import { Router, ActivatedRoute } from '@angular/router';
|
||||
|
||||
@@ -7,7 +7,7 @@ import { Title } from '@angular/platform-browser';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'account-register',
|
||||
selector: 'account-settings',
|
||||
templateUrl: './settings.component.html',
|
||||
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 { FormsModule } from '@angular/forms';
|
||||
import { Router, ActivatedRoute } from '@angular/router';
|
||||
|
||||
@@ -6,7 +6,7 @@ import { Title } from '@angular/platform-browser';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'account-forgot',
|
||||
selector: 'legal-about',
|
||||
templateUrl: './about.component.html',
|
||||
imports: [ FormsModule, CommonModule ]
|
||||
})
|
||||
|
||||
@@ -6,7 +6,7 @@ import { Title } from '@angular/platform-browser';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'account-forgot',
|
||||
selector: 'project-mist',
|
||||
templateUrl: './mist.component.html',
|
||||
imports: [ FormsModule, CommonModule ]
|
||||
})
|
||||
|
||||
@@ -1,17 +1,17 @@
|
||||
import { Component } from '@angular/core';
|
||||
import { HttpClient } from '@angular/common/http';
|
||||
import { FormsModule } from '@angular/forms';
|
||||
import { Router, ActivatedRoute } from '@angular/router';
|
||||
import { FormsModule, NgModel } from '@angular/forms';
|
||||
import { Router, ActivatedRoute, RouterModule } from '@angular/router';
|
||||
import { Title } from '@angular/platform-browser';
|
||||
import { CommonModule } from '@angular/common';
|
||||
import { Authentication } from '../../../services/Authentication';
|
||||
import { Product } from 'app/models/Product';
|
||||
|
||||
@Component({
|
||||
selector: 'account-forgot',
|
||||
selector: 'catalog',
|
||||
templateUrl: './catalog.component.html',
|
||||
styleUrl: './catalog.component.css',
|
||||
imports: [ FormsModule, CommonModule ]
|
||||
imports: [ FormsModule, CommonModule, RouterModule ]
|
||||
})
|
||||
export class CatalogComponent {
|
||||
|
||||
@@ -25,7 +25,5 @@ export class CatalogComponent {
|
||||
this.Products = response;
|
||||
}
|
||||
)
|
||||
|
||||
};
|
||||
|
||||
}
|
||||
@@ -1,7 +1,7 @@
|
||||
import { Injectable } from "@angular/core";
|
||||
import { Account } from "../models/Account";
|
||||
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' })
|
||||
export class Authentication{
|
||||
|
||||
Reference in New Issue
Block a user