mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Fix indentation issues
This commit is contained in:
parent
52c8cffc82
commit
f2726653ae
120 changed files with 30271 additions and 30631 deletions
|
@ -1,6 +1,3 @@
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module for controlling user parental control from.
|
* Module for controlling user parental control from.
|
||||||
* @module components/accessSchedule/accessSchedule
|
* @module components/accessSchedule/accessSchedule
|
||||||
|
@ -91,8 +88,6 @@ import template from './accessSchedule.template.html';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
show: show
|
show: show
|
||||||
};
|
};
|
||||||
|
|
|
@ -11,8 +11,6 @@ import alert from './alert';
|
||||||
import { getLocale } from '../utils/dateFnsLocale.ts';
|
import { getLocale } from '../utils/dateFnsLocale.ts';
|
||||||
import { toBoolean } from '../utils/string.ts';
|
import { toBoolean } from '../utils/string.ts';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function getEntryHtml(entry, apiClient) {
|
function getEntryHtml(entry, apiClient) {
|
||||||
let html = '';
|
let html = '';
|
||||||
html += '<div class="listItem listItem-border">';
|
html += '<div class="listItem listItem-border">';
|
||||||
|
@ -169,5 +167,3 @@ class ActivityLog {
|
||||||
}
|
}
|
||||||
|
|
||||||
export default ActivityLog;
|
export default ActivityLog;
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -3,8 +3,6 @@ import browser from '../scripts/browser';
|
||||||
import dialog from './dialog/dialog';
|
import dialog from './dialog/dialog';
|
||||||
import globalize from '../scripts/globalize';
|
import globalize from '../scripts/globalize';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function useNativeAlert() {
|
function useNativeAlert() {
|
||||||
// webOS seems to block modals
|
// webOS seems to block modals
|
||||||
// Tizen 2.x seems to block modals
|
// Tizen 2.x seems to block modals
|
||||||
|
@ -43,5 +41,3 @@ import globalize from '../scripts/globalize';
|
||||||
return dialog.show(options);
|
return dialog.show(options);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module alphaPicker.
|
* Module alphaPicker.
|
||||||
* @module components/alphaPicker/alphaPicker
|
* @module components/alphaPicker/alphaPicker
|
||||||
|
@ -320,5 +318,4 @@ import 'material-design-icons-iconfont';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
export default AlphaPicker;
|
export default AlphaPicker;
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module for performing auto-focus.
|
* Module for performing auto-focus.
|
||||||
* @module components/autoFocuser
|
* @module components/autoFocuser
|
||||||
|
@ -94,8 +92,6 @@ import layoutManager from './layoutManager';
|
||||||
return focusedElement;
|
return focusedElement;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
isEnabled: isEnabled,
|
isEnabled: isEnabled,
|
||||||
enable: enable,
|
enable: enable,
|
||||||
|
|
|
@ -7,8 +7,6 @@ import ServerConnections from '../ServerConnections';
|
||||||
|
|
||||||
import './backdrop.scss';
|
import './backdrop.scss';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function enableAnimation() {
|
function enableAnimation() {
|
||||||
return !browser.slow;
|
return !browser.slow;
|
||||||
}
|
}
|
||||||
|
@ -282,8 +280,6 @@ import './backdrop.scss';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @enum TransparencyLevel
|
* @enum TransparencyLevel
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module for building cards from item data.
|
* Module for building cards from item data.
|
||||||
|
@ -1753,8 +1752,6 @@ import { appRouter } from '../appRouter';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
getCardsHtml: getCardsHtml,
|
getCardsHtml: getCardsHtml,
|
||||||
getDefaultBackgroundClass: getDefaultBackgroundClass,
|
getDefaultBackgroundClass: getDefaultBackgroundClass,
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module for building cards from item data.
|
* Module for building cards from item data.
|
||||||
|
@ -128,8 +127,6 @@ import ServerConnections from '../ServerConnections';
|
||||||
imageLoader.lazyChildren(options.itemsContainer);
|
imageLoader.lazyChildren(options.itemsContainer);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
buildChapterCards: buildChapterCards
|
buildChapterCards: buildChapterCards
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module for building cards from item data.
|
* Module for building cards from item data.
|
||||||
|
@ -20,8 +19,6 @@ import cardBuilder from './cardBuilder';
|
||||||
cardBuilder.buildCards(items, options);
|
cardBuilder.buildCards(items, options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
buildPeopleCards: buildPeopleCards
|
buildPeopleCards: buildPeopleCards
|
||||||
};
|
};
|
||||||
|
|
|
@ -16,8 +16,6 @@ import '../../styles/flexstyles.scss';
|
||||||
import ServerConnections from '../ServerConnections';
|
import ServerConnections from '../ServerConnections';
|
||||||
import toast from '../toast/toast';
|
import toast from '../toast/toast';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
let currentServerId;
|
let currentServerId;
|
||||||
|
|
||||||
function onSubmit(e) {
|
function onSubmit(e) {
|
||||||
|
@ -265,5 +263,4 @@ import toast from '../toast/toast';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
export default CollectionEditor;
|
export default CollectionEditor;
|
||||||
|
|
|
@ -13,8 +13,6 @@ import '../formdialog.scss';
|
||||||
import '../../styles/flexstyles.scss';
|
import '../../styles/flexstyles.scss';
|
||||||
import template from './dialog.template.html';
|
import template from './dialog.template.html';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function showDialog(options = { dialogOptions: {}, buttons: [] }) {
|
function showDialog(options = { dialogOptions: {}, buttons: [] }) {
|
||||||
const dialogOptions = {
|
const dialogOptions = {
|
||||||
removeOnClose: true,
|
removeOnClose: true,
|
||||||
|
@ -135,7 +133,6 @@ import template from './dialog.template.html';
|
||||||
return showDialog(options);
|
return showDialog(options);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
export default {
|
export default {
|
||||||
show: show
|
show: show
|
||||||
};
|
};
|
||||||
|
|
|
@ -9,8 +9,6 @@ import dom from '../../scripts/dom';
|
||||||
import './dialoghelper.scss';
|
import './dialoghelper.scss';
|
||||||
import '../../styles/scrollstyles.scss';
|
import '../../styles/scrollstyles.scss';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
let globalOnOpenCallback;
|
let globalOnOpenCallback;
|
||||||
|
|
||||||
function enableAnimation() {
|
function enableAnimation() {
|
||||||
|
@ -507,8 +505,6 @@ import '../../styles/scrollstyles.scss';
|
||||||
globalOnOpenCallback = val;
|
globalOnOpenCallback = val;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
open: open,
|
open: open,
|
||||||
close: close,
|
close: close,
|
||||||
|
|
|
@ -18,8 +18,6 @@ import ServerConnections from '../ServerConnections';
|
||||||
import toast from '../toast/toast';
|
import toast from '../toast/toast';
|
||||||
import template from './displaySettings.template.html';
|
import template from './displaySettings.template.html';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function fillThemes(select, selectedTheme) {
|
function fillThemes(select, selectedTheme) {
|
||||||
skinManager.getThemes().then(themes => {
|
skinManager.getThemes().then(themes => {
|
||||||
select.innerHTML = themes.map(t => {
|
select.innerHTML = themes.map(t => {
|
||||||
|
@ -251,5 +249,4 @@ import template from './displaySettings.template.html';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
export default DisplaySettings;
|
export default DisplaySettings;
|
||||||
|
|
|
@ -9,8 +9,6 @@ import { getParameterByName } from '../utils/url.ts';
|
||||||
import '../styles/scrollstyles.scss';
|
import '../styles/scrollstyles.scss';
|
||||||
import '../elements/emby-itemscontainer/emby-itemscontainer';
|
import '../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function enableScrollX() {
|
function enableScrollX() {
|
||||||
return !layoutManager.desktop;
|
return !layoutManager.desktop;
|
||||||
}
|
}
|
||||||
|
@ -240,5 +238,3 @@ import '../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
export default {
|
export default {
|
||||||
render: loadSections
|
render: loadSections
|
||||||
};
|
};
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
export function getFetchPromise(request) {
|
export function getFetchPromise(request) {
|
||||||
const headers = request.headers || {};
|
const headers = request.headers || {};
|
||||||
|
|
||||||
|
@ -107,4 +106,3 @@
|
||||||
throw err;
|
throw err;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -8,7 +8,6 @@ import './style.scss';
|
||||||
import ServerConnections from '../ServerConnections';
|
import ServerConnections from '../ServerConnections';
|
||||||
import template from './filterdialog.template.html';
|
import template from './filterdialog.template.html';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
function renderOptions(context, selector, cssClass, items, isCheckedFn) {
|
function renderOptions(context, selector, cssClass, items, isCheckedFn) {
|
||||||
const elem = context.querySelector(selector);
|
const elem = context.querySelector(selector);
|
||||||
if (items.length) {
|
if (items.length) {
|
||||||
|
@ -419,6 +418,4 @@ import template from './filterdialog.template.html';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
||||||
export default FilterDialog;
|
export default FilterDialog;
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
import dom from '../scripts/dom';
|
import dom from '../scripts/dom';
|
||||||
import scrollManager from './scrollManager';
|
import scrollManager from './scrollManager';
|
||||||
|
|
||||||
|
@ -464,8 +462,6 @@ import scrollManager from './scrollManager';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
autoFocus: autoFocus,
|
autoFocus: autoFocus,
|
||||||
focus: focus,
|
focus: focus,
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
import dom from '../scripts/dom';
|
import dom from '../scripts/dom';
|
||||||
import { appRouter } from './appRouter';
|
import { appRouter } from './appRouter';
|
||||||
import Dashboard from '../utils/dashboard';
|
import Dashboard from '../utils/dashboard';
|
||||||
|
@ -43,5 +41,3 @@ import ServerConnections from './ServerConnections';
|
||||||
onGroupedCardClick(e, groupedCard);
|
onGroupedCardClick(e, groupedCard);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -14,8 +14,6 @@ import ServerConnections from '../ServerConnections';
|
||||||
import toast from '../toast/toast';
|
import toast from '../toast/toast';
|
||||||
import template from './homeScreenSettings.template.html';
|
import template from './homeScreenSettings.template.html';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
const numConfigurableSections = 7;
|
const numConfigurableSections = 7;
|
||||||
|
|
||||||
function renderViews(page, user, result) {
|
function renderViews(page, user, result) {
|
||||||
|
@ -506,6 +504,4 @@ import template from './homeScreenSettings.template.html';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
||||||
export default HomeScreenSettings;
|
export default HomeScreenSettings;
|
||||||
|
|
|
@ -13,8 +13,6 @@ import './homesections.scss';
|
||||||
import Dashboard from '../../utils/dashboard';
|
import Dashboard from '../../utils/dashboard';
|
||||||
import ServerConnections from '../ServerConnections';
|
import ServerConnections from '../ServerConnections';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
export function getDefaultSection(index) {
|
export function getDefaultSection(index) {
|
||||||
switch (index) {
|
switch (index) {
|
||||||
case 0:
|
case 0:
|
||||||
|
@ -750,4 +748,3 @@ export default {
|
||||||
resume: resume
|
resume: resume
|
||||||
};
|
};
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -1,6 +1,3 @@
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
import appSettings from '../scripts/settings/appSettings' ;
|
import appSettings from '../scripts/settings/appSettings' ;
|
||||||
import browser from '../scripts/browser';
|
import browser from '../scripts/browser';
|
||||||
import Events from '../utils/events.ts';
|
import Events from '../utils/events.ts';
|
||||||
|
@ -383,5 +380,3 @@ import Events from '../utils/events.ts';
|
||||||
|
|
||||||
return ranges;
|
return ranges;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -15,8 +15,6 @@ import '../cardbuilder/card.scss';
|
||||||
import ServerConnections from '../ServerConnections';
|
import ServerConnections from '../ServerConnections';
|
||||||
import template from './imageDownloader.template.html';
|
import template from './imageDownloader.template.html';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
const enableFocusTransform = !browser.slow && !browser.edge;
|
const enableFocusTransform = !browser.slow && !browser.edge;
|
||||||
|
|
||||||
let currentItemId;
|
let currentItemId;
|
||||||
|
@ -397,4 +395,3 @@ export default {
|
||||||
show: show
|
show: show
|
||||||
};
|
};
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module for image Options Editor.
|
* Module for image Options Editor.
|
||||||
|
@ -109,5 +108,4 @@ export class editor {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
export default editor;
|
export default editor;
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module for imageUploader.
|
* Module for imageUploader.
|
||||||
|
@ -181,7 +180,6 @@ import template from './imageUploader.template.html';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
export default {
|
export default {
|
||||||
show: show
|
show: show
|
||||||
};
|
};
|
||||||
|
|
|
@ -18,8 +18,6 @@ import alert from '../alert';
|
||||||
import confirm from '../confirm/confirm';
|
import confirm from '../confirm/confirm';
|
||||||
import template from './imageeditor.template.html';
|
import template from './imageeditor.template.html';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
const enableFocusTransform = !browser.slow && !browser.edge;
|
const enableFocusTransform = !browser.slow && !browser.edge;
|
||||||
|
|
||||||
let currentItem;
|
let currentItem;
|
||||||
|
@ -465,4 +463,3 @@ export default {
|
||||||
show
|
show
|
||||||
};
|
};
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -17,7 +17,6 @@ worker.addEventListener(
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
);
|
);
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
export function lazyImage(elem, source = elem.getAttribute('data-src')) {
|
export function lazyImage(elem, source = elem.getAttribute('data-src')) {
|
||||||
if (!source) {
|
if (!source) {
|
||||||
|
@ -247,7 +246,6 @@ worker.addEventListener(
|
||||||
lazyImage(element);
|
lazyImage(element);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
export default {
|
export default {
|
||||||
setLazyImage: setLazyImage,
|
setLazyImage: setLazyImage,
|
||||||
fillImages: fillImages,
|
fillImages: fillImages,
|
||||||
|
|
|
@ -9,7 +9,6 @@ import { playbackManager } from './playback/playbackmanager';
|
||||||
import ServerConnections from './ServerConnections';
|
import ServerConnections from './ServerConnections';
|
||||||
import toast from './toast/toast';
|
import toast from './toast/toast';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
export function getCommands(options) {
|
export function getCommands(options) {
|
||||||
const item = options.item;
|
const item = options.item;
|
||||||
const user = options.user;
|
const user = options.user;
|
||||||
|
@ -638,8 +637,6 @@ import toast from './toast/toast';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
getCommands: getCommands,
|
getCommands: getCommands,
|
||||||
show: show
|
show: show
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module for display media info.
|
* Module for display media info.
|
||||||
|
@ -252,7 +251,6 @@ const attributeDelimiterHtml = layoutManager.tv ? '' : '<span class="hide">: </s
|
||||||
return loadMediaInfo(itemId, serverId);
|
return loadMediaInfo(itemId, serverId);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
export default {
|
export default {
|
||||||
show: show
|
show: show
|
||||||
};
|
};
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module for itemidentifier media item.
|
* Module for itemidentifier media item.
|
||||||
|
@ -489,7 +488,6 @@ import datetime from '../../scripts/datetime';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
export default {
|
export default {
|
||||||
show: show,
|
show: show,
|
||||||
showFindNew: showFindNew
|
showFindNew: showFindNew
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
export class LazyLoader {
|
export class LazyLoader {
|
||||||
constructor(options) {
|
constructor(options) {
|
||||||
this.options = options;
|
this.options = options;
|
||||||
|
@ -63,7 +63,6 @@
|
||||||
unveilElements(elem.getElementsByClassName('lazy'), elem, callback);
|
unveilElements(elem.getElementsByClassName('lazy'), elem, callback);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
export default {
|
export default {
|
||||||
LazyLoader: LazyLoader,
|
LazyLoader: LazyLoader,
|
||||||
lazyChildren: lazyChildren
|
lazyChildren: lazyChildren
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module for library options editor.
|
* Module for library options editor.
|
||||||
|
@ -613,7 +612,6 @@ import template from './libraryoptionseditor.template.html';
|
||||||
let currentLibraryOptions;
|
let currentLibraryOptions;
|
||||||
let currentAvailableOptions;
|
let currentAvailableOptions;
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
export default {
|
export default {
|
||||||
embed: embed,
|
embed: embed,
|
||||||
setContentType: setContentType,
|
setContentType: setContentType,
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module for display list view.
|
* Module for display list view.
|
||||||
|
@ -495,7 +494,6 @@ import ServerConnections from '../ServerConnections';
|
||||||
return outerHtml;
|
return outerHtml;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
export default {
|
export default {
|
||||||
getListViewHtml: getListViewHtml
|
getListViewHtml: getListViewHtml
|
||||||
};
|
};
|
||||||
|
|
|
@ -4,8 +4,6 @@ import Events from '../utils/events.ts';
|
||||||
import '../elements/emby-tabs/emby-tabs';
|
import '../elements/emby-tabs/emby-tabs';
|
||||||
import '../elements/emby-button/emby-button';
|
import '../elements/emby-button/emby-button';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
let tabOwnerView;
|
let tabOwnerView;
|
||||||
const queryScope = document.querySelector('.skinHeader');
|
const queryScope = document.querySelector('.skinHeader');
|
||||||
let headerTabsContainer;
|
let headerTabsContainer;
|
||||||
|
@ -199,5 +197,3 @@ import '../elements/emby-button/emby-button';
|
||||||
export function getTabsElement() {
|
export function getTabsElement() {
|
||||||
return document.querySelector('.tabs-viewmenubar');
|
return document.querySelector('.tabs-viewmenubar');
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module for media library creator.
|
* Module for media library creator.
|
||||||
|
@ -223,5 +222,4 @@ export class showEditor {
|
||||||
let hasChanges = false;
|
let hasChanges = false;
|
||||||
let isCreating = false;
|
let isCreating = false;
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
export default showEditor;
|
export default showEditor;
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module for media library editor.
|
* Module for media library editor.
|
||||||
|
@ -232,5 +231,4 @@ export class showEditor {
|
||||||
let hasChanges = false;
|
let hasChanges = false;
|
||||||
let isCreating = false;
|
let isCreating = false;
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
export default showEditor;
|
export default showEditor;
|
||||||
|
|
|
@ -10,7 +10,6 @@ import '../guide/programs.scss';
|
||||||
import '../../elements/emby-button/emby-button';
|
import '../../elements/emby-button/emby-button';
|
||||||
import * as userSettings from '../../scripts/settings/userSettings';
|
import * as userSettings from '../../scripts/settings/userSettings';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
function getTimerIndicator(item) {
|
function getTimerIndicator(item) {
|
||||||
let status;
|
let status;
|
||||||
|
|
||||||
|
@ -577,8 +576,6 @@ import * as userSettings from '../../scripts/settings/userSettings';
|
||||||
return list;
|
return list;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
getMediaInfoHtml: getPrimaryMediaInfoHtml,
|
getMediaInfoHtml: getPrimaryMediaInfoHtml,
|
||||||
getEndsAt: getEndsAt,
|
getEndsAt: getEndsAt,
|
||||||
|
|
|
@ -23,8 +23,6 @@ import toast from '../toast/toast';
|
||||||
import { appRouter } from '../appRouter';
|
import { appRouter } from '../appRouter';
|
||||||
import template from './metadataEditor.template.html';
|
import template from './metadataEditor.template.html';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
let currentContext;
|
let currentContext;
|
||||||
let metadataEditorInfo;
|
let metadataEditorInfo;
|
||||||
let currentItem;
|
let currentItem;
|
||||||
|
@ -1113,4 +1111,3 @@ import template from './metadataEditor.template.html';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -8,8 +8,6 @@ import '../../elements/emby-select/emby-select';
|
||||||
import '../formdialog.scss';
|
import '../formdialog.scss';
|
||||||
import template from './personEditor.template.html';
|
import template from './personEditor.template.html';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function centerFocus(elem, horiz, on) {
|
function centerFocus(elem, horiz, on) {
|
||||||
import('../../scripts/scrollHelper').then((scrollHelper) => {
|
import('../../scripts/scrollHelper').then((scrollHelper) => {
|
||||||
const fn = on ? 'on' : 'off';
|
const fn = on ? 'on' : 'off';
|
||||||
|
@ -98,4 +96,3 @@ export default {
|
||||||
show: show
|
show: show
|
||||||
};
|
};
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -11,8 +11,6 @@ import confirm from '../confirm/confirm';
|
||||||
import itemHelper from '../itemHelper';
|
import itemHelper from '../itemHelper';
|
||||||
import datetime from '../../scripts/datetime';
|
import datetime from '../../scripts/datetime';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
let selectedItems = [];
|
let selectedItems = [];
|
||||||
let selectedElements = [];
|
let selectedElements = [];
|
||||||
let currentSelectionCommandsPanel;
|
let currentSelectionCommandsPanel;
|
||||||
|
@ -566,4 +564,3 @@ import datetime from '../../scripts/datetime';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -17,8 +17,6 @@ import './nowPlayingBar.scss';
|
||||||
import '../../elements/emby-slider/emby-slider';
|
import '../../elements/emby-slider/emby-slider';
|
||||||
import { appRouter } from '../appRouter';
|
import { appRouter } from '../appRouter';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
let currentPlayer;
|
let currentPlayer;
|
||||||
let currentPlayerSupportedCommands = [];
|
let currentPlayerSupportedCommands = [];
|
||||||
|
|
||||||
|
@ -784,4 +782,3 @@ import { appRouter } from '../appRouter';
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -1,6 +1,5 @@
|
||||||
import appSettings from '../scripts/settings/appSettings';
|
import appSettings from '../scripts/settings/appSettings';
|
||||||
import { pluginManager } from './pluginManager';
|
import { pluginManager } from './pluginManager';
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
class PackageManager {
|
class PackageManager {
|
||||||
#packagesList = [];
|
#packagesList = [];
|
||||||
|
@ -135,6 +134,4 @@ import { pluginManager } from './pluginManager';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
||||||
export default new PackageManager();
|
export default new PackageManager();
|
||||||
|
|
|
@ -4,8 +4,6 @@ import Events from '../../utils/events.ts';
|
||||||
import ServerConnections from '../ServerConnections';
|
import ServerConnections from '../ServerConnections';
|
||||||
import shell from '../../scripts/shell';
|
import shell from '../../scripts/shell';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
// Reports media playback to the device for lock screen control
|
// Reports media playback to the device for lock screen control
|
||||||
|
|
||||||
let currentPlayer;
|
let currentPlayer;
|
||||||
|
@ -259,4 +257,3 @@ import shell from '../../scripts/shell';
|
||||||
|
|
||||||
bindToPlayer(playbackManager.getCurrentPlayer());
|
bindToPlayer(playbackManager.getCurrentPlayer());
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -12,8 +12,6 @@ import ServerConnections from '../ServerConnections';
|
||||||
import toast from '../toast/toast';
|
import toast from '../toast/toast';
|
||||||
import template from './playbackSettings.template.html';
|
import template from './playbackSettings.template.html';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function fillSkipLengths(select) {
|
function fillSkipLengths(select) {
|
||||||
const options = [5, 10, 15, 20, 25, 30];
|
const options = [5, 10, 15, 20, 25, 30];
|
||||||
|
|
||||||
|
@ -359,5 +357,4 @@ import template from './playbackSettings.template.html';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
export default PlaybackSettings;
|
export default PlaybackSettings;
|
||||||
|
|
|
@ -9,8 +9,6 @@ import { PluginType } from '../../types/plugin.ts';
|
||||||
import './playerstats.scss';
|
import './playerstats.scss';
|
||||||
import ServerConnections from '../ServerConnections';
|
import ServerConnections from '../ServerConnections';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function init(instance) {
|
function init(instance) {
|
||||||
const parent = document.createElement('div');
|
const parent = document.createElement('div');
|
||||||
|
|
||||||
|
@ -527,6 +525,4 @@ class PlayerStats {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
||||||
export default PlayerStats;
|
export default PlayerStats;
|
||||||
|
|
|
@ -18,8 +18,6 @@ import 'material-design-icons-iconfont';
|
||||||
import '../formdialog.scss';
|
import '../formdialog.scss';
|
||||||
import ServerConnections from '../ServerConnections';
|
import ServerConnections from '../ServerConnections';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
let currentServerId;
|
let currentServerId;
|
||||||
|
|
||||||
function onSubmit(e) {
|
function onSubmit(e) {
|
||||||
|
@ -282,5 +280,4 @@ import ServerConnections from '../ServerConnections';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
export default showEditor;
|
export default showEditor;
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module for controlling scroll behavior.
|
* Module for controlling scroll behavior.
|
||||||
* @module components/scrollManager
|
* @module components/scrollManager
|
||||||
|
@ -600,8 +598,6 @@ import layoutManager from './layoutManager';
|
||||||
}, { capture: true });
|
}, { capture: true });
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
isEnabled: isEnabled,
|
isEnabled: isEnabled,
|
||||||
scrollTo: scrollTo,
|
scrollTo: scrollTo,
|
||||||
|
|
|
@ -1,5 +1,3 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Module shortcuts.
|
* Module shortcuts.
|
||||||
* @module components/shortcuts
|
* @module components/shortcuts
|
||||||
|
@ -392,8 +390,6 @@ import toast from './toast/toast';
|
||||||
return html;
|
return html;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
on: on,
|
on: on,
|
||||||
off: off,
|
off: off,
|
||||||
|
|
|
@ -10,8 +10,6 @@ import './upnextdialog.scss';
|
||||||
import '../../elements/emby-button/emby-button';
|
import '../../elements/emby-button/emby-button';
|
||||||
import '../../styles/flexstyles.scss';
|
import '../../styles/flexstyles.scss';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
const transitionEndEventName = dom.whichTransitionEvent();
|
const transitionEndEventName = dom.whichTransitionEvent();
|
||||||
|
|
||||||
function getHtml() {
|
function getHtml() {
|
||||||
|
@ -243,4 +241,3 @@ class UpNextDialog {
|
||||||
|
|
||||||
export default UpNextDialog;
|
export default UpNextDialog;
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -10,8 +10,6 @@ const getMainAnimatedPages = () => {
|
||||||
return mainAnimatedPages;
|
return mainAnimatedPages;
|
||||||
};
|
};
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function setControllerClass(view, options) {
|
function setControllerClass(view, options) {
|
||||||
if (options.controllerFactory) {
|
if (options.controllerFactory) {
|
||||||
return Promise.resolve();
|
return Promise.resolve();
|
||||||
|
@ -251,8 +249,6 @@ const getMainAnimatedPages = () => {
|
||||||
reset();
|
reset();
|
||||||
getMainAnimatedPages()?.classList.remove('hide');
|
getMainAnimatedPages()?.classList.remove('hide');
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
||||||
export default {
|
export default {
|
||||||
loadView: loadView,
|
loadView: loadView,
|
||||||
tryRestoreView: tryRestoreView,
|
tryRestoreView: tryRestoreView,
|
||||||
|
|
|
@ -6,8 +6,6 @@ import '../../elements/emby-button/emby-button';
|
||||||
import confirm from '../../components/confirm/confirm';
|
import confirm from '../../components/confirm/confirm';
|
||||||
import { pageIdOn } from '../../utils/dashboard';
|
import { pageIdOn } from '../../utils/dashboard';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function revoke(page, key) {
|
function revoke(page, key) {
|
||||||
confirm(globalize.translate('MessageConfirmRevokeApiKey'), globalize.translate('HeaderConfirmRevokeApiKey')).then(function () {
|
confirm(globalize.translate('MessageConfirmRevokeApiKey'), globalize.translate('HeaderConfirmRevokeApiKey')).then(function () {
|
||||||
loading.show();
|
loading.show();
|
||||||
|
@ -87,4 +85,3 @@ import { pageIdOn } from '../../utils/dashboard';
|
||||||
loadData(this);
|
loadData(this);
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -24,8 +24,6 @@ import ServerConnections from '../../components/ServerConnections';
|
||||||
import alert from '../../components/alert';
|
import alert from '../../components/alert';
|
||||||
import confirm from '../../components/confirm/confirm';
|
import confirm from '../../components/confirm/confirm';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function showPlaybackInfo(btn, session) {
|
function showPlaybackInfo(btn, session) {
|
||||||
let title;
|
let title;
|
||||||
const text = [];
|
const text = [];
|
||||||
|
@ -846,4 +844,3 @@ import confirm from '../../components/confirm/confirm';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -5,8 +5,6 @@ import '../../../elements/emby-button/emby-button';
|
||||||
import Dashboard from '../../../utils/dashboard';
|
import Dashboard from '../../../utils/dashboard';
|
||||||
import { getParameterByName } from '../../../utils/url.ts';
|
import { getParameterByName } from '../../../utils/url.ts';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function load(page, device, deviceOptions) {
|
function load(page, device, deviceOptions) {
|
||||||
page.querySelector('#txtCustomName', page).value = deviceOptions.CustomName || '';
|
page.querySelector('#txtCustomName', page).value = deviceOptions.CustomName || '';
|
||||||
page.querySelector('.reportedName', page).innerText = device.Name || '';
|
page.querySelector('.reportedName', page).innerText = device.Name || '';
|
||||||
|
@ -54,4 +52,3 @@ import { getParameterByName } from '../../../utils/url.ts';
|
||||||
view.addEventListener('viewshow', loadData);
|
view.addEventListener('viewshow', loadData);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -12,8 +12,6 @@ import '../../../components/cardbuilder/card.scss';
|
||||||
import Dashboard from '../../../utils/dashboard';
|
import Dashboard from '../../../utils/dashboard';
|
||||||
import confirm from '../../../components/confirm/confirm';
|
import confirm from '../../../components/confirm/confirm';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
// Local cache of loaded
|
// Local cache of loaded
|
||||||
let deviceIds = [];
|
let deviceIds = [];
|
||||||
|
|
||||||
|
@ -167,4 +165,4 @@ import confirm from '../../../components/confirm/confirm';
|
||||||
deleteAllDevices(view);
|
deleteAllDevices(view);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -11,8 +11,6 @@ import Dashboard from '../../../utils/dashboard';
|
||||||
import toast from '../../../components/toast/toast';
|
import toast from '../../../components/toast/toast';
|
||||||
import { getParameterByName } from '../../../utils/url.ts';
|
import { getParameterByName } from '../../../utils/url.ts';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function loadProfile(page) {
|
function loadProfile(page) {
|
||||||
loading.show();
|
loading.show();
|
||||||
const promise1 = getProfile();
|
const promise1 = getProfile();
|
||||||
|
@ -836,4 +834,3 @@ import { getParameterByName } from '../../../utils/url.ts';
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -7,8 +7,6 @@ import '../../../components/listview/listview.scss';
|
||||||
import '../../../elements/emby-button/emby-button';
|
import '../../../elements/emby-button/emby-button';
|
||||||
import confirm from '../../../components/confirm/confirm';
|
import confirm from '../../../components/confirm/confirm';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function loadProfiles(page) {
|
function loadProfiles(page) {
|
||||||
loading.show();
|
loading.show();
|
||||||
ApiClient.getJSON(ApiClient.getUrl('Dlna/ProfileInfos')).then(function (result) {
|
ApiClient.getJSON(ApiClient.getUrl('Dlna/ProfileInfos')).then(function (result) {
|
||||||
|
@ -93,4 +91,3 @@ import confirm from '../../../components/confirm/confirm';
|
||||||
loadProfiles(this);
|
loadProfiles(this);
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -5,8 +5,6 @@ import libraryMenu from '../../../scripts/libraryMenu';
|
||||||
import globalize from '../../../scripts/globalize';
|
import globalize from '../../../scripts/globalize';
|
||||||
import Dashboard from '../../../utils/dashboard';
|
import Dashboard from '../../../utils/dashboard';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function loadPage(page, config, users) {
|
function loadPage(page, config, users) {
|
||||||
page.querySelector('#chkEnablePlayTo').checked = config.EnablePlayTo;
|
page.querySelector('#chkEnablePlayTo').checked = config.EnablePlayTo;
|
||||||
page.querySelector('#chkEnableDlnaDebugLogging').checked = config.EnableDebugLog;
|
page.querySelector('#chkEnableDlnaDebugLogging').checked = config.EnableDebugLog;
|
||||||
|
@ -60,4 +58,3 @@ import Dashboard from '../../../utils/dashboard';
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -6,8 +6,6 @@ import libraryMenu from '../../scripts/libraryMenu';
|
||||||
import Dashboard from '../../utils/dashboard';
|
import Dashboard from '../../utils/dashboard';
|
||||||
import alert from '../../components/alert';
|
import alert from '../../components/alert';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function loadPage(page, config, systemInfo) {
|
function loadPage(page, config, systemInfo) {
|
||||||
Array.prototype.forEach.call(page.querySelectorAll('.chkDecodeCodec'), function (c) {
|
Array.prototype.forEach.call(page.querySelectorAll('.chkDecodeCodec'), function (c) {
|
||||||
c.checked = (config.HardwareDecodingCodecs || []).indexOf(c.getAttribute('data-codec')) !== -1;
|
c.checked = (config.HardwareDecodingCodecs || []).indexOf(c.getAttribute('data-codec')) !== -1;
|
||||||
|
@ -299,4 +297,3 @@ import alert from '../../components/alert';
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -10,8 +10,6 @@ import '../../elements/emby-button/emby-button';
|
||||||
import Dashboard from '../../utils/dashboard';
|
import Dashboard from '../../utils/dashboard';
|
||||||
import alert from '../../components/alert';
|
import alert from '../../components/alert';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function loadPage(page, config, languageOptions, systemInfo) {
|
function loadPage(page, config, languageOptions, systemInfo) {
|
||||||
page.querySelector('#txtServerName').value = systemInfo.ServerName;
|
page.querySelector('#txtServerName').value = systemInfo.ServerName;
|
||||||
page.querySelector('#txtCachePath').value = systemInfo.CachePath || '';
|
page.querySelector('#txtCachePath').value = systemInfo.CachePath || '';
|
||||||
|
@ -116,4 +114,3 @@ import alert from '../../components/alert';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -12,8 +12,6 @@ import Dashboard, { pageClassOn, pageIdOn } from '../../utils/dashboard';
|
||||||
import confirm from '../../components/confirm/confirm';
|
import confirm from '../../components/confirm/confirm';
|
||||||
import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function addVirtualFolder(page) {
|
function addVirtualFolder(page) {
|
||||||
import('../../components/mediaLibraryCreator/mediaLibraryCreator').then(({ default: medialibrarycreator }) => {
|
import('../../components/mediaLibraryCreator/mediaLibraryCreator').then(({ default: medialibrarycreator }) => {
|
||||||
new medialibrarycreator({
|
new medialibrarycreator({
|
||||||
|
@ -407,4 +405,3 @@ import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -5,8 +5,6 @@ import '../../elements/emby-checkbox/emby-checkbox';
|
||||||
import '../../elements/emby-button/emby-button';
|
import '../../elements/emby-button/emby-button';
|
||||||
import Dashboard from '../../utils/dashboard';
|
import Dashboard from '../../utils/dashboard';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function getTabs() {
|
function getTabs() {
|
||||||
return [{
|
return [{
|
||||||
href: '#/library.html',
|
href: '#/library.html',
|
||||||
|
@ -71,4 +69,3 @@ import Dashboard from '../../utils/dashboard';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -7,8 +7,6 @@ import '../../styles/flexstyles.scss';
|
||||||
import Dashboard from '../../utils/dashboard';
|
import Dashboard from '../../utils/dashboard';
|
||||||
import alert from '../../components/alert';
|
import alert from '../../components/alert';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function onSubmit(event) {
|
function onSubmit(event) {
|
||||||
event.preventDefault();
|
event.preventDefault();
|
||||||
loading.show();
|
loading.show();
|
||||||
|
@ -63,5 +61,3 @@ import alert from '../../components/alert';
|
||||||
loading.hide();
|
loading.hide();
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -30,8 +30,6 @@ function populateImageResolutionOptions(select) {
|
||||||
select.innerHTML = html;
|
select.innerHTML = html;
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function populateLanguages(select) {
|
function populateLanguages(select) {
|
||||||
return ApiClient.getCultures().then(function(languages) {
|
return ApiClient.getCultures().then(function(languages) {
|
||||||
let html = '';
|
let html = '';
|
||||||
|
@ -114,4 +112,3 @@ function populateImageResolutionOptions(select) {
|
||||||
loadPage(this);
|
loadPage(this);
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -6,8 +6,6 @@ import globalize from '../../scripts/globalize';
|
||||||
import Dashboard from '../../utils/dashboard';
|
import Dashboard from '../../utils/dashboard';
|
||||||
import alert from '../../components/alert';
|
import alert from '../../components/alert';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function loadPage(page, config, users) {
|
function loadPage(page, config, users) {
|
||||||
let html = '<option value="" selected="selected">' + globalize.translate('None') + '</option>';
|
let html = '<option value="" selected="selected">' + globalize.translate('None') + '</option>';
|
||||||
html += users.map(function (user) {
|
html += users.map(function (user) {
|
||||||
|
@ -76,4 +74,3 @@ import alert from '../../components/alert';
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -5,8 +5,6 @@ import '../../elements/emby-select/emby-select';
|
||||||
import Dashboard from '../../utils/dashboard';
|
import Dashboard from '../../utils/dashboard';
|
||||||
import alert from '../../components/alert';
|
import alert from '../../components/alert';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function onSubmit(e) {
|
function onSubmit(e) {
|
||||||
const form = this;
|
const form = this;
|
||||||
const localAddress = form.querySelector('#txtLocalAddress').value;
|
const localAddress = form.querySelector('#txtLocalAddress').value;
|
||||||
|
@ -206,4 +204,3 @@ import alert from '../../components/alert';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -4,8 +4,6 @@ import libraryMenu from '../../scripts/libraryMenu';
|
||||||
import globalize from '../../scripts/globalize';
|
import globalize from '../../scripts/globalize';
|
||||||
import Dashboard from '../../utils/dashboard';
|
import Dashboard from '../../utils/dashboard';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function loadPage(page, config) {
|
function loadPage(page, config) {
|
||||||
$('#txtMinResumePct', page).val(config.MinResumePct);
|
$('#txtMinResumePct', page).val(config.MinResumePct);
|
||||||
$('#txtMaxResumePct', page).val(config.MaxResumePct);
|
$('#txtMaxResumePct', page).val(config.MaxResumePct);
|
||||||
|
@ -55,4 +53,3 @@ import Dashboard from '../../utils/dashboard';
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -9,8 +9,6 @@ import '../../../elements/emby-select/emby-select';
|
||||||
import confirm from '../../../components/confirm/confirm';
|
import confirm from '../../../components/confirm/confirm';
|
||||||
import { getParameterByName } from '../../../utils/url.ts';
|
import { getParameterByName } from '../../../utils/url.ts';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function fillTimeOfDay(select) {
|
function fillTimeOfDay(select) {
|
||||||
const options = [];
|
const options = [];
|
||||||
|
|
||||||
|
@ -243,4 +241,3 @@ import { getParameterByName } from '../../../utils/url.ts';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -9,8 +9,6 @@ import Events from '../../../utils/events.ts';
|
||||||
import '../../../components/listview/listview.scss';
|
import '../../../components/listview/listview.scss';
|
||||||
import '../../../elements/emby-button/emby-button';
|
import '../../../elements/emby-button/emby-button';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function reloadList(page) {
|
function reloadList(page) {
|
||||||
ApiClient.getScheduledTasks({
|
ApiClient.getScheduledTasks({
|
||||||
isHidden: false
|
isHidden: false
|
||||||
|
@ -199,4 +197,3 @@ import '../../../elements/emby-button/emby-button';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -2,8 +2,6 @@ import ActivityLog from '../../components/activitylog';
|
||||||
import globalize from '../../scripts/globalize';
|
import globalize from '../../scripts/globalize';
|
||||||
import { toBoolean } from '../../utils/string.ts';
|
import { toBoolean } from '../../utils/string.ts';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
export default function (view, params) {
|
export default function (view, params) {
|
||||||
let activityLog;
|
let activityLog;
|
||||||
|
|
||||||
|
@ -32,4 +30,3 @@ import { toBoolean } from '../../utils/string.ts';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -4,8 +4,6 @@ import loading from '../../components/loading/loading';
|
||||||
import globalize from '../../scripts/globalize';
|
import globalize from '../../scripts/globalize';
|
||||||
import Dashboard from '../../utils/dashboard';
|
import Dashboard from '../../utils/dashboard';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function loadPage(page, config) {
|
function loadPage(page, config) {
|
||||||
$('#txtRemoteClientBitrateLimit', page).val(config.RemoteClientBitrateLimit / 1e6 || '');
|
$('#txtRemoteClientBitrateLimit', page).val(config.RemoteClientBitrateLimit / 1e6 || '');
|
||||||
loading.hide();
|
loading.hide();
|
||||||
|
@ -46,4 +44,3 @@ import Dashboard from '../../utils/dashboard';
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -9,8 +9,6 @@ import '../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
import '../elements/emby-scroller/emby-scroller';
|
import '../elements/emby-scroller/emby-scroller';
|
||||||
import ServerConnections from '../components/ServerConnections';
|
import ServerConnections from '../components/ServerConnections';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function enableScrollX() {
|
function enableScrollX() {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
@ -318,4 +316,3 @@ class FavoritesTab {
|
||||||
|
|
||||||
export default FavoritesTab;
|
export default FavoritesTab;
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -13,8 +13,6 @@ import '../elements/emby-scroller/emby-scroller';
|
||||||
import ServerConnections from '../components/ServerConnections';
|
import ServerConnections from '../components/ServerConnections';
|
||||||
import LibraryMenu from '../scripts/libraryMenu';
|
import LibraryMenu from '../scripts/libraryMenu';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function getInitialLiveTvQuery(instance, params, startIndex = 0, limit = 300) {
|
function getInitialLiveTvQuery(instance, params, startIndex = 0, limit = 300) {
|
||||||
const query = {
|
const query = {
|
||||||
UserId: ServerConnections.getApiClient(params.serverId).getCurrentUserId(),
|
UserId: ServerConnections.getApiClient(params.serverId).getCurrentUserId(),
|
||||||
|
@ -1295,4 +1293,3 @@ class ItemsView {
|
||||||
|
|
||||||
export default ItemsView;
|
export default ItemsView;
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -11,8 +11,6 @@ import Events from '../../utils/events.ts';
|
||||||
|
|
||||||
import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
export default function (view, params, tabContent) {
|
export default function (view, params, tabContent) {
|
||||||
function playAll() {
|
function playAll() {
|
||||||
ApiClient.getItem(ApiClient.getCurrentUserId(), params.topParentId).then(function (item) {
|
ApiClient.getItem(ApiClient.getCurrentUserId(), params.topParentId).then(function (item) {
|
||||||
|
@ -301,4 +299,3 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -9,8 +9,6 @@ import Events from '../../utils/events.ts';
|
||||||
|
|
||||||
import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
export default function (view, params, tabContent) {
|
export default function (view, params, tabContent) {
|
||||||
function getPageData(context) {
|
function getPageData(context) {
|
||||||
const key = getSavedQueryKey(context);
|
const key = getSavedQueryKey(context);
|
||||||
|
@ -242,4 +240,3 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -3,8 +3,6 @@ import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
||||||
import imageLoader from '../../components/images/imageLoader';
|
import imageLoader from '../../components/images/imageLoader';
|
||||||
import loading from '../../components/loading/loading';
|
import loading from '../../components/loading/loading';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
export default function (view, params, tabContent) {
|
export default function (view, params, tabContent) {
|
||||||
function getPageData() {
|
function getPageData() {
|
||||||
const key = getSavedQueryKey();
|
const key = getSavedQueryKey();
|
||||||
|
@ -131,4 +129,3 @@ import loading from '../../components/loading/loading';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -3,8 +3,6 @@ import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
||||||
import imageLoader from '../../components/images/imageLoader';
|
import imageLoader from '../../components/images/imageLoader';
|
||||||
import loading from '../../components/loading/loading';
|
import loading from '../../components/loading/loading';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
export default function (view, params, tabContent) {
|
export default function (view, params, tabContent) {
|
||||||
function getPageData() {
|
function getPageData() {
|
||||||
const key = getSavedQueryKey();
|
const key = getSavedQueryKey();
|
||||||
|
@ -86,4 +84,3 @@ import loading from '../../components/loading/loading';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -16,8 +16,6 @@ import '../../elements/emby-button/emby-button';
|
||||||
import '../../styles/flexstyles.scss';
|
import '../../styles/flexstyles.scss';
|
||||||
import Dashboard from '../../utils/dashboard';
|
import Dashboard from '../../utils/dashboard';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function itemsPerRow() {
|
function itemsPerRow() {
|
||||||
const screenWidth = dom.getWindowSize().innerWidth;
|
const screenWidth = dom.getWindowSize().innerWidth;
|
||||||
|
|
||||||
|
@ -398,4 +396,3 @@ import Dashboard from '../../utils/dashboard';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -27,7 +27,6 @@ import { setBackdropTransparency, TRANSPARENCY_LEVEL } from '../../../components
|
||||||
import { pluginManager } from '../../../components/pluginManager';
|
import { pluginManager } from '../../../components/pluginManager';
|
||||||
import { PluginType } from '../../../types/plugin.ts';
|
import { PluginType } from '../../../types/plugin.ts';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
const TICKS_PER_MINUTE = 600000000;
|
const TICKS_PER_MINUTE = 600000000;
|
||||||
const TICKS_PER_SECOND = 10000000;
|
const TICKS_PER_SECOND = 10000000;
|
||||||
|
|
||||||
|
@ -1834,4 +1833,3 @@ import { PluginType } from '../../../types/plugin.ts';
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -6,8 +6,6 @@ import Dashboard from '../../../utils/dashboard';
|
||||||
import ServerConnections from '../../../components/ServerConnections';
|
import ServerConnections from '../../../components/ServerConnections';
|
||||||
import { ConnectionState } from '../../../utils/jellyfin-apiclient/ConnectionState.ts';
|
import { ConnectionState } from '../../../utils/jellyfin-apiclient/ConnectionState.ts';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function handleConnectionResult(page, result) {
|
function handleConnectionResult(page, result) {
|
||||||
loading.hide();
|
loading.hide();
|
||||||
switch (result.State) {
|
switch (result.State) {
|
||||||
|
@ -71,4 +69,3 @@ import { ConnectionState } from '../../../utils/jellyfin-apiclient/ConnectionSta
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
import globalize from '../../../scripts/globalize';
|
import globalize from '../../../scripts/globalize';
|
||||||
import Dashboard from '../../../utils/dashboard';
|
import Dashboard from '../../../utils/dashboard';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function processForgotPasswordResult(result) {
|
function processForgotPasswordResult(result) {
|
||||||
if (result.Action == 'ContactAdmin') {
|
if (result.Action == 'ContactAdmin') {
|
||||||
Dashboard.alert({
|
Dashboard.alert({
|
||||||
|
@ -56,4 +54,3 @@ import Dashboard from '../../../utils/dashboard';
|
||||||
view.querySelector('form').addEventListener('submit', onSubmit);
|
view.querySelector('form').addEventListener('submit', onSubmit);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -18,8 +18,6 @@ import baseAlert from '../../../components/alert';
|
||||||
import cardBuilder from '../../../components/cardbuilder/cardBuilder';
|
import cardBuilder from '../../../components/cardbuilder/cardBuilder';
|
||||||
import './login.scss';
|
import './login.scss';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
const enableFocusTransform = !browser.slow && !browser.edge;
|
const enableFocusTransform = !browser.slow && !browser.edge;
|
||||||
|
|
||||||
function authenticateUserByName(page, apiClient, username, password) {
|
function authenticateUserByName(page, apiClient, username, password) {
|
||||||
|
@ -306,4 +304,3 @@ import './login.scss';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -1,8 +1,6 @@
|
||||||
import globalize from '../../../scripts/globalize';
|
import globalize from '../../../scripts/globalize';
|
||||||
import Dashboard from '../../../utils/dashboard';
|
import Dashboard from '../../../utils/dashboard';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function processForgotPasswordResult(result) {
|
function processForgotPasswordResult(result) {
|
||||||
if (result.Success) {
|
if (result.Success) {
|
||||||
let msg = globalize.translate('MessagePasswordResetForUsers');
|
let msg = globalize.translate('MessagePasswordResetForUsers');
|
||||||
|
@ -43,4 +41,3 @@ import Dashboard from '../../../utils/dashboard';
|
||||||
view.querySelector('form').addEventListener('submit', onSubmit);
|
view.querySelector('form').addEventListener('submit', onSubmit);
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -21,8 +21,6 @@ import alert from '../../../components/alert';
|
||||||
import cardBuilder from '../../../components/cardbuilder/cardBuilder';
|
import cardBuilder from '../../../components/cardbuilder/cardBuilder';
|
||||||
import { ConnectionState } from '../../../utils/jellyfin-apiclient/ConnectionState.ts';
|
import { ConnectionState } from '../../../utils/jellyfin-apiclient/ConnectionState.ts';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
const enableFocusTransform = !browser.slow && !browser.edge;
|
const enableFocusTransform = !browser.slow && !browser.edge;
|
||||||
|
|
||||||
function renderSelectServerItems(view, servers) {
|
function renderSelectServerItems(view, servers) {
|
||||||
|
@ -213,4 +211,3 @@ import { ConnectionState } from '../../../utils/jellyfin-apiclient/ConnectionSta
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -10,8 +10,6 @@ import Events from '../../utils/events.ts';
|
||||||
|
|
||||||
import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
export default function (view, params, tabContent) {
|
export default function (view, params, tabContent) {
|
||||||
function getPageData(context) {
|
function getPageData(context) {
|
||||||
const key = getSavedQueryKey(context);
|
const key = getSavedQueryKey(context);
|
||||||
|
@ -249,4 +247,3 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -8,8 +8,6 @@ import globalize from '../../scripts/globalize';
|
||||||
import { appRouter } from '../../components/appRouter';
|
import { appRouter } from '../../components/appRouter';
|
||||||
import '../../elements/emby-button/emby-button';
|
import '../../elements/emby-button/emby-button';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
export default function (view, params, tabContent) {
|
export default function (view, params, tabContent) {
|
||||||
function getPageData() {
|
function getPageData() {
|
||||||
const key = getSavedQueryKey();
|
const key = getSavedQueryKey();
|
||||||
|
@ -217,4 +215,3 @@ import '../../elements/emby-button/emby-button';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -16,8 +16,6 @@ import Dashboard from '../../utils/dashboard';
|
||||||
import Events from '../../utils/events.ts';
|
import Events from '../../utils/events.ts';
|
||||||
import autoFocuser from '../../components/autoFocuser';
|
import autoFocuser from '../../components/autoFocuser';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function getTabs() {
|
function getTabs() {
|
||||||
return [{
|
return [{
|
||||||
name: globalize.translate('Shows')
|
name: globalize.translate('Shows')
|
||||||
|
@ -389,4 +387,3 @@ import autoFocuser from '../../components/autoFocuser';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -10,8 +10,6 @@ import Events from '../../utils/events.ts';
|
||||||
|
|
||||||
import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
export default function (view, params, tabContent) {
|
export default function (view, params, tabContent) {
|
||||||
function getPageData(context) {
|
function getPageData(context) {
|
||||||
const key = getSavedQueryKey(context);
|
const key = getSavedQueryKey(context);
|
||||||
|
@ -306,4 +304,3 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -2,8 +2,6 @@ import loading from '../../components/loading/loading';
|
||||||
import libraryBrowser from '../../scripts/libraryBrowser';
|
import libraryBrowser from '../../scripts/libraryBrowser';
|
||||||
import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function getQuery(params) {
|
function getQuery(params) {
|
||||||
const key = getSavedQueryKey();
|
const key = getSavedQueryKey();
|
||||||
let pageData = data[key];
|
let pageData = data[key];
|
||||||
|
@ -71,4 +69,3 @@ import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -7,8 +7,6 @@ import globalize from '../../scripts/globalize';
|
||||||
import '../../styles/scrollstyles.scss';
|
import '../../styles/scrollstyles.scss';
|
||||||
import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function getUpcomingPromise(context, params) {
|
function getUpcomingPromise(context, params) {
|
||||||
loading.show();
|
loading.show();
|
||||||
const query = {
|
const query = {
|
||||||
|
@ -141,4 +139,3 @@ import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -2,8 +2,6 @@ import DisplaySettings from '../../../components/displaySettings/displaySettings
|
||||||
import * as userSettings from '../../../scripts/settings/userSettings';
|
import * as userSettings from '../../../scripts/settings/userSettings';
|
||||||
import autoFocuser from '../../../components/autoFocuser';
|
import autoFocuser from '../../../components/autoFocuser';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
// Shortcuts
|
// Shortcuts
|
||||||
const UserSettings = userSettings.UserSettings;
|
const UserSettings = userSettings.UserSettings;
|
||||||
|
|
||||||
|
@ -37,4 +35,3 @@ import autoFocuser from '../../../components/autoFocuser';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -3,8 +3,6 @@ import * as userSettings from '../../../scripts/settings/userSettings';
|
||||||
import autoFocuser from '../../../components/autoFocuser';
|
import autoFocuser from '../../../components/autoFocuser';
|
||||||
import '../../../components/listview/listview.scss';
|
import '../../../components/listview/listview.scss';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
// Shortcuts
|
// Shortcuts
|
||||||
const UserSettings = userSettings.UserSettings;
|
const UserSettings = userSettings.UserSettings;
|
||||||
|
|
||||||
|
@ -38,4 +36,3 @@ import '../../../components/listview/listview.scss';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -4,8 +4,6 @@ import * as userSettings from '../../../scripts/settings/userSettings';
|
||||||
import autoFocuser from '../../../components/autoFocuser';
|
import autoFocuser from '../../../components/autoFocuser';
|
||||||
import '../../../components/listview/listview.scss';
|
import '../../../components/listview/listview.scss';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
// Shortcuts
|
// Shortcuts
|
||||||
const UserSettings = userSettings.UserSettings;
|
const UserSettings = userSettings.UserSettings;
|
||||||
|
|
||||||
|
@ -39,4 +37,3 @@ import '../../../components/listview/listview.scss';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -2,8 +2,6 @@ import SubtitleSettings from '../../../components/subtitlesettings/subtitlesetti
|
||||||
import * as userSettings from '../../../scripts/settings/userSettings';
|
import * as userSettings from '../../../scripts/settings/userSettings';
|
||||||
import autoFocuser from '../../../components/autoFocuser';
|
import autoFocuser from '../../../components/autoFocuser';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
// Shortcuts
|
// Shortcuts
|
||||||
const UserSettings = userSettings.UserSettings;
|
const UserSettings = userSettings.UserSettings;
|
||||||
|
|
||||||
|
@ -37,4 +35,3 @@ import autoFocuser from '../../../components/autoFocuser';
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -3,8 +3,6 @@ import dom from '../../scripts/dom';
|
||||||
import './emby-checkbox.scss';
|
import './emby-checkbox.scss';
|
||||||
import 'webcomponents.js/webcomponents-lite';
|
import 'webcomponents.js/webcomponents-lite';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
const EmbyCheckboxPrototype = Object.create(HTMLInputElement.prototype);
|
const EmbyCheckboxPrototype = Object.create(HTMLInputElement.prototype);
|
||||||
|
|
||||||
function onKeyDown(e) {
|
function onKeyDown(e) {
|
||||||
|
@ -108,4 +106,3 @@ import 'webcomponents.js/webcomponents-lite';
|
||||||
extends: 'input'
|
extends: 'input'
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -2,8 +2,6 @@ import './emby-collapse.scss';
|
||||||
import 'webcomponents.js/webcomponents-lite';
|
import 'webcomponents.js/webcomponents-lite';
|
||||||
import '../emby-button/emby-button';
|
import '../emby-button/emby-button';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
const EmbyButtonPrototype = Object.create(HTMLDivElement.prototype);
|
const EmbyButtonPrototype = Object.create(HTMLDivElement.prototype);
|
||||||
|
|
||||||
function slideDownToShow(button, elem) {
|
function slideDownToShow(button, elem) {
|
||||||
|
@ -99,4 +97,3 @@ import '../emby-button/emby-button';
|
||||||
extends: 'div'
|
extends: 'div'
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -3,8 +3,6 @@ import dom from '../../scripts/dom';
|
||||||
import './emby-input.scss';
|
import './emby-input.scss';
|
||||||
import 'webcomponents.js/webcomponents-lite';
|
import 'webcomponents.js/webcomponents-lite';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
const EmbyInputPrototype = Object.create(HTMLInputElement.prototype);
|
const EmbyInputPrototype = Object.create(HTMLInputElement.prototype);
|
||||||
|
|
||||||
let inputId = 0;
|
let inputId = 0;
|
||||||
|
@ -118,4 +116,3 @@ import 'webcomponents.js/webcomponents-lite';
|
||||||
extends: 'input'
|
extends: 'input'
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -5,8 +5,6 @@ import Events from '../../utils/events.ts';
|
||||||
|
|
||||||
import 'webcomponents.js/webcomponents-lite';
|
import 'webcomponents.js/webcomponents-lite';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function addNotificationEvent(instance, name, handler) {
|
function addNotificationEvent(instance, name, handler) {
|
||||||
const localHandler = handler.bind(instance);
|
const localHandler = handler.bind(instance);
|
||||||
Events.on(serverNotifications, name, localHandler);
|
Events.on(serverNotifications, name, localHandler);
|
||||||
|
@ -74,4 +72,3 @@ import 'webcomponents.js/webcomponents-lite';
|
||||||
extends: 'div'
|
extends: 'div'
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -13,8 +13,6 @@ import 'webcomponents.js/webcomponents-lite';
|
||||||
import ServerConnections from '../../components/ServerConnections';
|
import ServerConnections from '../../components/ServerConnections';
|
||||||
import Sortable from 'sortablejs';
|
import Sortable from 'sortablejs';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
const ItemsContainerPrototype = Object.create(HTMLDivElement.prototype);
|
const ItemsContainerPrototype = Object.create(HTMLDivElement.prototype);
|
||||||
|
|
||||||
function onClick(e) {
|
function onClick(e) {
|
||||||
|
@ -480,4 +478,3 @@ import Sortable from 'sortablejs';
|
||||||
extends: 'div'
|
extends: 'div'
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -4,8 +4,6 @@ import Events from '../../utils/events.ts';
|
||||||
import EmbyButtonPrototype from '../../elements/emby-button/emby-button';
|
import EmbyButtonPrototype from '../../elements/emby-button/emby-button';
|
||||||
import ServerConnections from '../../components/ServerConnections';
|
import ServerConnections from '../../components/ServerConnections';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
function addNotificationEvent(instance, name, handler) {
|
function addNotificationEvent(instance, name, handler) {
|
||||||
const localHandler = handler.bind(instance);
|
const localHandler = handler.bind(instance);
|
||||||
Events.on(serverNotifications, name, localHandler);
|
Events.on(serverNotifications, name, localHandler);
|
||||||
|
@ -151,4 +149,3 @@ import ServerConnections from '../../components/ServerConnections';
|
||||||
extends: 'button'
|
extends: 'button'
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -1,4 +1,3 @@
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
const ProgressBarPrototype = Object.create(HTMLDivElement.prototype);
|
const ProgressBarPrototype = Object.create(HTMLDivElement.prototype);
|
||||||
|
|
||||||
|
@ -39,4 +38,3 @@
|
||||||
extends: 'div'
|
extends: 'div'
|
||||||
});
|
});
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
|
@ -4,8 +4,6 @@ import template from './emby-progressring.template.html';
|
||||||
import { getCurrentDateTimeLocale } from '../../scripts/globalize';
|
import { getCurrentDateTimeLocale } from '../../scripts/globalize';
|
||||||
import { toPercent } from '../../utils/number.ts';
|
import { toPercent } from '../../utils/number.ts';
|
||||||
|
|
||||||
/* eslint-disable indent */
|
|
||||||
|
|
||||||
const EmbyProgressRing = Object.create(HTMLDivElement.prototype);
|
const EmbyProgressRing = Object.create(HTMLDivElement.prototype);
|
||||||
|
|
||||||
EmbyProgressRing.createdCallback = function () {
|
EmbyProgressRing.createdCallback = function () {
|
||||||
|
@ -98,4 +96,3 @@ import { toPercent } from '../../utils/number.ts';
|
||||||
|
|
||||||
export default EmbyProgressRing;
|
export default EmbyProgressRing;
|
||||||
|
|
||||||
/* eslint-enable indent */
|
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue