From c1d794cd021eea2053a66b484f9f547c28da8911 Mon Sep 17 00:00:00 2001 From: birdhouse Date: Thu, 20 Jun 2019 19:27:22 +0200 Subject: [PATCH] WebUI: Update Check, Cleanup and Hyperion Switcher IPv6 Fix Update Check: - New Property which allows you to select stable or beta branch checks. - This would rely on current versions.json. It selects the first version in list with you branch (stable, beta). If it is newer hyperion tells you that a update is available - For this we should keep our deployment pipeline in mind to format the json this way. Cleanup: - I cleaned up the WebUI from dead links and the support page with the affiliate links and donation adresses as we don't have them under our control. Currently only disabled, not deleated Switcher: - If the address which is published via bonjour serve is IPv6 the Switcher was bugged. Fixed that. --- assets/webconfig/content/about.html | 16 ++-- assets/webconfig/content/conf_logging.html | 2 + assets/webconfig/content/dashboard.html | 10 ++- assets/webconfig/content/support.html | 88 +++++++++++----------- assets/webconfig/i18n/de.json | 5 +- assets/webconfig/i18n/en.json | 7 +- assets/webconfig/js/content_dashboard.js | 23 ++++-- assets/webconfig/js/settings.js | 50 ++++++------ config/hyperion.config.json.commented | 2 + config/hyperion.config.json.default | 1 + libsrc/hyperion/schema/schema-general.json | 15 +++- 11 files changed, 132 insertions(+), 87 deletions(-) diff --git a/assets/webconfig/content/about.html b/assets/webconfig/content/about.html index aaaf8a10..30fe9972 100644 --- a/assets/webconfig/content/about.html +++ b/assets/webconfig/content/about.html @@ -20,33 +20,33 @@ var libh = ""; var lang = []; var dcount = 0; - + for(var i = 0; i'+key+', '; libh += "
"+$.i18n("about_credits"); - + lang = lang.toString().replace(/,/g,", "); - + var fc = [''+$.i18n("about_version")+'',$.i18n("about_build"),$.i18n("about_builddate"),$.i18n("about_translations"),$.i18n("about_resources", $.i18n("general_webui_title"))]; - var sc = [currentVersion,si.build,si.time,'('+availLang.length+')

'+lang+'

'+$.i18n("about_contribute")+'

',libh]; + var sc = [currentVersion,si.build,si.time,'('+availLang.length+')

'+lang+'

'+$.i18n("about_contribute")+'

',libh]; createTable("","atb","about_cont"); for(var i = 0; i 2) $('#danger_act').toggle(true); }); - + $('#reset_cache').off().on('click',function(){ localStorage.clear(); }); - + $('#hyp_restart').off().on('click',function(){ initRestart(); }); - \ No newline at end of file + diff --git a/assets/webconfig/content/conf_logging.html b/assets/webconfig/content/conf_logging.html index e8fa472d..a9995b2f 100644 --- a/assets/webconfig/content/conf_logging.html +++ b/assets/webconfig/content/conf_logging.html @@ -7,11 +7,13 @@

+

Bericht

+
diff --git a/assets/webconfig/content/dashboard.html b/assets/webconfig/content/dashboard.html index 2014d403..ca873ab7 100644 --- a/assets/webconfig/content/dashboard.html +++ b/assets/webconfig/content/dashboard.html @@ -37,6 +37,10 @@ Hyperion version: unknown + + Version Branch: + unknown + Latest version: unknown @@ -71,7 +75,7 @@ -
+