Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
// Check authentication when coming back online
// This is also run on first load when the websocket connects for the first time
if (status && !this.isAppLoading) {
this.authService.checkOnlineAuth();

Check warning on line 123 in src/SIL.XForge.Scripture/ClientApp/src/app/app.component.ts

View workflow job for this annotation

GitHub Actions / Lint and Prettier (22.13.0, 10.9.2)

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
}
});

Expand All @@ -134,7 +134,6 @@
);
navEndEvent$.pipe(quietTakeUntilDestroyed(this.destroyRef)).subscribe(e => {
if (this.isAppOnline) {
// eslint-disable-next-line @typescript-eslint/naming-convention
gtag('config', 'UA-22170471-15', { page_path: e.urlAfterRedirects });
}
});
Expand Down Expand Up @@ -280,7 +279,7 @@
if (this._selectedProjectDoc == null || !this._selectedProjectDoc.isLoaded) {
return;
}
this.userService.setCurrentProjectId(this.currentUserDoc!, this._selectedProjectDoc.id);

Check warning on line 282 in src/SIL.XForge.Scripture/ClientApp/src/app/app.component.ts

View workflow job for this annotation

GitHub Actions / Lint and Prettier (22.13.0, 10.9.2)

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
this.projectUserConfigDoc = await this.projectService.getUserConfig(
this._selectedProjectDoc.id,
this.currentUserDoc!.id
Expand All @@ -292,7 +291,7 @@
// handle remotely deleted project
const userDoc = this.currentUserDoc;
if (userDoc != null && this.userService.currentProjectId(userDoc) != null) {
this.showProjectDeletedDialog();

Check warning on line 294 in src/SIL.XForge.Scripture/ClientApp/src/app/app.component.ts

View workflow job for this annotation

GitHub Actions / Lint and Prettier (22.13.0, 10.9.2)

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
}
});

Expand All @@ -312,8 +311,8 @@
// See if the user was removed from the project
if (!(this.currentUserDoc.id in this._selectedProjectDoc.data.userRoles)) {
// The user has been removed from the project
this.showProjectDeletedDialog();

Check warning on line 314 in src/SIL.XForge.Scripture/ClientApp/src/app/app.component.ts

View workflow job for this annotation

GitHub Actions / Lint and Prettier (22.13.0, 10.9.2)

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
this.projectService.localDelete(this._selectedProjectDoc.id);

Check warning on line 315 in src/SIL.XForge.Scripture/ClientApp/src/app/app.component.ts

View workflow job for this annotation

GitHub Actions / Lint and Prettier (22.13.0, 10.9.2)

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
}

if (this.projectUserConfigDoc != null) {
Expand Down Expand Up @@ -349,29 +348,29 @@

setLocale(locale: string): void {
this.i18n.setLocale(locale);
this.authService.updateInterfaceLanguage(locale);

Check warning on line 351 in src/SIL.XForge.Scripture/ClientApp/src/app/app.component.ts

View workflow job for this annotation

GitHub Actions / Lint and Prettier (22.13.0, 10.9.2)

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
}

changePassword(): void {
if (this.currentUser == null) {
return;
} else if (!this.isAppOnline) {
this.noticeService.show(this.i18n.translateStatic('app.action_not_available_offline'));

Check warning on line 358 in src/SIL.XForge.Scripture/ClientApp/src/app/app.component.ts

View workflow job for this annotation

GitHub Actions / Lint and Prettier (22.13.0, 10.9.2)

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
} else {
this.authService
.changePassword(this.currentUser.email)
.then(() => {
this.noticeService.show(this.i18n.translateStatic('app.password_reset_email_sent'));

Check warning on line 363 in src/SIL.XForge.Scripture/ClientApp/src/app/app.component.ts

View workflow job for this annotation

GitHub Actions / Lint and Prettier (22.13.0, 10.9.2)

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
})
.catch(() => {
this.dialogService.message('app.cannot_change_password');

Check warning on line 366 in src/SIL.XForge.Scripture/ClientApp/src/app/app.component.ts

View workflow job for this annotation

GitHub Actions / Lint and Prettier (22.13.0, 10.9.2)

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
});
}
}

editName(): void {
if (this.isAppOnline) {
this.userService.editDisplayName(false);

Check warning on line 373 in src/SIL.XForge.Scripture/ClientApp/src/app/app.component.ts

View workflow job for this annotation

GitHub Actions / Lint and Prettier (22.13.0, 10.9.2)

Promises must be awaited, end with a call to .catch, end with a call to .then with a rejection handler or be explicitly marked as ignored with the `void` operator
} else {
this.noticeService.show(this.i18n.translateStatic('app.action_not_available_offline'));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,6 @@ export interface AudioRecorderDialogResult {
styleUrl: './audio-recorder-dialog.component.scss',
imports: [UICommonModule, CommonModule, SharedModule, TranslocoModule]
})
/* eslint-disable brace-style */
export class AudioRecorderDialogComponent implements ControlValueAccessor, OnInit, OnDestroy {
@ViewChild(SingleButtonAudioPlayerComponent) audioPlayer?: SingleButtonAudioPlayerComponent;
@Output() status = new EventEmitter<AudioAttachment>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ export class CopyrightBannerComponent {
// allowing non-null assertion for this.notice as the link to open the dialog is only shown when
// this.notice is defined (this.showMoreInfo)

// eslint-disable-next-line @typescript-eslint/no-non-null-assertion
let copyrightNotice = this.notice!.trim();
if (copyrightNotice[0] !== '<') {
// If copyright is plain text, remove the first line and add paragraph markers.
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,6 @@ export class DraftSourcesComponent extends DataLoadingComponent implements Confi
static readonly projectSettingValueUnset = 'unset';

// Expose ElementState enum to template.
// eslint-disable-next-line @typescript-eslint/naming-convention
ElementState = ElementState;

step = 1;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
/* eslint-disable brace-style */
import { Injectable } from '@angular/core';
import { Observable, of, Subscription, timer } from 'rxjs';
import { map, takeWhile } from 'rxjs/operators';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { NoticeService } from './notice.service';
*/
// Decorator required by Angular compiler
@Directive()
// eslint-disable-next-line @angular-eslint/directive-class-suffix
export abstract class DataLoadingComponent implements OnDestroy {
private _isLoading$ = new BehaviorSubject<boolean>(false);
private _isLoaded$ = new BehaviorSubject<boolean>(false);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { Subscription } from 'rxjs';

// Decorator required by Angular compiler
@Directive()
// eslint-disable-next-line @angular-eslint/directive-class-suffix
export class Paginator extends MatPaginatorIntl implements OnDestroy {
itemsPerPageLabel = '';
nextPageLabel = '';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import { takeUntil } from 'rxjs/operators';
*/
// Decorator required by Angular compiler
@Directive()
// eslint-disable-next-line @angular-eslint/directive-class-suffix
export abstract class SubscriptionDisposable implements OnDestroy {
protected ngUnsubscribe: Subject<void> = new Subject<void>();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,5 @@ export class WriteStatusComponent {
@Input() state?: ElementState;
@Input() formGroup?: FormGroup;

// eslint-disable-next-line @typescript-eslint/naming-convention
ElementState = ElementState;
}
Loading