diff --git a/assets/webconfig/content/about.html b/assets/webconfig/content/about.html
index a4e5c61c..f853ad3f 100644
--- a/assets/webconfig/content/about.html
+++ b/assets/webconfig/content/about.html
@@ -60,7 +60,7 @@
else
{
response.text().then(function(text) {
- $("#3rdpartylicenses").text(text);
+ $("#3rdpartylicenses").html(''+text+'');
});
}
})
diff --git a/assets/webconfig/i18n/de.json b/assets/webconfig/i18n/de.json
index c869c7ce..c06d8733 100644
--- a/assets/webconfig/i18n/de.json
+++ b/assets/webconfig/i18n/de.json
@@ -76,6 +76,7 @@
"dashboard_alert_message_confsave_success" : "Deine Hyperion Konfiguration wurde erfolgreich gespeichert. Deine Änderungen sind somit übernommen.",
"dashboard_message_global_setting_t": "Instanzunabhängige Einstellung",
"dashboard_message_global_setting": "Die Einstellungen auf dieser Seite sind instanzunabhängig. Änderungen werden global übernommen.",
+ "dashboard_active_instance": "Ausgewählte Instanz",
"main_menu_dashboard_token": "Dashboard",
"main_menu_configuration_token": "Konfiguration",
"main_menu_general_conf_token": "Allgemein",
@@ -611,6 +612,8 @@
"edt_conf_net_apiAuth_expl":"Zwinge alle Anwendungen welche die Hyperion API nutzen sich zu authentifizieren. Aktivieren für höhere Sicherheit, da nun jede neue Anwendung einmalig von dir bestätigt werden muss.",
"edt_conf_net_localApiAuth_title" : "Lokale API Authentifizierung",
"edt_conf_net_localApiAuth_expl" : "Wenn aktiviert, müssen Verbindungen aus dem Heimnetzwerk mit einem Token authentifiziert werden.",
+ "edt_conf_net_restirctedInternetAccessAPI_title" : "Auf IP's beschränken",
+ "edt_conf_net_restirctedInternetAccessAPI_expl": "Den Zugriff auf die API durch das Internet auf bestimmte IP's beschränken",
"edt_conf_js_heading_title": "JSON Server",
"edt_conf_fbs_heading_title": "Flatbuffers Server",
"edt_conf_fbs_timeout_title": "Zeitüberschreitung",
diff --git a/assets/webconfig/i18n/en.json b/assets/webconfig/i18n/en.json
index 6631a983..495e9364 100644
--- a/assets/webconfig/i18n/en.json
+++ b/assets/webconfig/i18n/en.json
@@ -75,6 +75,7 @@
"dashboard_alert_message_confsave_success" : "Your Hyperion configuration has been saved successfully. Your changes are now active.",
"dashboard_message_global_setting_t": "Instance independent setting",
"dashboard_message_global_setting": "The settings on this page are not depending on a specific instance. Changes will be stored globally for all instances.",
+ "dashboard_active_instance": "Selected instance",
"main_menu_dashboard_token" : "Dashboard",
"main_menu_configuration_token" : "Configuration",
"main_menu_general_conf_token" : "General",
@@ -610,6 +611,8 @@
"edt_conf_net_apiAuth_expl":"Enforce all applications that use the Hyperion API to authenticate themself against Hyperion (Exception see \"Local API Authentication\"). Higher security, as you control the access and revoke it at any time.",
"edt_conf_net_localApiAuth_title" : "Local API Authentication",
"edt_conf_net_localApiAuth_expl" : "When enabled, connections from your home network needs to authenticate themself against Hyperion too.",
+ "edt_conf_net_restirctedInternetAccessAPI_title" : "Restrict to IP's",
+ "edt_conf_net_restirctedInternetAccessAPI_expl": "You can restrict the access to the API through the internet to certain IP's.",
"edt_conf_js_heading_title" : "JSON Server",
"edt_conf_fbs_heading_title" : "Flatbuffers Server",
"edt_conf_fbs_timeout_title" : "Timeout",
diff --git a/assets/webconfig/index.html b/assets/webconfig/index.html
index 8d54b19b..4e0b1569 100644
--- a/assets/webconfig/index.html
+++ b/assets/webconfig/index.html
@@ -211,6 +211,11 @@
+
+
+
+
+
diff --git a/assets/webconfig/js/content_colors.js b/assets/webconfig/js/content_colors.js
index 1eada9e8..bb178b1c 100644
--- a/assets/webconfig/js/content_colors.js
+++ b/assets/webconfig/js/content_colors.js
@@ -81,4 +81,3 @@ $(document).ready( function() {
removeOverlay();
});
-
diff --git a/assets/webconfig/js/ui_utils.js b/assets/webconfig/js/ui_utils.js
index 6ba30cb9..2c3b8ac7 100644
--- a/assets/webconfig/js/ui_utils.js
+++ b/assets/webconfig/js/ui_utils.js
@@ -95,6 +95,10 @@ function loadContent(event, forceRefresh)
{
var tag;
+ var lastSelectedInstance = getStorage('lastSelectedInstance', false);
+ if(lastSelectedInstance && (lastSelectedInstance != window.currentHyperionInstance))
+ instanceSwitch(lastSelectedInstance);
+
if(typeof event != "undefined")
{
tag = event.currentTarget.hash;
@@ -154,10 +158,7 @@ function updateHyperionInstanceListing()
$('#hyperioninstance_'+data[key].instance).off().on("click",function(e){
var inst = e.currentTarget.id.split("_")[1]
- requestInstanceSwitch(inst)
- window.currentHyperionInstance = inst;
- window.currentHyperionInstanceName = getInstanceNameByIndex(inst);
- updateHyperionInstanceListing()
+ instanceSwitch(inst)
});
}
}
@@ -171,13 +172,26 @@ function updateUiOnInstance(inst)
$("#hyperion_global_setting_notify").fadeIn("fast");
else
$("#hyperion_global_setting_notify").attr("style", "display:none");
+
+ $("#dashboard_active_instance_friendly_name").html($.i18n('dashboard_active_instance') + ': ' + window.serverInfo.instance[inst].friendly_name);
+ $("#dashboard_active_instance").removeAttr("style");
}
else
{
$("#hyperion_global_setting_notify").fadeOut("fast");
+ $("#dashboard_active_instance").attr("style", "display:none");
}
}
+function instanceSwitch(inst)
+{
+ requestInstanceSwitch(inst)
+ window.currentHyperionInstance = inst;
+ window.currentHyperionInstanceName = getInstanceNameByIndex(inst);
+ setStorage('lastSelectedInstance', inst, false)
+ updateHyperionInstanceListing()
+}
+
function loadContentTo(containerId, fileName)
{
$(containerId).load("/content/"+fileName+".html");
diff --git a/assets/webconfig/js/wizard.js b/assets/webconfig/js/wizard.js
index 3b56796e..a65f68e2 100644
--- a/assets/webconfig/js/wizard.js
+++ b/assets/webconfig/js/wizard.js
@@ -1,852 +1,854 @@
-
- //clear priority and other tasks if people reload the page or lost connection while a wizard was active
- $(window.hyperion).one("ready", function(event) {
- if(getStorage("wizardactive") === 'true')
- {
- requestPriorityClear();
- setStorage("wizardactive", false);
- if(getStorage("kodiAddress") != null)
- {
- kodiAddress = getStorage("kodiAddress");
- sendToKodi("stop");
- }
- }
- });
-
- function resetWizard()
+//clear priority and other tasks if people reload the page or lost connection while a wizard was active
+$(window.hyperion).one("ready", function(event) {
+ if(getStorage("wizardactive") === 'true')
{
- $("#wizard_modal").modal('hide');
- clearInterval(wIntveralId);
requestPriorityClear();
setStorage("wizardactive", false);
- $('#wizp1').toggle(true);
- $('#wizp2').toggle(false);
- $('#wizp3').toggle(false);
- //cc
- if(withKodi)
+ if(getStorage("kodiAddress") != null)
+ {
+ kodiAddress = getStorage("kodiAddress");
sendToKodi("stop");
- step = 0;
- location.reload();
- }
-
- //rgb byte order wizard
- var wIntveralId;
- var new_rgb_order;
-
- function changeColor()
- {
- var color = $("#wiz_canv_color").css('background-color');
-
- if (color == 'rgb(255, 0, 0)')
- {
- $("#wiz_canv_color").css('background-color','rgb(0, 255, 0)');
- requestSetColor('0','255','0');
- }
- else
- {
- $("#wiz_canv_color").css('background-color','rgb(255, 0, 0)');
- requestSetColor('255','0','0');
}
}
+});
- function startWizardRGB()
+function resetWizard()
+{
+ $("#wizard_modal").modal('hide');
+ clearInterval(wIntveralId);
+ requestPriorityClear();
+ setStorage("wizardactive", false);
+ $('#wizp1').toggle(true);
+ $('#wizp2').toggle(false);
+ $('#wizp3').toggle(false);
+ //cc
+ if(withKodi)
+ sendToKodi("stop");
+ step = 0;
+ location.reload();
+}
+
+//rgb byte order wizard
+var wIntveralId;
+var new_rgb_order;
+
+function changeColor()
+{
+ var color = $("#wiz_canv_color").css('background-color');
+
+ if (color == 'rgb(255, 0, 0)')
{
- //create html
- $('#wiz_header').html(''+$.i18n('wiz_rgb_title'));
- $('#wizp1_body').html('