1
0
Fork 0
mirror of https://github.com/jellyfin/jellyfin-web synced 2025-03-30 19:56:21 +00:00

update components

This commit is contained in:
Luke Pulverenti 2016-03-16 14:09:58 -04:00
parent 07de1c52f9
commit d421bfda20
4 changed files with 28 additions and 10 deletions

View file

@ -16,12 +16,12 @@
}, },
"devDependencies": {}, "devDependencies": {},
"ignore": [], "ignore": [],
"version": "1.1.66", "version": "1.1.70",
"_release": "1.1.66", "_release": "1.1.70",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "1.1.66", "tag": "1.1.70",
"commit": "a8e8f6bbf1df9a88af95b0500b002eeed19a3add" "commit": "d1fb54ac22cb5fab3fbd5622ddeb635685cd1337"
}, },
"_source": "git://github.com/MediaBrowser/emby-webcomponents.git", "_source": "git://github.com/MediaBrowser/emby-webcomponents.git",
"_target": "~1.1.5", "_target": "~1.1.5",

View file

@ -334,7 +334,22 @@ define(['loading', 'viewManager', 'skinManager', 'pluginManager', 'backdrop', 'b
ctx.handled = true; ctx.handled = true;
} }
var baseRoute = window.location.href.split('?')[0].replace('/index.html', ''); function getRequestFile() {
var path = window.location.pathname;
if (path == '/') {
path = '/index.html';
}
var index = path.lastIndexOf('/');
if (index != -1) {
return path.substring(index);
}
return '/' + path;
}
var baseRoute = window.location.href.split('?')[0].replace(getRequestFile(), '');
// support hashbang // support hashbang
baseRoute = baseRoute.split('#')[0]; baseRoute = baseRoute.split('#')[0];
if (baseRoute.lastIndexOf('/') == baseRoute.length - 1) { if (baseRoute.lastIndexOf('/') == baseRoute.length - 1) {
@ -489,7 +504,7 @@ define(['loading', 'viewManager', 'skinManager', 'pluginManager', 'backdrop', 'b
} }
function setBaseRoute() { function setBaseRoute() {
var baseRoute = window.location.pathname.replace('/index.html', ''); var baseRoute = window.location.pathname.replace(getRequestFile(), '');
if (baseRoute.lastIndexOf('/') == baseRoute.length - 1) { if (baseRoute.lastIndexOf('/') == baseRoute.length - 1) {
baseRoute = baseRoute.substring(0, baseRoute.length - 1); baseRoute = baseRoute.substring(0, baseRoute.length - 1);
} }

View file

@ -32,14 +32,14 @@
"web-component-tester": "^4.0.0", "web-component-tester": "^4.0.0",
"webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0" "webcomponentsjs": "webcomponents/webcomponentsjs#^0.7.0"
}, },
"homepage": "https://github.com/PolymerElements/iron-icon", "homepage": "https://github.com/polymerelements/iron-icon",
"_release": "1.0.8", "_release": "1.0.8",
"_resolution": { "_resolution": {
"type": "version", "type": "version",
"tag": "v1.0.8", "tag": "v1.0.8",
"commit": "f36b38928849ef3853db727faa8c9ef104d611eb" "commit": "f36b38928849ef3853db727faa8c9ef104d611eb"
}, },
"_source": "git://github.com/PolymerElements/iron-icon.git", "_source": "git://github.com/polymerelements/iron-icon.git",
"_target": "^1.0.0", "_target": "^1.0.0",
"_originalSource": "PolymerElements/iron-icon" "_originalSource": "polymerelements/iron-icon"
} }

View file

@ -1379,6 +1379,7 @@ var AppInfo = {};
AppInfo.enableHomeTabs = true; AppInfo.enableHomeTabs = true;
AppInfo.enableNowPlayingPageBottomTabs = true; AppInfo.enableNowPlayingPageBottomTabs = true;
AppInfo.enableAutoSave = browserInfo.mobile; AppInfo.enableAutoSave = browserInfo.mobile;
AppInfo.enableHashBang = Dashboard.isRunningInCordova();
AppInfo.enableAppStorePolicy = isCordova; AppInfo.enableAppStorePolicy = isCordova;
@ -1921,8 +1922,10 @@ var AppInfo = {};
// mock this for now. not used in this app // mock this for now. not used in this app
define("skinManager", [], function () { define("skinManager", [], function () {
return { return {
loadUserSkin: function () { loadUserSkin: function () {
Emby.Page.show('/home.html'); Emby.Page.show('/home.html');
} }
}; };
@ -2943,7 +2946,7 @@ var AppInfo = {};
defineCoreRoutes(); defineCoreRoutes();
Emby.Page.start({ Emby.Page.start({
click: true, click: true,
hashbang: true hashbang: AppInfo.enableHashBang
}); });
var postInitDependencies = []; var postInitDependencies = [];