mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2026-09-03 03:50:02 +03:00
Move legacy controllers into the legacy app
This commit is contained in:
+1
-1
@@ -5,7 +5,7 @@ function reload(context, itemId) {
|
||||
loading.show();
|
||||
|
||||
if (itemId) {
|
||||
import('../components/metadataEditor/metadataEditor').then(({ default: metadataEditor }) => {
|
||||
import('components/metadataEditor/metadataEditor').then(({ default: metadataEditor }) => {
|
||||
metadataEditor.embed(context.querySelector('.editPageInnerContent'), itemId, ApiClient.serverInfo().Id);
|
||||
});
|
||||
} else {
|
||||
@@ -1,9 +1,9 @@
|
||||
import TabbedView from '../components/tabbedview/tabbedview';
|
||||
import globalize from '../lib/globalize';
|
||||
import '../elements/emby-tabs/emby-tabs';
|
||||
import '../elements/emby-button/emby-button';
|
||||
import '../elements/emby-scroller/emby-scroller';
|
||||
import LibraryMenu from '../scripts/libraryMenu';
|
||||
import TabbedView from 'components/tabbedview/tabbedview';
|
||||
import globalize from 'lib/globalize';
|
||||
import 'elements/emby-tabs/emby-tabs';
|
||||
import 'elements/emby-button/emby-button';
|
||||
import 'elements/emby-scroller/emby-scroller';
|
||||
import LibraryMenu from 'scripts/libraryMenu';
|
||||
|
||||
class HomeView extends TabbedView {
|
||||
setTitle() {
|
||||
@@ -1,9 +1,9 @@
|
||||
import * as userSettings from '../scripts/settings/userSettings';
|
||||
import focusManager from '../components/focusManager';
|
||||
import homeSections from '../components/homesections/homesections';
|
||||
import * as userSettings from 'scripts/settings/userSettings';
|
||||
import focusManager from 'components/focusManager';
|
||||
import homeSections from 'components/homesections/homesections';
|
||||
import { ServerConnections } from 'lib/jellyfin-apiclient';
|
||||
|
||||
import '../elements/emby-itemscontainer/emby-itemscontainer';
|
||||
import 'elements/emby-itemscontainer/emby-itemscontainer';
|
||||
|
||||
class HomeTab {
|
||||
constructor(view, params) {
|
||||
+10
-10
@@ -61,7 +61,7 @@ const LIST_VIEW_TYPES = [
|
||||
];
|
||||
|
||||
function autoFocus(container) {
|
||||
import('../../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
import('components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
autoFocuser.autoFocus(container);
|
||||
});
|
||||
}
|
||||
@@ -178,7 +178,7 @@ function renderSeriesTimerEditor(page, item, apiClient, user) {
|
||||
}
|
||||
|
||||
if (user.Policy.EnableLiveTvManagement) {
|
||||
import('../../components/recordingcreator/seriesrecordingeditor').then(({ default: seriesRecordingEditor }) => {
|
||||
import('components/recordingcreator/seriesrecordingeditor').then(({ default: seriesRecordingEditor }) => {
|
||||
seriesRecordingEditor.embed(item, apiClient.serverId(), {
|
||||
context: page.querySelector('.seriesRecordingEditor')
|
||||
});
|
||||
@@ -708,7 +708,7 @@ function showRecordingFields(instance, page, item, user) {
|
||||
const recordingFieldsElement = page.querySelector('.recordingFields');
|
||||
|
||||
if (item.Type == 'Program' && user.Policy.EnableLiveTvManagement) {
|
||||
import('../../components/recordingcreator/recordingfields').then(({ default: RecordingFields }) => {
|
||||
import('components/recordingcreator/recordingfields').then(({ default: RecordingFields }) => {
|
||||
instance.currentRecordingFields = new RecordingFields({
|
||||
parent: recordingFieldsElement,
|
||||
programId: item.Id,
|
||||
@@ -1457,13 +1457,13 @@ function renderChildren(page, item) {
|
||||
}
|
||||
|
||||
function renderItemsByName(page, item, user) {
|
||||
import('../../scripts/itemsByName').then(({ default: ItemsByName }) => {
|
||||
import('scripts/itemsByName').then(({ default: ItemsByName }) => {
|
||||
ItemsByName.renderItems(page, item, user);
|
||||
});
|
||||
}
|
||||
|
||||
function renderPlaylistItems(page, item) {
|
||||
import('../../scripts/playlistViewer').then(({ default: PlaylistViewer }) => {
|
||||
import('scripts/playlistViewer').then(({ default: PlaylistViewer }) => {
|
||||
PlaylistViewer.render(page, item);
|
||||
});
|
||||
}
|
||||
@@ -1740,7 +1740,7 @@ function renderScenes(page, item) {
|
||||
page.querySelector('#scenesCollapsible').classList.remove('hide');
|
||||
const scenesContent = page.querySelector('#scenesContent');
|
||||
|
||||
import('../../components/cardbuilder/chaptercardbuilder').then(({ default: chaptercardbuilder }) => {
|
||||
import('components/cardbuilder/chaptercardbuilder').then(({ default: chaptercardbuilder }) => {
|
||||
chaptercardbuilder.buildChapterCards(item, chapters, {
|
||||
itemsContainer: scenesContent,
|
||||
backdropShape: 'overflowBackdrop',
|
||||
@@ -1782,7 +1782,7 @@ function renderCast(page, item, people) {
|
||||
page.querySelector('#castCollapsible').classList.remove('hide');
|
||||
const castContent = page.querySelector('#castContent');
|
||||
|
||||
import('../../components/cardbuilder/peoplecardbuilder').then(({ default: peoplecardbuilder }) => {
|
||||
import('components/cardbuilder/peoplecardbuilder').then(({ default: peoplecardbuilder }) => {
|
||||
peoplecardbuilder.buildPeopleCards(people, {
|
||||
itemsContainer: castContent,
|
||||
coverImage: true,
|
||||
@@ -1802,7 +1802,7 @@ function renderGuestCast(page, item, people) {
|
||||
page.querySelector('#guestCastCollapsible').classList.remove('hide');
|
||||
const guestCastContent = page.querySelector('#guestCastContent');
|
||||
|
||||
import('../../components/cardbuilder/peoplecardbuilder').then(({ default: peoplecardbuilder }) => {
|
||||
import('components/cardbuilder/peoplecardbuilder').then(({ default: peoplecardbuilder }) => {
|
||||
peoplecardbuilder.buildPeopleCards(people, {
|
||||
itemsContainer: guestCastContent,
|
||||
coverImage: true,
|
||||
@@ -1937,7 +1937,7 @@ export default function (view, params) {
|
||||
}
|
||||
|
||||
function onCancelSeriesTimerClick() {
|
||||
import('../../components/recordingcreator/recordinghelper').then(({ default: recordingHelper }) => {
|
||||
import('components/recordingcreator/recordinghelper').then(({ default: recordingHelper }) => {
|
||||
recordingHelper.cancelSeriesTimerWithConfirmation(currentItem.Id, currentItem.ServerId).then(function () {
|
||||
Dashboard.navigate('livetv');
|
||||
});
|
||||
@@ -1945,7 +1945,7 @@ export default function (view, params) {
|
||||
}
|
||||
|
||||
function onCancelTimerClick() {
|
||||
import('../../components/recordingcreator/recordinghelper').then(({ default: recordingHelper }) => {
|
||||
import('components/recordingcreator/recordinghelper').then(({ default: recordingHelper }) => {
|
||||
recordingHelper.cancelTimer(ServerConnections.getApiClient(currentItem.ServerId), currentItem.TimerId).then(function () {
|
||||
reload(self, view, params);
|
||||
});
|
||||
@@ -1,17 +1,17 @@
|
||||
import globalize from '../lib/globalize';
|
||||
import listView from '../components/listview/listview';
|
||||
import * as userSettings from '../scripts/settings/userSettings';
|
||||
import focusManager from '../components/focusManager';
|
||||
import cardBuilder from '../components/cardbuilder/cardBuilder';
|
||||
import loading from '../components/loading/loading';
|
||||
import AlphaNumericShortcuts from '../scripts/alphanumericshortcuts';
|
||||
import libraryBrowser from '../scripts/libraryBrowser';
|
||||
import { playbackManager } from '../components/playback/playbackmanager';
|
||||
import AlphaPicker from '../components/alphaPicker/alphaPicker';
|
||||
import globalize from 'lib/globalize';
|
||||
import listView from 'components/listview/listview';
|
||||
import * as userSettings from 'scripts/settings/userSettings';
|
||||
import focusManager from 'components/focusManager';
|
||||
import cardBuilder from 'components/cardbuilder/cardBuilder';
|
||||
import loading from 'components/loading/loading';
|
||||
import AlphaNumericShortcuts from 'scripts/alphanumericshortcuts';
|
||||
import libraryBrowser from 'scripts/libraryBrowser';
|
||||
import { playbackManager } from 'components/playback/playbackmanager';
|
||||
import AlphaPicker from 'components/alphaPicker/alphaPicker';
|
||||
import { ServerConnections } from 'lib/jellyfin-apiclient';
|
||||
import '../elements/emby-itemscontainer/emby-itemscontainer';
|
||||
import '../elements/emby-scroller/emby-scroller';
|
||||
import LibraryMenu from '../scripts/libraryMenu';
|
||||
import 'elements/emby-itemscontainer/emby-itemscontainer';
|
||||
import 'elements/emby-scroller/emby-scroller';
|
||||
import LibraryMenu from 'scripts/libraryMenu';
|
||||
import { CollectionType } from '@jellyfin/sdk/lib/generated-client/models/collection-type';
|
||||
import { ItemSortBy } from '@jellyfin/sdk/lib/generated-client/models/item-sort-by';
|
||||
import { stopMultiSelect } from 'components/multiSelect/multiSelect';
|
||||
@@ -363,7 +363,7 @@ function getItem(params) {
|
||||
function showViewSettingsMenu() {
|
||||
const instance = this;
|
||||
|
||||
import('../components/viewSettings/viewSettings').then(({ default: ViewSettings }) => {
|
||||
import('components/viewSettings/viewSettings').then(({ default: ViewSettings }) => {
|
||||
new ViewSettings().show({
|
||||
settingsKey: instance.getSettingsKey(),
|
||||
settings: instance.getViewSettings(),
|
||||
@@ -378,7 +378,7 @@ function showViewSettingsMenu() {
|
||||
function showFilterMenu() {
|
||||
const instance = this;
|
||||
|
||||
import('../components/filtermenu/filtermenu').then(({ default: FilterMenu }) => {
|
||||
import('components/filtermenu/filtermenu').then(({ default: FilterMenu }) => {
|
||||
new FilterMenu().show({
|
||||
settingsKey: instance.getSettingsKey(),
|
||||
settings: instance.getFilters(),
|
||||
@@ -397,7 +397,7 @@ function showFilterMenu() {
|
||||
function showSortMenu() {
|
||||
const instance = this;
|
||||
|
||||
import('../components/sortmenu/sortmenu').then(({ default: SortMenu }) => {
|
||||
import('components/sortmenu/sortmenu').then(({ default: SortMenu }) => {
|
||||
new SortMenu().show({
|
||||
settingsKey: instance.getSettingsKey(),
|
||||
settings: instance.getSortValues(),
|
||||
@@ -415,7 +415,7 @@ function showSortMenu() {
|
||||
function onNewItemClick() {
|
||||
const instance = this;
|
||||
|
||||
import('../components/playlisteditor/playlisteditor').then(({ default: PlaylistEditor }) => {
|
||||
import('components/playlisteditor/playlisteditor').then(({ default: PlaylistEditor }) => {
|
||||
const playlistEditor = new PlaylistEditor();
|
||||
playlistEditor.show({
|
||||
items: [],
|
||||
@@ -800,7 +800,7 @@ class ItemsView {
|
||||
}
|
||||
|
||||
function autoFocus() {
|
||||
import('../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
import('components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
autoFocuser.autoFocus(view);
|
||||
});
|
||||
}
|
||||
+9
-9
@@ -1,12 +1,12 @@
|
||||
import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
||||
import imageLoader from '../../components/images/imageLoader';
|
||||
import libraryBrowser from '../../scripts/libraryBrowser';
|
||||
import loading from '../../components/loading/loading';
|
||||
import * as userSettings from '../../scripts/settings/userSettings';
|
||||
import Events from '../../utils/events.ts';
|
||||
import cardBuilder from 'components/cardbuilder/cardBuilder';
|
||||
import imageLoader from 'components/images/imageLoader';
|
||||
import libraryBrowser from 'scripts/libraryBrowser';
|
||||
import loading from 'components/loading/loading';
|
||||
import * as userSettings from 'scripts/settings/userSettings';
|
||||
import Events from 'utils/events';
|
||||
import { setFilterStatus } from 'components/filterdialog/filterIndicator';
|
||||
|
||||
import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||
import 'elements/emby-itemscontainer/emby-itemscontainer';
|
||||
|
||||
export default function (view, params, tabContent) {
|
||||
function getPageData() {
|
||||
@@ -101,7 +101,7 @@ export default function (view, params, tabContent) {
|
||||
}
|
||||
|
||||
function showFilterMenu(context) {
|
||||
import('../../components/filterdialog/filterdialog').then(({ default: FilterDialog }) => {
|
||||
import('components/filterdialog/filterdialog').then(({ default: FilterDialog }) => {
|
||||
const filterDialog = new FilterDialog({
|
||||
query: getQuery(),
|
||||
mode: 'livetvchannels',
|
||||
@@ -127,7 +127,7 @@ export default function (view, params, tabContent) {
|
||||
loading.hide();
|
||||
isLoading = false;
|
||||
|
||||
import('../../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
import('components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
autoFocuser.autoFocus(context);
|
||||
});
|
||||
});
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import Guide from '../../components/guide/guide';
|
||||
import Guide from 'components/guide/guide';
|
||||
|
||||
export default function (view, params, tabContent) {
|
||||
let guideInstance;
|
||||
+5
-5
@@ -1,8 +1,8 @@
|
||||
import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
||||
import imageLoader from '../../components/images/imageLoader';
|
||||
import loading from '../../components/loading/loading';
|
||||
import '../../elements/emby-button/paper-icon-button-light';
|
||||
import '../../elements/emby-button/emby-button';
|
||||
import cardBuilder from 'components/cardbuilder/cardBuilder';
|
||||
import imageLoader from 'components/images/imageLoader';
|
||||
import loading from 'components/loading/loading';
|
||||
import 'elements/emby-button/paper-icon-button-light';
|
||||
import 'elements/emby-button/emby-button';
|
||||
|
||||
function renderTimers(context, timers) {
|
||||
const html = cardBuilder.getCardsHtml({
|
||||
+1
-1
@@ -51,7 +51,7 @@ function loadRecommendedPrograms(page) {
|
||||
});
|
||||
loading.hide();
|
||||
|
||||
import('../../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
import('components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
autoFocuser.autoFocus(page);
|
||||
});
|
||||
});
|
||||
@@ -14,7 +14,7 @@ import keyboardNavigation from 'scripts/keyboardNavigation';
|
||||
import LibraryMenu from 'scripts/libraryMenu';
|
||||
import Events from 'utils/events';
|
||||
|
||||
import '../styles/lyrics.scss';
|
||||
import 'styles/lyrics.scss';
|
||||
|
||||
let currentPlayer;
|
||||
let currentItem;
|
||||
+11
-11
@@ -1,12 +1,12 @@
|
||||
import loading from '../../components/loading/loading';
|
||||
import libraryBrowser from '../../scripts/libraryBrowser';
|
||||
import { AlphaPicker } from '../../components/alphaPicker/alphaPicker';
|
||||
import imageLoader from '../../components/images/imageLoader';
|
||||
import listView from '../../components/listview/listview';
|
||||
import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
||||
import * as userSettings from '../../scripts/settings/userSettings';
|
||||
import globalize from '../../lib/globalize';
|
||||
import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||
import loading from 'components/loading/loading';
|
||||
import libraryBrowser from 'scripts/libraryBrowser';
|
||||
import { AlphaPicker } from 'components/alphaPicker/alphaPicker';
|
||||
import imageLoader from 'components/images/imageLoader';
|
||||
import listView from 'components/listview/listview';
|
||||
import cardBuilder from 'components/cardbuilder/cardBuilder';
|
||||
import * as userSettings from 'scripts/settings/userSettings';
|
||||
import globalize from 'lib/globalize';
|
||||
import 'elements/emby-itemscontainer/emby-itemscontainer';
|
||||
|
||||
export default function (view, params, tabContent) {
|
||||
function getPageData() {
|
||||
@@ -189,7 +189,7 @@ export default function (view, params, tabContent) {
|
||||
loading.hide();
|
||||
isLoading = false;
|
||||
|
||||
import('../../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
import('components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
autoFocuser.autoFocus(page);
|
||||
});
|
||||
});
|
||||
@@ -242,7 +242,7 @@ export default function (view, params, tabContent) {
|
||||
reloadItems(tabElement);
|
||||
});
|
||||
tabElement.querySelector('.btnNewCollection').addEventListener('click', () => {
|
||||
import('../../components/collectionEditor/collectionEditor').then(({ default: CollectionEditor }) => {
|
||||
import('components/collectionEditor/collectionEditor').then(({ default: CollectionEditor }) => {
|
||||
const serverId = ApiClient.serverInfo().Id;
|
||||
const collectionEditor = new CollectionEditor();
|
||||
collectionEditor.show({
|
||||
@@ -1,15 +1,15 @@
|
||||
import loading from '../../components/loading/loading';
|
||||
import * as userSettings from '../../scripts/settings/userSettings';
|
||||
import libraryBrowser from '../../scripts/libraryBrowser';
|
||||
import { AlphaPicker } from '../../components/alphaPicker/alphaPicker';
|
||||
import listView from '../../components/listview/listview';
|
||||
import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
||||
import globalize from '../../lib/globalize';
|
||||
import Events from '../../utils/events.ts';
|
||||
import { playbackManager } from '../../components/playback/playbackmanager';
|
||||
import loading from 'components/loading/loading';
|
||||
import * as userSettings from 'scripts/settings/userSettings';
|
||||
import libraryBrowser from 'scripts/libraryBrowser';
|
||||
import { AlphaPicker } from 'components/alphaPicker/alphaPicker';
|
||||
import listView from 'components/listview/listview';
|
||||
import cardBuilder from 'components/cardbuilder/cardBuilder';
|
||||
import globalize from 'lib/globalize';
|
||||
import Events from 'utils/events';
|
||||
import { playbackManager } from 'components/playback/playbackmanager';
|
||||
import { getFilterStatus, setFilterStatus } from 'components/filterdialog/filterIndicator';
|
||||
|
||||
import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||
import 'elements/emby-itemscontainer/emby-itemscontainer';
|
||||
|
||||
export default function (view, params, tabContent, options) {
|
||||
const onViewStyleChange = () => {
|
||||
@@ -108,7 +108,7 @@ export default function (view, params, tabContent, options) {
|
||||
isLoading = false;
|
||||
loading.hide();
|
||||
|
||||
import('../../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
import('components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
autoFocuser.autoFocus(tabContent);
|
||||
});
|
||||
};
|
||||
@@ -307,7 +307,7 @@ export default function (view, params, tabContent, options) {
|
||||
query = userSettings.loadQuerySettings(savedQueryKey, query);
|
||||
|
||||
this.showFilterMenu = function () {
|
||||
import('../../components/filterdialog/filterdialog').then(({ default: FilterDialog }) => {
|
||||
import('components/filterdialog/filterdialog').then(({ default: FilterDialog }) => {
|
||||
const filterDialog = new FilterDialog({
|
||||
query: query,
|
||||
mode: 'movies',
|
||||
+1
-2
@@ -185,7 +185,7 @@ function loadSuggestions(page, userId) {
|
||||
}
|
||||
|
||||
function autoFocus(page) {
|
||||
import('../../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
import('components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
autoFocuser.autoFocus(page);
|
||||
});
|
||||
}
|
||||
@@ -403,4 +403,3 @@ export default function (view, params) {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
+13
-14
@@ -1,16 +1,16 @@
|
||||
import { playbackManager } from '../../components/playback/playbackmanager';
|
||||
import loading from '../../components/loading/loading';
|
||||
import libraryBrowser from '../../scripts/libraryBrowser';
|
||||
import imageLoader from '../../components/images/imageLoader';
|
||||
import AlphaPicker from '../../components/alphaPicker/alphaPicker';
|
||||
import listView from '../../components/listview/listview';
|
||||
import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
||||
import * as userSettings from '../../scripts/settings/userSettings';
|
||||
import globalize from '../../lib/globalize';
|
||||
import Events from '../../utils/events.ts';
|
||||
import { playbackManager } from 'components/playback/playbackmanager';
|
||||
import loading from 'components/loading/loading';
|
||||
import libraryBrowser from 'scripts/libraryBrowser';
|
||||
import imageLoader from 'components/images/imageLoader';
|
||||
import AlphaPicker from 'components/alphaPicker/alphaPicker';
|
||||
import listView from 'components/listview/listview';
|
||||
import cardBuilder from 'components/cardbuilder/cardBuilder';
|
||||
import * as userSettings from 'scripts/settings/userSettings';
|
||||
import globalize from 'lib/globalize';
|
||||
import Events from 'utils/events';
|
||||
import { setFilterStatus } from 'components/filterdialog/filterIndicator';
|
||||
|
||||
import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||
import 'elements/emby-itemscontainer/emby-itemscontainer';
|
||||
|
||||
export default function (view, params, tabContent) {
|
||||
function playAll() {
|
||||
@@ -177,7 +177,7 @@ export default function (view, params, tabContent) {
|
||||
loading.hide();
|
||||
isLoading = false;
|
||||
|
||||
import('../../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
import('components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
autoFocuser.autoFocus(tabContent);
|
||||
});
|
||||
});
|
||||
@@ -187,7 +187,7 @@ export default function (view, params, tabContent) {
|
||||
let isLoading = false;
|
||||
|
||||
this.showFilterMenu = function () {
|
||||
import('../../components/filterdialog/filterdialog').then(({ default: FilterDialog }) => {
|
||||
import('components/filterdialog/filterdialog').then(({ default: FilterDialog }) => {
|
||||
const filterDialog = new FilterDialog({
|
||||
query: getQuery(),
|
||||
mode: 'albums',
|
||||
@@ -296,4 +296,3 @@ export default function (view, params, tabContent) {
|
||||
this.alphaPicker?.updateControls(getQuery());
|
||||
};
|
||||
}
|
||||
|
||||
+11
-12
@@ -1,14 +1,14 @@
|
||||
import loading from '../../components/loading/loading';
|
||||
import libraryBrowser from '../../scripts/libraryBrowser';
|
||||
import imageLoader from '../../components/images/imageLoader';
|
||||
import { AlphaPicker } from '../../components/alphaPicker/alphaPicker';
|
||||
import listView from '../../components/listview/listview';
|
||||
import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
||||
import * as userSettings from '../../scripts/settings/userSettings';
|
||||
import Events from '../../utils/events.ts';
|
||||
import loading from 'components/loading/loading';
|
||||
import libraryBrowser from 'scripts/libraryBrowser';
|
||||
import imageLoader from 'components/images/imageLoader';
|
||||
import { AlphaPicker } from 'components/alphaPicker/alphaPicker';
|
||||
import listView from 'components/listview/listview';
|
||||
import cardBuilder from 'components/cardbuilder/cardBuilder';
|
||||
import * as userSettings from 'scripts/settings/userSettings';
|
||||
import Events from 'utils/events';
|
||||
import { setFilterStatus } from 'components/filterdialog/filterIndicator';
|
||||
|
||||
import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||
import 'elements/emby-itemscontainer/emby-itemscontainer';
|
||||
|
||||
export default function (view, params, tabContent, options) {
|
||||
function getPageData() {
|
||||
@@ -159,7 +159,7 @@ export default function (view, params, tabContent, options) {
|
||||
loading.hide();
|
||||
isLoading = false;
|
||||
|
||||
import('../../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
import('components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
autoFocuser.autoFocus(tabContent);
|
||||
});
|
||||
});
|
||||
@@ -169,7 +169,7 @@ export default function (view, params, tabContent, options) {
|
||||
let isLoading = false;
|
||||
|
||||
this.showFilterMenu = function () {
|
||||
import('../../components/filterdialog/filterdialog').then(({ default: FilterDialog }) => {
|
||||
import('components/filterdialog/filterdialog').then(({ default: FilterDialog }) => {
|
||||
const filterDialog = new FilterDialog({
|
||||
query: getQuery(),
|
||||
mode: options.mode,
|
||||
@@ -238,4 +238,3 @@ export default function (view, params, tabContent, options) {
|
||||
this.alphaPicker?.updateControls(getQuery());
|
||||
};
|
||||
}
|
||||
|
||||
+5
-5
@@ -1,7 +1,7 @@
|
||||
import * as userSettings from '../../scripts/settings/userSettings';
|
||||
import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
||||
import imageLoader from '../../components/images/imageLoader';
|
||||
import loading from '../../components/loading/loading';
|
||||
import * as userSettings from 'scripts/settings/userSettings';
|
||||
import cardBuilder from 'components/cardbuilder/cardBuilder';
|
||||
import imageLoader from 'components/images/imageLoader';
|
||||
import loading from 'components/loading/loading';
|
||||
|
||||
export default function (view, params, tabContent) {
|
||||
function getPageData() {
|
||||
@@ -90,7 +90,7 @@ export default function (view, params, tabContent) {
|
||||
userSettings.saveQuerySettings(getSavedQueryKey(), query);
|
||||
loading.hide();
|
||||
|
||||
import('../../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
import('components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
autoFocuser.autoFocus(context);
|
||||
});
|
||||
});
|
||||
+5
-5
@@ -1,7 +1,7 @@
|
||||
import * as userSettings from '../../scripts/settings/userSettings';
|
||||
import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
||||
import imageLoader from '../../components/images/imageLoader';
|
||||
import loading from '../../components/loading/loading';
|
||||
import * as userSettings from 'scripts/settings/userSettings';
|
||||
import cardBuilder from 'components/cardbuilder/cardBuilder';
|
||||
import imageLoader from 'components/images/imageLoader';
|
||||
import loading from 'components/loading/loading';
|
||||
|
||||
export default function (view, params, tabContent) {
|
||||
function getPageData() {
|
||||
@@ -60,7 +60,7 @@ export default function (view, params, tabContent) {
|
||||
userSettings.saveQuerySettings(getSavedQueryKey(), query);
|
||||
loading.hide();
|
||||
|
||||
import('../../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
import('components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
autoFocuser.autoFocus(context);
|
||||
});
|
||||
});
|
||||
+2
-2
@@ -73,7 +73,7 @@ function loadLatest(page, parentId) {
|
||||
imageLoader.lazyChildren(elem);
|
||||
loading.hide();
|
||||
|
||||
import('../../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
import('components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
autoFocuser.autoFocus(page);
|
||||
});
|
||||
});
|
||||
@@ -169,7 +169,7 @@ function loadSuggestionsTab(page, tabContent, parentId) {
|
||||
loadRecentlyPlayed(tabContent, parentId);
|
||||
loadFrequentlyPlayed(tabContent, parentId);
|
||||
|
||||
import('../../components/favoriteitems').then(({ default: favoriteItems }) => {
|
||||
import('components/favoriteitems').then(({ default: favoriteItems }) => {
|
||||
favoriteItems.render(tabContent, ApiClient.getCurrentUserId(), parentId, ['favoriteArtists', 'favoriteAlbums', 'favoriteSongs']);
|
||||
});
|
||||
}
|
||||
@@ -1,16 +1,16 @@
|
||||
|
||||
import libraryBrowser from '../../scripts/libraryBrowser';
|
||||
import imageLoader from '../../components/images/imageLoader';
|
||||
import listView from '../../components/listview/listview';
|
||||
import loading from '../../components/loading/loading';
|
||||
import { playbackManager } from '../../components/playback/playbackmanager';
|
||||
import * as userSettings from '../../scripts/settings/userSettings';
|
||||
import globalize from '../../lib/globalize';
|
||||
import Dashboard from '../../utils/dashboard';
|
||||
import Events from '../../utils/events.ts';
|
||||
import libraryBrowser from 'scripts/libraryBrowser';
|
||||
import imageLoader from 'components/images/imageLoader';
|
||||
import listView from 'components/listview/listview';
|
||||
import loading from 'components/loading/loading';
|
||||
import { playbackManager } from 'components/playback/playbackmanager';
|
||||
import * as userSettings from 'scripts/settings/userSettings';
|
||||
import globalize from 'lib/globalize';
|
||||
import Dashboard from 'utils/dashboard';
|
||||
import Events from 'utils/events';
|
||||
import { setFilterStatus } from 'components/filterdialog/filterIndicator';
|
||||
|
||||
import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||
import 'elements/emby-itemscontainer/emby-itemscontainer';
|
||||
|
||||
export default function (view, params, tabContent) {
|
||||
function getPageData() {
|
||||
@@ -123,7 +123,7 @@ export default function (view, params, tabContent) {
|
||||
loading.hide();
|
||||
isLoading = false;
|
||||
|
||||
import('../../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
import('components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
autoFocuser.autoFocus(page);
|
||||
});
|
||||
});
|
||||
@@ -134,7 +134,7 @@ export default function (view, params, tabContent) {
|
||||
let isLoading = false;
|
||||
|
||||
self.showFilterMenu = function () {
|
||||
import('../../components/filterdialog/filterdialog').then(({ default: FilterDialog }) => {
|
||||
import('components/filterdialog/filterdialog').then(({ default: FilterDialog }) => {
|
||||
const filterDialog = new FilterDialog({
|
||||
query: getQuery(),
|
||||
mode: 'songs',
|
||||
+10
-10
@@ -1,13 +1,13 @@
|
||||
import RemoteControl from '../../../components/remotecontrol/remotecontrol';
|
||||
import { playbackManager } from '../../../components/playback/playbackmanager';
|
||||
import { clearBackdrop } from '../../../components/backdrop/backdrop';
|
||||
import libraryMenu from '../../../scripts/libraryMenu';
|
||||
import '../../../elements/emby-button/emby-button';
|
||||
import '../../../elements/emby-button/paper-icon-button-light';
|
||||
import '../../../elements/emby-collapse/emby-collapse';
|
||||
import '../../../elements/emby-input/emby-input';
|
||||
import '../../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||
import '../../../elements/emby-slider/emby-slider';
|
||||
import RemoteControl from 'components/remotecontrol/remotecontrol';
|
||||
import { playbackManager } from 'components/playback/playbackmanager';
|
||||
import { clearBackdrop } from 'components/backdrop/backdrop';
|
||||
import libraryMenu from 'scripts/libraryMenu';
|
||||
import 'elements/emby-button/emby-button';
|
||||
import 'elements/emby-button/paper-icon-button-light';
|
||||
import 'elements/emby-collapse/emby-collapse';
|
||||
import 'elements/emby-input/emby-input';
|
||||
import 'elements/emby-itemscontainer/emby-itemscontainer';
|
||||
import 'elements/emby-slider/emby-slider';
|
||||
|
||||
export default function (view) {
|
||||
const remoteControl = new RemoteControl();
|
||||
+32
-32
@@ -6,33 +6,33 @@ import { PluginType } from 'constants/pluginType';
|
||||
import { TICKS_PER_MINUTE, TICKS_PER_SECOND } from 'constants/time';
|
||||
import { EventType } from 'constants/eventType';
|
||||
|
||||
import { playbackManager } from '../../../components/playback/playbackmanager';
|
||||
import browser from '../../../scripts/browser';
|
||||
import dom from '../../../utils/dom';
|
||||
import inputManager from '../../../scripts/inputManager';
|
||||
import mouseManager from '../../../scripts/mouseManager';
|
||||
import datetime from '../../../scripts/datetime';
|
||||
import itemHelper from '../../../components/itemHelper';
|
||||
import mediaInfo from '../../../components/mediainfo/mediainfo';
|
||||
import focusManager from '../../../components/focusManager';
|
||||
import Events from '../../../utils/events.ts';
|
||||
import globalize from '../../../lib/globalize';
|
||||
import { appHost } from '../../../components/apphost';
|
||||
import layoutManager from '../../../components/layoutManager';
|
||||
import * as userSettings from '../../../scripts/settings/userSettings';
|
||||
import keyboardnavigation from '../../../scripts/keyboardNavigation';
|
||||
import '../../../styles/scrollstyles.scss';
|
||||
import '../../../elements/emby-slider/emby-slider';
|
||||
import '../../../elements/emby-button/paper-icon-button-light';
|
||||
import '../../../elements/emby-ratingbutton/emby-ratingbutton';
|
||||
import '../../../styles/videoosd.scss';
|
||||
import shell from '../../../scripts/shell';
|
||||
import SubtitleSync from '../../../components/subtitlesync/subtitlesync';
|
||||
import { appRouter } from '../../../components/router/appRouter';
|
||||
import { playbackManager } from 'components/playback/playbackmanager';
|
||||
import browser from 'scripts/browser';
|
||||
import dom from 'utils/dom';
|
||||
import inputManager from 'scripts/inputManager';
|
||||
import mouseManager from 'scripts/mouseManager';
|
||||
import datetime from 'scripts/datetime';
|
||||
import itemHelper from 'components/itemHelper';
|
||||
import mediaInfo from 'components/mediainfo/mediainfo';
|
||||
import focusManager from 'components/focusManager';
|
||||
import Events from 'utils/events';
|
||||
import globalize from 'lib/globalize';
|
||||
import { appHost } from 'components/apphost';
|
||||
import layoutManager from 'components/layoutManager';
|
||||
import * as userSettings from 'scripts/settings/userSettings';
|
||||
import keyboardnavigation from 'scripts/keyboardNavigation';
|
||||
import 'styles/scrollstyles.scss';
|
||||
import 'elements/emby-slider/emby-slider';
|
||||
import 'elements/emby-button/paper-icon-button-light';
|
||||
import 'elements/emby-ratingbutton/emby-ratingbutton';
|
||||
import 'styles/videoosd.scss';
|
||||
import shell from 'scripts/shell';
|
||||
import SubtitleSync from 'components/subtitlesync/subtitlesync';
|
||||
import { appRouter } from 'components/router/appRouter';
|
||||
import { ServerConnections } from 'lib/jellyfin-apiclient';
|
||||
import LibraryMenu from '../../../scripts/libraryMenu';
|
||||
import { setBackdropTransparency, TRANSPARENCY_LEVEL } from '../../../components/backdrop/backdrop';
|
||||
import { pluginManager } from '../../../components/pluginManager';
|
||||
import LibraryMenu from 'scripts/libraryMenu';
|
||||
import { setBackdropTransparency, TRANSPARENCY_LEVEL } from 'components/backdrop/backdrop';
|
||||
import { pluginManager } from 'components/pluginManager';
|
||||
|
||||
function getOpenedDialog() {
|
||||
return document.querySelector('.dialogContainer .dialog.opened');
|
||||
@@ -68,7 +68,7 @@ export default function (view) {
|
||||
|
||||
ServerConnections.getApiClient(item.ServerId).getCurrentUser().then(function (user) {
|
||||
if (user.Policy.EnableLiveTvManagement) {
|
||||
import('../../../components/recordingcreator/recordingbutton').then(({ default: RecordingButton }) => {
|
||||
import('components/recordingcreator/recordingbutton').then(({ default: RecordingButton }) => {
|
||||
if (recordingButtonManager) {
|
||||
recordingButtonManager.refreshItem(item);
|
||||
return;
|
||||
@@ -679,7 +679,7 @@ export default function (view) {
|
||||
}
|
||||
|
||||
function showComingUpNext(player) {
|
||||
import('../../../components/upnextdialog/upnextdialog').then(({ default: UpNextDialog }) => {
|
||||
import('components/upnextdialog/upnextdialog').then(({ default: UpNextDialog }) => {
|
||||
if (!(currentVisibleMenu || currentUpNextDialog)) {
|
||||
currentVisibleMenu = 'upnext';
|
||||
comingUpNextDisplayed = true;
|
||||
@@ -954,7 +954,7 @@ export default function (view) {
|
||||
function onSettingsButtonClick() {
|
||||
const btn = this;
|
||||
|
||||
import('../../../components/playback/playersettingsmenu').then((playerSettingsMenu) => {
|
||||
import('components/playback/playersettingsmenu').then((playerSettingsMenu) => {
|
||||
const player = currentPlayer;
|
||||
|
||||
if (player) {
|
||||
@@ -994,7 +994,7 @@ export default function (view) {
|
||||
}
|
||||
|
||||
function toggleStats() {
|
||||
import('../../../components/playerstats/playerstats').then(({ default: PlayerStats }) => {
|
||||
import('components/playerstats/playerstats').then(({ default: PlayerStats }) => {
|
||||
const player = currentPlayer;
|
||||
|
||||
if (player) {
|
||||
@@ -1034,7 +1034,7 @@ export default function (view) {
|
||||
});
|
||||
const positionTo = this;
|
||||
|
||||
import('../../../components/actionSheet/actionSheet').then(({ default: actionsheet }) => {
|
||||
import('components/actionSheet/actionSheet').then(({ default: actionsheet }) => {
|
||||
actionsheet.show({
|
||||
items: menuItems,
|
||||
title: globalize.translate('Audio'),
|
||||
@@ -1151,7 +1151,7 @@ export default function (view) {
|
||||
|
||||
const positionTo = this;
|
||||
|
||||
import('../../../components/actionSheet/actionSheet').then(({ default: actionsheet }) => {
|
||||
import('components/actionSheet/actionSheet').then(({ default: actionsheet }) => {
|
||||
actionsheet.show({
|
||||
title: globalize.translate('Subtitles'),
|
||||
items: menuItems,
|
||||
+2
-2
@@ -57,7 +57,7 @@ export default function(view) {
|
||||
view.querySelector('.addServerForm').addEventListener('submit', onServerSubmit);
|
||||
view.querySelector('.btnCancel').addEventListener('click', goBack);
|
||||
|
||||
import('../../../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
import('components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
autoFocuser.autoFocus(view);
|
||||
});
|
||||
|
||||
@@ -68,7 +68,7 @@ export default function(view) {
|
||||
}
|
||||
|
||||
function goBack() {
|
||||
import('../../../components/router/appRouter').then(({ appRouter }) => {
|
||||
import('components/router/appRouter').then(({ appRouter }) => {
|
||||
appRouter.back();
|
||||
});
|
||||
}
|
||||
+16
-16
@@ -4,21 +4,21 @@ import markdownIt from 'markdown-it';
|
||||
import { AppFeature } from 'constants/appFeature';
|
||||
import { ServerConnections } from 'lib/jellyfin-apiclient';
|
||||
|
||||
import { appHost } from '../../../components/apphost';
|
||||
import appSettings from '../../../scripts/settings/appSettings';
|
||||
import dom from '../../../utils/dom';
|
||||
import loading from '../../../components/loading/loading';
|
||||
import layoutManager from '../../../components/layoutManager';
|
||||
import libraryMenu from '../../../scripts/libraryMenu';
|
||||
import browser from '../../../scripts/browser';
|
||||
import globalize from '../../../lib/globalize';
|
||||
import '../../../components/cardbuilder/card.scss';
|
||||
import '../../../elements/emby-checkbox/emby-checkbox';
|
||||
import Dashboard from '../../../utils/dashboard';
|
||||
import toast from '../../../components/toast/toast';
|
||||
import dialogHelper from '../../../components/dialogHelper/dialogHelper';
|
||||
import baseAlert from '../../../components/alert';
|
||||
import { getDefaultBackgroundClass } from '../../../components/cardbuilder/utils/builder';
|
||||
import { appHost } from 'components/apphost';
|
||||
import appSettings from 'scripts/settings/appSettings';
|
||||
import dom from 'utils/dom';
|
||||
import loading from 'components/loading/loading';
|
||||
import layoutManager from 'components/layoutManager';
|
||||
import libraryMenu from 'scripts/libraryMenu';
|
||||
import browser from 'scripts/browser';
|
||||
import globalize from 'lib/globalize';
|
||||
import 'components/cardbuilder/card.scss';
|
||||
import 'elements/emby-checkbox/emby-checkbox';
|
||||
import Dashboard from 'utils/dashboard';
|
||||
import toast from 'components/toast/toast';
|
||||
import dialogHelper from 'components/dialogHelper/dialogHelper';
|
||||
import baseAlert from 'components/alert';
|
||||
import { getDefaultBackgroundClass } from 'components/cardbuilder/utils/builder';
|
||||
|
||||
import './login.scss';
|
||||
|
||||
@@ -213,7 +213,7 @@ export default function (view, params) {
|
||||
view.querySelector('.manualLoginForm').classList.add('hide');
|
||||
view.querySelector('.btnManual').classList.remove('hide');
|
||||
|
||||
import('../../../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
import('components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
autoFocuser.autoFocus(view);
|
||||
});
|
||||
}
|
||||
+19
-19
@@ -1,24 +1,24 @@
|
||||
import escapeHtml from 'escape-html';
|
||||
import loading from '../../../components/loading/loading';
|
||||
import { appRouter } from '../../../components/router/appRouter';
|
||||
import layoutManager from '../../../components/layoutManager';
|
||||
import libraryMenu from '../../../scripts/libraryMenu';
|
||||
import appSettings from '../../../scripts/settings/appSettings';
|
||||
import focusManager from '../../../components/focusManager';
|
||||
import globalize from '../../../lib/globalize';
|
||||
import actionSheet from '../../../components/actionSheet/actionSheet';
|
||||
import confirm from '../../../components/confirm/confirm';
|
||||
import dom from '../../../utils/dom';
|
||||
import browser from '../../../scripts/browser';
|
||||
import loading from 'components/loading/loading';
|
||||
import { appRouter } from 'components/router/appRouter';
|
||||
import layoutManager from 'components/layoutManager';
|
||||
import libraryMenu from 'scripts/libraryMenu';
|
||||
import appSettings from 'scripts/settings/appSettings';
|
||||
import focusManager from 'components/focusManager';
|
||||
import globalize from 'lib/globalize';
|
||||
import actionSheet from 'components/actionSheet/actionSheet';
|
||||
import confirm from 'components/confirm/confirm';
|
||||
import dom from 'utils/dom';
|
||||
import browser from 'scripts/browser';
|
||||
import 'material-design-icons-iconfont';
|
||||
import '../../../styles/flexstyles.scss';
|
||||
import '../../../elements/emby-scroller/emby-scroller';
|
||||
import '../../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||
import '../../../components/cardbuilder/card.scss';
|
||||
import '../../../elements/emby-button/emby-button';
|
||||
import Dashboard from '../../../utils/dashboard';
|
||||
import alert from '../../../components/alert';
|
||||
import { getDefaultBackgroundClass } from '../../../components/cardbuilder/utils/builder';
|
||||
import 'styles/flexstyles.scss';
|
||||
import 'elements/emby-scroller/emby-scroller';
|
||||
import 'elements/emby-itemscontainer/emby-itemscontainer';
|
||||
import 'components/cardbuilder/card.scss';
|
||||
import 'elements/emby-button/emby-button';
|
||||
import Dashboard from 'utils/dashboard';
|
||||
import alert from 'components/alert';
|
||||
import { getDefaultBackgroundClass } from 'components/cardbuilder/utils/builder';
|
||||
import { ConnectionState, ServerConnections } from 'lib/jellyfin-apiclient';
|
||||
|
||||
const enableFocusTransform = !browser.slow && !browser.edge;
|
||||
@@ -1,15 +1,15 @@
|
||||
import loading from '../../components/loading/loading';
|
||||
import libraryBrowser from '../../scripts/libraryBrowser';
|
||||
import imageLoader from '../../components/images/imageLoader';
|
||||
import listView from '../../components/listview/listview';
|
||||
import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
||||
import * as userSettings from '../../scripts/settings/userSettings';
|
||||
import globalize from '../../lib/globalize';
|
||||
import Dashboard from '../../utils/dashboard';
|
||||
import Events from '../../utils/events.ts';
|
||||
import loading from 'components/loading/loading';
|
||||
import libraryBrowser from 'scripts/libraryBrowser';
|
||||
import imageLoader from 'components/images/imageLoader';
|
||||
import listView from 'components/listview/listview';
|
||||
import cardBuilder from 'components/cardbuilder/cardBuilder';
|
||||
import * as userSettings from 'scripts/settings/userSettings';
|
||||
import globalize from 'lib/globalize';
|
||||
import Dashboard from 'utils/dashboard';
|
||||
import Events from 'utils/events';
|
||||
import { setFilterStatus } from 'components/filterdialog/filterIndicator';
|
||||
|
||||
import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||
import 'elements/emby-itemscontainer/emby-itemscontainer';
|
||||
|
||||
export default function (view, params, tabContent) {
|
||||
function getPageData() {
|
||||
@@ -159,7 +159,7 @@ export default function (view, params, tabContent) {
|
||||
loading.hide();
|
||||
isLoading = false;
|
||||
|
||||
import('../../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
import('components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
autoFocuser.autoFocus(page);
|
||||
});
|
||||
});
|
||||
@@ -170,7 +170,7 @@ export default function (view, params, tabContent) {
|
||||
let isLoading = false;
|
||||
|
||||
self.showFilterMenu = function () {
|
||||
import('../../components/filterdialog/filterdialog').then(({ default: FilterDialog }) => {
|
||||
import('components/filterdialog/filterdialog').then(({ default: FilterDialog }) => {
|
||||
const filterDialog = new FilterDialog({
|
||||
query: getQuery(),
|
||||
mode: 'episodes',
|
||||
@@ -246,4 +246,3 @@ export default function (view, params, tabContent) {
|
||||
reloadItems(tabContent);
|
||||
};
|
||||
}
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import loading from '../../components/loading/loading';
|
||||
import libraryBrowser from '../../scripts/libraryBrowser';
|
||||
import imageLoader from '../../components/images/imageLoader';
|
||||
import listView from '../../components/listview/listview';
|
||||
import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
||||
import AlphaPicker from '../../components/alphaPicker/alphaPicker';
|
||||
import * as userSettings from '../../scripts/settings/userSettings';
|
||||
import globalize from '../../lib/globalize';
|
||||
import Events from '../../utils/events.ts';
|
||||
import loading from 'components/loading/loading';
|
||||
import libraryBrowser from 'scripts/libraryBrowser';
|
||||
import imageLoader from 'components/images/imageLoader';
|
||||
import listView from 'components/listview/listview';
|
||||
import cardBuilder from 'components/cardbuilder/cardBuilder';
|
||||
import AlphaPicker from 'components/alphaPicker/alphaPicker';
|
||||
import * as userSettings from 'scripts/settings/userSettings';
|
||||
import globalize from 'lib/globalize';
|
||||
import Events from 'utils/events';
|
||||
import { setFilterStatus } from 'components/filterdialog/filterIndicator';
|
||||
|
||||
import '../../elements/emby-itemscontainer/emby-itemscontainer';
|
||||
import 'elements/emby-itemscontainer/emby-itemscontainer';
|
||||
|
||||
export default function (view, params, tabContent) {
|
||||
function getPageData() {
|
||||
@@ -188,7 +188,7 @@ export default function (view, params, tabContent) {
|
||||
loading.hide();
|
||||
isLoading = false;
|
||||
|
||||
import('../../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
import('components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
autoFocuser.autoFocus(page);
|
||||
});
|
||||
});
|
||||
@@ -198,7 +198,7 @@ export default function (view, params, tabContent) {
|
||||
let isLoading = false;
|
||||
|
||||
this.showFilterMenu = function () {
|
||||
import('../../components/filterdialog/filterdialog').then(({ default: FilterDialog }) => {
|
||||
import('components/filterdialog/filterdialog').then(({ default: FilterDialog }) => {
|
||||
const filterDialog = new FilterDialog({
|
||||
query: getQuery(),
|
||||
mode: 'series',
|
||||
@@ -1,5 +1,5 @@
|
||||
import loading from '../../components/loading/loading';
|
||||
import cardBuilder from '../../components/cardbuilder/cardBuilder';
|
||||
import loading from 'components/loading/loading';
|
||||
import cardBuilder from 'components/cardbuilder/cardBuilder';
|
||||
|
||||
function getQuery(params) {
|
||||
const key = getSavedQueryKey(params);
|
||||
@@ -47,7 +47,7 @@ function reloadItems(context, params, promise) {
|
||||
});
|
||||
loading.hide();
|
||||
|
||||
import('../../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
import('components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
autoFocuser.autoFocus(context);
|
||||
});
|
||||
});
|
||||
@@ -67,4 +67,3 @@ export default function (view, params, tabContent) {
|
||||
reloadItems(tabContent, params, promise);
|
||||
};
|
||||
}
|
||||
|
||||
+5
-5
@@ -1,8 +1,8 @@
|
||||
import layoutManager from 'components/layoutManager';
|
||||
import toast from '../../../components/toast/toast';
|
||||
import globalize from '../../../lib/globalize';
|
||||
import appSettings from '../../../scripts/settings/appSettings';
|
||||
import Events from '../../../utils/events.ts';
|
||||
import toast from 'components/toast/toast';
|
||||
import globalize from 'lib/globalize';
|
||||
import appSettings from 'scripts/settings/appSettings';
|
||||
import Events from 'utils/events';
|
||||
import keyboardNavigation from 'scripts/keyboardNavigation';
|
||||
|
||||
export default function (view) {
|
||||
@@ -29,7 +29,7 @@ export default function (view) {
|
||||
view.querySelector('form').addEventListener('submit', submit);
|
||||
view.querySelector('.btnSave').classList.remove('hide');
|
||||
|
||||
import('../../../components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
import('components/autoFocuser').then(({ default: autoFocuser }) => {
|
||||
autoFocuser.autoFocus(view);
|
||||
});
|
||||
});
|
||||
+3
-3
@@ -1,6 +1,6 @@
|
||||
import DisplaySettings from '../../../components/displaySettings/displaySettings';
|
||||
import * as userSettings from '../../../scripts/settings/userSettings';
|
||||
import autoFocuser from '../../../components/autoFocuser';
|
||||
import DisplaySettings from 'components/displaySettings/displaySettings';
|
||||
import * as userSettings from 'scripts/settings/userSettings';
|
||||
import autoFocuser from 'components/autoFocuser';
|
||||
|
||||
// Shortcuts
|
||||
const UserSettings = userSettings.UserSettings;
|
||||
@@ -1,7 +1,7 @@
|
||||
import HomescreenSettings from '../../../components/homeScreenSettings/homeScreenSettings';
|
||||
import * as userSettings from '../../../scripts/settings/userSettings';
|
||||
import autoFocuser from '../../../components/autoFocuser';
|
||||
import '../../../components/listview/listview.scss';
|
||||
import HomescreenSettings from 'components/homeScreenSettings/homeScreenSettings';
|
||||
import * as userSettings from 'scripts/settings/userSettings';
|
||||
import autoFocuser from 'components/autoFocuser';
|
||||
import 'components/listview/listview.scss';
|
||||
|
||||
// Shortcuts
|
||||
const UserSettings = userSettings.UserSettings;
|
||||
+4
-4
@@ -1,8 +1,8 @@
|
||||
|
||||
import PlaybackSettings from '../../../components/playbackSettings/playbackSettings';
|
||||
import * as userSettings from '../../../scripts/settings/userSettings';
|
||||
import autoFocuser from '../../../components/autoFocuser';
|
||||
import '../../../components/listview/listview.scss';
|
||||
import PlaybackSettings from 'components/playbackSettings/playbackSettings';
|
||||
import * as userSettings from 'scripts/settings/userSettings';
|
||||
import autoFocuser from 'components/autoFocuser';
|
||||
import 'components/listview/listview.scss';
|
||||
|
||||
// Shortcuts
|
||||
const UserSettings = userSettings.UserSettings;
|
||||
+3
-4
@@ -1,6 +1,6 @@
|
||||
import SubtitleSettings from '../../../components/subtitlesettings/subtitlesettings';
|
||||
import * as userSettings from '../../../scripts/settings/userSettings';
|
||||
import autoFocuser from '../../../components/autoFocuser';
|
||||
import SubtitleSettings from 'components/subtitlesettings/subtitlesettings';
|
||||
import * as userSettings from 'scripts/settings/userSettings';
|
||||
import autoFocuser from 'components/autoFocuser';
|
||||
|
||||
// Shortcuts
|
||||
const UserSettings = userSettings.UserSettings;
|
||||
@@ -34,4 +34,3 @@ export default function (view, params) {
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
@@ -71,7 +71,7 @@ const Home = () => {
|
||||
depends = 'favorites';
|
||||
}
|
||||
|
||||
return import(/* webpackChunkName: "[request]" */ `../../../controllers/${depends}`).then(({ default: ControllerFactory }) => {
|
||||
return import(/* webpackChunkName: "[request]" */ `../../../apps/legacy/controllers/${depends}`).then(({ default: ControllerFactory }) => {
|
||||
let controller = tabControllers[index];
|
||||
|
||||
if (!controller) {
|
||||
|
||||
@@ -53,8 +53,8 @@ const importController = (
|
||||
]);
|
||||
default:
|
||||
return Promise.all([
|
||||
import(/* webpackChunkName: "[request]" */ `../../controllers/${controller}`),
|
||||
import(/* webpackChunkName: "[request]" */ `../../controllers/${view}`)
|
||||
import(/* webpackChunkName: "[request]" */ `../../apps/legacy/controllers/${controller}`),
|
||||
import(/* webpackChunkName: "[request]" */ `../../apps/legacy/controllers/${view}`)
|
||||
.then(html => globalize.translateHtml(html))
|
||||
]);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user