mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
Add api and user contexts
This commit is contained in:
parent
f20ceb4274
commit
d297f23932
8 changed files with 124 additions and 22 deletions
|
@ -37,8 +37,7 @@ import './legacy/htmlMediaElement';
|
|||
import './legacy/vendorStyles';
|
||||
import { currentSettings } from './scripts/settings/userSettings';
|
||||
import taskButton from './scripts/taskbutton';
|
||||
import { HistoryRouter } from './components/HistoryRouter.tsx';
|
||||
import AppRoutes from './routes/index.tsx';
|
||||
import App from './App.tsx';
|
||||
|
||||
function loadCoreDictionary() {
|
||||
const languages = ['af', 'ar', 'be-by', 'bg-bg', 'bn_bd', 'ca', 'cs', 'cy', 'da', 'de', 'el', 'en-gb', 'en-us', 'eo', 'es', 'es-419', 'es-ar', 'es_do', 'es-mx', 'et', 'eu', 'fa', 'fi', 'fil', 'fr', 'fr-ca', 'gl', 'gsw', 'he', 'hi-in', 'hr', 'hu', 'id', 'it', 'ja', 'kk', 'ko', 'lt-lt', 'lv', 'mr', 'ms', 'nb', 'nl', 'nn', 'pl', 'pr', 'pt', 'pt-br', 'pt-pt', 'ro', 'ru', 'sk', 'sl-si', 'sq', 'sv', 'ta', 'th', 'tr', 'uk', 'ur_pk', 'vi', 'zh-cn', 'zh-hk', 'zh-tw'];
|
||||
|
@ -146,9 +145,7 @@ async function onAppReady() {
|
|||
|
||||
ReactDOM.render(
|
||||
<StrictMode>
|
||||
<HistoryRouter history={history}>
|
||||
<AppRoutes />
|
||||
</HistoryRouter>
|
||||
<App connections={ServerConnections} history={history} />
|
||||
</StrictMode>,
|
||||
document.getElementById('reactRoot')
|
||||
);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue