mirror of
https://github.com/ckaczor/HomeMonitor.git
synced 2026-02-16 10:58:32 -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 { 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,
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|||||||
@@ -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: {} };
|
||||||
|
|
||||||
|
|||||||
@@ -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',
|
||||||
|
|||||||
@@ -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',
|
||||||
Reference in New Issue
Block a user