fixed lint errors

This commit is contained in:
Timo Bejan 2020-10-04 20:49:49 +03:00
parent 6eed5efedb
commit c232f8f63f
4 changed files with 4 additions and 3 deletions

View File

@ -10,7 +10,7 @@ import {JwksValidationHandler} from "angular-oauth2-oidc-jwks";
@Injectable()
export class AuthGuard implements CanActivate {
private _configured: boolean = false;
private _configured = false;
constructor(private readonly _oauthService: OAuthService, private readonly _appConfigService: AppConfigService) {
}

View File

@ -23,7 +23,7 @@ export class FileUploadService {
files.forEach(newFile => {
this._fileUploadControllerService.uploadFileForm(newFile.file, this._appStateService.activeProject.projectId, 'events', true).subscribe((event) => {
if (event.type === HttpEventType.UploadProgress) {
newFile.progress = (event.loaded / (event.total || event.loaded) * 100) | 0;
newFile.progress = Math.round((event.loaded / (event.total || event.loaded) * 100));
}
if (event.type === HttpEventType.Response) {
if (event.status < 300) {

View File

@ -10,7 +10,7 @@ import {OverlayRef} from "@angular/cdk/overlay";
})
export class UploadStatusOverlay implements OnInit {
collapsed: boolean = false;
collapsed = false;
constructor(public readonly uploadService: FileUploadService, private readonly _overlayRef: OverlayRef) {

View File

@ -3,6 +3,7 @@
"version": "0.0.25",
"license": "MIT",
"scripts": {
"build-lint-all": "ng lint --project=red-ui-http --fix && ng build --project=red-ui-http && ng lint --project=red-ui --fix && ng build --project=red-ui --prod",
"nx": "nx",
"start": "nx serve",
"build": "nx build",