mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
automate loopback exception for windows store app
This commit is contained in:
parent
f5ea8f49e9
commit
5df126af54
3 changed files with 4 additions and 57 deletions
|
@ -58,14 +58,7 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
.headerButton {
|
.headerButton {
|
||||||
margin: 0 5px;
|
flex-shrink: 0;
|
||||||
background-color: transparent;
|
|
||||||
vertical-align: middle;
|
|
||||||
text-align: center;
|
|
||||||
border: 0 !important;
|
|
||||||
outline: none;
|
|
||||||
cursor: pointer;
|
|
||||||
display: inline-block;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.menuArrow {
|
.menuArrow {
|
||||||
|
@ -75,16 +68,6 @@
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
}
|
}
|
||||||
|
|
||||||
.headerButtonRight {
|
|
||||||
border-width: 0 !important;
|
|
||||||
display: inline-block;
|
|
||||||
flex-shrink: 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
.headerButtonRight:first-child {
|
|
||||||
border-width: 0 !important;
|
|
||||||
}
|
|
||||||
|
|
||||||
.hideMainDrawer .mainDrawerButton {
|
.hideMainDrawer .mainDrawerButton {
|
||||||
display: none;
|
display: none;
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,10 +43,6 @@
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (Dashboard.lastSystemInfo) {
|
|
||||||
page.querySelector('.serverNameHeader').innerHTML = Dashboard.lastSystemInfo.ServerName;
|
|
||||||
}
|
|
||||||
|
|
||||||
DashboardPage.newsStartIndex = 0;
|
DashboardPage.newsStartIndex = 0;
|
||||||
|
|
||||||
Dashboard.showLoadingMsg();
|
Dashboard.showLoadingMsg();
|
||||||
|
@ -118,7 +114,6 @@
|
||||||
ApiClient.getSystemInfo().then(function (systemInfo) {
|
ApiClient.getSystemInfo().then(function (systemInfo) {
|
||||||
|
|
||||||
page.querySelector('.serverNameHeader').innerHTML = systemInfo.ServerName;
|
page.querySelector('.serverNameHeader').innerHTML = systemInfo.ServerName;
|
||||||
Dashboard.updateSystemInfo(systemInfo);
|
|
||||||
|
|
||||||
$('#appVersionNumber', page).html(Globalize.translate('LabelVersionNumber').replace('{0}', systemInfo.Version));
|
$('#appVersionNumber', page).html(Globalize.translate('LabelVersionNumber').replace('{0}', systemInfo.Version));
|
||||||
|
|
||||||
|
|
|
@ -144,25 +144,6 @@ var Dashboard = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
updateSystemInfo: function (info) {
|
|
||||||
|
|
||||||
Dashboard.lastSystemInfo = info;
|
|
||||||
|
|
||||||
if (!Dashboard.initialServerVersion) {
|
|
||||||
Dashboard.initialServerVersion = info.Version;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (info.HasPendingRestart) {
|
|
||||||
|
|
||||||
} else {
|
|
||||||
|
|
||||||
if (Dashboard.initialServerVersion != info.Version && !AppInfo.isNativeApp) {
|
|
||||||
|
|
||||||
window.location.reload(true);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
getConfigurationPageUrl: function (name) {
|
getConfigurationPageUrl: function (name) {
|
||||||
return "configurationpage?name=" + encodeURIComponent(name);
|
return "configurationpage?name=" + encodeURIComponent(name);
|
||||||
},
|
},
|
||||||
|
@ -579,18 +560,6 @@ var Dashboard = {
|
||||||
|
|
||||||
},
|
},
|
||||||
|
|
||||||
onWebSocketMessageReceived: function (e, data) {
|
|
||||||
|
|
||||||
var msg = data;
|
|
||||||
|
|
||||||
if (msg.MessageType === "SystemInfo") {
|
|
||||||
Dashboard.updateSystemInfo(msg.Data);
|
|
||||||
}
|
|
||||||
else if (msg.MessageType === "RestartRequired") {
|
|
||||||
Dashboard.updateSystemInfo(msg.Data);
|
|
||||||
}
|
|
||||||
},
|
|
||||||
|
|
||||||
getSupportedRemoteCommands: function () {
|
getSupportedRemoteCommands: function () {
|
||||||
|
|
||||||
// Full list
|
// Full list
|
||||||
|
@ -976,9 +945,6 @@ var AppInfo = {};
|
||||||
|
|
||||||
apiClient.normalizeImageOptions = Dashboard.normalizeImageOptions;
|
apiClient.normalizeImageOptions = Dashboard.normalizeImageOptions;
|
||||||
|
|
||||||
Events.off(apiClient, 'websocketmessage', Dashboard.onWebSocketMessageReceived);
|
|
||||||
Events.on(apiClient, 'websocketmessage', Dashboard.onWebSocketMessageReceived);
|
|
||||||
|
|
||||||
Events.off(apiClient, 'requestfail', Dashboard.onRequestFail);
|
Events.off(apiClient, 'requestfail', Dashboard.onRequestFail);
|
||||||
Events.on(apiClient, 'requestfail', Dashboard.onRequestFail);
|
Events.on(apiClient, 'requestfail', Dashboard.onRequestFail);
|
||||||
}
|
}
|
||||||
|
@ -1523,6 +1489,9 @@ var AppInfo = {};
|
||||||
},
|
},
|
||||||
stop: function () {
|
stop: function () {
|
||||||
return MediaController.stop();
|
return MediaController.stop();
|
||||||
|
},
|
||||||
|
seek: function (ticks) {
|
||||||
|
return MediaController.seek(ticks);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue