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 { DashboardComponent } from './dashboard/dashboard.component';
import { LaundryComponent } from './laundry/laundry.component';
import { WeatherChartsComponent } from './weather-charts/weather-charts.component';
import { WeatherCurrentComponent } from './Weather/weather-current/weather-current.component';
import { WeatherChartsComponent } from './weather/charts/weather-charts.component';
import { WeatherCurrentComponent } from './weather/current/weather-current.component';
const routes: Routes = [
{
path: '',
component: DashboardComponent
},
{
path: 'dashboard',
component: DashboardComponent
},
{
path: 'weather',
component: WeatherComponent,

View File

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

View File

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

View File

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

View File

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