mirror of
https://github.com/Mueller-Patrick/Betterzon.git
synced 2024-12-24 12:35:12 +00:00
Compare commits
No commits in common. "fe2c064e3003fbdf79c6dc1cdf02dae0c02353c2" and "be534551bab4dafffc70ccfcfa0c79273dddf999" have entirely different histories.
fe2c064e30
...
be534551ba
|
@ -1,8 +1,6 @@
|
||||||
import {Component, OnDestroy, OnInit} from '@angular/core';
|
import {Component, OnDestroy, OnInit} from '@angular/core';
|
||||||
import {NgcCookieConsentService, NgcInitializeEvent, NgcNoCookieLawEvent, NgcStatusChangeEvent} from 'ngx-cookieconsent';
|
import {NgcCookieConsentService, NgcInitializeEvent, NgcNoCookieLawEvent, NgcStatusChangeEvent} from 'ngx-cookieconsent';
|
||||||
import {Subscription} from 'rxjs';
|
import {Subscription} from 'rxjs';
|
||||||
import {ApiService} from "./services/api.service";
|
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-root',
|
selector: 'app-root',
|
||||||
|
@ -21,18 +19,12 @@ export class AppComponent implements OnInit, OnDestroy {
|
||||||
private revokeChoiceSubscription: Subscription;
|
private revokeChoiceSubscription: Subscription;
|
||||||
private noCookieLawSubscription: Subscription;
|
private noCookieLawSubscription: Subscription;
|
||||||
|
|
||||||
isLoggedIn = false;
|
|
||||||
showUserBoard = false;
|
|
||||||
username?: string;
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private ccService: NgcCookieConsentService,
|
private ccService: NgcCookieConsentService
|
||||||
private api: ApiService
|
|
||||||
) {
|
) {
|
||||||
}
|
}
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
|
||||||
// subscribe to cookieconsent observables to react to main events
|
// subscribe to cookieconsent observables to react to main events
|
||||||
this.popupOpenSubscription = this.ccService.popupOpen$.subscribe(
|
this.popupOpenSubscription = this.ccService.popupOpen$.subscribe(
|
||||||
() => {
|
() => {
|
||||||
|
|
|
@ -39,7 +39,6 @@ import { GreetingInfoSliderComponent } from './components/greeting-info-slider/g
|
||||||
import { KundenComponent } from './components/kunden/kunden.component';
|
import { KundenComponent } from './components/kunden/kunden.component';
|
||||||
import { AboutUsComponent } from './components/about-us/about-us.component';
|
import { AboutUsComponent } from './components/about-us/about-us.component';
|
||||||
import { ProfileComponent } from './components/profile/profile.component';
|
import { ProfileComponent } from './components/profile/profile.component';
|
||||||
import { ProfilePageComponent } from './pages/profile-page/profile-page.component';
|
|
||||||
|
|
||||||
// For cookie popup
|
// For cookie popup
|
||||||
const cookieConfig: NgcCookieConsentConfig = {
|
const cookieConfig: NgcCookieConsentConfig = {
|
||||||
|
@ -105,7 +104,6 @@ const cookieConfig: NgcCookieConsentConfig = {
|
||||||
KundenComponent,
|
KundenComponent,
|
||||||
AboutUsComponent,
|
AboutUsComponent,
|
||||||
ProfileComponent,
|
ProfileComponent,
|
||||||
ProfilePageComponent,
|
|
||||||
],
|
],
|
||||||
imports: [
|
imports: [
|
||||||
BrowserModule,
|
BrowserModule,
|
||||||
|
|
|
@ -12,7 +12,6 @@ import {PrivacyComponent} from './pages/privacy/privacy.component';
|
||||||
import {SigninComponent} from "./components/auth/signin/signin.component";
|
import {SigninComponent} from "./components/auth/signin/signin.component";
|
||||||
import {RegistrationComponent} from "./components/auth/registration/registration.component";
|
import {RegistrationComponent} from "./components/auth/registration/registration.component";
|
||||||
import {ProfileComponent} from "./components/profile/profile.component";
|
import {ProfileComponent} from "./components/profile/profile.component";
|
||||||
import {ProfilePageComponent} from "./pages/profile-page/profile-page.component";
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{path: '', component: LandingpageComponent, pathMatch: 'full'},
|
{path: '', component: LandingpageComponent, pathMatch: 'full'},
|
||||||
|
@ -23,7 +22,7 @@ const routes: Routes = [
|
||||||
{path: 'signin', component: SigninComponent},
|
{path: 'signin', component: SigninComponent},
|
||||||
{path: 'registration', component: RegistrationComponent},
|
{path: 'registration', component: RegistrationComponent},
|
||||||
{path: "product-detail", component: ProductDetailPageComponent},
|
{path: "product-detail", component: ProductDetailPageComponent},
|
||||||
{path: "profile", component: ProfilePageComponent},
|
{path: "profile", component: ProfileComponent},
|
||||||
{path: '**', component: PageNotFoundPageComponent}
|
{path: '**', component: PageNotFoundPageComponent}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
import { Component, OnInit } from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
import { FormBuilder, FormGroup, Validators } from '@angular/forms';
|
||||||
import {ApiService} from "../../../services/api.service";
|
import {ApiService} from "../../../services/api.service";
|
||||||
import {Router} from "@angular/router";
|
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
@ -16,8 +15,7 @@ export class RegistrationComponent implements OnInit {
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private formBuilder: FormBuilder,
|
private formBuilder: FormBuilder,
|
||||||
private api : ApiService,
|
private api : ApiService
|
||||||
private router: Router
|
|
||||||
) { }
|
) { }
|
||||||
|
|
||||||
ngOnInit(): void {
|
ngOnInit(): void {
|
||||||
|
@ -34,11 +32,6 @@ export class RegistrationComponent implements OnInit {
|
||||||
get me() { return this.form.controls; }
|
get me() { return this.form.controls; }
|
||||||
|
|
||||||
onSubmit() {
|
onSubmit() {
|
||||||
this.api.registerUser(this.form.value.username, this.form.value.password, this.form.value.email).subscribe(
|
this.api.registerUser(this.form.value.username, this.form.value.password, this.form.value.email).subscribe(res=>console.log(res));
|
||||||
res=> {
|
|
||||||
this.api.saveSessionInfoToLocalStorage(res);
|
|
||||||
this.router.navigate(['/']);
|
|
||||||
}
|
|
||||||
);
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,8 +43,8 @@ export class SigninComponent implements OnInit {
|
||||||
.subscribe(
|
.subscribe(
|
||||||
data => {
|
data => {
|
||||||
this.isSuccessful = true;
|
this.isSuccessful = true;
|
||||||
|
this.isSignUpFailed = false;
|
||||||
this.router.navigate(['']);
|
this.router.navigate(['']);
|
||||||
this.api.saveSessionInfoToLocalStorage(data);
|
|
||||||
},
|
},
|
||||||
err => {
|
err => {
|
||||||
this.errorMessage = err.error.message;
|
this.errorMessage = err.error.message;
|
||||||
|
|
|
@ -11,16 +11,16 @@
|
||||||
<!-- Portfolio Item 1-->
|
<!-- Portfolio Item 1-->
|
||||||
<div class="col-md-4 mx-auto my-5" *ngFor="let productId of bestDealsProductIds" (click)="clickedProduct(productId)">
|
<div class="col-md-4 mx-auto my-5" *ngFor="let productId of bestDealsProductIds" (click)="clickedProduct(productId)">
|
||||||
<div class="bbb_deals_wrapper">
|
<div class="bbb_deals_wrapper">
|
||||||
<div class="bbb_deals_image"><img src="https://www.mueller-patrick.tech/betterzon/images/{{productsPricesMap[productId]?.product?.image_guid}}.jpg" alt=""></div>
|
<div class="bbb_deals_image"><img src="https://www.mueller-patrick.tech/betterzon/images/{{productsPricesMap[productId]?.product.image_guid}}.jpg" alt=""></div>
|
||||||
<div class="bbb_deals_content">
|
<div class="bbb_deals_content">
|
||||||
<div class="bbb_deals_info_line d-flex flex-row justify-content-start">
|
<div class="bbb_deals_info_line d-flex flex-row justify-content-start">
|
||||||
<div class="bbb_deals_item_name">{{productsPricesMap[productId]?.product?.name}}</div>
|
<div class="bbb_deals_item_name">{{productsPricesMap[productId]?.product.name}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bbb_deals_info_line d-flex flex-row justify-content-start">
|
<div class="bbb_deals_info_line d-flex flex-row justify-content-start">
|
||||||
<div class="bbb_deals_item_category">Amazon: <span id="bbb_deals_item_price_a"><strike>{{productsPricesMap[productId]?.amazonPrice?.price_in_cents/100}}$</strike></span></div>
|
<div class="bbb_deals_item_category">Amazon: <span id="bbb_deals_item_price_a"><strike>{{productsPricesMap[productId]?.amazonPrice.price_in_cents}}$</strike></span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="bbb_deals_info_line d-flex flex-row justify-content-start">
|
<div class="bbb_deals_info_line d-flex flex-row justify-content-start">
|
||||||
<div class="bbb_deals_item_category">{{productsPricesMap[productId]?.vendor?.name}}: <span id="bbb_deals_item_price_b">{{productsPricesMap[productId]?.lowestPrice?.price_in_cents/100}}</span></div>
|
<div class="bbb_deals_item_category">Plantshub: <span id="bbb_deals_item_price_b">{{productsPricesMap[productId]?.lowestPrice.price_in_cents}}</span></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="available_bar">
|
<div class="available_bar">
|
||||||
<span style="width:17%"></span>
|
<span style="width:17%"></span>
|
||||||
|
|
|
@ -13,7 +13,7 @@ export class HotDealsWidgetComponent implements OnInit {
|
||||||
products: Product[] = [];
|
products: Product[] = [];
|
||||||
bestDealsProductIds = [];
|
bestDealsProductIds = [];
|
||||||
amazonPrices = [];
|
amazonPrices = [];
|
||||||
productsPricesMap = new Map();
|
productsPricesMap: any = {};
|
||||||
@Input() numberOfProducts: number;
|
@Input() numberOfProducts: number;
|
||||||
@Input() showProductPicture: boolean;
|
@Input() showProductPicture: boolean;
|
||||||
@Input() searchQuery: string;
|
@Input() searchQuery: string;
|
||||||
|
@ -52,7 +52,6 @@ export class HotDealsWidgetComponent implements OnInit {
|
||||||
default: {
|
default: {
|
||||||
this.getProductsByIds();
|
this.getProductsByIds();
|
||||||
this.getAmazonPricesForBestDeals();
|
this.getAmazonPricesForBestDeals();
|
||||||
this.getVendors()
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -80,16 +79,6 @@ export class HotDealsWidgetComponent implements OnInit {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
getVendors(): void {
|
|
||||||
this.productsPricesMap.keys().forEach(
|
|
||||||
key => {
|
|
||||||
const currentDeal = this.productsPricesMap[key].lowestPrice;
|
|
||||||
this.apiService.getVendorById(currentDeal.vendor_id).subscribe(
|
|
||||||
vendor => {
|
|
||||||
this.productsPricesMap[key].vendor = vendor
|
|
||||||
})
|
|
||||||
})
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
getAmazonPricesForBestDeals(): void{
|
getAmazonPricesForBestDeals(): void{
|
||||||
|
@ -97,11 +86,12 @@ export class HotDealsWidgetComponent implements OnInit {
|
||||||
this.apiService.getAmazonPrice(id).subscribe(
|
this.apiService.getAmazonPrice(id).subscribe(
|
||||||
price => {
|
price => {
|
||||||
this.amazonPrices.push(price);
|
this.amazonPrices.push(price);
|
||||||
this.productsPricesMap[price[0].product_id].amazonPrice = price[0];
|
this.productsPricesMap[price.product_id].amazonPrice = price;
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
|
console.log(this.amazonPrices);
|
||||||
}
|
}
|
||||||
|
|
||||||
getSearchedProducts(): void {
|
getSearchedProducts(): void {
|
||||||
|
|
|
@ -20,7 +20,7 @@
|
||||||
{{product?.short_description}}
|
{{product?.short_description}}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="priceAlarm" (click)="setPriceAlarm()">
|
<div class="priceAlarm">
|
||||||
Set Price Alarm
|
Set Price Alarm
|
||||||
</div>
|
</div>
|
||||||
<div class="bestPriceContainer">
|
<div class="bestPriceContainer">
|
||||||
|
|
|
@ -117,10 +117,4 @@ export class ProductDetailsComponent implements OnInit {
|
||||||
|
|
||||||
return Math.round(percentage);
|
return Math.round(percentage);
|
||||||
}
|
}
|
||||||
|
|
||||||
setPriceAlarm() {
|
|
||||||
this.apiService.createPriceAlarms(this.productId, 9).subscribe(
|
|
||||||
alarms => console.log(alarms)
|
|
||||||
)
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -7,27 +7,6 @@
|
||||||
<strong>username:</strong>
|
<strong>username:</strong>
|
||||||
{{ currentUser.username}}
|
{{ currentUser.username}}
|
||||||
</p>
|
</p>
|
||||||
<p>
|
|
||||||
<strong>alarms</strong>
|
|
||||||
{{alarms}}
|
|
||||||
</p>
|
|
||||||
<table>
|
|
||||||
<tr>
|
|
||||||
<th>Produkt</th>
|
|
||||||
<th>Preis</th>
|
|
||||||
</tr>
|
|
||||||
<tr *ngFor="let alarm of alarms">
|
|
||||||
<td>
|
|
||||||
{{productsMap[alarm.product_id]?.name}}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
{{alarm.defined_price/100}}
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</table>
|
|
||||||
<p>
|
|
||||||
<strong><a routerLink="/">zurück</a></strong>
|
|
||||||
</p>
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<ng-template #loggedOut>
|
<ng-template #loggedOut>
|
||||||
|
|
|
@ -9,9 +9,7 @@ import {ApiService} from "../../services/api.service";
|
||||||
export class ProfileComponent implements OnInit {
|
export class ProfileComponent implements OnInit {
|
||||||
|
|
||||||
currentUser: any;
|
currentUser: any;
|
||||||
obj:any;
|
obj:any
|
||||||
alarms: any [];
|
|
||||||
productsMap: any = {};
|
|
||||||
|
|
||||||
constructor(private api: ApiService ) { }
|
constructor(private api: ApiService ) { }
|
||||||
|
|
||||||
|
@ -23,30 +21,5 @@ export class ProfileComponent implements OnInit {
|
||||||
console.log(this.currentUser);
|
console.log(this.currentUser);
|
||||||
},
|
},
|
||||||
);
|
);
|
||||||
|
|
||||||
this.getPriceAlarms();
|
|
||||||
}
|
|
||||||
|
|
||||||
getPriceAlarms(): void {
|
|
||||||
this.api.getPriceAlarms().subscribe(
|
|
||||||
alarms => {
|
|
||||||
this.alarms = alarms
|
|
||||||
this.getProductsByIds()
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
getProductsByIds(): void {
|
|
||||||
let productIds: number [] = [];
|
|
||||||
this.alarms.forEach(
|
|
||||||
alarm => {productIds.push(alarm.product_id)}
|
|
||||||
);
|
|
||||||
this.api.getProductsByIds(productIds).subscribe(
|
|
||||||
products => {
|
|
||||||
products.forEach(
|
|
||||||
product => {this.productsMap[product.product_id] = product}
|
|
||||||
)
|
|
||||||
}
|
|
||||||
)
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
<nav class="navbar navbar-expand-lg bg-secondary text-uppercase fixed-top" id="mainNav">
|
<nav class="navbar navbar-expand-lg bg-secondary text-uppercase fixed-top" id="mainNav">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<a class="navbar-brand" routerLink=""> Betterzon</a>
|
<a class="navbar-brand" routerLink=""> Betterzon</a>
|
||||||
<div class="form-inline my-2 my-lg-0">
|
<form class="form-inline my-2 my-lg-0">
|
||||||
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search" (keyup.enter)="getSearchedProducts()" [(ngModel)]="searchQuery">
|
<input class="form-control mr-sm-2" type="search" placeholder="Search" aria-label="Search">
|
||||||
</div>
|
</form>
|
||||||
<button class="navbar-toggler text-uppercase font-weight-bold bg-primary text-white rounded" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
|
<button class="navbar-toggler text-uppercase font-weight-bold bg-primary text-white rounded" type="button" data-bs-toggle="collapse" data-bs-target="#navbarResponsive" aria-controls="navbarResponsive" aria-expanded="false" aria-label="Toggle navigation">
|
||||||
Menu
|
Menu
|
||||||
<i class="fas fa-bars"></i>
|
<i class="fas fa-bars"></i>
|
||||||
|
@ -13,10 +13,9 @@
|
||||||
<li class="nav-item mx-0 mx-lg-1"><a class="nav-link py-3 px-0 px-lg-3 rounded" href="#top-gesuchte">Top-Gesuchte</a></li>
|
<li class="nav-item mx-0 mx-lg-1"><a class="nav-link py-3 px-0 px-lg-3 rounded" href="#top-gesuchte">Top-Gesuchte</a></li>
|
||||||
<li class="nav-item mx-0 mx-lg-1"><a class="nav-link py-3 px-0 px-lg-3 rounded" href="#about">über uns</a></li>
|
<li class="nav-item mx-0 mx-lg-1"><a class="nav-link py-3 px-0 px-lg-3 rounded" href="#about">über uns</a></li>
|
||||||
<li class="nav-item mx-0 mx-lg-1"><a class="nav-link py-3 px-0 px-lg-3 rounded" href="#unsere-kunden">Unsere Kunden</a></li>
|
<li class="nav-item mx-0 mx-lg-1"><a class="nav-link py-3 px-0 px-lg-3 rounded" href="#unsere-kunden">Unsere Kunden</a></li>
|
||||||
<li class="nav-item mx-0 mx-lg-1" *ngIf="!isLoggedIn"><a class="nav-link py-3 px-0 px-lg-3 rounded" routerLink="/signin">Anmelden</a></li>
|
<li class="nav-item mx-0 mx-lg-1"><a class="nav-link py-3 px-0 px-lg-3 rounded" routerLink="/signin">Anmelden</a></li>
|
||||||
<li class="nav-item mx-0 mx-lg-1" *ngIf="!isLoggedIn"><a class="nav-link py-3 px-0 px-lg-3 rounded" routerLink="/registration">Konto Erstellen</a></li>
|
<li class="nav-item mx-0 mx-lg-1"><a class="nav-link py-3 px-0 px-lg-3 rounded" routerLink="/registration">Konto Erstellen</a></li>
|
||||||
<li class="nav-item mx-0 mx-lg-1" *ngIf="isLoggedIn"><a class="nav-link py-3 px-0 px-lg-3 rounded" routerLink="" (click)="logout()">Log Out</a></li>
|
<li class="nav-item mx-0 mx-lg-1"><a class="nav-link py-3 px-0 px-lg-3 rounded" routerLink="/registration">Log Out</a></li>
|
||||||
<li class="nav-item mx-0 mx-lg-1" *ngIf="isLoggedIn"><a class="nav-link py-3 px-0 px-lg-3 rounded" routerLink="/profile">Profile</a></li>
|
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import {Component, Input, OnInit} from '@angular/core';
|
import { Component, OnInit } from '@angular/core';
|
||||||
import {ApiService} from "../../services/api.service";
|
import {ApiService} from "../../services/api.service";
|
||||||
import {Router} from "@angular/router";
|
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
@ -11,39 +10,13 @@ import {Router} from "@angular/router";
|
||||||
export class TopBarComponent implements OnInit {
|
export class TopBarComponent implements OnInit {
|
||||||
|
|
||||||
sidenav: any;
|
sidenav: any;
|
||||||
isLoggedIn: boolean;
|
|
||||||
searchQuery: string;
|
|
||||||
|
|
||||||
constructor(
|
constructor(
|
||||||
private api: ApiService,
|
private api: ApiService
|
||||||
private router: Router
|
) { }
|
||||||
) {
|
|
||||||
}
|
|
||||||
|
|
||||||
ngOnInit() {
|
ngOnInit() {
|
||||||
|
|
||||||
this.api.getUserInfo().subscribe(data => {
|
this.api.getUserInfo().subscribe(data=>{console.log(data)});
|
||||||
console.log(data)
|
|
||||||
});
|
|
||||||
|
|
||||||
if (this.api.getSessionInfoFromLocalStorage().session_id != "") {
|
|
||||||
this.isLoggedIn = true;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
logout(): void {
|
|
||||||
localStorage.setItem('session_id', '');
|
|
||||||
localStorage.setItem('session_key', '');
|
|
||||||
window.location.reload()
|
|
||||||
}
|
|
||||||
|
|
||||||
getSearchedProducts(): void {
|
|
||||||
console.log(this.searchQuery);
|
|
||||||
this.redirectTo('/search', {queryParams: {q: this.searchQuery}});
|
|
||||||
}
|
|
||||||
|
|
||||||
redirectTo(uri: string, queryParams: object): void {
|
|
||||||
this.router.navigateByUrl('/', {skipLocationChange: true}).then(() =>
|
|
||||||
this.router.navigate([uri], queryParams));
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
|
|
||||||
<div id="mainComponents">
|
<div id="mainComponents">
|
||||||
<app-product-list numberOfProducts="20" [showProductPicture]="true" searchQuery="{{searchTerm}}"
|
<app-product-list numberOfProducts="20" [showProductPicture]="true" searchQuery="{{searchTerm}}"
|
||||||
type="search"></app-product-list>
|
type="search"></app-product-list>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<app-bottom-bar></app-bottom-bar>
|
<app-footer></app-footer>
|
||||||
|
|
|
@ -1,3 +0,0 @@
|
||||||
|
|
||||||
<app-profile></app-profile>
|
|
||||||
|
|
|
@ -1,25 +0,0 @@
|
||||||
import { ComponentFixture, TestBed } from '@angular/core/testing';
|
|
||||||
|
|
||||||
import { ProfilePageComponent } from './profile-page.component';
|
|
||||||
|
|
||||||
describe('ProfilePageComponent', () => {
|
|
||||||
let component: ProfilePageComponent;
|
|
||||||
let fixture: ComponentFixture<ProfilePageComponent>;
|
|
||||||
|
|
||||||
beforeEach(async () => {
|
|
||||||
await TestBed.configureTestingModule({
|
|
||||||
declarations: [ ProfilePageComponent ]
|
|
||||||
})
|
|
||||||
.compileComponents();
|
|
||||||
});
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
fixture = TestBed.createComponent(ProfilePageComponent);
|
|
||||||
component = fixture.componentInstance;
|
|
||||||
fixture.detectChanges();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should create', () => {
|
|
||||||
expect(component).toBeTruthy();
|
|
||||||
});
|
|
||||||
});
|
|
|
@ -1,15 +0,0 @@
|
||||||
import { Component, OnInit } from '@angular/core';
|
|
||||||
|
|
||||||
@Component({
|
|
||||||
selector: 'app-profile-page',
|
|
||||||
templateUrl: './profile-page.component.html',
|
|
||||||
styleUrls: ['./profile-page.component.css']
|
|
||||||
})
|
|
||||||
export class ProfilePageComponent implements OnInit {
|
|
||||||
|
|
||||||
constructor() { }
|
|
||||||
|
|
||||||
ngOnInit(): void {
|
|
||||||
}
|
|
||||||
|
|
||||||
}
|
|
Loading…
Reference in New Issue
Block a user