1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

fixes for lint errors

added missing packages for lint
removed unecessary babel/polyfill
This commit is contained in:
vitorsemeano 2020-10-19 20:25:58 +01:00
parent 03e659e629
commit a48d466e6a
21 changed files with 26 additions and 31 deletions

View file

@ -18,7 +18,7 @@ class ServerConnections extends ConnectionManager {
if (!AppInfo.isNativeApp) {
console.debug('creating ApiClient singleton');
var apiClient = new ApiClient(
const apiClient = new ApiClient(
Dashboard.serverAddress(),
appHost.appName(),
appHost.appVersion(),

View file

@ -311,7 +311,7 @@ function askForExit() {
});
}
let deviceId = getDeviceId();
const deviceId = getDeviceId();
const deviceName = getDeviceName();
const appName = 'Jellyfin Web';
const appVersion = '10.7.0';

View file

@ -194,7 +194,7 @@ function initEditor(context, settings) {
}
}
function loadDynamicFilters(context, options) {
var apiClient = ServerConnections.getApiClient(options.serverId);
const apiClient = ServerConnections.getApiClient(options.serverId);
const filterMenuOptions = Object.assign(options.filterMenuOptions, {

View file

@ -2,6 +2,8 @@ import { playbackManager } from '../playback/playbackmanager';
import nowPlayingHelper from '../playback/nowplayinghelper';
import { Events } from 'jellyfin-apiclient';
import ServerConnections from '../ServerConnections';
import shell from '../../scripts/shell';
/* eslint-disable indent */
// Reports media playback to the device for lock screen control

View file

@ -251,7 +251,7 @@ export function show(options) {
return showWithUser(options, player, null);
}
var apiClient = ServerConnections.getApiClient(currentItem.ServerId);
const apiClient = ServerConnections.getApiClient(currentItem.ServerId);
return apiClient.getCurrentUser().then(function (user) {
return showWithUser(options, player, user);
});

View file

@ -414,7 +414,7 @@ import ServerConnections from '../ServerConnections';
name: 'Original Media Info'
});
var apiClient = ServerConnections.getApiClient(playbackManager.currentItem(player).ServerId);
const apiClient = ServerConnections.getApiClient(playbackManager.currentItem(player).ServerId);
if (syncPlayManager.isSyncPlayEnabled() && apiClient.isMinServerVersion('10.6.0')) {
categories.push({
stats: getSyncPlayStats(),

View file

@ -1,5 +1,6 @@
import globalize from '../../scripts/globalize';
import toast from '../toast/toast';
import Dashboard from '../../scripts/clientUtils';
export class QuickConnectSettings {
constructor() { }

View file

@ -17,7 +17,7 @@ import './remotecontrol.css';
import '../../elements/emby-ratingbutton/emby-ratingbutton';
import ServerConnections from '../ServerConnections';
import toast from '../toast/toast';
import { appRouter } from "../appRouter";
import { appRouter } from '../appRouter';
/*eslint prefer-const: "error"*/

View file

@ -9,6 +9,7 @@ import '../../elements/emby-select/emby-select';
import '../../elements/emby-button/emby-button';
import '../../assets/css/flexstyles.css';
import Dashboard from '../../scripts/clientUtils';
import { Events } from 'jellyfin-apiclient';
export default function (page, providerId, options) {
function reload() {

View file

@ -6,6 +6,7 @@ import '../../elements/emby-input/emby-input';
import '../listview/listview.css';
import '../../elements/emby-button/paper-icon-button-light';
import Dashboard from '../../scripts/clientUtils';
import { Events } from 'jellyfin-apiclient';
export default function (page, providerId, options) {
function getListingProvider(config, id) {

View file

@ -99,6 +99,7 @@ function dispatchViewEvent(view, eventInfo, eventName, isCancellable) {
function getViewEventDetail(view, {state, url, options = {}}, isRestored) {
const index = url.indexOf('?');
// eslint-disable-next-line compat/compat
const searchParams = new URLSearchParams(url.substring(index + 1));
const params = {};