diff --git a/.editorconfig b/.editorconfig
index 59d9a3a..3d9a482 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -3,8 +3,8 @@ root = true
[*]
charset = utf-8
-indent_style = space
-indent_size = 2
+indent_style = tab
+indent_size = 4
insert_final_newline = true
trim_trailing_whitespace = true
diff --git a/angular.json b/angular.json
index f27eafb..0ad9488 100644
--- a/angular.json
+++ b/angular.json
@@ -103,5 +103,8 @@
}
}
}
+ },
+ "cli": {
+ "analytics": false
}
}
diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts
index 0297262..7bc7e30 100644
--- a/src/app/app-routing.module.ts
+++ b/src/app/app-routing.module.ts
@@ -1,10 +1,18 @@
-import { NgModule } from '@angular/core';
-import { RouterModule, Routes } from '@angular/router';
+import {NgModule} from '@angular/core';
+import {RouterModule, Routes} from '@angular/router';
+import { GamenightComponent } from './pages/gamenight/gamenight.component';
+import {HomeComponent} from './pages/home/home.component';
+import { StatsComponent } from './pages/stats/stats.component';
-const routes: Routes = [];
+const routes: Routes = [
+ {path: '', component: HomeComponent, pathMatch: 'full'},
+ {path: 'gamenight', component: GamenightComponent},
+ {path: 'stats', component: StatsComponent}
+];
@NgModule({
- imports: [RouterModule.forRoot(routes)],
- exports: [RouterModule]
+ imports: [RouterModule.forRoot(routes)],
+ exports: [RouterModule]
})
-export class AppRoutingModule { }
+export class AppRoutingModule {
+}
diff --git a/src/app/app.component.html b/src/app/app.component.html
index 2a0fbf1..0680b43 100644
--- a/src/app/app.component.html
+++ b/src/app/app.component.html
@@ -1,484 +1 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
{{ title }} app is running!
-
-
-
-
-
-
-
Resources
-
Here are some links to help you get started:
-
-
-
-
-
Next Steps
-
What do you want to do next with your app?
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
ng generate component xyz
-
ng add @angular/material
-
ng add @angular/pwa
-
ng add _____
-
ng test
-
ng build
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/src/app/app.component.spec.ts b/src/app/app.component.spec.ts
index e668afe..3acaa67 100644
--- a/src/app/app.component.spec.ts
+++ b/src/app/app.component.spec.ts
@@ -1,35 +1,35 @@
-import { TestBed } from '@angular/core/testing';
-import { RouterTestingModule } from '@angular/router/testing';
-import { AppComponent } from './app.component';
+import {TestBed} from '@angular/core/testing';
+import {RouterTestingModule} from '@angular/router/testing';
+import {AppComponent} from './app.component';
describe('AppComponent', () => {
- beforeEach(async () => {
- await TestBed.configureTestingModule({
- imports: [
- RouterTestingModule
- ],
- declarations: [
- AppComponent
- ],
- }).compileComponents();
- });
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ imports: [
+ RouterTestingModule
+ ],
+ declarations: [
+ AppComponent
+ ]
+ }).compileComponents();
+ });
- it('should create the app', () => {
- const fixture = TestBed.createComponent(AppComponent);
- const app = fixture.componentInstance;
- expect(app).toBeTruthy();
- });
+ it('should create the app', () => {
+ const fixture = TestBed.createComponent(AppComponent);
+ const app = fixture.componentInstance;
+ expect(app).toBeTruthy();
+ });
- it(`should have as title 'Doppelkopf-Stats-Frontend'`, () => {
- const fixture = TestBed.createComponent(AppComponent);
- const app = fixture.componentInstance;
- expect(app.title).toEqual('Doppelkopf-Stats-Frontend');
- });
+ it(`should have as title 'Doppelkopf-Stats-Frontend'`, () => {
+ const fixture = TestBed.createComponent(AppComponent);
+ const app = fixture.componentInstance;
+ expect(app.title).toEqual('Doppelkopf-Stats-Frontend');
+ });
- it('should render title', () => {
- const fixture = TestBed.createComponent(AppComponent);
- fixture.detectChanges();
- const compiled = fixture.nativeElement as HTMLElement;
- expect(compiled.querySelector('.content span')?.textContent).toContain('Doppelkopf-Stats-Frontend app is running!');
- });
+ it('should render title', () => {
+ const fixture = TestBed.createComponent(AppComponent);
+ fixture.detectChanges();
+ const compiled = fixture.nativeElement as HTMLElement;
+ expect(compiled.querySelector('.content span')?.textContent).toContain('Doppelkopf-Stats-Frontend app is running!');
+ });
});
diff --git a/src/app/app.component.ts b/src/app/app.component.ts
index 3a13187..69bc0dc 100644
--- a/src/app/app.component.ts
+++ b/src/app/app.component.ts
@@ -1,10 +1,17 @@
-import { Component } from '@angular/core';
+import {Component, OnDestroy, OnInit} from '@angular/core';
+import {Player} from './models/player';
@Component({
- selector: 'app-root',
- templateUrl: './app.component.html',
- styleUrls: ['./app.component.scss']
+ selector: 'app-root',
+ templateUrl: './app.component.html',
+ styleUrls: ['./app.component.scss']
})
export class AppComponent {
- title = 'Doppelkopf-Stats-Frontend';
+ title = 'Doppelkopf-Stats';
+
+ user?: Player;
+
+ ngOnInit() {
+ // Load player data
+ }
}
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index b1c6c96..f8fc711 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -1,18 +1,29 @@
-import { NgModule } from '@angular/core';
-import { BrowserModule } from '@angular/platform-browser';
+import {NgModule} from '@angular/core';
+import {BrowserModule} from '@angular/platform-browser';
-import { AppRoutingModule } from './app-routing.module';
-import { AppComponent } from './app.component';
+import {AppRoutingModule} from './app-routing.module';
+import {AppComponent} from './app.component';
+import { HomeComponent } from './pages/home/home.component';
+import { StatsComponent } from './pages/stats/stats.component';
+import { GamenightComponent } from './pages/gamenight/gamenight.component';
+import { HeaderComponent } from './components/header/header.component';
+import { ProfileComponent } from './components/profile/profile.component';
@NgModule({
- declarations: [
- AppComponent
- ],
- imports: [
- BrowserModule,
- AppRoutingModule
- ],
- providers: [],
- bootstrap: [AppComponent]
+ declarations: [
+ AppComponent,
+ HomeComponent,
+ StatsComponent,
+ GamenightComponent,
+ HeaderComponent,
+ ProfileComponent
+ ],
+ imports: [
+ BrowserModule,
+ AppRoutingModule
+ ],
+ providers: [],
+ bootstrap: [AppComponent]
})
-export class AppModule { }
+export class AppModule {
+}
diff --git a/src/app/components/header/header.component.html b/src/app/components/header/header.component.html
new file mode 100644
index 0000000..e3c6481
--- /dev/null
+++ b/src/app/components/header/header.component.html
@@ -0,0 +1,8 @@
+
diff --git a/src/app/components/header/header.component.scss b/src/app/components/header/header.component.scss
new file mode 100644
index 0000000..1b36afa
--- /dev/null
+++ b/src/app/components/header/header.component.scss
@@ -0,0 +1,36 @@
+@import '../../../styles';
+
+#header {
+ width: 100%;
+ height: $header_height;
+ background-color: $accent;
+ position: fixed;
+ left: 0;
+ top: 0;
+ margin-bottom: 10em;
+ color: black;
+}
+
+#header-title {
+ position: fixed;
+ top: 0;
+ left: 1em;
+ font-weight: bold;
+}
+
+#user-info {
+ position: fixed;
+ top: 0;
+ right: 1em;
+ display: flex;
+}
+
+#user-info img {
+ height: 2em;
+ margin: auto;
+ padding-left: 1em;
+}
+
+#user-info img:hover {
+ cursor: pointer;
+}
diff --git a/src/app/components/header/header.component.spec.ts b/src/app/components/header/header.component.spec.ts
new file mode 100644
index 0000000..1fd30b4
--- /dev/null
+++ b/src/app/components/header/header.component.spec.ts
@@ -0,0 +1,23 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { HeaderComponent } from './header.component';
+
+describe('HeaderComponent', () => {
+ let component: HeaderComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ declarations: [ HeaderComponent ]
+ })
+ .compileComponents();
+
+ fixture = TestBed.createComponent(HeaderComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/components/header/header.component.ts b/src/app/components/header/header.component.ts
new file mode 100644
index 0000000..9354a2a
--- /dev/null
+++ b/src/app/components/header/header.component.ts
@@ -0,0 +1,23 @@
+import {Component, OnInit} from '@angular/core';
+
+@Component({
+ selector: 'app-header',
+ templateUrl: './header.component.html',
+ styleUrls: ['./header.component.scss']
+})
+export class HeaderComponent implements OnInit {
+
+ showProfilePopover: boolean = false;
+
+ constructor() {
+ }
+
+ ngOnInit(): void {
+ }
+
+ openProfile(): void {
+ console.log('Called');
+ this.showProfilePopover = !this.showProfilePopover;
+ }
+
+}
diff --git a/src/app/components/profile/profile.component.html b/src/app/components/profile/profile.component.html
new file mode 100644
index 0000000..4b701ec
--- /dev/null
+++ b/src/app/components/profile/profile.component.html
@@ -0,0 +1,3 @@
+
diff --git a/src/app/components/profile/profile.component.scss b/src/app/components/profile/profile.component.scss
new file mode 100644
index 0000000..fe14b44
--- /dev/null
+++ b/src/app/components/profile/profile.component.scss
@@ -0,0 +1,13 @@
+@import '../../../styles';
+
+#profile-popover {
+ z-index: 1;
+ position: fixed;
+ right: 1em;
+ top: $header_height + 1em;
+ color: $text;
+ background-color: $secondary;
+ width: 15em;
+ height: 20em;
+ border-radius: 1em;
+}
diff --git a/src/app/components/profile/profile.component.spec.ts b/src/app/components/profile/profile.component.spec.ts
new file mode 100644
index 0000000..246039d
--- /dev/null
+++ b/src/app/components/profile/profile.component.spec.ts
@@ -0,0 +1,23 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { ProfileComponent } from './profile.component';
+
+describe('ProfileComponent', () => {
+ let component: ProfileComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ declarations: [ ProfileComponent ]
+ })
+ .compileComponents();
+
+ fixture = TestBed.createComponent(ProfileComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/components/profile/profile.component.ts b/src/app/components/profile/profile.component.ts
new file mode 100644
index 0000000..29ea4ff
--- /dev/null
+++ b/src/app/components/profile/profile.component.ts
@@ -0,0 +1,15 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+ selector: 'app-profile',
+ templateUrl: './profile.component.html',
+ styleUrls: ['./profile.component.scss']
+})
+export class ProfileComponent implements OnInit {
+
+ constructor() { }
+
+ ngOnInit(): void {
+ }
+
+}
diff --git a/src/app/models/enums/announcement.ts b/src/app/models/enums/announcement.ts
new file mode 100644
index 0000000..0ee3fe8
--- /dev/null
+++ b/src/app/models/enums/announcement.ts
@@ -0,0 +1,7 @@
+export enum Announcement {
+ RE = 0,
+ KONTRA = 1,
+ NO_NINETY = 2,
+ NO_SIXTY = 3,
+ NO_THIRTY = 4
+}
diff --git a/src/app/models/enums/solo.ts b/src/app/models/enums/solo.ts
new file mode 100644
index 0000000..41ef399
--- /dev/null
+++ b/src/app/models/enums/solo.ts
@@ -0,0 +1,9 @@
+export enum Solo {
+ QUEENS = 0,
+ JACKS = 1,
+ COLOR_CHECKS = 2,
+ COLOR_HEART = 3,
+ COLOR_SPADES = 4,
+ COLOR_CROSS = 5,
+ FLESHLESS = 6
+}
diff --git a/src/app/models/enums/team.ts b/src/app/models/enums/team.ts
new file mode 100644
index 0000000..3604fb2
--- /dev/null
+++ b/src/app/models/enums/team.ts
@@ -0,0 +1,4 @@
+export enum Team {
+ RE = 0,
+ KONTRA = 1
+}
diff --git a/src/app/models/game.ts b/src/app/models/game.ts
new file mode 100644
index 0000000..9c43760
--- /dev/null
+++ b/src/app/models/game.ts
@@ -0,0 +1,11 @@
+import {Player} from './player';
+import {Announcement} from './enums/announcement';
+import { Solo } from './enums/solo';
+
+export interface Game {
+ gameId: number;
+ players: Player[];
+ foxesCaught: number;
+ announcements: Announcement[];
+ solo?: Solo;
+}
diff --git a/src/app/models/player.ts b/src/app/models/player.ts
new file mode 100644
index 0000000..e2ab9aa
--- /dev/null
+++ b/src/app/models/player.ts
@@ -0,0 +1,12 @@
+import {Team} from './enums/team';
+
+export interface Player {
+ firebonkId: number;
+ uuid: string;
+ firstName: string;
+ finalCardScore: number;
+ gamePoints: number;
+ hadMarriage: boolean;
+ hadTrumpHandoff: boolean;
+ team: Team;
+}
diff --git a/src/app/models/user.ts b/src/app/models/user.ts
new file mode 100644
index 0000000..7ae8e1c
--- /dev/null
+++ b/src/app/models/user.ts
@@ -0,0 +1,7 @@
+export interface User {
+ firebonkId: number;
+ uuid: string;
+ firstName: string;
+ token: string;
+ sessionKey: string;
+}
diff --git a/src/app/pages/gamenight/gamenight.component.html b/src/app/pages/gamenight/gamenight.component.html
new file mode 100644
index 0000000..4d4aacf
--- /dev/null
+++ b/src/app/pages/gamenight/gamenight.component.html
@@ -0,0 +1,4 @@
+
+
diff --git a/src/app/pages/gamenight/gamenight.component.scss b/src/app/pages/gamenight/gamenight.component.scss
new file mode 100644
index 0000000..e16cc81
--- /dev/null
+++ b/src/app/pages/gamenight/gamenight.component.scss
@@ -0,0 +1,5 @@
+@import '../../../styles';
+
+#gamenight {
+ padding-top: $header_height;
+}
diff --git a/src/app/pages/gamenight/gamenight.component.spec.ts b/src/app/pages/gamenight/gamenight.component.spec.ts
new file mode 100644
index 0000000..6e89a44
--- /dev/null
+++ b/src/app/pages/gamenight/gamenight.component.spec.ts
@@ -0,0 +1,23 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { GamenightComponent } from './gamenight.component';
+
+describe('GamenightComponent', () => {
+ let component: GamenightComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ declarations: [ GamenightComponent ]
+ })
+ .compileComponents();
+
+ fixture = TestBed.createComponent(GamenightComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/pages/gamenight/gamenight.component.ts b/src/app/pages/gamenight/gamenight.component.ts
new file mode 100644
index 0000000..59d0c53
--- /dev/null
+++ b/src/app/pages/gamenight/gamenight.component.ts
@@ -0,0 +1,15 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+ selector: 'app-gamenight',
+ templateUrl: './gamenight.component.html',
+ styleUrls: ['./gamenight.component.scss']
+})
+export class GamenightComponent implements OnInit {
+
+ constructor() { }
+
+ ngOnInit(): void {
+ }
+
+}
diff --git a/src/app/pages/home/home.component.html b/src/app/pages/home/home.component.html
new file mode 100644
index 0000000..a4c5bc0
--- /dev/null
+++ b/src/app/pages/home/home.component.html
@@ -0,0 +1,4 @@
+
+
diff --git a/src/app/pages/home/home.component.scss b/src/app/pages/home/home.component.scss
new file mode 100644
index 0000000..5dee0c7
--- /dev/null
+++ b/src/app/pages/home/home.component.scss
@@ -0,0 +1,5 @@
+@import '../../../styles';
+
+#home {
+ padding-top: $header_height;
+}
diff --git a/src/app/pages/home/home.component.spec.ts b/src/app/pages/home/home.component.spec.ts
new file mode 100644
index 0000000..5075be7
--- /dev/null
+++ b/src/app/pages/home/home.component.spec.ts
@@ -0,0 +1,23 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { HomeComponent } from './home.component';
+
+describe('HomeComponent', () => {
+ let component: HomeComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ declarations: [ HomeComponent ]
+ })
+ .compileComponents();
+
+ fixture = TestBed.createComponent(HomeComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/pages/home/home.component.ts b/src/app/pages/home/home.component.ts
new file mode 100644
index 0000000..9738303
--- /dev/null
+++ b/src/app/pages/home/home.component.ts
@@ -0,0 +1,21 @@
+import { Component, OnInit } from '@angular/core';
+import {ActivatedRoute} from '@angular/router';
+
+@Component({
+ selector: 'app-home',
+ templateUrl: './home.component.html',
+ styleUrls: ['./home.component.scss']
+})
+export class HomeComponent implements OnInit {
+
+ constructor(
+ private route: ActivatedRoute
+ ) { }
+
+ ngOnInit(): void {
+ this.route.queryParams.subscribe(params => {
+ console.table(params);
+ })
+ }
+
+}
diff --git a/src/app/pages/stats/stats.component.html b/src/app/pages/stats/stats.component.html
new file mode 100644
index 0000000..655f7f1
--- /dev/null
+++ b/src/app/pages/stats/stats.component.html
@@ -0,0 +1,4 @@
+
+
diff --git a/src/app/pages/stats/stats.component.scss b/src/app/pages/stats/stats.component.scss
new file mode 100644
index 0000000..dc9ef53
--- /dev/null
+++ b/src/app/pages/stats/stats.component.scss
@@ -0,0 +1,5 @@
+@import '../../../styles';
+
+#stats {
+ padding-top: $header_height;
+}
diff --git a/src/app/pages/stats/stats.component.spec.ts b/src/app/pages/stats/stats.component.spec.ts
new file mode 100644
index 0000000..7098127
--- /dev/null
+++ b/src/app/pages/stats/stats.component.spec.ts
@@ -0,0 +1,23 @@
+import { ComponentFixture, TestBed } from '@angular/core/testing';
+
+import { StatsComponent } from './stats.component';
+
+describe('StatsComponent', () => {
+ let component: StatsComponent;
+ let fixture: ComponentFixture;
+
+ beforeEach(async () => {
+ await TestBed.configureTestingModule({
+ declarations: [ StatsComponent ]
+ })
+ .compileComponents();
+
+ fixture = TestBed.createComponent(StatsComponent);
+ component = fixture.componentInstance;
+ fixture.detectChanges();
+ });
+
+ it('should create', () => {
+ expect(component).toBeTruthy();
+ });
+});
diff --git a/src/app/pages/stats/stats.component.ts b/src/app/pages/stats/stats.component.ts
new file mode 100644
index 0000000..7df50bc
--- /dev/null
+++ b/src/app/pages/stats/stats.component.ts
@@ -0,0 +1,15 @@
+import { Component, OnInit } from '@angular/core';
+
+@Component({
+ selector: 'app-stats',
+ templateUrl: './stats.component.html',
+ styleUrls: ['./stats.component.scss']
+})
+export class StatsComponent implements OnInit {
+
+ constructor() { }
+
+ ngOnInit(): void {
+ }
+
+}
diff --git a/src/app/services/storage.service.ts b/src/app/services/storage.service.ts
new file mode 100644
index 0000000..a9970a2
--- /dev/null
+++ b/src/app/services/storage.service.ts
@@ -0,0 +1,27 @@
+import {User} from '../models/user';
+
+export class StorageService {
+ getUserInfo(): User {
+ const firebonkId = parseInt((localStorage.getItem('user_firebonkId') ?? '-1'), 10);
+ const uuid = localStorage.getItem('user_uuid') ?? '';
+ const firstName = localStorage.getItem('user_firstName') ?? '';
+ const token = localStorage.getItem('user_token') ?? '';
+ const sessionKey = localStorage.getItem('user_sessionKey') ?? '';
+
+ return {
+ firebonkId: firebonkId,
+ uuid: uuid,
+ firstName: firstName,
+ token: token,
+ sessionKey: sessionKey
+ }
+ }
+
+ setUserInfo(user: User): void {
+ localStorage.setItem('user_firebonkId', String(user.firebonkId));
+ localStorage.setItem('user_uuid', String(user.uuid));
+ localStorage.setItem('user_firstName', String(user.firstName));
+ localStorage.setItem('user_token', String(user.token));
+ localStorage.setItem('user_sessionKey', String(user.sessionKey));
+ }
+}
diff --git a/src/assets/images/user.png b/src/assets/images/user.png
new file mode 100644
index 0000000..d5db2f5
Binary files /dev/null and b/src/assets/images/user.png differ
diff --git a/src/environments/environment.prod.ts b/src/environments/environment.prod.ts
index 3612073..8b7239d 100644
--- a/src/environments/environment.prod.ts
+++ b/src/environments/environment.prod.ts
@@ -1,3 +1,3 @@
export const environment = {
- production: true
+ production: true
};
diff --git a/src/environments/environment.ts b/src/environments/environment.ts
index f56ff47..afdc1d5 100644
--- a/src/environments/environment.ts
+++ b/src/environments/environment.ts
@@ -3,7 +3,7 @@
// The list of file replacements can be found in `angular.json`.
export const environment = {
- production: false
+ production: false
};
/*
diff --git a/src/index.html b/src/index.html
index a34ad6b..027b98f 100644
--- a/src/index.html
+++ b/src/index.html
@@ -1,13 +1,13 @@
-
- DoppelkopfStatsFrontend
-
-
-
+
+ DoppelkopfStatsFrontend
+
+
+
-
+
diff --git a/src/main.ts b/src/main.ts
index c7b673c..24e02dc 100644
--- a/src/main.ts
+++ b/src/main.ts
@@ -1,12 +1,12 @@
-import { enableProdMode } from '@angular/core';
-import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
+import {enableProdMode} from '@angular/core';
+import {platformBrowserDynamic} from '@angular/platform-browser-dynamic';
-import { AppModule } from './app/app.module';
-import { environment } from './environments/environment';
+import {AppModule} from './app/app.module';
+import {environment} from './environments/environment';
if (environment.production) {
- enableProdMode();
+ enableProdMode();
}
platformBrowserDynamic().bootstrapModule(AppModule)
- .catch(err => console.error(err));
+ .catch(err => console.error(err));
diff --git a/src/polyfills.ts b/src/polyfills.ts
index 429bb9e..f85b963 100644
--- a/src/polyfills.ts
+++ b/src/polyfills.ts
@@ -45,7 +45,7 @@
/***************************************************************************************************
* Zone JS is required by default for Angular itself.
*/
-import 'zone.js'; // Included with Angular CLI.
+import 'zone.js'; // Included with Angular CLI.
/***************************************************************************************************
diff --git a/src/styles.scss b/src/styles.scss
index 90d4ee0..3973b7e 100644
--- a/src/styles.scss
+++ b/src/styles.scss
@@ -1 +1,16 @@
-/* You can add global styles to this file, and also import other style files */
+/* Global colors */
+$primary: #050533;
+$secondary: #0D698B;
+$text: #F2F1E8;
+$accent: #E34234;
+
+/* Global vars */
+$header_height: 3em;
+
+/* Global defaults */
+html, body {
+ height: 100%;
+ background-color: $primary;
+ color: $text;
+ font-family: sans-serif;
+}
diff --git a/src/test.ts b/src/test.ts
index c04c876..d30cc61 100644
--- a/src/test.ts
+++ b/src/test.ts
@@ -1,23 +1,20 @@
// This file is required by karma.conf.js and loads recursively all the .spec and framework files
import 'zone.js/testing';
-import { getTestBed } from '@angular/core/testing';
-import {
- BrowserDynamicTestingModule,
- platformBrowserDynamicTesting
-} from '@angular/platform-browser-dynamic/testing';
+import {getTestBed} from '@angular/core/testing';
+import {BrowserDynamicTestingModule, platformBrowserDynamicTesting} from '@angular/platform-browser-dynamic/testing';
declare const require: {
- context(path: string, deep?: boolean, filter?: RegExp): {
- (id: string): T;
- keys(): string[];
- };
+ context(path: string, deep?: boolean, filter?: RegExp): {
+ (id: string): T;
+ keys(): string[];
+ };
};
// First, initialize the Angular testing environment.
getTestBed().initTestEnvironment(
- BrowserDynamicTestingModule,
- platformBrowserDynamicTesting(),
+ BrowserDynamicTestingModule,
+ platformBrowserDynamicTesting()
);
// Then we find all the tests.