mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-20 03:51:00 +00:00
Add new component chart-item
This commit is contained in:
parent
fb33a8ad6b
commit
b0ebf56283
@ -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,
|
||||
|
4
src/app/chart/chart-item/chart-item.component.html
Normal file
4
src/app/chart/chart-item/chart-item.component.html
Normal file
@ -0,0 +1,4 @@
|
||||
<div fxLayout="row" fxLayoutAlign="space-between start">
|
||||
<div>color</div>
|
||||
<div>{{state}}</div>
|
||||
</div>
|
0
src/app/chart/chart-item/chart-item.component.scss
Normal file
0
src/app/chart/chart-item/chart-item.component.scss
Normal file
25
src/app/chart/chart-item/chart-item.component.spec.ts
Normal file
25
src/app/chart/chart-item/chart-item.component.spec.ts
Normal file
@ -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<ChartItemComponent>;
|
||||
|
||||
beforeEach(async(() => {
|
||||
TestBed.configureTestingModule({
|
||||
declarations: [ ChartItemComponent ]
|
||||
})
|
||||
.compileComponents();
|
||||
}));
|
||||
|
||||
beforeEach(() => {
|
||||
fixture = TestBed.createComponent(ChartItemComponent);
|
||||
component = fixture.componentInstance;
|
||||
fixture.detectChanges();
|
||||
});
|
||||
|
||||
it('should create', () => {
|
||||
expect(component).toBeTruthy();
|
||||
});
|
||||
});
|
15
src/app/chart/chart-item/chart-item.component.ts
Normal file
15
src/app/chart/chart-item/chart-item.component.ts
Normal file
@ -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 {
|
||||
}
|
||||
|
||||
}
|
Loading…
Reference in New Issue
Block a user