Fix eslint errors for empty functions/constructors
This commit is contained in:
parent
8fefc22669
commit
9067b0e397
19 changed files with 50 additions and 37 deletions
|
@ -166,7 +166,6 @@ function Guide(options) {
|
|||
stopAutoRefresh();
|
||||
|
||||
Events.off(serverNotifications, 'TimerCreated', onTimerCreated);
|
||||
Events.off(serverNotifications, 'SeriesTimerCreated', onSeriesTimerCreated);
|
||||
Events.off(serverNotifications, 'TimerCancelled', onTimerCancelled);
|
||||
Events.off(serverNotifications, 'SeriesTimerCancelled', onSeriesTimerCancelled);
|
||||
|
||||
|
@ -1057,9 +1056,6 @@ function Guide(options) {
|
|||
}
|
||||
}
|
||||
|
||||
function onSeriesTimerCreated() {
|
||||
}
|
||||
|
||||
function onTimerCancelled(e, apiClient, data) {
|
||||
const id = data.Id;
|
||||
// find guide cells by timer id, remove timer icon
|
||||
|
@ -1186,7 +1182,6 @@ function Guide(options) {
|
|||
Events.trigger(self, 'load');
|
||||
|
||||
Events.on(serverNotifications, 'TimerCreated', onTimerCreated);
|
||||
Events.on(serverNotifications, 'SeriesTimerCreated', onSeriesTimerCreated);
|
||||
Events.on(serverNotifications, 'TimerCancelled', onTimerCancelled);
|
||||
Events.on(serverNotifications, 'SeriesTimerCancelled', onSeriesTimerCancelled);
|
||||
|
||||
|
|
|
@ -3322,6 +3322,7 @@ class PlaybackManager {
|
|||
mediaSource.MediaStreams = info.MediaStreams;
|
||||
Events.trigger(player, 'mediastreamschange');
|
||||
}, function () {
|
||||
// Swallow errors
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -183,14 +183,14 @@ class GenericPlayer {
|
|||
* Unpauses the player.
|
||||
*/
|
||||
localUnpause() {
|
||||
|
||||
// Override
|
||||
}
|
||||
|
||||
/**
|
||||
* Pauses the player.
|
||||
*/
|
||||
localPause() {
|
||||
|
||||
// Override
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -199,14 +199,14 @@ class GenericPlayer {
|
|||
*/
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
localSeek(positionTicks) {
|
||||
|
||||
// Override
|
||||
}
|
||||
|
||||
/**
|
||||
* Stops the player.
|
||||
*/
|
||||
localStop() {
|
||||
|
||||
// Override
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -215,7 +215,7 @@ class GenericPlayer {
|
|||
*/
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
localSendCommand(command) {
|
||||
|
||||
// Override
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -224,7 +224,7 @@ class GenericPlayer {
|
|||
*/
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
localPlay(options) {
|
||||
|
||||
// Override
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -233,7 +233,7 @@ class GenericPlayer {
|
|||
*/
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
localSetCurrentPlaylistItem(playlistItemId) {
|
||||
|
||||
// Override
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -242,7 +242,7 @@ class GenericPlayer {
|
|||
*/
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
localRemoveFromPlaylist(playlistItemIds) {
|
||||
|
||||
// Override
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -252,7 +252,7 @@ class GenericPlayer {
|
|||
*/
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
localMovePlaylistItem(playlistItemId, newIndex) {
|
||||
|
||||
// Override
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -261,7 +261,7 @@ class GenericPlayer {
|
|||
*/
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
localQueue(options) {
|
||||
|
||||
// Override
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -270,21 +270,21 @@ class GenericPlayer {
|
|||
*/
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
localQueueNext(options) {
|
||||
|
||||
// Override
|
||||
}
|
||||
|
||||
/**
|
||||
* Picks next item in playlist.
|
||||
*/
|
||||
localNextItem() {
|
||||
|
||||
// Override
|
||||
}
|
||||
|
||||
/**
|
||||
* Picks previous item in playlist.
|
||||
*/
|
||||
localPreviousItem() {
|
||||
|
||||
// Override
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -293,7 +293,7 @@ class GenericPlayer {
|
|||
*/
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
localSetRepeatMode(value) {
|
||||
|
||||
// Override
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -302,14 +302,14 @@ class GenericPlayer {
|
|||
*/
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
localSetQueueShuffleMode(value) {
|
||||
|
||||
// Override
|
||||
}
|
||||
|
||||
/**
|
||||
* Toggles shuffle mode.
|
||||
*/
|
||||
localToggleQueueShuffleMode() {
|
||||
|
||||
// Override
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -24,7 +24,7 @@ function onViewDestroy() {
|
|||
}
|
||||
|
||||
function onBeforeTabChange() {
|
||||
|
||||
// no-op
|
||||
}
|
||||
|
||||
class TabbedView {
|
||||
|
|
|
@ -56,8 +56,6 @@ function showIfAllowed(context, selector, visible) {
|
|||
}
|
||||
|
||||
class ViewSettings {
|
||||
constructor() {
|
||||
}
|
||||
show(options) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
const dialogOptions = {
|
||||
|
|
|
@ -263,7 +263,9 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
|||
reloadItems(tabContent);
|
||||
};
|
||||
|
||||
this.destroy = function () {};
|
||||
this.destroy = function () {
|
||||
// TODO: Remove if unused
|
||||
};
|
||||
}
|
||||
|
||||
/* eslint-enable indent */
|
||||
|
|
|
@ -274,7 +274,9 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
|||
this.alphaPicker?.updateControls(getQuery(tabContent));
|
||||
};
|
||||
|
||||
this.destroy = function () {};
|
||||
this.destroy = function () {
|
||||
// TODO: Remove if unused
|
||||
};
|
||||
}
|
||||
|
||||
/* eslint-enable indent */
|
||||
|
|
|
@ -299,7 +299,9 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
|||
this.alphaPicker?.updateControls(getQuery());
|
||||
};
|
||||
|
||||
this.destroy = function () {};
|
||||
this.destroy = function () {
|
||||
// TODO: Remove if unused
|
||||
};
|
||||
}
|
||||
|
||||
/* eslint-enable indent */
|
||||
|
|
|
@ -240,7 +240,9 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
|||
this.alphaPicker?.updateControls(getQuery(tabContent));
|
||||
};
|
||||
|
||||
this.destroy = function () {};
|
||||
this.destroy = function () {
|
||||
// TODO: Remove if unused
|
||||
};
|
||||
}
|
||||
|
||||
/* eslint-enable indent */
|
||||
|
|
|
@ -200,7 +200,9 @@ import Dashboard from '../../scripts/clientUtils';
|
|||
reloadItems(tabContent);
|
||||
};
|
||||
|
||||
self.destroy = function () {};
|
||||
self.destroy = function () {
|
||||
// TODO: Remove if unused
|
||||
};
|
||||
}
|
||||
|
||||
/* eslint-enable indent */
|
||||
|
|
|
@ -247,7 +247,9 @@ import Dashboard from '../../scripts/clientUtils';
|
|||
reloadItems(tabContent);
|
||||
};
|
||||
|
||||
self.destroy = function () {};
|
||||
self.destroy = function () {
|
||||
// TODO: Remove if unused
|
||||
};
|
||||
}
|
||||
|
||||
/* eslint-enable indent */
|
||||
|
|
|
@ -298,7 +298,9 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
|||
this.alphaPicker?.updateControls(getQuery(tabContent));
|
||||
};
|
||||
|
||||
this.destroy = function () {};
|
||||
this.destroy = function () {
|
||||
// TODO: Remove if unused
|
||||
};
|
||||
}
|
||||
|
||||
/* eslint-enable indent */
|
||||
|
|
|
@ -74,7 +74,7 @@ import template from './emby-progressring.template.html';
|
|||
};
|
||||
|
||||
EmbyProgressRing.attachedCallback = function () {
|
||||
|
||||
// no-op
|
||||
};
|
||||
|
||||
EmbyProgressRing.detachedCallback = function () {
|
||||
|
|
|
@ -6,7 +6,9 @@ import '../emby-button/paper-icon-button-light';
|
|||
|
||||
const EmbyScrollButtonsPrototype = Object.create(HTMLDivElement.prototype);
|
||||
|
||||
EmbyScrollButtonsPrototype.createdCallback = function () {};
|
||||
EmbyScrollButtonsPrototype.createdCallback = function () {
|
||||
// no-op
|
||||
};
|
||||
|
||||
function getScrollButtonHtml(direction) {
|
||||
let html = '';
|
||||
|
|
|
@ -1056,6 +1056,7 @@ class ChromecastPlayer {
|
|||
}
|
||||
|
||||
getCurrentPlaylistItemId() {
|
||||
// not supported?
|
||||
}
|
||||
|
||||
setCurrentPlaylistItem() {
|
||||
|
|
|
@ -451,6 +451,7 @@ class SessionPlayer {
|
|||
}
|
||||
|
||||
getRepeatMode() {
|
||||
// not supported?
|
||||
}
|
||||
|
||||
setQueueShuffleMode(mode) {
|
||||
|
@ -460,6 +461,7 @@ class SessionPlayer {
|
|||
}
|
||||
|
||||
getQueueShuffleMode() {
|
||||
// not supported?
|
||||
}
|
||||
|
||||
displayContent(options) {
|
||||
|
@ -488,6 +490,7 @@ class SessionPlayer {
|
|||
}
|
||||
|
||||
getCurrentPlaylistItemId() {
|
||||
// not supported?
|
||||
}
|
||||
|
||||
setCurrentPlaylistItem() {
|
||||
|
|
|
@ -256,11 +256,13 @@ class YoutubePlayer {
|
|||
return this._currentSrc;
|
||||
}
|
||||
setSubtitleStreamIndex() {
|
||||
// not supported
|
||||
}
|
||||
canSetAudioStreamIndex() {
|
||||
return false;
|
||||
}
|
||||
setAudioStreamIndex() {
|
||||
// not supported
|
||||
}
|
||||
// Save this for when playback stops, because querying the time at that point might return 0
|
||||
currentTime(val) {
|
||||
|
|
|
@ -155,7 +155,7 @@ export function alert(options) {
|
|||
baseAlert({
|
||||
title: options.title || globalize.translate('HeaderAlert'),
|
||||
text: options.message
|
||||
}).then(options.callback || function () {});
|
||||
}).then(options.callback || function () { /* no-op */ });
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -20,9 +20,6 @@ const defaultSubtitleAppearanceSettings = {
|
|||
};
|
||||
|
||||
export class UserSettings {
|
||||
constructor() {
|
||||
}
|
||||
|
||||
/**
|
||||
* Bind UserSettings instance to user.
|
||||
* @param {string} - User identifier.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue