mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
multiple fixes and otimizations
This commit is contained in:
parent
1171bc1cdf
commit
b49524e5ea
10 changed files with 9 additions and 18 deletions
|
@ -80,8 +80,7 @@ import '../../assets/css/flexstyles.scss';
|
|||
buttonClass += ' formDialogFooterItem-vertical formDialogFooterItem-nomarginbottom';
|
||||
}
|
||||
|
||||
html += `<button is="
|
||||
" type="button" class="${buttonClass}" data-id="${item.id}"${autoFocus}>${item.name}</button>`;
|
||||
html += `<button is="emby-button" type="button" class="${buttonClass}" data-id="${item.id}"${autoFocus}>${item.name}</button>`;
|
||||
|
||||
if (item.description) {
|
||||
html += `<div class="formDialogFooterItem formDialogFooterItem-autosize fieldDescription" style="margin-top:.25em!important;margin-bottom:1.25em!important;">${item.description}</div>`;
|
||||
|
|
|
@ -223,7 +223,7 @@ import layoutManager from './layoutManager';
|
|||
let parent = element.parentElement;
|
||||
|
||||
while (parent) {
|
||||
// Skip '../../elements/emby-scroller/emby-scroller' because it scrolls by itself
|
||||
// Skip 'emby-scroller' because it scrolls by itself
|
||||
if (!parent.classList.contains('emby-scroller') &&
|
||||
parent[nameScroll] > parent[nameClient] && parent.classList.contains(nameClass)) {
|
||||
return parent;
|
||||
|
|
|
@ -71,8 +71,7 @@ import toast from './toast/toast';
|
|||
}
|
||||
|
||||
function showProgramDialog(item) {
|
||||
import('./recordingcreator/recordingcreator' +
|
||||
'').then(({default:recordingCreator}) => {
|
||||
import('./recordingcreator/recordingcreator').then(({default:recordingCreator}) => {
|
||||
recordingCreator.show(item.Id, item.ServerId);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -20,7 +20,7 @@ function getUserDataButtonHtml(method, itemId, serverId, buttonCssClass, iconCss
|
|||
buttonCssClass = buttonCssClass ? (buttonCssClass + ' mini') : 'mini';
|
||||
}
|
||||
|
||||
const is = style === 'fab' ? '../../elements/emby-button/emby-button' : '../../elements/emby-button/paper-icon-button-light';
|
||||
const is = style === 'fab' ? 'emby-button' : 'paper-icon-button-light';
|
||||
let className = style === 'fab' ? 'autoSize fab' : 'autoSize';
|
||||
|
||||
if (buttonCssClass) {
|
||||
|
@ -33,7 +33,7 @@ function getUserDataButtonHtml(method, itemId, serverId, buttonCssClass, iconCss
|
|||
iconCssClass = '';
|
||||
}
|
||||
|
||||
iconCssClass += 'material-design-icons-iconfont';
|
||||
iconCssClass += 'material-icons';
|
||||
|
||||
return '<button title="' + tooltip + '" data-itemid="' + itemId + '" data-serverid="' + serverId + '" is="' + is + '" data-method="' + method + '" class="' + className + '"><span class="' + iconCssClass + ' ' + icon + '"></span></button>';
|
||||
}
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import itemShortcuts from '../../components/shortcuts';
|
||||
import inputManager from '../../scripts/inputManager';
|
||||
import { playbackManager } from '../../components/playback/playbackmanager';
|
||||
|
@ -74,8 +73,8 @@ import ServerConnections from '../../components/ServerConnections';
|
|||
}
|
||||
|
||||
const self = this;
|
||||
import('../../components/multiSelect/multiSelect').then((MultiSelect) => {
|
||||
self.multiSelect = new MultiSelect.default({
|
||||
import('../../components/multiSelect/multiSelect').then(({default: MultiSelect}) => {
|
||||
self.multiSelect = new MultiSelect({
|
||||
container: self,
|
||||
bindOnClick: false
|
||||
});
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import layoutManager from '../../components/layoutManager';
|
||||
import browser from '../../scripts/browser';
|
||||
import actionsheet from '../../components/actionSheet/actionSheet';
|
||||
|
|
|
@ -152,9 +152,9 @@ export function showLoadingMsg() {
|
|||
|
||||
export function confirm(message, title, callback) {
|
||||
baseConfirm(message, title).then(function() {
|
||||
callback(!0);
|
||||
callback(true);
|
||||
}).catch(function() {
|
||||
callback(!1);
|
||||
callback(false);
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
@ -143,7 +143,6 @@ import { Events } from 'jellyfin-apiclient';
|
|||
return Promise.all(promises);
|
||||
}
|
||||
|
||||
const cacheParam = new Date().getTime();
|
||||
function loadTranslation(translations, lang) {
|
||||
lang = normalizeLocaleName(lang);
|
||||
let filtered = translations.filter(function (t) {
|
||||
|
@ -156,7 +155,6 @@ import { Events } from 'jellyfin-apiclient';
|
|||
});
|
||||
}
|
||||
|
||||
//import('../strings/')
|
||||
return new Promise(function (resolve, reject) {
|
||||
if (!filtered.length) {
|
||||
resolve();
|
||||
|
|
|
@ -978,8 +978,6 @@ import ServerConnections from '../components/ServerConnections';
|
|||
updateLibraryNavLinks(page);
|
||||
});
|
||||
|
||||
renderHeader();
|
||||
|
||||
Events.on(ServerConnections, 'localusersignedin', function (e, user) {
|
||||
const currentApiClient = ServerConnections.getApiClient(user.ServerId);
|
||||
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
|
||||
import inputManager from './inputManager';
|
||||
import focusManager from '../components/focusManager';
|
||||
import browser from '../scripts/browser';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue