Fix more suggestions

This commit is contained in:
MrTimscampi 2020-07-24 17:18:28 +02:00
parent ffc22f629e
commit 443ce5a747
8 changed files with 9 additions and 7 deletions

View File

@ -228,6 +228,7 @@
"src/elements/emby-scrollbuttons/emby-scrollbuttons.js",
"src/elements/emby-scroller/emby-scroller.js",
"src/elements/emby-select/emby-select.js",
"src/elements/emby-slider/emby-slider.js",
"src/elements/emby-tabs/emby-tabs.js",
"src/elements/emby-textarea/emby-textarea.js",
"src/elements/emby-toggle/emby-toggle.js",

View File

@ -34,4 +34,4 @@ class appFooter {
}
}
export default new appFooter;
export default appFooter;

View File

@ -286,7 +286,7 @@ import 'emby-button';
async function embed(options, self) {
const { default: template } = await import('text!./displaySettings.template.html');
options.element.innerHTML = globalize.translateDocument(template, 'core');
options.element.innerHTML = globalize.translateHtml(template, 'core');
options.element.querySelector('form').addEventListener('submit', onSubmit.bind(self));
if (options.enableSaveButton) {
options.element.querySelector('.btnSave').classList.remove('hide');

View File

@ -281,7 +281,6 @@ import 'emby-ratingbutton';
import('emby-slider')
])
.then(([appfooter, itemShortcuts]) => {
console.log(appfooter);
const parentContainer = appfooter.element;
nowPlayingBarElement = parentContainer.querySelector('.nowPlayingBar');

View File

@ -1,6 +1,5 @@
import layoutManager from 'layoutManager';
import globalize from 'globalize';
import require from 'require';
import events from 'events';
import browser from 'browser';
import AlphaPicker from 'alphaPicker';
@ -53,7 +52,7 @@ import 'css!./searchfields';
function initAlphaPicker(alphaPickerElement, instance) {
instance.alphaPicker = new AlphaPicker.default({
instance.alphaPicker = new AlphaPicker({
element: alphaPickerElement,
mode: 'keyboard'
});

View File

@ -24,7 +24,7 @@ import autoFocuser from 'autoFocuser';
if (settingsInstance) {
settingsInstance.loadData();
} else {
settingsInstance = new DisplaySettings.default({
settingsInstance = new DisplaySettings({
serverId: ApiClient.serverId(),
userId: userId,
element: view.querySelector('.settingsContainer'),

View File

@ -1,6 +1,9 @@
define(['searchFields', 'searchResults', 'events'], function (SearchFields, SearchResults, events) {
'use strict';
SearchFields = SearchFields.default || SearchFields;
SearchResults = SearchResults.default || SearchResults;
function init(instance, tabContent, options) {
tabContent.innerHTML = '<div class="padded-left padded-right searchFields"></div><div class="searchResults padded-top" style="padding-top:1.5em;"></div>';
instance.searchFields = new SearchFields({

View File

@ -360,7 +360,7 @@ var AppInfo = {};
return layoutManager;
}
function createSharedAppFooter(appFooter) {
function createSharedAppFooter({default: appFooter}) {
return new appFooter({});
}