Move server connections to lib

This commit is contained in:
Bill Thornton
2025-04-22 08:26:43 -04:00
parent 79156322fc
commit 5bcbcfbe12
113 changed files with 198 additions and 176 deletions
+2 -3
View File
@@ -5,7 +5,7 @@ import React from 'react';
import { createRoot } from 'react-dom/client';
// NOTE: We need to import this first to initialize the connection
import ServerConnections from './components/ServerConnections';
import ServerConnections from 'lib/jellyfin-apiclient/ServerConnections';
import { appHost } from './components/apphost';
import autoFocuser from './components/autoFocuser';
@@ -23,7 +23,6 @@ import { pageClassOn, serverAddress } from './utils/dashboard';
import Events from './utils/events';
import RootApp from './RootApp';
import { history } from 'RootAppRouter';
// Import the button webcomponent for use throughout the site
// NOTE: This is a bit of a hack, files should ensure the component is imported before use
@@ -206,7 +205,7 @@ async function renderApp() {
const root = createRoot(container);
root.render(
<RootApp history={history} />
<RootApp />
);
}