mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-12-28 13:18:49 +01:00
chore(lint): update linter to follow angular lint file
This commit is contained in:
parent
899d874cdd
commit
3429ed0a8d
17 changed files with 53 additions and 46 deletions
|
|
@ -12,7 +12,7 @@ export class ElectricityComponent implements OnDestroy {
|
|||
|
||||
data: Array<any>;
|
||||
|
||||
type: string = 'week';
|
||||
type = 'week';
|
||||
types = ['week', 'month', 'year'];
|
||||
|
||||
currentTheme: string;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,7 @@ export class SecurityCamerasComponent {
|
|||
title: 'Log out',
|
||||
}];
|
||||
|
||||
isSingleView: boolean = false;
|
||||
isSingleView = false;
|
||||
|
||||
selectCamera(camera: any) {
|
||||
this.selectedCamera = camera;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ declare const echarts: any;
|
|||
})
|
||||
export class SolarComponent implements AfterViewInit, OnDestroy {
|
||||
|
||||
private value: number = 0;
|
||||
private value = 0;
|
||||
|
||||
@Input('chartValue')
|
||||
set chartValue(value: number) {
|
||||
|
|
|
|||
|
|
@ -22,5 +22,5 @@ export class StatusCardComponent {
|
|||
|
||||
@Input() title: string;
|
||||
@Input() type: string;
|
||||
@Input() on: boolean = true;
|
||||
@Input() on = true;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -14,21 +14,21 @@ export class TemperatureDraggerComponent implements AfterViewInit, OnChanges {
|
|||
@ViewChild('svgRoot') svgRoot: ElementRef;
|
||||
|
||||
@Input() fillColors: string|string[] = '#2ec6ff';
|
||||
@Input() disableArcColor: string = '#999999';
|
||||
@Input() bottomAngle: number = 90;
|
||||
@Input() arcThickness: number = 18; // CSS pixels
|
||||
@Input() thumbRadius: number = 16; // CSS pixels
|
||||
@Input() thumbBorder: number = 3;
|
||||
@Input() maxLeap: number = 0.4;
|
||||
@Input() disableArcColor = '#999999';
|
||||
@Input() bottomAngle = 90;
|
||||
@Input() arcThickness = 18; // CSS pixels
|
||||
@Input() thumbRadius = 16; // CSS pixels
|
||||
@Input() thumbBorder = 3;
|
||||
@Input() maxLeap = 0.4;
|
||||
|
||||
value: number = 50;
|
||||
value = 50;
|
||||
@Output('valueChange') valueChange = new EventEmitter<Number>();
|
||||
@Input('value') set setValue(value) {
|
||||
this.value = value;
|
||||
}
|
||||
|
||||
@Input() min: number = 0; // min output value
|
||||
@Input() max: number = 100; // max output value
|
||||
@Input() min = 0; // min output value
|
||||
@Input() max = 100; // max output value
|
||||
@Input() step = 0.1;
|
||||
|
||||
@Output() power = new EventEmitter<boolean>();
|
||||
|
|
@ -49,13 +49,13 @@ export class TemperatureDraggerComponent implements AfterViewInit, OnChanges {
|
|||
this.invalidate();
|
||||
}
|
||||
|
||||
off: boolean = false;
|
||||
off = false;
|
||||
oldValue: number;
|
||||
|
||||
svgControlId = new Date().getTime();
|
||||
scaleFactor: number = 1;
|
||||
scaleFactor = 1;
|
||||
bottomAngleRad = 0;
|
||||
radius: number = 100;
|
||||
radius = 100;
|
||||
translateXValue = 0;
|
||||
translateYValue = 0;
|
||||
thickness = 6;
|
||||
|
|
|
|||
|
|
@ -8,12 +8,12 @@ import { NbThemeService } from '@nebular/theme';
|
|||
})
|
||||
export class TemperatureComponent implements OnDestroy {
|
||||
|
||||
temperature: number = 24;
|
||||
temperatureOff: boolean = false;
|
||||
temperature = 24;
|
||||
temperatureOff = false;
|
||||
temperatureMode = 'cool';
|
||||
|
||||
humidity: number = 87;
|
||||
humidityOff: boolean = false;
|
||||
humidity = 87;
|
||||
humidityOff = false;
|
||||
humidityMode = 'heat';
|
||||
|
||||
colors: any;
|
||||
|
|
|
|||
|
|
@ -14,7 +14,7 @@ const points = [300, 520, 435, 530, 730, 620, 660, 860];
|
|||
})
|
||||
export class TrafficChartComponent implements AfterViewInit, OnDestroy {
|
||||
|
||||
type: string = 'month';
|
||||
type = 'month';
|
||||
types = ['week', 'month', 'year'];
|
||||
option: any = {};
|
||||
themeSubscription: any;
|
||||
|
|
|
|||
|
|
@ -25,7 +25,7 @@ import { NbThemeService } from '@nebular/theme';
|
|||
`,
|
||||
})
|
||||
export class TrafficComponent implements OnDestroy {
|
||||
type: string = 'month';
|
||||
type = 'month';
|
||||
types = ['week', 'month', 'year'];
|
||||
currentTheme: string;
|
||||
themeSubscription: any;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue