Skip to content

Commit d2a2ab3

Browse files
committed
format: Auto fix tslint issues
1 parent 3409b37 commit d2a2ab3

34 files changed

+178
-178
lines changed

angular/src/AppPreBootstrap.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,11 +33,11 @@ export class AppPreBootstrap {
3333
}
3434

3535
private static getCurrentClockProvider(currentProviderName: string): abp.timing.IClockProvider {
36-
if (currentProviderName === "unspecifiedClockProvider") {
36+
if (currentProviderName === 'unspecifiedClockProvider') {
3737
return abp.timing.unspecifiedClockProvider;
3838
}
3939

40-
if (currentProviderName === "utcClockProvider") {
40+
if (currentProviderName === 'utcClockProvider') {
4141
return abp.timing.utcClockProvider;
4242
}
4343

@@ -50,7 +50,7 @@ export class AppPreBootstrap {
5050
method: 'GET',
5151
headers: {
5252
Authorization: 'Bearer ' + abp.auth.getToken(),
53-
'.AspNetCore.Culture': abp.utils.getCookieValue("Abp.Localization.CultureName"),
53+
'.AspNetCore.Culture': abp.utils.getCookieValue('Abp.Localization.CultureName'),
5454
'Abp.TenantId': abp.multiTenancy.getTenantIdCookie()
5555
}
5656
}).done(result => {

angular/src/account/account-routing.module.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { NgModule } from '@angular/core';
1+
import { NgModule } from '@angular/core';
22
import { RouterModule } from '@angular/router';
33
import { LoginComponent } from './login/login.component';
44
import { RegisterComponent } from './register/register.component';
@@ -21,4 +21,4 @@ import { AccountComponent } from './account.component';
2121
RouterModule
2222
]
2323
})
24-
export class AccountRoutingModule { }
24+
export class AccountRoutingModule { }

angular/src/account/account.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, ViewContainerRef, OnInit, ViewEncapsulation, Injector } from '@angular/core';
1+
import { Component, ViewContainerRef, OnInit, ViewEncapsulation, Injector } from '@angular/core';
22
import { LoginService } from './login/login.service';
33
import { AppComponentBase } from '@shared/app-component-base';
44

@@ -11,11 +11,11 @@ import { AppComponentBase } from '@shared/app-component-base';
1111
})
1212
export class AccountComponent extends AppComponentBase implements OnInit {
1313

14-
private viewContainerRef: ViewContainerRef;
15-
1614
versionText: string;
1715
currentYear: number;
1816

17+
private viewContainerRef: ViewContainerRef;
18+
1919
public constructor(
2020
injector: Injector,
2121
private _loginService: LoginService
@@ -33,4 +33,4 @@ export class AccountComponent extends AppComponentBase implements OnInit {
3333
ngOnInit(): void {
3434
$('body').attr('class', 'login-page');
3535
}
36-
}
36+
}

angular/src/account/layout/account-languages.component.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, OnInit, Injector } from '@angular/core';
1+
import { Component, OnInit, Injector } from '@angular/core';
22
import { AppComponentBase } from '@shared/app-component-base';
33

44
import * as _ from 'lodash';
@@ -28,12 +28,12 @@ export class AccountLanguagesComponent extends AppComponentBase implements OnIni
2828

2929
changeLanguage(languageName: string): void {
3030
abp.utils.setCookieValue(
31-
"Abp.Localization.CultureName",
31+
'Abp.Localization.CultureName',
3232
languageName,
33-
new Date(new Date().getTime() + 5 * 365 * 86400000), //5 year
33+
new Date(new Date().getTime() + 5 * 365 * 86400000), // 5 year
3434
abp.appPath
3535
);
3636

3737
location.reload();
3838
}
39-
}
39+
}

