mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Remove unused eslint globals
This commit is contained in:
parent
18de10f2ea
commit
2ed007f508
3 changed files with 3 additions and 18 deletions
11
.eslintrc.js
11
.eslintrc.js
|
@ -228,15 +228,12 @@ module.exports = {
|
||||||
},
|
},
|
||||||
env: {
|
env: {
|
||||||
node: false,
|
node: false,
|
||||||
amd: true,
|
|
||||||
browser: true,
|
browser: true,
|
||||||
es6: true,
|
es6: true,
|
||||||
es2017: true,
|
es2017: true,
|
||||||
es2020: true
|
es2020: true
|
||||||
},
|
},
|
||||||
globals: {
|
globals: {
|
||||||
// Browser globals
|
|
||||||
'MediaMetadata': 'readonly',
|
|
||||||
// Tizen globals
|
// Tizen globals
|
||||||
'tizen': 'readonly',
|
'tizen': 'readonly',
|
||||||
'webapis': 'readonly',
|
'webapis': 'readonly',
|
||||||
|
@ -249,19 +246,11 @@ module.exports = {
|
||||||
'ApiClient': 'writable',
|
'ApiClient': 'writable',
|
||||||
'Events': 'writable',
|
'Events': 'writable',
|
||||||
'chrome': 'writable',
|
'chrome': 'writable',
|
||||||
'DlnaProfilePage': 'writable',
|
|
||||||
'DashboardPage': 'writable',
|
'DashboardPage': 'writable',
|
||||||
'Emby': 'readonly',
|
'Emby': 'readonly',
|
||||||
'Globalize': 'writable',
|
|
||||||
'Hls': 'writable',
|
'Hls': 'writable',
|
||||||
'LibraryMenu': 'writable',
|
'LibraryMenu': 'writable',
|
||||||
'LinkParser': 'writable',
|
|
||||||
'LiveTvHelpers': 'writable',
|
|
||||||
'Loading': 'writable',
|
|
||||||
'MetadataEditor': 'writable',
|
'MetadataEditor': 'writable',
|
||||||
'ServerNotifications': 'writable',
|
|
||||||
'TaskButton': 'writable',
|
|
||||||
'UserParentalControlPage': 'writable',
|
|
||||||
'Windows': 'readonly',
|
'Windows': 'readonly',
|
||||||
// Build time definitions
|
// Build time definitions
|
||||||
__COMMIT_SHA__: 'readonly',
|
__COMMIT_SHA__: 'readonly',
|
||||||
|
|
|
@ -2,12 +2,12 @@ import cardBuilder from 'components/cardbuilder/cardBuilder';
|
||||||
import imageLoader from 'components/images/imageLoader';
|
import imageLoader from 'components/images/imageLoader';
|
||||||
import layoutManager from 'components/layoutManager';
|
import layoutManager from 'components/layoutManager';
|
||||||
import loading from 'components/loading/loading';
|
import loading from 'components/loading/loading';
|
||||||
|
import { getTimersHtml } from 'scripts/livetvcomponents';
|
||||||
import { getBackdropShape } from 'utils/card';
|
import { getBackdropShape } from 'utils/card';
|
||||||
import Dashboard from 'utils/dashboard';
|
import Dashboard from 'utils/dashboard';
|
||||||
|
|
||||||
import 'elements/emby-button/emby-button';
|
import 'elements/emby-button/emby-button';
|
||||||
import 'elements/emby-itemscontainer/emby-itemscontainer';
|
import 'elements/emby-itemscontainer/emby-itemscontainer';
|
||||||
import 'scripts/livetvcomponents';
|
|
||||||
|
|
||||||
function enableScrollX() {
|
function enableScrollX() {
|
||||||
return !layoutManager.desktop;
|
return !layoutManager.desktop;
|
||||||
|
@ -71,7 +71,7 @@ function renderActiveRecordings(context, promise) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function renderTimers(context, timers, options) {
|
function renderTimers(context, timers, options) {
|
||||||
LiveTvHelpers.getTimersHtml(timers, options).then(function (html) {
|
getTimersHtml(timers, options).then(function (html) {
|
||||||
const elem = context;
|
const elem = context;
|
||||||
|
|
||||||
if (html) {
|
if (html) {
|
||||||
|
|
|
@ -8,7 +8,7 @@ function enableScrollX() {
|
||||||
return !layoutManager.desktop;
|
return !layoutManager.desktop;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getTimersHtml(timers, options) {
|
export function getTimersHtml(timers, options) {
|
||||||
options = options || {};
|
options = options || {};
|
||||||
|
|
||||||
const items = timers.map(function (t) {
|
const items = timers.map(function (t) {
|
||||||
|
@ -102,7 +102,3 @@ function getTimersHtml(timers, options) {
|
||||||
}
|
}
|
||||||
return Promise.resolve(html);
|
return Promise.resolve(html);
|
||||||
}
|
}
|
||||||
|
|
||||||
window.LiveTvHelpers = {
|
|
||||||
getTimersHtml: getTimersHtml
|
|
||||||
};
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue