mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
extracted connectionManager from site.js
new module ServerConnections for ConnectionManager all code adapted to this new module removed Events and ConnectionManager from eslintrc
This commit is contained in:
parent
923d53bb71
commit
5071aedcea
81 changed files with 446 additions and 397 deletions
|
@ -1,7 +1,6 @@
|
|||
import dialogHelper from './dialogHelper/dialogHelper';
|
||||
import dom from '../scripts/dom';
|
||||
import layoutManager from './layoutManager';
|
||||
import { ConnectionManager } from 'jellyfin-apiclient';
|
||||
import globalize from '../scripts/globalize';
|
||||
import loading from './loading/loading';
|
||||
import browser from '../scripts/browser';
|
||||
|
@ -12,6 +11,7 @@ import './formdialog.css';
|
|||
import '../elements/emby-button/emby-button';
|
||||
import '../elements/emby-itemscontainer/emby-itemscontainer';
|
||||
import './cardbuilder/card.css';
|
||||
import ServerConnections from './ServerConnections';
|
||||
|
||||
const enableFocusTransform = !browser.slow && !browser.edge;
|
||||
|
||||
|
@ -163,7 +163,7 @@ function tunerPicker() {
|
|||
scrollHelper.centerFocus.on(dlg.querySelector('.formDialogContent'), false);
|
||||
}
|
||||
|
||||
const apiClient = ConnectionManager.getApiClient(options.serverId);
|
||||
const apiClient = ServerConnections.getApiClient(options.serverId);
|
||||
discoverDevices(dlg, apiClient);
|
||||
|
||||
if (layoutManager.tv) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue