[Kimchi-devel] [PATCH 0/5] Implement and use jQuery circleGauge on guests tab

Adam King rak at linux.vnet.ibm.com
Wed Feb 19 22:10:25 UTC 2014


This patch set improves the guest tab implementation by:
    Implementing the circle gauge as a fully reusable jQuery widget
    Using DOM updates to update the guests tab rather than string manipulation
    Improving the usability of the guest livetile

Adam King (5):
  Update VM (mock)model to produce valid JSON for /vms
  Update tests to account for proper JSON being returned in vm stats.
  Morphed the old circle implementation into a reusable jquery
    circleGaude widget.
  Update the guest.html.tmpl to use the new circleGauge widget
  Update guests tab to update the VM List by DOM manipulation

 src/kimchi/mockmodel.py              |   8 +-
 src/kimchi/model/vms.py              |   2 +-
 tests/test_mockmodel.py              |   2 +-
 tests/test_model.py                  |   2 +-
 ui/css/theme-default/circle.css      |  26 ---
 ui/css/theme-default/circleGauge.css |  26 +++
 ui/css/theme-default/list.css        |  25 ++-
 ui/js/src/kimchi.circle.js           |  88 ---------
 ui/js/src/kimchi.guest_main.js       | 366 +++++++++++++++++++----------------
 ui/js/widgets/circleGauge.js         | 104 ++++++++++
 ui/pages/guest.html.tmpl             |  39 ++--
 ui/pages/tabs/guests.html.tmpl       |   2 +-
 12 files changed, 386 insertions(+), 304 deletions(-)
 delete mode 100644 ui/css/theme-default/circle.css
 create mode 100644 ui/css/theme-default/circleGauge.css
 delete mode 100644 ui/js/src/kimchi.circle.js
 create mode 100644 ui/js/widgets/circleGauge.js

-- 
1.8.1.4




More information about the Kimchi-devel mailing list