added TSLint for TypeScript code style checking, fixed associated errors
This commit is contained in:
parent
6a7722cadb
commit
41e7e559a6
43 changed files with 253 additions and 730 deletions
|
@ -45,7 +45,8 @@ export function provideRun($rootScope: QuayRunScope,
|
|||
return true;
|
||||
}
|
||||
|
||||
const invalid_token: boolean = response.data['title'] == 'invalid_token' || response.data['error_type'] == 'invalid_token';
|
||||
const invalid_token: boolean = response.data['title'] == 'invalid_token' ||
|
||||
response.data['error_type'] == 'invalid_token';
|
||||
if (response !== undefined &&
|
||||
response.status == 401 &&
|
||||
invalid_token &&
|
||||
|
@ -92,7 +93,7 @@ export function provideRun($rootScope: QuayRunScope,
|
|||
}
|
||||
});
|
||||
|
||||
$rootScope.$on('$routeChangeSuccess', function (event, current, previous) {
|
||||
$rootScope.$on('$routeChangeSuccess', function(event, current, previous) {
|
||||
$rootScope.current = current.$$route;
|
||||
$rootScope.currentPage = current;
|
||||
$rootScope.pageClass = '';
|
||||
|
@ -126,7 +127,7 @@ interface QuayRunScope extends ng.IRootScopeService {
|
|||
currentPage: any;
|
||||
current: any;
|
||||
title: any;
|
||||
description: string,
|
||||
description: string;
|
||||
pageClass: any;
|
||||
newLayout: any;
|
||||
fixFooter: any;
|
||||
|
|
Reference in a new issue