Web UI for ARGUS server
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

33 lines
3.4 KiB

​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
6 years ago
  1. {
  2. id: 'db_node_%%%NODEID%%%',
  3. tools: [{
  4. id:'gear',
  5. handler: function(){
  6. //Ext.Msg.alert('Message', 'The Settings tool was clicked.');
  7. showServerToolBox(%%%NODEID%%%);
  8. }
  9. },{
  10. id:'close',
  11. handler: function(e, target, panel){
  12. panel.ownerCt.remove(panel, true);
  13. }
  14. }],
  15. frame: true,
  16. width: 258,
  17. height: 240,
  18. border: false,
  19. title: '%%%SYSSERVERNAME%%%',
  20. items: [{
  21. xtype: 'panel',
  22. html: '<table width="100%"><tr><td><p id="ser_status_txt">%%%SERVERSTATUS%%%</p></td><td width="16px"><img id="serv_status_img" src="/style/icons/icons/%%%SERVERSTATUSIMG%%%"></td></tr></table>'
  23. },{
  24. xtype: 'panel',
  25. html: '<table width="100%" border=0><tr><td><svg class="donut" width="80" height="100%" viewBox="0 0 42 42"><!-- circle class="donut-hole" cx="21" cy="21" r="15.91549430918954" fill="#fff"></circle --><!-- GREEN --><circle id="donut-segment2" cx="21" cy="21" r="15.91549430918954" fill="transparent" stroke="#b1c94e" stroke-width="3" stroke-dasharray="0 100" stroke-dashoffset="25"></circle><!-- BLUE --><circle id="donut-segment3" cx="21" cy="21" r="15.91549430918954" fill="transparent" stroke="#aaddff" stroke-width="3" stroke-dasharray="0 100" stroke-dashoffset="25"></circle><!-- PURPLE --><circle id="donut-segment1" cx="21" cy="21" r="15.91549430918954" fill="transparent" stroke="#ce4b99" stroke-width="3" stroke-dasharray="0 100" stroke-dashoffset="25"></circle><g class="chart-text"><text x="50%" y="50%" class="chart-number" id="totalValue">0</text><text x="50%" y="50%" class="chart-label">CPU</text></g></svg></td><td><svg class="donut" width="80" height="100%" viewBox="0 0 42 42"><!-- circle class="donut-hole" cx="21" cy="21" r="15.91549430918954" fill="#fff"></circle --><!-- GREEN --><circle id="donut1-segment2" cx="21" cy="21" r="15.91549430918954" fill="transparent" stroke="#b1c94e" stroke-width="3" stroke-dasharray="0 100" stroke-dashoffset="25"></circle><!-- BLUE --><circle id="donut1-segment3" cx="21" cy="21" r="15.91549430918954" fill="transparent" stroke="#aaddff" stroke-width="3" stroke-dasharray="0 100" stroke-dashoffset="25"></circle><!-- PURPLE --><circle id="donut1-segment1" cx="21" cy="21" r="15.91549430918954" fill="transparent" stroke="#ce4b99" stroke-width="3" stroke-dasharray="0 100" stroke-dashoffset="25"></circle><g class="chart-text"><text x="50%" y="50%" class="chart-number" id="totalValue1">0</text><text x="50%" y="50%" class="chart-label">MEM</text></g></svg></td><td><svg class="donut" width="80" height="100%" viewBox="0 0 42 42"><!-- circle class="donut-hole" cx="21" cy="21" r="15.91549430918954" fill="#fff"></circle --><!-- GREEN --><circle id="donut2-segment2" cx="21" cy="21" r="15.91549430918954" fill="transparent" stroke="#b1c94e" stroke-width="3" stroke-dasharray="0 100" stroke-dashoffset="25"></circle><!-- BLUE --><circle id="donut2-segment3" cx="21" cy="21" r="15.91549430918954" fill="transparent" stroke="#aaddff" stroke-width="3" stroke-dasharray="0 100" stroke-dashoffset="25"></circle><!-- PURPLE --><circle id="donut2-segment1" cx="21" cy="21" r="15.91549430918954" fill="transparent" stroke="#ce4b99" stroke-width="3" stroke-dasharray="0 100" stroke-dashoffset="25"></circle><g class="chart-text"><text x="50%" y="50%" class="chart-number" id="totalValue2">0</text><text x="50%" y="50%" class="chart-label">DISK</text></g></svg></td></tr></table>'
  26. },{
  27. xtype: 'panel',
  28. height: 80,
  29. frame: true,
  30. border: false,
  31. autoScroll: true,
  32. items: %%%MODULES%%%
  33. }]
  34. }