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
|
@ -3,7 +3,7 @@
|
|||
* @module components/syncPlay/core/Helper
|
||||
*/
|
||||
|
||||
import { Events } from 'jellyfin-apiclient';
|
||||
import Events from '../../../utils/events.ts';
|
||||
|
||||
/**
|
||||
* Constants
|
||||
|
|
|
@ -3,7 +3,6 @@
|
|||
* @module components/syncPlay/core/Manager
|
||||
*/
|
||||
|
||||
import { Events } from 'jellyfin-apiclient';
|
||||
import * as Helper from './Helper';
|
||||
import TimeSyncCore from './timeSync/TimeSyncCore';
|
||||
import PlaybackCore from './PlaybackCore';
|
||||
|
@ -11,6 +10,7 @@ import QueueCore from './QueueCore';
|
|||
import Controller from './Controller';
|
||||
import toast from '../../../components/toast/toast';
|
||||
import globalize from '../../../scripts/globalize';
|
||||
import Events from '../../../utils/events.ts';
|
||||
|
||||
/**
|
||||
* Class that manages the SyncPlay feature.
|
||||
|
|
|
@ -2,9 +2,9 @@
|
|||
* Module that manages the playback of SyncPlay.
|
||||
* @module components/syncPlay/core/PlaybackCore
|
||||
*/
|
||||
import { Events } from 'jellyfin-apiclient';
|
||||
|
||||
import browser from '../../../scripts/browser';
|
||||
import Events from '../../../utils/events.ts';
|
||||
import { toBoolean, toFloat } from '../../../utils/string.ts';
|
||||
import * as Helper from './Helper';
|
||||
import { getSetting } from './Settings';
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* @module components/syncPlay/core/players/GenericPlayer
|
||||
*/
|
||||
|
||||
import { Events } from 'jellyfin-apiclient';
|
||||
import Events from '../../../../utils/events.ts';
|
||||
|
||||
/**
|
||||
* Class that translates events from a player to SyncPlay events.
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
* @module components/syncPlay/core/timeSync/TimeSync
|
||||
*/
|
||||
|
||||
import { Events } from 'jellyfin-apiclient';
|
||||
import Events from '../../../../utils/events.ts';
|
||||
|
||||
/**
|
||||
* Time estimation.
|
||||
|
|
|
@ -3,8 +3,8 @@
|
|||
* @module components/syncPlay/core/timeSync/TimeSyncCore
|
||||
*/
|
||||
|
||||
import { Events } from 'jellyfin-apiclient';
|
||||
import appSettings from '../../../../scripts/settings/appSettings';
|
||||
import Events from '../../../../utils/events.ts';
|
||||
import { toFloat } from '../../../../utils/string.ts';
|
||||
import { getSetting } from '../Settings';
|
||||
import TimeSyncServer from './TimeSyncServer';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue