remove obsolete css
[APKPM.git] / public / redis.html
1 <!doctype html>
2 <html xmlns:ng="http://angularjs.org">
3  <script src="http://code.angularjs.org/angular-0.9.12.min.js" ng:autobind></script>
4  <style type="text/css">
5  th { text-align: right }
6  </style>
7  <body>
8   <script>
9     function RedisCntl($xhr,$defer) {
10       var self = this;
11    
12       this.fetch = function() {
13         self.url = '/_redis' + '?callback=JSON_CALLBACK';
14         $xhr('JSON', self.url, function(code, response) {
15           self.code = code;
16           self.response = response;
17         });
18         $defer( self.fetch, 5000 ); // 5s
19       };
20       this.fetch();
21     }
22     RedisCntl.$inject = ['$xhr','$defer'];
23   </script>
24   <div ng:controller="RedisCntl">
25 <h1>CPE</h1>
26 {{response.status['CPE.start']}} -
27 {{response.status['CPE.finish']}}
28 <pre>{{response.status.poll.CPE}}</pre>
29
30 <h1>ZTEDSLAM</h1>
31 {{response.status['ZTEDSLAM.poll.start']}} -
32 {{response.status['ZTEDSLAM.poll.finish']}}
33 <pre>{{response.status.poll.ZTEDSLAM}}</pre>
34
35 <h1>ZTEMSAN</h1>
36 {{response.status['ZTEMSAN.poll.start']}} -
37 {{response.status['ZTEMSAN.poll.finish']}}
38 <pre>{{response.status.poll.ZTEMSAN}}</pre>
39
40 <div>
41         <a href="http://redis.io">Redis</a>
42                {{response.status.info.redis_version}}
43         using  {{response.status.info.used_memory_human}}
44         with   {{response.status.info.connected_clients}} clients
45         uptime {{response.status.info.uptime_in_days}} days
46 </div>
47
48     <p><input type=checkbox name=debug>
49     <pre ng:show="debug">
50 url={{url}}
51 code={{code}}
52 response={{response}}
53     </pre>
54   </div>
55  </body>
56 </html>