mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
lint
This commit is contained in:
parent
b5c1cbb5b3
commit
404bdc12df
6 changed files with 11 additions and 15 deletions
|
@ -19,8 +19,6 @@ import 'css!./imageeditor';
|
||||||
|
|
||||||
const enableFocusTransform = !browser.slow && !browser.edge;
|
const enableFocusTransform = !browser.slow && !browser.edge;
|
||||||
|
|
||||||
loading = loading.default || loading;
|
|
||||||
|
|
||||||
let currentItem;
|
let currentItem;
|
||||||
let hasChanges = false;
|
let hasChanges = false;
|
||||||
|
|
||||||
|
|
|
@ -3,8 +3,6 @@ import loading from 'loading';
|
||||||
import globalize from 'globalize';
|
import globalize from 'globalize';
|
||||||
import 'emby-button';
|
import 'emby-button';
|
||||||
|
|
||||||
loading = loading.default || loading;
|
|
||||||
|
|
||||||
function loadPage(page, config) {
|
function loadPage(page, config) {
|
||||||
$('.liveTvSettingsForm', page).show();
|
$('.liveTvSettingsForm', page).show();
|
||||||
$('.noLiveTvServices', page).hide();
|
$('.noLiveTvServices', page).hide();
|
||||||
|
|
|
@ -82,7 +82,7 @@ import 'emby-itemscontainer';
|
||||||
}
|
}
|
||||||
|
|
||||||
itemsContainer.innerHTML = '';
|
itemsContainer.innerHTML = '';
|
||||||
}
|
};
|
||||||
|
|
||||||
const reloadItems = (page) => {
|
const reloadItems = (page) => {
|
||||||
loading.show();
|
loading.show();
|
||||||
|
@ -182,12 +182,12 @@ import 'emby-itemscontainer';
|
||||||
autoFocuser.autoFocus(tabContent);
|
autoFocuser.autoFocus(tabContent);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
const updateFilterControls = (tabContent) => {
|
const updateFilterControls = (tabContent) => {
|
||||||
const query = getQuery();
|
const query = getQuery();
|
||||||
this.alphaPicker.value(query.NameStartsWithOrGreater);
|
this.alphaPicker.value(query.NameStartsWithOrGreater);
|
||||||
}
|
};
|
||||||
|
|
||||||
let savedQueryKey;
|
let savedQueryKey;
|
||||||
let pageData;
|
let pageData;
|
||||||
|
@ -281,7 +281,7 @@ import 'emby-itemscontainer';
|
||||||
});
|
});
|
||||||
tabContent.querySelector('.btnPlayAll').addEventListener('click', playAll);
|
tabContent.querySelector('.btnPlayAll').addEventListener('click', playAll);
|
||||||
tabContent.querySelector('.btnShuffle').addEventListener('click', shuffle);
|
tabContent.querySelector('.btnShuffle').addEventListener('click', shuffle);
|
||||||
}
|
};
|
||||||
|
|
||||||
initPage(tabContent);
|
initPage(tabContent);
|
||||||
onViewStyleChange();
|
onViewStyleChange();
|
||||||
|
|
|
@ -51,7 +51,7 @@ import 'emby-itemscontainer';
|
||||||
}
|
}
|
||||||
|
|
||||||
return context.savedQueryKey;
|
return context.savedQueryKey;
|
||||||
}
|
};
|
||||||
|
|
||||||
const onViewStyleChange = () => {
|
const onViewStyleChange = () => {
|
||||||
const viewStyle = this.getCurrentViewStyle();
|
const viewStyle = this.getCurrentViewStyle();
|
||||||
|
@ -66,7 +66,7 @@ import 'emby-itemscontainer';
|
||||||
}
|
}
|
||||||
|
|
||||||
itemsContainer.innerHTML = '';
|
itemsContainer.innerHTML = '';
|
||||||
}
|
};
|
||||||
|
|
||||||
const reloadItems = (page) => {
|
const reloadItems = (page) => {
|
||||||
loading.show();
|
loading.show();
|
||||||
|
@ -165,12 +165,12 @@ import 'emby-itemscontainer';
|
||||||
autoFocuser.autoFocus(tabContent);
|
autoFocuser.autoFocus(tabContent);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
const updateFilterControls = (tabContent) => {
|
const updateFilterControls = (tabContent) => {
|
||||||
const query = getQuery(tabContent);
|
const query = getQuery(tabContent);
|
||||||
this.alphaPicker.value(query.NameStartsWithOrGreater);
|
this.alphaPicker.value(query.NameStartsWithOrGreater);
|
||||||
}
|
};
|
||||||
|
|
||||||
const data = {};
|
const data = {};
|
||||||
let isLoading = false;
|
let isLoading = false;
|
||||||
|
@ -229,7 +229,7 @@ import 'emby-itemscontainer';
|
||||||
onViewStyleChange();
|
onViewStyleChange();
|
||||||
reloadItems(tabContent);
|
reloadItems(tabContent);
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
initPage(tabContent);
|
initPage(tabContent);
|
||||||
onViewStyleChange();
|
onViewStyleChange();
|
||||||
|
|
|
@ -96,7 +96,7 @@ import loading from 'loading';
|
||||||
autoFocuser.autoFocus(context);
|
autoFocuser.autoFocus(context);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
function fullyReload() {
|
function fullyReload() {
|
||||||
this.preRender();
|
this.preRender();
|
||||||
|
|
|
@ -339,7 +339,7 @@ import 'flexStyles';
|
||||||
|
|
||||||
callback(controller);
|
callback(controller);
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
function preLoadTab(page, index) {
|
function preLoadTab(page, index) {
|
||||||
getTabController(page, index, function (controller) {
|
getTabController(page, index, function (controller) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue