mirror of
https://github.com/akveo/ngx-admin.git
synced 2025-09-22 05:50:48 +02: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 @@ import { AnalyticsService } from '../../../@core/utils/analytics.service';
|
||||||
export class HeaderComponent implements OnInit {
|
export class HeaderComponent implements OnInit {
|
||||||
|
|
||||||
|
|
||||||
@Input() position: string = 'normal';
|
@Input() position = 'normal';
|
||||||
|
|
||||||
user: any;
|
user: any;
|
||||||
|
|
||||||
|
|
|
@ -18,7 +18,7 @@ export class SearchInputComponent {
|
||||||
|
|
||||||
@Output() search: EventEmitter<string> = new EventEmitter<string>();
|
@Output() search: EventEmitter<string> = new EventEmitter<string>();
|
||||||
|
|
||||||
isInputShown: boolean = false;
|
isInputShown = false;
|
||||||
|
|
||||||
showInput() {
|
showInput() {
|
||||||
this.isInputShown = true;
|
this.isInputShown = true;
|
||||||
|
|
|
@ -122,7 +122,7 @@ export class SampleLayoutComponent implements OnDestroy {
|
||||||
|
|
||||||
this.sidebarState$ = this.stateService.onSidebarState()
|
this.sidebarState$ = this.stateService.onSidebarState()
|
||||||
.subscribe((sidebar: string) => {
|
.subscribe((sidebar: string) => {
|
||||||
this.sidebar = sidebar
|
this.sidebar = sidebar;
|
||||||
});
|
});
|
||||||
|
|
||||||
const isBp = this.bpService.getByName('is');
|
const isBp = this.bpService.getByName('is');
|
||||||
|
|
|
@ -13,18 +13,18 @@ export class NotificationsComponent {
|
||||||
|
|
||||||
config: ToasterConfig;
|
config: ToasterConfig;
|
||||||
|
|
||||||
position: string = 'toast-top-right';
|
position = 'toast-top-right';
|
||||||
animationType: string = 'fade';
|
animationType = 'fade';
|
||||||
title: string = 'HI there!';
|
title = 'HI there!';
|
||||||
content: string = `I'm cool toaster!`;
|
content = `I'm cool toaster!`;
|
||||||
timeout: number = 5000;
|
timeout = 5000;
|
||||||
toastsLimit: number = 5;
|
toastsLimit = 5;
|
||||||
type: string = 'default';
|
type = 'default';
|
||||||
|
|
||||||
isNewestOnTop: boolean = true;
|
isNewestOnTop = true;
|
||||||
isHideOnClick: boolean = true;
|
isHideOnClick = true;
|
||||||
isDuplicatesPrevented: boolean = false;
|
isDuplicatesPrevented = false;
|
||||||
isCloseButton: boolean = true;
|
isCloseButton = true;
|
||||||
|
|
||||||
types: string[] = ['default', 'info', 'success', 'warning', 'error'];
|
types: string[] = ['default', 'info', 'success', 'warning', 'error'];
|
||||||
animations: string[] = ['fade', 'flyLeft', 'flyRight', 'slideDown', 'slideUp'];
|
animations: string[] = ['fade', 'flyLeft', 'flyRight', 'slideDown', 'slideUp'];
|
||||||
|
@ -49,7 +49,7 @@ export class NotificationsComponent {
|
||||||
const quote = this.quotes[quoteIndex];
|
const quote = this.quotes[quoteIndex];
|
||||||
|
|
||||||
this.showToast(type, quote.title, quote.body);
|
this.showToast(type, quote.title, quote.body);
|
||||||
};
|
}
|
||||||
|
|
||||||
private showToast(type: string, title: string, body: string) {
|
private showToast(type: string, title: string, body: string) {
|
||||||
this.config = new ToasterConfig({
|
this.config = new ToasterConfig({
|
||||||
|
|
|
@ -12,7 +12,7 @@ export class ElectricityComponent implements OnDestroy {
|
||||||
|
|
||||||
data: Array<any>;
|
data: Array<any>;
|
||||||
|
|
||||||
type: string = 'week';
|
type = 'week';
|
||||||
types = ['week', 'month', 'year'];
|
types = ['week', 'month', 'year'];
|
||||||
|
|
||||||
currentTheme: string;
|
currentTheme: string;
|
||||||
|
|
|
@ -29,7 +29,7 @@ export class SecurityCamerasComponent {
|
||||||
title: 'Log out',
|
title: 'Log out',
|
||||||
}];
|
}];
|
||||||
|
|
||||||
isSingleView: boolean = false;
|
isSingleView = false;
|
||||||
|
|
||||||
selectCamera(camera: any) {
|
selectCamera(camera: any) {
|
||||||
this.selectedCamera = camera;
|
this.selectedCamera = camera;
|
||||||
|
|
|
@ -22,7 +22,7 @@ declare const echarts: any;
|
||||||
})
|
})
|
||||||
export class SolarComponent implements AfterViewInit, OnDestroy {
|
export class SolarComponent implements AfterViewInit, OnDestroy {
|
||||||
|
|
||||||
private value: number = 0;
|
private value = 0;
|
||||||
|
|
||||||
@Input('chartValue')
|
@Input('chartValue')
|
||||||
set chartValue(value: number) {
|
set chartValue(value: number) {
|
||||||
|
|
|
@ -22,5 +22,5 @@ export class StatusCardComponent {
|
||||||
|
|
||||||
@Input() title: string;
|
@Input() title: string;
|
||||||
@Input() type: 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;
|
@ViewChild('svgRoot') svgRoot: ElementRef;
|
||||||
|
|
||||||
@Input() fillColors: string|string[] = '#2ec6ff';
|
@Input() fillColors: string|string[] = '#2ec6ff';
|
||||||
@Input() disableArcColor: string = '#999999';
|
@Input() disableArcColor = '#999999';
|
||||||
@Input() bottomAngle: number = 90;
|
@Input() bottomAngle = 90;
|
||||||
@Input() arcThickness: number = 18; // CSS pixels
|
@Input() arcThickness = 18; // CSS pixels
|
||||||
@Input() thumbRadius: number = 16; // CSS pixels
|
@Input() thumbRadius = 16; // CSS pixels
|
||||||
@Input() thumbBorder: number = 3;
|
@Input() thumbBorder = 3;
|
||||||
@Input() maxLeap: number = 0.4;
|
@Input() maxLeap = 0.4;
|
||||||
|
|
||||||
value: number = 50;
|
value = 50;
|
||||||
@Output('valueChange') valueChange = new EventEmitter<Number>();
|
@Output('valueChange') valueChange = new EventEmitter<Number>();
|
||||||
@Input('value') set setValue(value) {
|
@Input('value') set setValue(value) {
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Input() min: number = 0; // min output value
|
@Input() min = 0; // min output value
|
||||||
@Input() max: number = 100; // max output value
|
@Input() max = 100; // max output value
|
||||||
@Input() step = 0.1;
|
@Input() step = 0.1;
|
||||||
|
|
||||||
@Output() power = new EventEmitter<boolean>();
|
@Output() power = new EventEmitter<boolean>();
|
||||||
|
@ -49,13 +49,13 @@ export class TemperatureDraggerComponent implements AfterViewInit, OnChanges {
|
||||||
this.invalidate();
|
this.invalidate();
|
||||||
}
|
}
|
||||||
|
|
||||||
off: boolean = false;
|
off = false;
|
||||||
oldValue: number;
|
oldValue: number;
|
||||||
|
|
||||||
svgControlId = new Date().getTime();
|
svgControlId = new Date().getTime();
|
||||||
scaleFactor: number = 1;
|
scaleFactor = 1;
|
||||||
bottomAngleRad = 0;
|
bottomAngleRad = 0;
|
||||||
radius: number = 100;
|
radius = 100;
|
||||||
translateXValue = 0;
|
translateXValue = 0;
|
||||||
translateYValue = 0;
|
translateYValue = 0;
|
||||||
thickness = 6;
|
thickness = 6;
|
||||||
|
|
|
@ -8,12 +8,12 @@ import { NbThemeService } from '@nebular/theme';
|
||||||
})
|
})
|
||||||
export class TemperatureComponent implements OnDestroy {
|
export class TemperatureComponent implements OnDestroy {
|
||||||
|
|
||||||
temperature: number = 24;
|
temperature = 24;
|
||||||
temperatureOff: boolean = false;
|
temperatureOff = false;
|
||||||
temperatureMode = 'cool';
|
temperatureMode = 'cool';
|
||||||
|
|
||||||
humidity: number = 87;
|
humidity = 87;
|
||||||
humidityOff: boolean = false;
|
humidityOff = false;
|
||||||
humidityMode = 'heat';
|
humidityMode = 'heat';
|
||||||
|
|
||||||
colors: any;
|
colors: any;
|
||||||
|
|
|
@ -14,7 +14,7 @@ const points = [300, 520, 435, 530, 730, 620, 660, 860];
|
||||||
})
|
})
|
||||||
export class TrafficChartComponent implements AfterViewInit, OnDestroy {
|
export class TrafficChartComponent implements AfterViewInit, OnDestroy {
|
||||||
|
|
||||||
type: string = 'month';
|
type = 'month';
|
||||||
types = ['week', 'month', 'year'];
|
types = ['week', 'month', 'year'];
|
||||||
option: any = {};
|
option: any = {};
|
||||||
themeSubscription: any;
|
themeSubscription: any;
|
||||||
|
|
|
@ -25,7 +25,7 @@ import { NbThemeService } from '@nebular/theme';
|
||||||
`,
|
`,
|
||||||
})
|
})
|
||||||
export class TrafficComponent implements OnDestroy {
|
export class TrafficComponent implements OnDestroy {
|
||||||
type: string = 'month';
|
type = 'month';
|
||||||
types = ['week', 'month', 'year'];
|
types = ['week', 'month', 'year'];
|
||||||
currentTheme: string;
|
currentTheme: string;
|
||||||
themeSubscription: any;
|
themeSubscription: any;
|
||||||
|
|
|
@ -7,6 +7,6 @@ import { Component } from '@angular/core';
|
||||||
})
|
})
|
||||||
export class FormInputsComponent {
|
export class FormInputsComponent {
|
||||||
|
|
||||||
starRate: number = 2;
|
starRate = 2;
|
||||||
heartRate: number = 4;
|
heartRate = 4;
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,6 +16,6 @@ import { Component } from '@angular/core';
|
||||||
})
|
})
|
||||||
export class GmapsComponent {
|
export class GmapsComponent {
|
||||||
|
|
||||||
lat: number = 51.678418;
|
lat = 51.678418;
|
||||||
lng: number = 7.809007;
|
lng = 7.809007;
|
||||||
}
|
}
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { NbThemeService } from '@nebular/theme';
|
||||||
})
|
})
|
||||||
export class HeroButtonComponent implements OnDestroy {
|
export class HeroButtonComponent implements OnDestroy {
|
||||||
|
|
||||||
themeName: string = 'default';
|
themeName = 'default';
|
||||||
settings: Array<any>;
|
settings: Array<any>;
|
||||||
themeSubscription: any;
|
themeSubscription: any;
|
||||||
|
|
||||||
|
|
|
@ -21,7 +21,7 @@ import { NgbActiveModal } from '@ng-bootstrap/ng-bootstrap';
|
||||||
export class ModalComponent {
|
export class ModalComponent {
|
||||||
|
|
||||||
modalHeader: string;
|
modalHeader: string;
|
||||||
modalContent: string = `Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy
|
modalContent = `Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy
|
||||||
nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis
|
nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis
|
||||||
nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.`;
|
nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.`;
|
||||||
|
|
||||||
|
|
11
tslint.json
11
tslint.json
|
@ -22,7 +22,8 @@
|
||||||
"forin": true,
|
"forin": true,
|
||||||
"import-blacklist": [
|
"import-blacklist": [
|
||||||
true,
|
true,
|
||||||
"rxjs"
|
"rxjs",
|
||||||
|
"rxjs/Rx"
|
||||||
],
|
],
|
||||||
"import-spacing": true,
|
"import-spacing": true,
|
||||||
"indent": [
|
"indent": [
|
||||||
|
@ -33,7 +34,7 @@
|
||||||
"label-position": true,
|
"label-position": true,
|
||||||
"max-line-length": [
|
"max-line-length": [
|
||||||
true,
|
true,
|
||||||
120
|
140
|
||||||
],
|
],
|
||||||
"member-access": false,
|
"member-access": false,
|
||||||
"no-arg": true,
|
"no-arg": true,
|
||||||
|
@ -51,6 +52,10 @@
|
||||||
"no-empty": false,
|
"no-empty": false,
|
||||||
"no-empty-interface": true,
|
"no-empty-interface": true,
|
||||||
"no-eval": true,
|
"no-eval": true,
|
||||||
|
"no-inferrable-types": [
|
||||||
|
true,
|
||||||
|
"ignore-params"
|
||||||
|
],
|
||||||
"no-misused-new": true,
|
"no-misused-new": true,
|
||||||
"no-non-null-assertion": true,
|
"no-non-null-assertion": true,
|
||||||
"no-shadowed-variable": true,
|
"no-shadowed-variable": true,
|
||||||
|
@ -77,6 +82,7 @@
|
||||||
],
|
],
|
||||||
"radix": true,
|
"radix": true,
|
||||||
"semicolon": [
|
"semicolon": [
|
||||||
|
true,
|
||||||
"always"
|
"always"
|
||||||
],
|
],
|
||||||
"triple-equals": [
|
"triple-equals": [
|
||||||
|
@ -119,6 +125,7 @@
|
||||||
"use-input-property-decorator": true,
|
"use-input-property-decorator": true,
|
||||||
"use-output-property-decorator": true,
|
"use-output-property-decorator": true,
|
||||||
"use-host-property-decorator": true,
|
"use-host-property-decorator": true,
|
||||||
|
"no-input-rename": true,
|
||||||
"no-output-rename": true,
|
"no-output-rename": true,
|
||||||
"use-life-cycle-interface": true,
|
"use-life-cycle-interface": true,
|
||||||
"use-pipe-transform-interface": true,
|
"use-pipe-transform-interface": true,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue