Reorganization

This commit is contained in:
2019-09-10 21:19:20 -04:00
parent b69f4c70f1
commit 0e21452d2b
20 changed files with 9 additions and 17 deletions

View File

@@ -3,18 +3,14 @@ import { Routes, RouterModule } from '@angular/router';
import { WeatherComponent } from './weather/weather.component'; import { WeatherComponent } from './weather/weather.component';
import { DashboardComponent } from './dashboard/dashboard.component'; import { DashboardComponent } from './dashboard/dashboard.component';
import { LaundryComponent } from './laundry/laundry.component'; import { LaundryComponent } from './laundry/laundry.component';
import { WeatherChartsComponent } from './weather-charts/weather-charts.component'; import { WeatherChartsComponent } from './weather/charts/weather-charts.component';
import { WeatherCurrentComponent } from './Weather/weather-current/weather-current.component'; import { WeatherCurrentComponent } from './weather/current/weather-current.component';
const routes: Routes = [ const routes: Routes = [
{ {
path: '', path: '',
component: DashboardComponent component: DashboardComponent
}, },
{
path: 'dashboard',
component: DashboardComponent
},
{ {
path: 'weather', path: 'weather',
component: WeatherComponent, component: WeatherComponent,

View File

@@ -1,12 +1,8 @@
<mat-toolbar color="primary"> <mat-toolbar color="primary">
<mat-toolbar-row> <mat-toolbar-row>
<button mat-icon-button> <a mat-button [routerLink]="'/'"><h1>Home Status</h1></a>
<mat-icon (click)="sidenav.toggle()">menu</mat-icon>
</button>
<h1>Home Status</h1>
<span class="menu-spacer"></span> <span class="menu-spacer"></span>
<div> <div>
<a mat-button [routerLink]="'/dashboard'">Dashboard</a>
<a mat-button [routerLink]="'/weather'">Weather</a> <a mat-button [routerLink]="'/weather'">Weather</a>
<a mat-button [routerLink]="'/laundry'">Laundry</a> <a mat-button [routerLink]="'/laundry'">Laundry</a>
</div> </div>

View File

@@ -10,8 +10,8 @@ import { SocketIoModule, SocketIoConfig } from 'ngx-socket-io';
import { WeatherComponent } from './weather/weather.component'; import { WeatherComponent } from './weather/weather.component';
import { LaundryComponent } from './laundry/laundry.component'; import { LaundryComponent } from './laundry/laundry.component';
import { DashboardComponent } from './dashboard/dashboard.component'; import { DashboardComponent } from './dashboard/dashboard.component';
import { WeatherChartsComponent } from './weather-charts/weather-charts.component'; import { WeatherChartsComponent } from './weather/charts/weather-charts.component';
import { WeatherCurrentComponent } from './Weather/weather-current/weather-current.component'; import { WeatherCurrentComponent } from './weather/current/weather-current.component';
const config: SocketIoConfig = { url: 'http://home.kaczorzoo.net:9091', options: {} }; const config: SocketIoConfig = { url: 'http://home.kaczorzoo.net:9091', options: {} };

View File

@@ -1,6 +1,6 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { LaundryService } from '../laundry.service'; import { LaundryService } from './service/laundry.service';
import { LaundryStatus } from '../laundry-status'; import { LaundryStatus } from './service/laundry-status';
@Component({ @Component({
selector: 'app-laundry', selector: 'app-laundry',

View File

@@ -1,6 +1,6 @@
import { Component, OnInit } from '@angular/core'; import { Component, OnInit } from '@angular/core';
import { WeatherReading } from 'src/app/weather-reading'; import { WeatherReading } from 'src/app/weather/service/weather-reading';
import { WeatherService } from 'src/app/weather.service'; import { WeatherService } from 'src/app/weather/service/weather.service';
@Component({ @Component({
selector: 'app-weather-current', selector: 'app-weather-current',