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

Merge pull request #3609 from sancodes/eslint-no-sequences

Eslint no sequences
This commit is contained in:
Bill Thornton 2022-06-09 12:24:52 -04:00 committed by GitHub
commit 79db34a2a7
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 41 additions and 14 deletions

View file

@ -43,11 +43,13 @@ import Dashboard from '../../utils/dashboard';
function onSubmit() {
const form = this;
return loading.show(), ApiClient.getServerConfiguration().then(function(config) {
loading.show();
ApiClient.getServerConfiguration().then(function(config) {
config.PreferredMetadataLanguage = form.querySelector('#selectLanguage').value;
config.MetadataCountryCode = form.querySelector('#selectCountry').value;
ApiClient.updateServerConfiguration(config).then(Dashboard.processServerConfigurationUpdateResult);
}), !1;
});
return false;
}
function getTabs() {

View file

@ -145,7 +145,7 @@ import ServerConnections from '../components/ServerConnections';
return function () {
const apiClient = this.apiClient;
const options = {
SortBy: (section.types, 'SeriesName,SortName'),
SortBy: 'SeriesName,SortName',
SortOrder: 'Ascending',
Filters: 'IsFavorite',
Recursive: true,
@ -278,7 +278,7 @@ class FavoritesTab {
}
onResume(options) {
const promises = (this.apiClient, []);
const promises = [];
const view = this.view;
const elems = this.sectionsContainer.querySelectorAll('.itemsContainer');

View file

@ -1786,7 +1786,11 @@ function renderAdditionalParts(page, item, user) {
function renderScenes(page, item) {
let chapters = item.Chapters || [];
if (chapters.length && !chapters[0].ImageTag && (chapters = []), chapters.length) {
if (chapters.length && !chapters[0].ImageTag) {
chapters = [];
}
if (chapters.length) {
page.querySelector('#scenesCollapsible').classList.remove('hide');
const scenesContent = page.querySelector('#scenesContent');

View file

@ -1173,7 +1173,7 @@ class ItemsView {
}
getVisibleViewSettings() {
const item = (this.params, this.currentItem);
const item = this.currentItem;
const fields = ['showTitle'];
if (!item || item.Type !== 'PhotoAlbum' && item.Type !== 'ChannelFolderItem') {

View file

@ -745,7 +745,9 @@ import { setBackdropTransparency, TRANSPARENCY_LEVEL } from '../../../components
const currentTimeMs = (playbackStartTimeTicks + (positionTicks || 0)) / 1e4;
const programRuntimeMs = programEndDateMs - programStartDateMs;
if (nowPlayingPositionSlider.value = getDisplayPercentByTimeOfDay(programStartDateMs, programRuntimeMs, currentTimeMs), bufferedRanges.length) {
nowPlayingPositionSlider.value = getDisplayPercentByTimeOfDay(programStartDateMs, programRuntimeMs, currentTimeMs);
if (bufferedRanges.length) {
const rangeStart = getDisplayPercentByTimeOfDay(programStartDateMs, programRuntimeMs, (playbackStartTimeTicks + (bufferedRanges[0].start || 0)) / 1e4);
const rangeEnd = getDisplayPercentByTimeOfDay(programStartDateMs, programRuntimeMs, (playbackStartTimeTicks + (bufferedRanges[0].end || 0)) / 1e4);
nowPlayingPositionSlider.setBufferedRanges([{