mirror of
https://github.com/jellyfin/jellyfin-web
synced 2025-03-30 19:56:21 +00:00
fixes #156 - Allow server to run as a service
This commit is contained in:
parent
5aea7b2c6a
commit
90aef42513
3 changed files with 58 additions and 2 deletions
13
dashboard-ui/scripts/wizardservice.js
Normal file
13
dashboard-ui/scripts/wizardservice.js
Normal file
|
@ -0,0 +1,13 @@
|
||||||
|
(function ($, document) {
|
||||||
|
|
||||||
|
$(document).on('pageinit', "#wizardServicePage", function () {
|
||||||
|
|
||||||
|
var page = this;
|
||||||
|
|
||||||
|
$('#btnNextPage', page).on('click', function () {
|
||||||
|
|
||||||
|
Dashboard.navigate('wizardfinish.html');
|
||||||
|
});
|
||||||
|
});
|
||||||
|
|
||||||
|
})(jQuery, document, window);
|
|
@ -29,11 +29,11 @@
|
||||||
config.SaveLocalMeta = $('#chkSaveLocalMetadata', page).checked();
|
config.SaveLocalMeta = $('#chkSaveLocalMetadata', page).checked();
|
||||||
config.EnableVideoImageExtraction = $('#chkVIdeoImages', page).checked();
|
config.EnableVideoImageExtraction = $('#chkVIdeoImages', page).checked();
|
||||||
|
|
||||||
ApiClient.updateServerConfiguration(config).done(function(result) {
|
ApiClient.updateServerConfiguration(config).done(function (result) {
|
||||||
|
|
||||||
Dashboard.processServerConfigurationUpdateResult(result);
|
Dashboard.processServerConfigurationUpdateResult(result);
|
||||||
|
|
||||||
Dashboard.navigate('wizardfinish.html');
|
navigateToNextPage();
|
||||||
|
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
@ -44,6 +44,21 @@
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function navigateToNextPage() {
|
||||||
|
|
||||||
|
ApiClient.getSystemInfo().done(function (systemInfo) {
|
||||||
|
|
||||||
|
var os = systemInfo.OperatingSystem.toLowerCase();
|
||||||
|
|
||||||
|
if (os.indexOf('windows') != -1) {
|
||||||
|
Dashboard.navigate('wizardservice.html');
|
||||||
|
} else {
|
||||||
|
Dashboard.navigate('wizardfinish.html');
|
||||||
|
}
|
||||||
|
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
$(document).on('pageinit', "#wizardSettingsPage", function () {
|
$(document).on('pageinit', "#wizardSettingsPage", function () {
|
||||||
|
|
||||||
var page = this;
|
var page = this;
|
||||||
|
|
28
dashboard-ui/wizardservice.html
Normal file
28
dashboard-ui/wizardservice.html
Normal file
|
@ -0,0 +1,28 @@
|
||||||
|
<!DOCTYPE html>
|
||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<title>Media Browser</title>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div id="wizardServicePage" data-role="page" class="page standalonePage wizardPage mediaLibraryPage">
|
||||||
|
|
||||||
|
<div data-role="content">
|
||||||
|
|
||||||
|
<div class="ui-corner-all ui-shadow wizardContent">
|
||||||
|
<h2>
|
||||||
|
<img src="css/images/mblogoicon.png" />Windows Service</h2>
|
||||||
|
|
||||||
|
<p>A Windows Service has been installed.</p>
|
||||||
|
|
||||||
|
<p>Media Browser Server normally runs as a desktop application with a tray icon, but if you prefer to run it as a background service, it can be started from the windows services control panel instead.</p>
|
||||||
|
|
||||||
|
<div class="wizardNavigation">
|
||||||
|
<button type="button" data-iconpos="left" data-icon="arrow-left" data-inline="true" onclick="history.back();">Previous</button>
|
||||||
|
<button id="btnNextPage" type="button" data-iconpos="right" data-icon="arrow-right" data-inline="true">Next</button>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Add table
Add a link
Reference in a new issue