From dcb4367bee1cee9b2b881c993ef56bb9560a0796 Mon Sep 17 00:00:00 2001 From: Britney Fransen Date: Thu, 2 Oct 2014 19:41:44 +0000 Subject: supplemental-web: fe_status: add a loading screen move to main menu and a few other tweaks --- abs/core/supplemental-web/PKGBUILD | 4 +-- .../supplemental-web/contents/ajaxloader.min.js | 1 + abs/core/supplemental-web/contents/fe_status.py | 12 ++++++-- abs/core/supplemental-web/contents/fe_status.shtml | 8 ++++-- .../supplemental-web/contents/fe_status_load.shtml | 33 ++++++++++++++++++++++ abs/core/supplemental-web/contents/frame.css | 2 +- abs/core/supplemental-web/contents/header.html | 3 +- 7 files changed, 53 insertions(+), 10 deletions(-) create mode 100755 abs/core/supplemental-web/contents/ajaxloader.min.js create mode 100755 abs/core/supplemental-web/contents/fe_status_load.shtml diff --git a/abs/core/supplemental-web/PKGBUILD b/abs/core/supplemental-web/PKGBUILD index 3f9e8ef..a5bf2f6 100644 --- a/abs/core/supplemental-web/PKGBUILD +++ b/abs/core/supplemental-web/PKGBUILD @@ -1,7 +1,7 @@ pkgbase=supplemental-web pkgname=('supplemental-web' 'supplemental-web-slave') -pkgver=8.0 -pkgrel=18 +pkgver=8.2 +pkgrel=1 arch=('i686' 'x86_64') license=('GPL') backup=('data/srv/httpd/cgi/extra.cfg.txt') diff --git a/abs/core/supplemental-web/contents/ajaxloader.min.js b/abs/core/supplemental-web/contents/ajaxloader.min.js new file mode 100755 index 0000000..11c14ba --- /dev/null +++ b/abs/core/supplemental-web/contents/ajaxloader.min.js @@ -0,0 +1 @@ +function AjaxLoader(e,t){function n(e){var t=/^#?([a-f\d])([a-f\d])([a-f\d])$/i;e=e.replace(t,function(e,t,n,r){return t+t+n+n+r+r});var n=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e);return n?{r:parseInt(n[1],16),g:parseInt(n[2],16),b:parseInt(n[3],16)}:null}function r(e,t,n){return"#"+((1<<24)+(e<<16)+(t<<8)+n).toString(16).slice(1)}function b(){p=s>=32?s>=128?72:36:18,d=.5*s*o,v=2*Math.PI/p;h=a/m;if(f){h=-h}g.width=s;g.height=s}function w(e){var t=2*Math.PI*e;var n=Math.cos(t),r=Math.sin(t),i=.5*s*(1+n),o=.5*s*(1-r),a=i-d*n,l=o+d*r;y.clearRect(0,0,s,s);for(var c=0;c %s %s %s - %s + %s + %s ''' - print row %(" Frontend "," State "," Title "," MythTV Location") + print row %(" MythFrontend Host "," State "," Title "," Subtitle "," MythFrontend Location ") for fe in status_dict.keys(): temp_dict = status_dict[fe] print row %(fe, temp_dict['state'], temp_dict['title'], + temp_dict['subtitle'], temp_dict['location']) print "" @@ -99,7 +105,7 @@ def print_html(status_dict): print ''' ''' diff --git a/abs/core/supplemental-web/contents/fe_status.shtml b/abs/core/supplemental-web/contents/fe_status.shtml index d821600..845a931 100644 --- a/abs/core/supplemental-web/contents/fe_status.shtml +++ b/abs/core/supplemental-web/contents/fe_status.shtml @@ -1,12 +1,14 @@ + + - + + diff --git a/abs/core/supplemental-web/contents/fe_status_load.shtml b/abs/core/supplemental-web/contents/fe_status_load.shtml new file mode 100755 index 0000000..ee058ad --- /dev/null +++ b/abs/core/supplemental-web/contents/fe_status_load.shtml @@ -0,0 +1,33 @@ + + + + + + + + + + +

+

Querying MythFrontends...

+
+
+
+ +
+
+ + + diff --git a/abs/core/supplemental-web/contents/frame.css b/abs/core/supplemental-web/contents/frame.css index 63a6121..0008aec 100644 --- a/abs/core/supplemental-web/contents/frame.css +++ b/abs/core/supplemental-web/contents/frame.css @@ -154,7 +154,7 @@ table.calllog { border-style: outset; border-color: #808080; border-collapse: separate; - width:500px; + width:85%; margin-left:auto; margin-right:auto; body {text-align:center;} diff --git a/abs/core/supplemental-web/contents/header.html b/abs/core/supplemental-web/contents/header.html index 772cb52..c50cfee 100644 --- a/abs/core/supplemental-web/contents/header.html +++ b/abs/core/supplemental-web/contents/header.html @@ -41,6 +41,8 @@ function beStatus()
  • MythWeb
  • +
  • MythFrontend Status
  • +
  • MythBackend Status
  • Health & Maintenance
  • @@ -59,7 +61,6 @@ function beStatus()