fix multiple import defaults missing
Co-authored-by: Dmitry Lyzo <56478732+dmitrylyzo@users.noreply.github.com>
This commit is contained in:
parent
366fa21408
commit
2a3ade9bb9
10 changed files with 22 additions and 23 deletions
|
@ -5,7 +5,7 @@
|
|||
* @module components/cardBuilder/peoplecardbuilder
|
||||
*/
|
||||
|
||||
import cardBuilder from '../cardbuilder/cardBuilder';
|
||||
import cardBuilder from './cardBuilder';
|
||||
|
||||
export function buildPeopleCards(items, options) {
|
||||
options = Object.assign(options || {}, {
|
||||
|
|
|
@ -27,7 +27,7 @@ import 'webcomponents.js/webcomponents-lite';
|
|||
import ServerConnections from '../ServerConnections';
|
||||
|
||||
function showViewSettings(instance) {
|
||||
import('./guide-settings').then((guideSettingsDialog) => {
|
||||
import('./guide-settings').then(({default: guideSettingsDialog}) => {
|
||||
guideSettingsDialog.show(instance.categoryOptions).then(function () {
|
||||
instance.refresh();
|
||||
});
|
||||
|
|
|
@ -336,7 +336,7 @@ import toast from './toast/toast';
|
|||
return new Promise(function (resolve, reject) {
|
||||
switch (id) {
|
||||
case 'addtocollection':
|
||||
import('./collectionEditor/collectionEditor').then((collectionEditor) => {
|
||||
import('./collectionEditor/collectionEditor').then(({default: collectionEditor}) => {
|
||||
new collectionEditor({
|
||||
items: [itemId],
|
||||
serverId: serverId
|
||||
|
@ -344,7 +344,7 @@ import toast from './toast/toast';
|
|||
});
|
||||
break;
|
||||
case 'addtoplaylist':
|
||||
import('./playlisteditor/playlisteditor').then((playlistEditor) => {
|
||||
import('./playlisteditor/playlisteditor').then(({default: playlistEditor}) => {
|
||||
new playlistEditor({
|
||||
items: [itemId],
|
||||
serverId: serverId
|
||||
|
@ -396,7 +396,7 @@ import toast from './toast/toast';
|
|||
break;
|
||||
}
|
||||
case 'editsubtitles':
|
||||
import('./subtitleeditor/subtitleeditor').then((subtitleEditor) => {
|
||||
import('./subtitleeditor/subtitleeditor').then(({default: subtitleEditor}) => {
|
||||
subtitleEditor.show(itemId, serverId).then(getResolveFunction(resolve, id, true), getResolveFunction(resolve, id));
|
||||
});
|
||||
break;
|
||||
|
@ -452,7 +452,7 @@ import toast from './toast/toast';
|
|||
playbackManager.clearQueue();
|
||||
break;
|
||||
case 'record':
|
||||
import('./recordingcreator/recordingcreator').then((recordingCreator) => {
|
||||
import('./recordingcreator/recordingcreator').then(({default: recordingCreator}) => {
|
||||
recordingCreator.show(itemId, serverId).then(getResolveFunction(resolve, id, true), getResolveFunction(resolve, id));
|
||||
});
|
||||
break;
|
||||
|
@ -523,7 +523,7 @@ import toast from './toast/toast';
|
|||
}
|
||||
|
||||
function deleteTimer(apiClient, item, resolve, command) {
|
||||
import('./recordingcreator/recordinghelper').then((recordingHelper) => {
|
||||
import('./recordingcreator/recordinghelper').then(({default: recordingHelper}) => {
|
||||
const timerId = item.TimerId || item.Id;
|
||||
recordingHelper.cancelTimerWithConfirmation(timerId, item.ServerId).then(function () {
|
||||
getResolveFunction(resolve, command, true)();
|
||||
|
@ -532,7 +532,7 @@ import toast from './toast/toast';
|
|||
}
|
||||
|
||||
function deleteSeriesTimer(apiClient, item, resolve, command) {
|
||||
import('./recordingcreator/recordinghelper').then((recordingHelper) => {
|
||||
import('./recordingcreator/recordinghelper').then(({default: recordingHelper}) => {
|
||||
recordingHelper.cancelSeriesTimerWithConfirmation(item.Id, item.ServerId).then(function () {
|
||||
getResolveFunction(resolve, command, true)();
|
||||
});
|
||||
|
@ -566,7 +566,7 @@ import toast from './toast/toast';
|
|||
const serverId = apiClient.serverInfo().Id;
|
||||
|
||||
if (item.Type === 'Timer') {
|
||||
import('./recordingcreator/recordingeditor').then((recordingEditor) => {
|
||||
import('./recordingcreator/recordingeditor').then(({default: recordingEditor}) => {
|
||||
recordingEditor.show(item.Id, serverId).then(resolve, reject);
|
||||
});
|
||||
} else if (item.Type === 'SeriesTimer') {
|
||||
|
@ -574,7 +574,7 @@ import toast from './toast/toast';
|
|||
recordingEditor.show(item.Id, serverId).then(resolve, reject);
|
||||
});
|
||||
} else {
|
||||
import('./metadataEditor/metadataEditor').then((metadataEditor) => {
|
||||
import('./metadataEditor/metadataEditor').then(({default: metadataEditor}) => {
|
||||
metadataEditor.show(item.Id, serverId).then(resolve, reject);
|
||||
});
|
||||
}
|
||||
|
|
|
@ -161,7 +161,7 @@ import confirm from '../confirm/confirm';
|
|||
}
|
||||
|
||||
function showDirectoryBrowser(context, originalPath, networkPath) {
|
||||
import('../directorybrowser/directorybrowser').then((directoryBrowser) => {
|
||||
import('../directorybrowser/directorybrowser').then(({default: directoryBrowser}) => {
|
||||
const picker = new directoryBrowser();
|
||||
picker.show({
|
||||
enableNetworkSharePath: true,
|
||||
|
@ -209,7 +209,7 @@ export class showEditor {
|
|||
currentOptions = options;
|
||||
currentDeferred = deferred;
|
||||
hasChanges = false;
|
||||
import('./mediaLibraryEditor.template.html').then((template) => {
|
||||
import('./mediaLibraryEditor.template.html').then(({default: template}) => {
|
||||
const dlg = dialogHelper.createDialog({
|
||||
size: 'small',
|
||||
modal: false,
|
||||
|
|
|
@ -225,7 +225,7 @@ import toast from '../toast/toast';
|
|||
}
|
||||
|
||||
function editPerson(context, person, index) {
|
||||
import('./personEditor').then((personEditor) => {
|
||||
import('./personEditor').then(({default: personEditor}) => {
|
||||
personEditor.show(person).then(function (updatedPerson) {
|
||||
const isNew = index === -1;
|
||||
|
||||
|
|
|
@ -239,7 +239,7 @@ import confirm from '../confirm/confirm';
|
|||
|
||||
switch (id) {
|
||||
case 'addtocollection':
|
||||
import('../collectionEditor/collectionEditor').then((collectionEditor) => {
|
||||
import('../collectionEditor/collectionEditor').then(({default: collectionEditor}) => {
|
||||
new collectionEditor({
|
||||
items: items,
|
||||
serverId: serverId
|
||||
|
@ -279,7 +279,7 @@ import confirm from '../confirm/confirm';
|
|||
dispatchNeedsRefresh();
|
||||
break;
|
||||
case 'refresh':
|
||||
import('../refreshdialog/refreshdialog').then((refreshDialog) => {
|
||||
import('../refreshdialog/refreshdialog').then(({default: refreshDialog}) => {
|
||||
new refreshDialog({
|
||||
itemIds: items,
|
||||
serverId: serverId
|
||||
|
|
|
@ -22,7 +22,7 @@ let currentServerId;
|
|||
let currentResolve;
|
||||
|
||||
function deleteTimer(apiClient, timerId) {
|
||||
return import('./recordinghelper').then((recordingHelper) => {
|
||||
return import('./recordinghelper').then(({ default: recordingHelper }) => {
|
||||
recordingHelper.cancelTimerWithConfirmation(timerId, apiClient.serverId());
|
||||
});
|
||||
}
|
||||
|
|
|
@ -182,7 +182,7 @@ function onManageSeriesRecordingClick(e) {
|
|||
|
||||
const self = this;
|
||||
|
||||
import('./seriesrecordingeditor').then((seriesRecordingEditor) => {
|
||||
import('./seriesrecordingeditor').then(({default: seriesRecordingEditor}) => {
|
||||
seriesRecordingEditor.show(self.SeriesTimerId, options.serverId, {
|
||||
|
||||
enableCancel: false
|
||||
|
|
|
@ -26,7 +26,7 @@ let currentServerId;
|
|||
|
||||
function deleteTimer(apiClient, timerId) {
|
||||
return new Promise(function (resolve, reject) {
|
||||
import('./recordinghelper').then((recordingHelper) => {
|
||||
import('./recordinghelper').then(({ default: recordingHelper }) => {
|
||||
recordingHelper.cancelSeriesTimerWithConfirmation(timerId, apiClient.serverId()).then(resolve, reject);
|
||||
});
|
||||
});
|
||||
|
|
|
@ -269,7 +269,7 @@ import toast from './toast/toast';
|
|||
}
|
||||
|
||||
function addToPlaylist(item) {
|
||||
import('./playlisteditor/playlisteditor').then((playlistEditor) => {
|
||||
import('./playlisteditor/playlisteditor').then(({default: playlistEditor}) => {
|
||||
new playlistEditor().show({
|
||||
items: [item.Id],
|
||||
serverId: item.ServerId
|
||||
|
@ -294,16 +294,16 @@ import toast from './toast/toast';
|
|||
|
||||
if (item.Type === 'Timer') {
|
||||
if (item.ProgramId) {
|
||||
import('./recordingcreator/recordingcreator').then((recordingCreator) => {
|
||||
import('./recordingcreator/recordingcreator').then(({default: recordingCreator}) => {
|
||||
recordingCreator.show(item.ProgramId, serverId).then(resolve, reject);
|
||||
});
|
||||
} else {
|
||||
import('./recordingcreator/recordingeditor').then((recordingEditor) => {
|
||||
import('./recordingcreator/recordingeditor').then(({default: recordingEditor}) => {
|
||||
recordingEditor.show(item.Id, serverId).then(resolve, reject);
|
||||
});
|
||||
}
|
||||
} else {
|
||||
import('./metadataEditor/metadataEditor').then((metadataEditor) => {
|
||||
import('./metadataEditor/metadataEditor').then(({default: metadataEditor}) => {
|
||||
metadataEditor.show(item.Id, serverId).then(resolve, reject);
|
||||
});
|
||||
}
|
||||
|
@ -397,4 +397,3 @@ export default {
|
|||
onClick: onClick,
|
||||
getShortcutAttributesHtml: getShortcutAttributesHtml
|
||||
};
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue