diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 933cf4631..9044d6a2c 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -20,13 +20,14 @@ import { DonutChartComponent } from './chart/donut-chart/donut-chart.component'; import { DeviceChartComponent } from './chart/device-chart/device-chart.component'; import { FolderChartComponent } from './chart/folder-chart/folder-chart.component'; import { DashboardComponent } from './dashboard/dashboard.component'; -import { StatusToggleComponent } from './status-toggle/status-toggle.component'; +import { ListToggleComponent } from './list-toggle/list-toggle.component'; import { HttpClientInMemoryWebApiModule } from 'angular-in-memory-web-api'; import { InMemoryConfigDataService } from './in-memory-config-data.service'; import { deviceID } from './api-utils'; import { environment } from '../environments/environment'; +import { ChartItemComponent } from './chart/chart-item/chart-item.component'; @NgModule({ declarations: [ @@ -34,11 +35,12 @@ import { environment } from '../environments/environment'; StatusListComponent, FolderListComponent, DeviceListComponent, - StatusToggleComponent, + ListToggleComponent, DashboardComponent, DonutChartComponent, DeviceChartComponent, FolderChartComponent, + ChartItemComponent, ], imports: [ BrowserModule, diff --git a/src/app/chart/chart-item/chart-item.component.html b/src/app/chart/chart-item/chart-item.component.html new file mode 100644 index 000000000..c99580cce --- /dev/null +++ b/src/app/chart/chart-item/chart-item.component.html @@ -0,0 +1,4 @@ +
+
color
+
{{state}}
+
\ No newline at end of file diff --git a/src/app/chart/chart-item/chart-item.component.scss b/src/app/chart/chart-item/chart-item.component.scss new file mode 100644 index 000000000..e69de29bb diff --git a/src/app/chart/chart-item/chart-item.component.spec.ts b/src/app/chart/chart-item/chart-item.component.spec.ts new file mode 100644 index 000000000..75363d385 --- /dev/null +++ b/src/app/chart/chart-item/chart-item.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ChartItemComponent } from './chart-item.component'; + +describe('ChartItemComponent', () => { + let component: ChartItemComponent; + let fixture: ComponentFixture; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ ChartItemComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(ChartItemComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/chart/chart-item/chart-item.component.ts b/src/app/chart/chart-item/chart-item.component.ts new file mode 100644 index 000000000..5c5aabc10 --- /dev/null +++ b/src/app/chart/chart-item/chart-item.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-chart-item', + templateUrl: './chart-item.component.html', + styleUrls: ['./chart-item.component.scss'] +}) +export class ChartItemComponent implements OnInit { + state: string = "test" + constructor() { } + + ngOnInit(): void { + } + +}