Refactoring

This commit is contained in:
2019-09-30 17:54:47 -04:00
parent 89df5efe5a
commit 5b64470d1f
35 changed files with 484 additions and 485 deletions

View File

@@ -7,18 +7,18 @@
}
#chart {
position: absolute;
top: 50px;
bottom: 0;
left: 0;
right: 0;
}
position: absolute;
top: 50px;
bottom: 0;
left: 0;
right: 0;
}
.chart-header {
background-color: rgb(250, 250, 250);
height: 50px;
background-color: rgb(250, 250, 250);
height: 50px;
}
.chart-button-spacer {
margin-right: 20px;
margin-right: 20px;
}

View File

@@ -3,23 +3,23 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { WeatherChartsComponent } from './weather-charts.component';
describe('WeatherChartsComponent', () => {
let component: WeatherChartsComponent;
let fixture: ComponentFixture<WeatherChartsComponent>;
let component: WeatherChartsComponent;
let fixture: ComponentFixture<WeatherChartsComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ WeatherChartsComponent ]
})
.compileComponents();
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WeatherChartsComponent]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(WeatherChartsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
beforeEach(() => {
fixture = TestBed.createComponent(WeatherChartsComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -2,7 +2,7 @@ import { Component, OnInit } from '@angular/core';
import { Chart } from 'angular-highcharts';
import { SeriesLineOptions } from 'highcharts';
import { HttpClient } from '@angular/common/http';
import { WeatherValue } from '../../../services/weather/weather-value';
import { WeatherValue } from '../../../models/weather/weather-value';
import { ActivatedRoute, ParamMap } from '@angular/router';
import * as moment from 'moment';

View File

@@ -1,9 +1,9 @@
.weather-current {
font-size: 14px;
font-size: 14px;
}
.weather-current-header {
font-weight: 500;
text-align: right;
padding-right: 10px;
font-weight: 500;
text-align: right;
padding-right: 10px;
}

View File

@@ -3,23 +3,23 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing';
import { WeatherCurrentComponent } from './weather-current.component';
describe('WeatherCurrentComponent', () => {
let component: WeatherCurrentComponent;
let fixture: ComponentFixture<WeatherCurrentComponent>;
let component: WeatherCurrentComponent;
let fixture: ComponentFixture<WeatherCurrentComponent>;
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [ WeatherCurrentComponent ]
})
.compileComponents();
}));
beforeEach(async(() => {
TestBed.configureTestingModule({
declarations: [WeatherCurrentComponent]
})
.compileComponents();
}));
beforeEach(() => {
fixture = TestBed.createComponent(WeatherCurrentComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
beforeEach(() => {
fixture = TestBed.createComponent(WeatherCurrentComponent);
component = fixture.componentInstance;
fixture.detectChanges();
});
it('should create', () => {
expect(component).toBeTruthy();
});
it('should create', () => {
expect(component).toBeTruthy();
});
});

View File

@@ -1,5 +1,5 @@
import { Component, OnInit } from '@angular/core';
import { WeatherReading } from '../../../services/weather/weather-reading';
import { WeatherReading } from '../../../models/weather/weather-reading';
import { WeatherService } from '../../../services/weather/weather.service';
@Component({