mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Make import paths ES6-compatible
This commit is contained in:
parent
1a635e2f81
commit
bfb8c7c1f6
245 changed files with 2073 additions and 1995 deletions
|
@ -1,12 +1,12 @@
|
|||
import browser from 'browser';
|
||||
import loading from 'loading';
|
||||
import connectionManager from 'jellyfin-apiclient';
|
||||
import loading from '../../components/loading/loading';
|
||||
import keyboardnavigation from 'keyboardnavigation';
|
||||
import dialogHelper from 'dialogHelper';
|
||||
import dom from 'dom';
|
||||
import events from 'events';
|
||||
import 'css!./style';
|
||||
import 'material-icons';
|
||||
import 'paper-icon-button-light';
|
||||
import events from 'jellyfin-apiclient';
|
||||
import './style';
|
||||
import 'material-design-icons-iconfont';
|
||||
import '../../elements/emby-button/paper-icon-button-light';
|
||||
|
||||
import TableOfContents from './tableOfContents';
|
||||
|
||||
|
|
|
@ -1,8 +1,8 @@
|
|||
import appSettings from 'appSettings';
|
||||
import * as userSettings from 'userSettings';
|
||||
import * as userSettings from '../../scripts/settings/userSettings';
|
||||
import playbackManager from 'playbackManager';
|
||||
import globalize from 'globalize';
|
||||
import events from 'events';
|
||||
import events from 'jellyfin-apiclient';
|
||||
import castSenderApiLoader from 'castSenderApiLoader';
|
||||
|
||||
// Based on https://github.com/googlecast/CastVideos-chrome/blob/master/CastVideos.js
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
import events from 'events';
|
||||
import events from 'jellyfin-apiclient';
|
||||
import browser from 'browser';
|
||||
import appHost from 'apphost';
|
||||
import * as htmlMediaHelper from 'htmlMediaHelper';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import browser from 'browser';
|
||||
import events from 'events';
|
||||
import events from 'jellyfin-apiclient';
|
||||
import appHost from 'apphost';
|
||||
import loading from 'loading';
|
||||
import loading from '../../components/loading/loading';
|
||||
import dom from 'dom';
|
||||
import playbackManager from 'playbackManager';
|
||||
import appRouter from 'appRouter';
|
||||
|
@ -1282,7 +1282,7 @@ function tryRemoveElement(elem) {
|
|||
const dlg = document.querySelector('.videoPlayerContainer');
|
||||
|
||||
if (!dlg) {
|
||||
return import('css!./style').then(() => {
|
||||
return import('./style').then(() => {
|
||||
loading.show();
|
||||
|
||||
const dlg = document.createElement('div');
|
||||
|
|
|
@ -128,7 +128,7 @@ export default function () {
|
|||
}
|
||||
|
||||
self.show = function () {
|
||||
import('css!' + pluginManager.mapPath(self, 'style.css')).then(() => {
|
||||
import('' + pluginManager.mapPath(self, 'style.css')).then(() => {
|
||||
let elem = document.querySelector('.logoScreenSaver');
|
||||
|
||||
if (!elem) {
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import events from 'events';
|
||||
import events from 'jellyfin-apiclient';
|
||||
import browser from 'browser';
|
||||
import appRouter from 'appRouter';
|
||||
import loading from 'loading';
|
||||
import loading from '../../components/loading/loading';
|
||||
|
||||
/* globals YT */
|
||||
|
||||
|
@ -20,7 +20,7 @@ function createMediaElement(instance, options) {
|
|||
const dlg = document.querySelector('.youtubePlayerContainer');
|
||||
|
||||
if (!dlg) {
|
||||
import('css!./style').then(() => {
|
||||
import('./style').then(() => {
|
||||
loading.show();
|
||||
|
||||
const dlg = document.createElement('div');
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue