Skip to content

Commit

Permalink
Added history, statistics, and warnings component
Browse files Browse the repository at this point in the history
  • Loading branch information
ema14006 committed Feb 1, 2019
1 parent 43e1920 commit 5054c63
Show file tree
Hide file tree
Showing 13 changed files with 137 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/app/app.module.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,21 @@
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { RouterModule, Routes } from '@angular/router';

import { AppComponent } from './app.component';
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
import { HeaderComponent } from './header/header.component';
import { StatisticsComponent } from './statistics/statistics.component';
import { HistoryComponent } from './history/history.component';
import { WarningsComponent } from './warnings/warnings.component';

@NgModule({
declarations: [
AppComponent,
HeaderComponent
HeaderComponent,
StatisticsComponent,
HistoryComponent,
WarningsComponent
],
imports: [
BrowserModule,
Expand Down
Empty file.
3 changes: 3 additions & 0 deletions src/app/history/history.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>
history works!
</p>
25 changes: 25 additions & 0 deletions src/app/history/history.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { HistoryComponent } from './history.component';

describe('HistoryComponent', () => {
let component: HistoryComponent;
let fixture: ComponentFixture<HistoryComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ HistoryComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(HistoryComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
15 changes: 15 additions & 0 deletions src/app/history/history.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-history',
templateUrl: './history.component.html',
styleUrls: ['./history.component.css']
})
export class HistoryComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}
Empty file.
3 changes: 3 additions & 0 deletions src/app/statistics/statistics.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>
statistics works!
</p>
25 changes: 25 additions & 0 deletions src/app/statistics/statistics.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { StatisticsComponent } from './statistics.component';

describe('StatisticsComponent', () => {
let component: StatisticsComponent;
let fixture: ComponentFixture<StatisticsComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ StatisticsComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(StatisticsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
15 changes: 15 additions & 0 deletions src/app/statistics/statistics.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-statistics',
templateUrl: './statistics.component.html',
styleUrls: ['./statistics.component.css']
})
export class StatisticsComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}
Empty file.
3 changes: 3 additions & 0 deletions src/app/warnings/warnings.component.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<p>
warnings works!
</p>
25 changes: 25 additions & 0 deletions src/app/warnings/warnings.component.spec.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
import { async, ComponentFixture, TestBed } from '@angular/core/testing';

import { WarningsComponent } from './warnings.component';

describe('WarningsComponent', () => {
let component: WarningsComponent;
let fixture: ComponentFixture<WarningsComponent>;

beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ WarningsComponent ]
})
.compileComponents();
}));

beforeEach(() => {
fixture = TestBed.createComponent(WarningsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});

it('should create', () => {
expect(component).toBeTruthy();
});
});
15 changes: 15 additions & 0 deletions src/app/warnings/warnings.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
import { Component, OnInit } from '@angular/core';

@Component({
selector: 'app-warnings',
templateUrl: './warnings.component.html',
styleUrls: ['./warnings.component.css']
})
export class WarningsComponent implements OnInit {

constructor() { }

ngOnInit() {
}

}

0 comments on commit 5054c63

Please sign in to comment.