angular/src/account/login/login.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, Injector } from '@angular/core';
1+
import { Component, Injector } from '@angular/core';
22
import { AbpSessionService } from '@abp/session/abp-session.service';
33
import { AppComponentBase } from '@shared/app-component-base';
44
import { accountModuleAnimation } from '@shared/animations/routerTransition';
@@ -10,7 +10,7 @@ import { LoginService } from './login.service';
1010
animations: [accountModuleAnimation()]
1111
})
1212
export class LoginComponent extends AppComponentBase {
13-
submitting: boolean = false;
13+
submitting = false;
1414

1515
constructor(
1616
injector: Injector,

angular/src/account/login/login.service.ts

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export class LoginService {
3636

3737
this._tokenAuthService
3838
.authenticate(this.authenticateModel)
39-
.pipe(finalize(() => { finallyCallback() }))
39+
.pipe(finalize(() => { finallyCallback(); }))
4040
.subscribe((result: AuthenticateResultModel) => {
4141
this.processAuthenticateResult(result);
4242
});
@@ -46,11 +46,11 @@ export class LoginService {
4646
this.authenticateResult = authenticateResult;
4747

4848
if (authenticateResult.accessToken) {
49-
//Successfully logged in
49+
// Successfully logged in
5050
this.login(authenticateResult.accessToken, authenticateResult.encryptedAccessToken, authenticateResult.expireInSeconds, this.rememberMe);
5151

5252
} else {
53-
//Unexpected result!
53+
// Unexpected result!
5454

5555
this._logService.warn('Unexpected authenticateResult!');
5656
this._router.navigate(['account/login']);
@@ -59,7 +59,7 @@ export class LoginService {
5959

6060
private login(accessToken: string, encryptedAccessToken: string, expireInSeconds: number, rememberMe?: boolean): void {
6161

62-
var tokenExpireDate = rememberMe ? (new Date(new Date().getTime() + 1000 * expireInSeconds)) : undefined;
62+
let tokenExpireDate = rememberMe ? (new Date(new Date().getTime() + 1000 * expireInSeconds)) : undefined;
6363

6464
this._tokenService.setToken(
6565
accessToken,
@@ -73,7 +73,7 @@ export class LoginService {
7373
abp.appPath
7474
);
7575

76-
var initialUrl = UrlHelper.initialUrl;
76+
let initialUrl = UrlHelper.initialUrl;
7777
if (initialUrl.indexOf('/login') > 0) {
7878
initialUrl = AppConsts.appBaseUrl;
7979
}

angular/src/account/register/register.component.ts

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
import { Component, Injector } from "@angular/core";
2-
import { Router } from "@angular/router";
3-
import { finalize } from "rxjs/operators";
4-
import { AppComponentBase } from "@shared/app-component-base";
5-
import { accountModuleAnimation } from "@shared/animations/routerTransition";
1+
import { Component, Injector } from '@angular/core';
2+
import { Router } from '@angular/router';
3+
import { finalize } from 'rxjs/operators';
4+
import { AppComponentBase } from '@shared/app-component-base';
5+
import { accountModuleAnimation } from '@shared/animations/routerTransition';
66
import {
77
AccountServiceProxy,
88
RegisterInput,
99
RegisterOutput
10-
} from "@shared/service-proxies/service-proxies";
11-
import { LoginService } from "../login/login.service";
10+
} from '@shared/service-proxies/service-proxies';
11+
import { LoginService } from '../login/login.service';
1212

1313
@Component({
14-
templateUrl: "./register.component.html",
15-
animations: [accountModuleAnimation()],
14+
templateUrl: './register.component.html',
15+
animations: [accountModuleAnimation()],
1616
styles: [
1717
`
1818
mat-form-field {
@@ -26,7 +26,7 @@ import { LoginService } from "../login/login.service";
2626
})
2727
export class RegisterComponent extends AppComponentBase {
2828
model: RegisterInput = new RegisterInput();
29-
saving: boolean = false;
29+
saving = false;
3030

3131
constructor(
3232
injector: Injector,
@@ -38,7 +38,7 @@ export class RegisterComponent extends AppComponentBase {
3838
}
3939

4040
back(): void {
41-
this._router.navigate(["/login"]);
41+
this._router.navigate(['/login']);
4242
}
4343

4444
save(): void {
@@ -52,12 +52,12 @@ export class RegisterComponent extends AppComponentBase {
5252
)
5353
.subscribe((result: RegisterOutput) => {
5454
if (!result.canLogin) {
55-
this.notify.success(this.l("SuccessfullyRegistered"));
56-
this._router.navigate(["/login"]);
55+
this.notify.success(this.l('SuccessfullyRegistered'));
56+
this._router.navigate(['/login']);
5757
return;
5858
}
5959

60-
//Autheticate
60+
// Autheticate
6161
this.saving = true;
6262
this._loginService.authenticateModel.userNameOrEmailAddress = this.model.userName;
6363
this._loginService.authenticateModel.password = this.model.password;

angular/src/app/about/about.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, Injector, AfterViewInit } from '@angular/core';
1+
import { Component, Injector, AfterViewInit } from '@angular/core';
22
import { AppComponentBase } from '@shared/app-component-base';
33
import { appModuleAnimation } from '@shared/animations/routerTransition';
44

@@ -13,4 +13,4 @@ export class AboutComponent extends AppComponentBase {
1313
) {
1414
super(injector);
1515
}
16-
}
16+
}

angular/src/app/app.component.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export class AppComponent extends AppComponentBase implements OnInit, AfterViewI
2323
abp.event.on('abp.notifications.received', userNotification => {
2424
abp.notifications.showUiNotifyForUserNotification(userNotification);
2525

26-
//Desktop notification
27-
Push.create("AbpZeroTemplate", {
26+
// Desktop notification
27+
Push.create('AbpZeroTemplate', {
2828
body: userNotification.notification.data.message,
2929
icon: abp.appPath + 'assets/app-logo-small.png',
3030
timeout: 6000,

angular/src/app/home/home.component.ts

Lines changed: 15 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ export class HomeComponent extends AppComponentBase implements AfterViewInit {
1717
ngAfterViewInit(): void {
1818

1919
$(function () {
20-
//Widgets count
20+
// Widgets count
2121
$('.count-to').countTo();
2222

23-
//Sales count to
23+
// Sales count to
2424
$('.sales-count-to').countTo({
2525
formatter: function (value, options) {
2626
return '$' + value.toFixed(2).replace(/(\d)(?=(\d\d\d)+(?!\d))/g, ' ').replace('.', ',');
@@ -32,10 +32,10 @@ export class HomeComponent extends AppComponentBase implements AfterViewInit {
3232
initSparkline();
3333
});
3434

35-
var realtime = 'on';
35+
let realtime = 'on';
3636
function initRealTimeChart() {
37-
//Real time ==========================================================================================
38-
var plot = ($ as any).plot('#real_time_chart', [getRandomData()], {
37+
// Real time ==========================================================================================
38+
let plot = ($ as any).plot('#real_time_chart', [getRandomData()], {
3939
series: {
4040
shadowSize: 0,
4141
color: 'rgb(0, 188, 212)'
@@ -62,7 +62,7 @@ export class HomeComponent extends AppComponentBase implements AfterViewInit {
6262
plot.setData([getRandomData()]);
6363
plot.draw();
6464

65-
var timeout;
65+
let timeout;
6666
if (realtime === 'on') {
6767
timeout = setTimeout(updateRealTime, 320);
6868
} else {
@@ -76,12 +76,12 @@ export class HomeComponent extends AppComponentBase implements AfterViewInit {
7676
realtime = (this as any).checked ? 'on' : 'off';
7777
updateRealTime();
7878
});
79-
//====================================================================================================
79+
// ====================================================================================================
8080
}
8181

8282
function initSparkline() {
83-
$(".sparkline").each(function () {
84-
var $this = $(this);
83+
$('.sparkline').each(function () {
84+
let $this = $(this);
8585
$this.sparkline('html', $this.data());
8686
});
8787
}
@@ -108,24 +108,24 @@ export class HomeComponent extends AppComponentBase implements AfterViewInit {
108108
}],
109109
colors: ['rgb(233, 30, 99)', 'rgb(0, 188, 212)', 'rgb(255, 152, 0)', 'rgb(0, 150, 136)', 'rgb(96, 125, 139)'],
110110
formatter: function (y) {
111-
return y + '%'
111+
return y + '%';
112112
}
113113
});
114114
}
115115

116-
var data = [], totalPoints = 110;
116+
let data = [], totalPoints = 110;
117117
function getRandomData() {
118-
if (data.length > 0) data = data.slice(1);
118+
if (data.length > 0) { data = data.slice(1); }
119119

120120
while (data.length < totalPoints) {
121-
var prev = data.length > 0 ? data[data.length - 1] : 50, y = prev + Math.random() * 10 - 5;
121+
let prev = data.length > 0 ? data[data.length - 1] : 50, y = prev + Math.random() * 10 - 5;
122122
if (y < 0) { y = 0; } else if (y > 100) { y = 100; }
123123

124124
data.push(y);
125125
}
126126

127-
var res = [];
128-
for (var i = 0; i < data.length; ++i) {
127+
let res = [];
128+
for (let i = 0; i < data.length; ++i) {
129129
res.push([i, data[i]]);
130130
}
131131

0 commit comments

Comments
 (0)