From 6536389eb8b127952567dabdd0fabdbf70ae3500 Mon Sep 17 00:00:00 2001 From: Max Date: Thu, 17 Oct 2019 13:15:33 +0200 Subject: [PATCH] added user variables to AppComonent & login functionality --- src/app/app.component.html | 1 + src/app/app.component.sass | 7 +++++++ src/app/app.component.ts | 14 ++++++++++++++ .../app-scaffold/app-scaffold.component.html | 8 ++++---- .../app-scaffold/app-scaffold.component.ts | 4 +++- src/app/components/login/login.component.html | 1 - src/app/components/login/login.component.sass | 9 +-------- src/app/components/login/login.component.ts | 4 +++- .../register/register.component.html | 1 - .../register/register.component.sass | 6 ------ src/app/models/user.ts | 15 +++++++++++++++ src/app/services/login/login.service.ts | 19 +++++++++++++++---- 12 files changed, 63 insertions(+), 26 deletions(-) create mode 100644 src/app/models/user.ts diff --git a/src/app/app.component.html b/src/app/app.component.html index 90c6b64..4e1306a 100644 --- a/src/app/app.component.html +++ b/src/app/app.component.html @@ -1 +1,2 @@ + \ No newline at end of file diff --git a/src/app/app.component.sass b/src/app/app.component.sass index f00d56b..2a73a26 100644 --- a/src/app/app.component.sass +++ b/src/app/app.component.sass @@ -34,3 +34,10 @@ display: grid min-height: 100vh max-height: 100vh + +#headerbar + @include gridPosition(1, 1, 1, 4) + display: grid + grid-template: 100% /30% 10% 10% 10% 10% 10% 15% 5% + background-color: $cHeadPrimaryBackground + color: $cHeadFontColor diff --git a/src/app/app.component.ts b/src/app/app.component.ts index 73203c5..ec18c39 100644 --- a/src/app/app.component.ts +++ b/src/app/app.component.ts @@ -8,5 +8,19 @@ import { Component, OnInit } from '@angular/core'; export class AppComponent implements OnInit { constructor() { } + loggedIn : boolean = false; + userID : number; + username : string; + handle : string; + email : string; + points : number; + level : number; + + friendIDs : number[]; + groupIDs : number[]; + chatIDs : number[]; + + requestIDs : number[]; + ngOnInit() { } } diff --git a/src/app/components/app-scaffold/app-scaffold.component.html b/src/app/components/app-scaffold/app-scaffold.component.html index cfd5a41..ea1e121 100644 --- a/src/app/components/app-scaffold/app-scaffold.component.html +++ b/src/app/components/app-scaffold/app-scaffold.component.html @@ -1,10 +1,10 @@

Greenvironment

- - + + -