Skip to content

Commit 61a065f

Browse files
ByPortrandrianov
authored andcommitted
style: satisfy tslint:recommended
1 parent d4682b7 commit 61a065f

File tree

53 files changed

+148
-131
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

53 files changed

+148
-131
lines changed

src/app/app-routing.module.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { RouterModule } from '@angular/router';
21
import { NgModule } from '@angular/core';
2+
import { RouterModule } from '@angular/router';
33

4+
import { LayoutsModule } from './layouts';
45
import { CommonLayoutComponent } from './layouts/common-layout';
5-
import { DashboardComponent } from './pages/dashboard';
6-
import { MapsComponent } from './pages/maps';
76
import { ChartsComponent } from './pages/charts';
7+
import { DashboardComponent } from './pages/dashboard';
88
import { FormsComponent } from './pages/forms';
9-
import { LayoutsModule } from './layouts';
9+
import { MapsComponent } from './pages/maps';
1010

1111
@NgModule({
1212
imports: [

src/app/app.module.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { BrowserModule } from '@angular/platform-browser';
21
import { NgModule } from '@angular/core';
2+
import { BrowserModule } from '@angular/platform-browser';
33

44
import { AppRoutingModule } from './app-routing.module';
55
import { AppComponent } from './app.component';
6-
import { MapsModule } from './pages/maps';
7-
import { DashboardModule } from './pages/dashboard';
86
import { ChartsModule } from './pages/charts';
7+
import { DashboardModule } from './pages/dashboard';
98
import { FormsModule } from './pages/forms';
9+
import { MapsModule } from './pages/maps';
1010

1111
@NgModule({
1212
declarations: [AppComponent],

src/app/components/message-menu/message-menu.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { MessageMenuService } from './message-menu.service';
1111
export class MessageMenuComponent {
1212
@HostBinding('class.message-menu') private readonly messageMenu = true;
1313

14-
private messages: Object[];
14+
private messages: object[];
1515

1616
constructor(messageMenuService: MessageMenuService) {
1717
this.messages = messageMenuService.getMessages();

src/app/components/message-menu/message-menu.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
22

33
@Injectable()
44
export class MessageMenuService {
5-
public getMessages(): Object[] {
5+
public getMessages(): object[] {
66
return [
77
{
88
name: 'Alice',

src/app/components/notification-menu/notification-menu.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import { NotificationMenuService } from './notification-menu.service';
1111
export class NotificationMenuComponent {
1212
@HostBinding('class.notification-menu') private readonly notificationMenu = true;
1313

14-
private notifications: Object[];
14+
private notifications: object[];
1515

1616
constructor(notificationMenuService: NotificationMenuService) {
1717
this.notifications = notificationMenuService.getNotifications();

src/app/components/notification-menu/notification-menu.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
22

33
@Injectable()
44
export class NotificationMenuService {
5-
public getNotifications(): Object[] {
5+
public getNotifications(): object[] {
66
return [
77
{
88
text: 'You have 3 new orders.',

src/app/layouts/layouts.module.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { NgModule } from '@angular/core';
21
import { CommonModule } from '@angular/common';
2+
import { NgModule } from '@angular/core';
33
import { RouterModule } from '@angular/router';
44

5-
import { CommonLayoutComponent } from './common-layout';
6-
import { BlankLayoutComponent } from './blank-layout';
7-
import { ThemeModule } from 'theme';
8-
import { SidebarComponent } from 'app/components/sidebar';
95
import { MessageMenuComponent } from 'app/components/message-menu';
106
import { NotificationMenuComponent } from 'app/components/notification-menu';
7+
import { SidebarComponent } from 'app/components/sidebar';
8+
import { ThemeModule } from 'theme';
9+
import { BlankLayoutComponent } from './blank-layout';
10+
import { CommonLayoutComponent } from './common-layout';
1111

1212
@NgModule({
1313
imports: [

src/app/pages/charts/browser-statistics-chart/browser-statistics-chart.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as d3 from 'd3';
22
import * as nv from 'nvd3';
33

4-
import { Component, OnInit, ElementRef, HostBinding } from '@angular/core';
4+
import { Component, ElementRef, HostBinding, OnInit } from '@angular/core';
55

66
import { PieChartComponent as BasePieChartComponent } from 'theme/components/pie-chart';
77

src/app/pages/charts/charts.module.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
import { NgModule } from '@angular/core';
21
import { CommonModule } from '@angular/common';
2+
import { NgModule } from '@angular/core';
33
import { FormsModule } from '@angular/forms';
44

55
import { ThemeModule } from 'theme';
66

7-
import { ChartsComponent } from './charts.component';
8-
import { LineChart1Component } from './line-chart-1';
9-
import { LineChart2Component } from './line-chart-2';
107
import { BrowserStatisticsChartComponent } from './browser-statistics-chart';
8+
import { ChartsComponent } from './charts.component';
119
import { CountryStatisticsChartComponent } from './country-statistics-chart';
1210
import { DiscreteBarChartComponent } from './discrete-bar-chart';
13-
import { StackedBarChartComponent } from './stacked-bar-chart';
11+
import { LineChart1Component } from './line-chart-1';
12+
import { LineChart2Component } from './line-chart-2';
1413
import { LinePlusBarChartComponent } from './line-plus-bar-chart';
14+
import { StackedBarChartComponent } from './stacked-bar-chart';
1515

1616
@NgModule({
1717
imports: [

src/app/pages/charts/country-statistics-chart/country-statistics-chart.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as d3 from 'd3';
22
import * as nv from 'nvd3';
33

4-
import { Component, OnInit, ElementRef } from '@angular/core';
4+
import { Component, ElementRef, OnInit } from '@angular/core';
55

66
import { PieChartComponent as BasePieChartComponent } from 'theme/components/pie-chart';
77

src/app/pages/charts/discrete-bar-chart/discrete-bar-chart.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as d3 from 'd3';
22
import * as nv from 'nvd3';
33

4-
import { Component, OnInit, ElementRef, HostBinding } from '@angular/core';
4+
import { Component, ElementRef, HostBinding, OnInit } from '@angular/core';
55

66
import { DiscreteBarChartService } from './discrete-bar-chart.service';
77

src/app/pages/charts/line-chart-1/line-chart-1.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, OnInit, ElementRef } from '@angular/core';
1+
import { Component, ElementRef, OnInit } from '@angular/core';
22

33
import { LineChartComponent } from 'theme/components/line-chart';
44

src/app/pages/charts/line-chart-2/line-chart-2.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, OnInit, ElementRef } from '@angular/core';
1+
import { Component, ElementRef, OnInit } from '@angular/core';
22

33
import { LineChartComponent } from 'theme/components/line-chart';
44

src/app/pages/charts/line-plus-bar-chart/line-plus-bar-chart.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as d3 from 'd3';
22
import * as nv from 'nvd3';
33

4-
import { Component, OnInit, ElementRef, HostBinding } from '@angular/core';
4+
import { Component, ElementRef, HostBinding, OnInit } from '@angular/core';
55

66
import { LinePlusBarChartService } from './line-plus-bar-chart.service';
77

src/app/pages/charts/stacked-bar-chart/stacked-bar-chart.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as d3 from 'd3';
22
import * as nv from 'nvd3';
33

4-
import { Component, OnInit, ElementRef, HostBinding } from '@angular/core';
4+
import { Component, ElementRef, HostBinding, OnInit } from '@angular/core';
55

66
import { StackedBarChartService } from './stacked-bar-chart.service';
77

src/app/pages/dashboard/dashboard.module.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import { NgModule } from '@angular/core';
21
import { CommonModule } from '@angular/common';
2+
import { NgModule } from '@angular/core';
33
import { FormsModule } from '@angular/forms';
44

55
import { ThemeModule } from 'theme';
66

7+
import { CotoneasterCardComponent } from './cotoneaster-card';
78
import { DashboardComponent } from './dashboard.component';
89
import { LineChartComponent } from './line-chart';
910
import { PieChartComponent } from './pie-chart';
10-
import { WeatherComponent } from './weather';
11-
import { TrendingComponent } from './trending';
1211
import { RobotCardComponent } from './robot-card';
13-
import { CotoneasterCardComponent } from './cotoneaster-card';
14-
import { TodoListComponent } from './todo-list';
1512
import { TableCardComponent } from './table-card';
13+
import { TodoListComponent } from './todo-list';
14+
import { TrendingComponent } from './trending';
15+
import { WeatherComponent } from './weather';
1616

1717
@NgModule({
1818
imports: [

src/app/pages/dashboard/line-chart/line-chart.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as d3 from 'd3';
22
import * as nv from 'nvd3';
33

4-
import { Component, OnInit, ElementRef, HostBinding } from '@angular/core';
4+
import { Component, ElementRef, HostBinding, OnInit } from '@angular/core';
55

66
import { LineChartComponent as BaseLineChartComponent } from 'theme/components/line-chart';
77

src/app/pages/dashboard/pie-chart/pie-chart.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import * as d3 from 'd3';
22
import * as nv from 'nvd3';
33

4-
import { Component, OnInit, ElementRef, HostBinding } from '@angular/core';
4+
import { Component, ElementRef, HostBinding, OnInit } from '@angular/core';
55

66
import { PieChartComponent as BasePieChartComponent } from 'theme/components/pie-chart';
77

src/app/pages/dashboard/table-card/table-card.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export class TableCardComponent {
1515
'Deadline',
1616
'Progress',
1717
];
18-
private data: Object[] = [
18+
private data: object[] = [
1919
{
2020
project: 'Darkboard',
2121
responsible: [

src/app/pages/dashboard/todo-list/todo-list.component.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
import 'material-design-lite/material';
22

33
import {
4+
AfterViewInit,
45
Component,
5-
ViewChild,
6-
ViewChildren,
7-
QueryList,
86
ElementRef,
9-
AfterViewInit,
10-
OnDestroy,
117
HostBinding,
8+
OnDestroy,
9+
QueryList,
10+
ViewChild,
11+
ViewChildren,
1212
} from '@angular/core';
1313

1414
import { TodoListService } from './todo-list.service';

src/app/pages/dashboard/todo-list/todo-list.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import { Injectable } from '@angular/core';
22

33
@Injectable()
44
export class TodoListService {
5-
public getItems(): Object[] {
5+
public getItems(): object[] {
66
return [
77
{
88
title: 'Fix bugs',

src/app/pages/forms/forms.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { NgModule } from '@angular/core';
21
import { CommonModule } from '@angular/common';
2+
import { NgModule } from '@angular/core';
33
import { FormsModule as NgFormsModule } from '@angular/forms';
44

55
import { ThemeModule } from 'theme';
66

7-
import { FormsComponent } from './forms.component';
87
import { EmployerFormComponent } from './employer-form';
8+
import { FormsComponent } from './forms.component';
99

1010
@NgModule({
1111
imports: [

src/app/pages/maps/map/map.component.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, AfterViewInit, HostBinding } from '@angular/core';
1+
import { AfterViewInit, Component, HostBinding } from '@angular/core';
22

33
declare const google: any;
44

@@ -166,7 +166,7 @@ export class MapComponent implements AfterViewInit {
166166
image: '-340px',
167167
}),
168168
},
169-
_showInfo: (target) => {
169+
showInfo(target) {
170170
document.querySelector('.map__target-picture').classList.toggle('map__target-picture--hide');
171171
document.querySelector('.map__target-info').classList.toggle('map__target-info--hide');
172172
setTimeout(
@@ -182,18 +182,18 @@ export class MapComponent implements AfterViewInit {
182182
200,
183183
);
184184
},
185-
setActiveMarker () {
185+
setActiveMarker() {
186186
for (const key in markers) {
187187
if (typeof(markers[key].marker) === 'object' && markers[key].marker != null) {
188188
markers[key].marker.setIcon(markerImage);
189189
}
190190
}
191191
if (this === markers) {
192192
markers.theatre.marker.setIcon(activeMarkerImage);
193-
markers._showInfo(markers.theatre.marker);
193+
markers.showInfo(markers.theatre.marker);
194194
} else {
195195
this.setIcon(activeMarkerImage);
196-
markers._showInfo(this);
196+
markers.showInfo(this);
197197
}
198198
},
199199
};

src/app/pages/maps/maps.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
1-
import { NgModule } from '@angular/core';
21
import { CommonModule } from '@angular/common';
2+
import { NgModule } from '@angular/core';
33
import { FormsModule } from '@angular/forms';
44

55
import { ThemeModule } from 'theme';
66

7-
import { MapsComponent } from './maps.component';
87
import { MapComponent } from './map';
8+
import { MapsComponent } from './maps.component';
99

1010
@NgModule({
1111
imports: [

src/app/pages/pages/pages-routing.module.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
import { Routes, RouterModule } from '@angular/router';
2-
import { NgModule, ModuleWithProviders } from '@angular/core';
1+
import { ModuleWithProviders, NgModule } from '@angular/core';
2+
import { RouterModule, Routes } from '@angular/router';
33

4+
import { LayoutsModule } from 'app/layouts';
5+
import { BlankLayoutComponent } from 'app/layouts/blank-layout';
46
import { ErrorComponent } from './error';
7+
import { ForgotPasswordComponent } from './forgot-password';
58
import { LoginComponent } from './login';
69
import { SignUpComponent } from './sign-up';
7-
import { ForgotPasswordComponent } from './forgot-password';
8-
import { BlankLayoutComponent } from 'app/layouts/blank-layout';
9-
import { LayoutsModule } from 'app/layouts';
1010

1111
@NgModule({
1212
imports: [

src/app/pages/pages/pages.module.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
1-
import { NgModule } from '@angular/core';
21
import { CommonModule } from '@angular/common';
2+
import { NgModule } from '@angular/core';
33

44
import { ThemeModule } from 'theme';
55

6-
import { PagesRoutingModule } from './pages-routing.module';
76
import { ErrorComponent } from './error';
7+
import { ForgotPasswordComponent } from './forgot-password';
88
import { LoginComponent } from './login';
9+
import { PagesRoutingModule } from './pages-routing.module';
910
import { SignUpComponent } from './sign-up';
10-
import { ForgotPasswordComponent } from './forgot-password';
1111

1212
@NgModule({
1313
imports: [

src/app/pages/ui/components/components.module.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
1-
import { NgModule } from '@angular/core';
21
import { CommonModule } from '@angular/common';
2+
import { NgModule } from '@angular/core';
33
import { FormsModule } from '@angular/forms';
44

55
import { ThemeModule } from 'theme';
66

7+
import { BadgesComponent } from './badges';
8+
import { ChipsComponent } from './chips';
79
import { ComponentsComponent } from './components.component';
8-
import { TogglesComponent } from './toggles';
910
import { ProgressBarsComponent } from './progress-bars';
10-
import { ChipsComponent } from './chips';
1111
import { SlidersComponent } from './sliders';
12+
import { TogglesComponent } from './toggles';
1213
import { TooltipsComponent } from './tooltips';
13-
import { BadgesComponent } from './badges';
1414

1515
@NgModule({
1616
imports: [

src/app/pages/ui/tables/tables.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -222,6 +222,6 @@ export class TablesComponent extends UpgradableComponent {
222222
'Childeren\'s literature': 'orange',
223223
'Gothic fiction': 'purple',
224224
'Horror fiction': 'dark-gray',
225-
Fiction: 'green',
225+
'Fiction': 'green',
226226
};
227227
}

src/app/pages/ui/ui-routing.module.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,16 @@
11
import { NgModule } from '@angular/core';
22
import { RouterModule } from '@angular/router';
33

4+
import { LayoutsModule } from 'app/layouts';
5+
import { CommonLayoutComponent } from 'app/layouts/common-layout';
46
import { ButtonsComponent } from './buttons';
57
import { CardsComponent } from './cards';
68
import { ColorsComponent } from './colors';
9+
import { ComponentsComponent } from './components';
710
import { FormsComponent } from './forms';
811
import { IconsComponent } from './icons';
9-
import { TypographyComponent } from './typography';
1012
import { TablesComponent } from './tables';
11-
import { ComponentsComponent } from './components';
12-
import { CommonLayoutComponent } from 'app/layouts/common-layout';
13-
import { LayoutsModule } from 'app/layouts';
13+
import { TypographyComponent } from './typography';
1414

1515
@NgModule({
1616
imports: [

0 commit comments

Comments
 (0)