mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-01-13 17:22:54 -05:00
Reorganization
This commit is contained in:
@@ -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,
|
||||
|
||||
@@ -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>
|
||||
|
||||
@@ -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: {} };
|
||||
|
||||
|
||||
@@ -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',
|
||||
|
||||
@@ -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',
|
||||
Reference in New Issue
Block a user