mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
update shared libs
This commit is contained in:
parent
0a1cafc981
commit
8bada4146e
1 changed files with 30 additions and 3 deletions
|
@ -1543,6 +1543,12 @@ var AppInfo = {};
|
|||
$.ajax = newApiClient.ajax;
|
||||
}
|
||||
|
||||
function defineConnectionManager(connectionManager) {
|
||||
define('connectionManager', [], function () {
|
||||
return connectionManager;
|
||||
});
|
||||
}
|
||||
|
||||
//localStorage.clear();
|
||||
function createConnectionManager(credentialProviderFactory, capabilities) {
|
||||
|
||||
|
@ -1555,6 +1561,8 @@ var AppInfo = {};
|
|||
|
||||
window.ConnectionManager = new MediaBrowser.ConnectionManager(credentialProvider, AppInfo.appName, AppInfo.appVersion, AppInfo.deviceName, AppInfo.deviceId, capabilities, window.devicePixelRatio);
|
||||
|
||||
defineConnectionManager(window.ConnectionManager);
|
||||
|
||||
if (window.location.href.toLowerCase().indexOf('wizardstart.html') != -1) {
|
||||
window.ConnectionManager.clearData();
|
||||
}
|
||||
|
@ -1743,6 +1751,7 @@ var AppInfo = {};
|
|||
connectservice: apiClientBowerPath + '/connectservice',
|
||||
hammer: bowerPath + "/hammerjs/hammer.min",
|
||||
layoutManager: embyWebComponentsBowerPath + "/layoutmanager",
|
||||
pageJs: bowerPath + '/page.js/page',
|
||||
focusManager: embyWebComponentsBowerPath + "/focusmanager",
|
||||
viewManager: embyWebComponentsBowerPath + "/viewmanager",
|
||||
globalize: embyWebComponentsBowerPath + "/globalize",
|
||||
|
@ -1920,7 +1929,8 @@ var AppInfo = {};
|
|||
define("opensansFont", ['css!' + embyWebComponentsBowerPath + '/fonts/opensans/style']);
|
||||
define("montserratFont", ['css!' + embyWebComponentsBowerPath + '/fonts/montserrat/style']);
|
||||
|
||||
define('queryString', ['bower_components/query-string/index'], function () {
|
||||
define("viewcontainer", ['components/viewcontainer-lite'], returnFirstDependency);
|
||||
define('queryString', [bowerPath + '/query-string/index'], function () {
|
||||
return queryString;
|
||||
});
|
||||
|
||||
|
@ -1948,6 +1958,18 @@ var AppInfo = {};
|
|||
};
|
||||
});
|
||||
|
||||
// mock this for now. not used in this app
|
||||
define("skinManager", [], function () {
|
||||
return {
|
||||
};
|
||||
});
|
||||
|
||||
// mock this for now. not used in this app
|
||||
define("pluginManager", [], function () {
|
||||
return {
|
||||
};
|
||||
});
|
||||
|
||||
define("connectionManager", [], function () {
|
||||
return ConnectionManager;
|
||||
});
|
||||
|
@ -2219,6 +2241,7 @@ var AppInfo = {};
|
|||
var deps = [];
|
||||
|
||||
deps.push('imageLoader');
|
||||
//deps.push('bower_components/emby-webcomponents/router');
|
||||
|
||||
if (!(AppInfo.isNativeApp && browserInfo.android)) {
|
||||
document.documentElement.classList.add('minimumSizeTabs');
|
||||
|
@ -2264,12 +2287,16 @@ var AppInfo = {};
|
|||
|
||||
deps.push('css!css/card.css');
|
||||
|
||||
require(deps, function (imageLoader) {
|
||||
require(deps, function (imageLoader, pageObjects) {
|
||||
|
||||
imageLoader.enableFade = browserInfo.animate && !browserInfo.mobile;
|
||||
window.ImageLoader = imageLoader;
|
||||
|
||||
$.mobile.initializePage();
|
||||
//window.Emby = {};
|
||||
//window.Emby.Page = pageObjects;
|
||||
//window.Emby.TransparencyLevel = pageObjects.TransparencyLevel;
|
||||
//Emby.Page.start();
|
||||
|
||||
var postInitDependencies = [];
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue