From cbc49f1037b51b500ae14fe72c862690dae86694 Mon Sep 17 00:00:00 2001 From: Job Vonk Date: Mon, 4 Nov 2019 08:48:47 +0100 Subject: [PATCH] Added fontawesome npm package for more consistency. --- package-lock.json | 29 +++++++++++++++++++++ package.json | 3 +++ src/app/app.module.ts | 4 ++- src/app/components/home/home.component.html | 4 +-- src/app/components/home/home.component.ts | 4 ++- 5 files changed, 40 insertions(+), 4 deletions(-) diff --git a/package-lock.json b/package-lock.json index 4399102..900c196 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1835,6 +1835,35 @@ "to-fast-properties": "^2.0.0" } }, + "@fortawesome/angular-fontawesome": { + "version": "0.5.0", + "resolved": "https://registry.npmjs.org/@fortawesome/angular-fontawesome/-/angular-fontawesome-0.5.0.tgz", + "integrity": "sha512-5IR/jNMddiEpgApcqSMfp7l5kZqOtxQYzkSLW6iZ4MZHbQQ+Kc9tu9qi2hro6VFSk/sPxeYEzkzGZUNrMYiwOg==", + "requires": { + "tslib": "^1.9.0" + } + }, + "@fortawesome/fontawesome-common-types": { + "version": "0.2.25", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-common-types/-/fontawesome-common-types-0.2.25.tgz", + "integrity": "sha512-3RuZPDuuPELd7RXtUqTCfed14fcny9UiPOkdr2i+cYxBoTOfQgxcDoq77fHiiHcgWuo1LoBUpvGxFF1H/y7s3Q==" + }, + "@fortawesome/fontawesome-svg-core": { + "version": "1.2.25", + "resolved": "https://registry.npmjs.org/@fortawesome/fontawesome-svg-core/-/fontawesome-svg-core-1.2.25.tgz", + "integrity": "sha512-MotKnn53JKqbkLQiwcZSBJVYtTgIKFbh7B8+kd05TSnfKYPFmjKKI59o2fpz5t0Hzl35vVGU6+N4twoOpZUrqA==", + "requires": { + "@fortawesome/fontawesome-common-types": "^0.2.25" + } + }, + "@fortawesome/free-solid-svg-icons": { + "version": "5.11.2", + "resolved": "https://registry.npmjs.org/@fortawesome/free-solid-svg-icons/-/free-solid-svg-icons-5.11.2.tgz", + "integrity": "sha512-zBue4i0PAZJUXOmLBBvM7L0O7wmsDC8dFv9IhpW5QL4kT9xhhVUsYg/LX1+5KaukWq4/cbDcKT+RT1aRe543sg==", + "requires": { + "@fortawesome/fontawesome-common-types": "^0.2.25" + } + }, "@ngtools/webpack": { "version": "8.3.15", "resolved": "https://registry.npmjs.org/@ngtools/webpack/-/webpack-8.3.15.tgz", diff --git a/package.json b/package.json index ecd4aa0..49328f4 100644 --- a/package.json +++ b/package.json @@ -19,6 +19,9 @@ "@angular/platform-browser": "~8.2.11", "@angular/platform-browser-dynamic": "~8.2.11", "@angular/router": "~8.2.11", + "@fortawesome/angular-fontawesome": "^0.5.0", + "@fortawesome/fontawesome-svg-core": "^1.2.25", + "@fortawesome/free-solid-svg-icons": "^5.11.2", "rxjs": "~6.4.0", "tslib": "^1.10.0", "zone.js": "~0.9.1" diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 22065e7..6b4b4bc 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -2,6 +2,7 @@ import { BrowserModule } from '@angular/platform-browser'; import { NgModule } from '@angular/core'; import { HttpClientModule } from '@angular/common/http'; import { ReactiveFormsModule } from '@angular/forms'; +import { FontAwesomeModule } from '@fortawesome/angular-fontawesome'; import { AppRoutingModule } from './app-routing.module'; import { AppComponent } from './app.component'; @@ -18,7 +19,8 @@ import { LoginComponent } from './components/login/login.component'; BrowserModule, AppRoutingModule, HttpClientModule, - ReactiveFormsModule + ReactiveFormsModule, + FontAwesomeModule ], providers: [], bootstrap: [AppComponent] diff --git a/src/app/components/home/home.component.html b/src/app/components/home/home.component.html index efbe8d7..88fae81 100644 --- a/src/app/components/home/home.component.html +++ b/src/app/components/home/home.component.html @@ -16,12 +16,12 @@ {{ i + 1 }}
{{ item ? 'Gereserveerd' : 'Klik om te reserveren' }}
- +
- +
diff --git a/src/app/components/home/home.component.ts b/src/app/components/home/home.component.ts index 2298a11..25f8323 100644 --- a/src/app/components/home/home.component.ts +++ b/src/app/components/home/home.component.ts @@ -2,7 +2,7 @@ import { Component, OnInit } from '@angular/core'; import { Observable } from 'rxjs'; import { ApiData, DataService } from 'src/app/services/data.service'; import { Router } from '@angular/router'; -import { $ } from 'protractor'; +import { faGift } from '@fortawesome/free-solid-svg-icons'; @Component({ selector: 'app-home', @@ -11,6 +11,8 @@ import { $ } from 'protractor'; }) export class HomeComponent implements OnInit { + faGift = faGift; + data: Observable; loggedIn: boolean;