Appease the linter

This commit is contained in:
Travis Ralston 2020-12-28 21:05:45 -07:00
parent 587c3611d3
commit 88b155d81f
12 changed files with 17 additions and 15 deletions

View File

@ -168,7 +168,7 @@ export class DimensionBigBlueButtonService {
url: string,
qs?: any,
body?: any,
followRedirect: boolean = true,
followRedirect = true,
): Promise<any> {
// Query a URL, expecting an HTML response in return
return new Promise((resolve, reject) => {

View File

@ -44,7 +44,7 @@ export class AdminSlackBridgeManageSelfhostedComponent implements ModalComponent
});
} else {
this.slackApi.updateSelfhosted(this.bridgeId, this.provisionUrl).then(() => {
this.translate.get('Slack bridge updated').subscribe((res: string) => {this.toaster.pop("success", res);});
this.translate.get('Slack bridge updated').subscribe((res: string) => this.toaster.pop("success", res));
this.dialog.close();
}).catch(err => {
console.error(err);

View File

@ -16,7 +16,7 @@ export class EtherpadWidgetConfigComponent extends WidgetComponent {
private etherpadWidget: FE_EtherpadWidget = <FE_EtherpadWidget>SessionStorage.editIntegration;
constructor(private nameService: NameService, public translate: TranslateService) {
super(WIDGET_ETHERPAD, "Notes", "generic", translate ,"etherpad", "padName");
super(WIDGET_ETHERPAD, "Notes", "generic", translate, "etherpad", "padName");
}
protected OnWidgetsDiscovered(widgets: EditableWidget[]): void {

View File

@ -9,7 +9,7 @@ import { TranslateService } from "@ngx-translate/core";
})
export class GrafanaWidgetConfigComponent extends WidgetComponent {
constructor(public translate: TranslateService) {
super(WIDGET_GRAFANA, "Grafana", "generic-fullscreen", translate ,"grafana");
super(WIDGET_GRAFANA, "Grafana", "generic-fullscreen", translate, "grafana");
}
protected OnWidgetsDiscovered(widgets: EditableWidget[]) {

View File

@ -10,7 +10,7 @@ import { TranslateService } from "@ngx-translate/core";
export class SpotifyWidgetConfigComponent extends WidgetComponent {
constructor(public translate: TranslateService) {
super(WIDGET_SPOTIFY, "Spotify", DISABLE_AUTOMATIC_WRAPPING, translate,"spotify");
super(WIDGET_SPOTIFY, "Spotify", DISABLE_AUTOMATIC_WRAPPING, translate, "spotify");
}
protected OnNewWidgetPrepared(widget: EditableWidget): void {

View File

@ -75,7 +75,7 @@ export class TradingViewWidgetConfigComponent extends WidgetComponent {
];
constructor(public translate: TranslateService) {
super(WIDGET_TRADINGVIEW, "TradingView Chart", DISABLE_AUTOMATIC_WRAPPING, translate,"tradingView");
super(WIDGET_TRADINGVIEW, "TradingView Chart", DISABLE_AUTOMATIC_WRAPPING, translate, "tradingView");
}
protected OnNewWidgetPrepared(widget: EditableWidget): void {

View File

@ -9,7 +9,7 @@ import { TranslateService } from "@ngx-translate/core";
})
export class TwitchWidgetConfigComponent extends WidgetComponent {
constructor(public translate: TranslateService) {
super(WIDGET_TWITCH, "Twitch Livestream", "video", translate ,"twitch");
super(WIDGET_TWITCH, "Twitch Livestream", "video", translate , "twitch");
}
protected OnNewWidgetPrepared(widget: EditableWidget) {

View File

@ -12,7 +12,7 @@ import { TranslateService } from "@ngx-translate/core";
})
export class YoutubeWidgetConfigComponent extends WidgetComponent {
constructor(public translate: TranslateService) {
super(WIDGET_YOUTUBE, "Video", "video", translate,"youtube");
super(WIDGET_YOUTUBE, "Video", "video", translate, "youtube");
this.translate = translate;
}

View File

@ -20,7 +20,9 @@ export class PageHeaderComponent {
while (currentRoute.children.length > 0) {
let children = currentRoute.children;
children.forEach(route => {
if (route.snapshot.data['breadcrumb']){this.translate.get(route.snapshot.data['breadcrumb']).subscribe((res: string) => {route.snapshot.data['breadcrumb'] = res}); }
if (route.snapshot.data['breadcrumb']) {
this.translate.get(route.snapshot.data['breadcrumb']).subscribe((res: string) => {route.snapshot.data['breadcrumb'] = res});
}
currentRoute = route;
url += "/" + route.snapshot.url.map(s => s.path).join("/");
if (route.outlet !== PRIMARY_OUTLET) return;

View File

@ -286,7 +286,7 @@ export class RiotHomeComponent {
const processPayload = payload => {
const response = <any>payload.response;
if (response === true) return Promise.resolve();
if (response.error || response.error.message){
if (response.error || response.error.message) {
let message: string;
this.translate.get('You cannot modify widgets in this room').subscribe((res: string) => {message = res});
return Promise.reject(message);

View File

@ -43,7 +43,7 @@ export class BigBlueButtonWidgetWrapperComponent extends CapableWidget implement
/**
* Whether we are currently in a meeting
*/
private inMeeting: boolean = false;
private inMeeting = false;
/**
* The URL to embed into the iframe
@ -95,7 +95,7 @@ export class BigBlueButtonWidgetWrapperComponent extends CapableWidget implement
ScalarWidgetApi.sendSetAlwaysOnScreen(true);
}
public joinConference(updateStatusMessage: boolean = true) {
public joinConference(updateStatusMessage = true) {
if (updateStatusMessage) {
// Inform the user that we're loading their meeting
this.statusMessage = "Joining conference...";
@ -109,7 +109,7 @@ export class BigBlueButtonWidgetWrapperComponent extends CapableWidget implement
this.bigBlueButtonApi.joinMeeting(this.conferenceUrl, joinName).then((response) => {
if ("errorCode" in response) {
// This is an instance of ApiError
if (response.errorCode == "WAITING_FOR_MEETING_START") {
if (response.errorCode === "WAITING_FOR_MEETING_START") {
// The meeting hasn't started yet
this.statusMessage = "Waiting for conference to start...";

View File

@ -5,7 +5,7 @@ import {
transition,
trigger
} from '@angular/animations';
import { ChangeDetectorRef, Component, OnDestroy, OnInit } from "@angular/core";
import { AfterViewInit, ChangeDetectorRef, Component, OnDestroy, OnInit } from "@angular/core";
import { ActivatedRoute } from "@angular/router";
import { CapableWidget, WIDGET_API_VERSION_OPENID } from "../capable-widget";
import { fromEvent } from 'rxjs';
@ -45,7 +45,7 @@ import { WIDGET_STICKER_PICKER } from "../../shared/models/widget";
]
})
export class StickerPickerWidgetWrapperComponent extends CapableWidget implements OnInit, OnDestroy {
export class StickerPickerWidgetWrapperComponent extends CapableWidget implements OnInit, OnDestroy, AfterViewInit {
public isLoading = true;
public isListVisible = true;