mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Replace apiclient event bus with local version
This commit is contained in:
parent
dabeda3fdd
commit
0a0e45d155
84 changed files with 159 additions and 91 deletions
|
@ -1,8 +1,8 @@
|
|||
import * as userSettings from './settings/userSettings';
|
||||
import skinManager from './themeManager';
|
||||
import { Events } from 'jellyfin-apiclient';
|
||||
import ServerConnections from '../components/ServerConnections';
|
||||
import { pageClassOn } from '../utils/dashboard';
|
||||
import Events from '../utils/events.ts';
|
||||
|
||||
// Set the default theme when loading
|
||||
skinManager.setTheme(userSettings.theme())
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import { Events } from 'jellyfin-apiclient';
|
||||
import { playbackManager } from '../components/playback/playbackmanager';
|
||||
import ServerConnections from '../components/ServerConnections';
|
||||
import Events from '../utils/events.ts';
|
||||
|
||||
export function supported() {
|
||||
return typeof(Storage) !== 'undefined';
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
import { Events } from 'jellyfin-apiclient';
|
||||
import isEmpty from 'lodash-es/isEmpty';
|
||||
|
||||
import { currentSettings as userSettings } from './settings/userSettings';
|
||||
import Events from '../utils/events.ts';
|
||||
|
||||
/* eslint-disable indent */
|
||||
|
||||
|
|
|
@ -4,7 +4,6 @@ import Headroom from 'headroom.js';
|
|||
import dom from './dom';
|
||||
import layoutManager from '../components/layoutManager';
|
||||
import inputManager from './inputManager';
|
||||
import { Events } from 'jellyfin-apiclient';
|
||||
import viewManager from '../components/viewManager/viewManager';
|
||||
import { appRouter } from '../components/appRouter';
|
||||
import { appHost } from '../components/apphost';
|
||||
|
@ -17,6 +16,7 @@ import imageHelper from './imagehelper';
|
|||
import { getMenuLinks } from '../scripts/settings/webSettings';
|
||||
import Dashboard, { pageClassOn } from '../utils/dashboard';
|
||||
import ServerConnections from '../components/ServerConnections';
|
||||
import Events from '../utils/events.ts';
|
||||
import { getParameterByName } from '../utils/url.ts';
|
||||
|
||||
import '../elements/emby-button/paper-icon-button-light';
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
import inputManager from './inputManager';
|
||||
import focusManager from '../components/focusManager';
|
||||
import browser from '../scripts/browser';
|
||||
import browser from './browser';
|
||||
import layoutManager from '../components/layoutManager';
|
||||
import { Events } from 'jellyfin-apiclient';
|
||||
import dom from '../scripts/dom';
|
||||
import dom from './dom';
|
||||
import Events from '../utils/events.ts';
|
||||
/* eslint-disable indent */
|
||||
|
||||
const self = {};
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
import { Events } from 'jellyfin-apiclient';
|
||||
import { playbackManager } from '../components/playback/playbackmanager';
|
||||
import { pluginManager } from '../components/pluginManager';
|
||||
import inputManager from './inputManager';
|
||||
import * as userSettings from './settings/userSettings';
|
||||
import ServerConnections from '../components/ServerConnections';
|
||||
import Events from '../utils/events.ts';
|
||||
|
||||
import './screensavermanager.scss';
|
||||
|
||||
function getMinIdleTime() {
|
||||
|
|
|
@ -1,12 +1,12 @@
|
|||
import { playbackManager } from '../components/playback/playbackmanager';
|
||||
import SyncPlay from '../plugins/syncPlay/core';
|
||||
import { Events } from 'jellyfin-apiclient';
|
||||
import inputManager from '../scripts/inputManager';
|
||||
import focusManager from '../components/focusManager';
|
||||
import { appRouter } from '../components/appRouter';
|
||||
import ServerConnections from '../components/ServerConnections';
|
||||
import toast from '../components/toast/toast';
|
||||
import alert from '../components/alert';
|
||||
import Events from '../utils/events.ts';
|
||||
|
||||
const serverNotifications = {};
|
||||
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
import { AppStorage, Events } from 'jellyfin-apiclient';
|
||||
import { AppStorage } from 'jellyfin-apiclient';
|
||||
import Events from '../../utils/events.ts';
|
||||
import { toBoolean } from '../../utils/string.ts';
|
||||
|
||||
class AppSettings {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import appSettings from './appSettings';
|
||||
import { Events } from 'jellyfin-apiclient';
|
||||
import Events from '../../utils/events.ts';
|
||||
import { toBoolean } from '../../utils/string.ts';
|
||||
|
||||
function onSaveTimeout() {
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
|
||||
import { Events } from 'jellyfin-apiclient';
|
||||
import serverNotifications from '../scripts/serverNotifications';
|
||||
import globalize from '../scripts/globalize';
|
||||
import '../elements/emby-button/emby-button';
|
||||
import ServerConnections from '../components/ServerConnections';
|
||||
import Events from '../utils/events.ts';
|
||||
|
||||
import '../elements/emby-button/emby-button';
|
||||
|
||||
function taskbutton(options) {
|
||||
function pollTasks() {
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
import dom from '../scripts/dom';
|
||||
import { Events } from 'jellyfin-apiclient';
|
||||
import Events from '../utils/events.ts';
|
||||
|
||||
function getTouches(e) {
|
||||
return e.changedTouches || e.targetTouches || e.touches;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue