1
0
Fork 0
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:
Bill Thornton 2022-10-14 10:53:16 -04:00
parent dabeda3fdd
commit 0a0e45d155
84 changed files with 159 additions and 91 deletions

View file

@ -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())

View file

@ -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';

View file

@ -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 */

View file

@ -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';

View file

@ -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 = {};

View file

@ -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() {

View file

@ -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 = {};

View file

@ -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 {

View file

@ -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() {

View file

@ -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() {

View file

@ -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;