Adding models and components

This commit is contained in:
2022-09-02 14:39:24 +02:00
parent 8e3322a9f8
commit 18a02f0940
42 changed files with 492 additions and 566 deletions
@@ -0,0 +1,4 @@
<app-header></app-header>
<div id="gamenight">
<p>gamenight works!</p>
</div>
@@ -0,0 +1,5 @@
@import '../../../styles';
#gamenight {
padding-top: $header_height;
}
@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { GamenightComponent } from './gamenight.component';
describe('GamenightComponent', () => {
let component: GamenightComponent;
let fixture: ComponentFixture<GamenightComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ GamenightComponent ]
})
.compileComponents();
fixture = TestBed.createComponent(GamenightComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
@@ -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 {
}
}
+4
View File
@@ -0,0 +1,4 @@
<app-header></app-header>
<div id="home">
<p>home works!</p>
</div>
+5
View File
@@ -0,0 +1,5 @@
@import '../../../styles';
#home {
padding-top: $header_height;
}
+23
View File
@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { HomeComponent } from './home.component';
describe('HomeComponent', () => {
let component: HomeComponent;
let fixture: ComponentFixture<HomeComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ HomeComponent ]
})
.compileComponents();
fixture = TestBed.createComponent(HomeComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
+21
View File
@@ -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);
})
}
}
+4
View File
@@ -0,0 +1,4 @@
<app-header></app-header>
<div id="stats">
<p>stats works!</p>
</div>
+5
View File
@@ -0,0 +1,5 @@
@import '../../../styles';
#stats {
padding-top: $header_height;
}
@@ -0,0 +1,23 @@
import { ComponentFixture, TestBed } from '@angular/core/testing';
import { StatsComponent } from './stats.component';
describe('StatsComponent', () => {
let component: StatsComponent;
let fixture: ComponentFixture<StatsComponent>;
beforeEach(async () => {
await TestBed.configureTestingModule({
declarations: [ StatsComponent ]
})
.compileComponents();
fixture = TestBed.createComponent(StatsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});
+15
View File
@@ -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 {
}
}