mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Force spacing around operators
This commit is contained in:
parent
4662e19567
commit
f897f7484c
5 changed files with 9 additions and 8 deletions
|
@ -42,7 +42,8 @@ module.exports = {
|
||||||
'one-var': ["error", "never"],
|
'one-var': ["error", "never"],
|
||||||
'quotes': ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": false }],
|
'quotes': ["error", "single", { "avoidEscape": true, "allowTemplateLiterals": false }],
|
||||||
'semi': ["error"],
|
'semi': ["error"],
|
||||||
'space-before-blocks': ["error"]
|
'space-before-blocks': ["error"],
|
||||||
|
"space-infix-ops": "error"
|
||||||
},
|
},
|
||||||
overrides: [
|
overrides: [
|
||||||
{
|
{
|
||||||
|
|
|
@ -148,7 +148,7 @@ export function getTypeIndicator(item) {
|
||||||
};
|
};
|
||||||
|
|
||||||
const icon = iconT[item.Type];
|
const icon = iconT[item.Type];
|
||||||
return icon ? '<div class="indicator videoIndicator"><span class="material-icons indicatorIcon '+ icon +'"></span></div>' : '';
|
return icon ? '<div class="indicator videoIndicator"><span class="material-icons indicatorIcon ' + icon + '"></span></div>' : '';
|
||||||
}
|
}
|
||||||
|
|
||||||
export function getMissingIndicator(item) {
|
export function getMissingIndicator(item) {
|
||||||
|
|
|
@ -140,7 +140,7 @@ define(['browser', 'datetime', 'backdrop', 'libraryBrowser', 'listView', 'imageL
|
||||||
}
|
}
|
||||||
if (item.SeriesName != null) {
|
if (item.SeriesName != null) {
|
||||||
var seriesName = item.SeriesName;
|
var seriesName = item.SeriesName;
|
||||||
if (item.SeriesId !=null) {
|
if (item.SeriesId != null) {
|
||||||
context.querySelector('.nowPlayingSerie').innerHTML = '<a class="button-link emby-button" is="emby-linkbutton" href="itemdetails.html?id=' + item.SeriesId + `&serverId=${nowPlayingServerId}">${seriesName}</a>`;
|
context.querySelector('.nowPlayingSerie').innerHTML = '<a class="button-link emby-button" is="emby-linkbutton" href="itemdetails.html?id=' + item.SeriesId + `&serverId=${nowPlayingServerId}">${seriesName}</a>`;
|
||||||
} else {
|
} else {
|
||||||
context.querySelector('.nowPlayingSerie').innerHTML = seriesName;
|
context.querySelector('.nowPlayingSerie').innerHTML = seriesName;
|
||||||
|
|
|
@ -92,7 +92,7 @@ import layoutManager from 'layoutManager';
|
||||||
* @return {number} Eased value in range [0, 1].
|
* @return {number} Eased value in range [0, 1].
|
||||||
*/
|
*/
|
||||||
function ease(t) {
|
function ease(t) {
|
||||||
return t*(2 - t); // easeOutQuad === ease-out
|
return t * (2 - t); // easeOutQuad === ease-out
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -402,8 +402,8 @@ import layoutManager from 'layoutManager';
|
||||||
|
|
||||||
k = ease(k);
|
k = ease(k);
|
||||||
|
|
||||||
const x = ox + dx*k;
|
const x = ox + dx * k;
|
||||||
const y = oy + dy*k;
|
const y = oy + dy * k;
|
||||||
|
|
||||||
builtinScroll(xScroller, x, yScroller, y, false);
|
builtinScroll(xScroller, x, yScroller, y, false);
|
||||||
|
|
||||||
|
|
|
@ -803,9 +803,9 @@ define(['loading', 'appRouter', 'layoutManager', 'connectionManager', 'userSetti
|
||||||
}
|
}
|
||||||
|
|
||||||
if (editable && url === undefined) {
|
if (editable && url === undefined) {
|
||||||
html += "<a class='itemDetailGalleryLink itemDetailImage defaultCardBackground defaultCardBackground"+ cardBuilder.getDefaultBackgroundClass(item.Name) + "' is='emby-linkbutton' style='display:block;margin:0;padding:0;' href='#'>";
|
html += "<a class='itemDetailGalleryLink itemDetailImage defaultCardBackground defaultCardBackground" + cardBuilder.getDefaultBackgroundClass(item.Name) + "' is='emby-linkbutton' style='display:block;margin:0;padding:0;' href='#'>";
|
||||||
} else if (!editable && url === undefined) {
|
} else if (!editable && url === undefined) {
|
||||||
html += "<div class='itemDetailGalleryLink itemDetailImage defaultCardBackground defaultCardBackground"+ cardBuilder.getDefaultBackgroundClass(item.Name) + "' is='emby-linkbutton' style='display:block;margin:0;padding:0;' href='#'>";
|
html += "<div class='itemDetailGalleryLink itemDetailImage defaultCardBackground defaultCardBackground" + cardBuilder.getDefaultBackgroundClass(item.Name) + "' is='emby-linkbutton' style='display:block;margin:0;padding:0;' href='#'>";
|
||||||
} else if (editable) {
|
} else if (editable) {
|
||||||
html += "<a class='itemDetailGalleryLink' is='emby-linkbutton' style='display:block;margin:0;padding:0;' href='#'>";
|
html += "<a class='itemDetailGalleryLink' is='emby-linkbutton' style='display:block;margin:0;padding:0;' href='#'>";
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue