[PATCH] [Kimchi] Add Template listeners to update page according to user interations
by Aline Manera
From: Aline Manera <alinefm(a)linux.vnet.ibm.com>
It makes use of the async websockets notification mechanism provided by
Wok to update the Template tab content when a template is added, removed
or updated without the need to polling requests to server.
Signed-off-by: Aline Manera <alinefm(a)linux.vnet.ibm.com>
---
ui/js/src/kimchi.template_main.js | 7 ++++++-
1 file changed, 6 insertions(+), 1 deletion(-)
diff --git a/ui/js/src/kimchi.template_main.js b/ui/js/src/kimchi.template_main.js
index 8755167..dd91dd5 100644
--- a/ui/js/src/kimchi.template_main.js
+++ b/ui/js/src/kimchi.template_main.js
@@ -1,7 +1,7 @@
/*
* Project Kimchi
*
- * Copyright IBM Corp, 2013-2016
+ * Copyright IBM Corp, 2013-2017
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -189,5 +189,10 @@ kimchi.template_main = function() {
});
}
+ // Register listeners to update the page according to user interactions
+ wok.addNotificationListener('POST:/kimchi/templates', kimchi.doListTemplates);
+ wok.addNotificationListener('DELETE:/kimchi/template', kimchi.doListTemplates);
+ wok.addNotificationListener('PUT:/kimchi/template', kimchi.doListTemplates);
+
kimchi.doListTemplates();
};
--
2.9.4
7 years, 2 months
[PATCH] [Kimchi 0/6] Make use of async websockets notification mechanism
by Aline Manera
This patch set also register for libvirt events to update the page
accordindly.
Aline Manera (6):
Register for libvirt storage pools events to update the UI accordindly
Add Storage Pools listeners to update page according to user
interations
Register for libvirt network events to update the UI accordindly
Add Network listeners to update page according to user interations
Register for libvirt domain events to update the UI accordindly
Add Domain listeners to update page according to user interations
model/libvirtevents.py | 53 +++++++++++++++++++++++++++++++++++++++-
model/model.py | 18 +++++++++++---
ui/js/src/kimchi.guest_main.js | 18 ++------------
ui/js/src/kimchi.network.js | 11 +++++++--
ui/js/src/kimchi.storage_main.js | 1 +
5 files changed, 79 insertions(+), 22 deletions(-)
--
2.9.4
7 years, 2 months
[PATCH] [Kimchi 0/2] Use async websockets notifications on Storage tab
by Aline Manera
Aline Manera (2):
Register for libvirt storage pools events to update the UI accordindly
Add Storage Pools listeners to update page according to user
interations
model/libvirtevents.py | 18 +++++++++++++++++-
model/model.py | 11 +++++++++--
ui/js/src/kimchi.storage_main.js | 1 +
3 files changed, 27 insertions(+), 3 deletions(-)
--
2.9.4
7 years, 2 months
[PATCH] [Kimchi] Change VNC & Spice console URLs to reference web interface port
by Galen Pospisil
This change allows the user to place a reverse proxy in front of
kimchi's built-in nginx proxy. The user-added reverse proxy can then
handle translation to the port exposed by kimchi/nginx.
Specifically, this patch uses the javascript location object to get
the current port and protocol used to connect to kimchi/wok.
Without this change, kimchi/wok serves up the wrong url (and port)
for the noVNC and Spice consoles when behind a reverse proxy.
---
ui/js/src/kimchi.api.js | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/ui/js/src/kimchi.api.js b/ui/js/src/kimchi.api.js
index 618d68b..0cacab3 100644
--- a/ui/js/src/kimchi.api.js
+++ b/ui/js/src/kimchi.api.js
@@ -337,7 +337,7 @@ var kimchi = {
},
vncToVM : function(vm) {
- proxy_port = wok.config['proxy_port'];
+ proxy_port = location.port || (location.protocol === 'https:' ? '443' : '80');
server_root = wok.config['server_root'];
wok.requestJSON({
url : "plugins/kimchi/vms/" + encodeURIComponent(vm) + "/connect",
@@ -363,7 +363,7 @@ var kimchi = {
},
spiceToVM : function(vm) {
- proxy_port = wok.config['proxy_port'];
+ proxy_port = location.port || (location.protocol === 'https:' ? '443' : '80');
server_root = wok.config['server_root'];
wok.requestJSON({
url : "plugins/kimchi/vms/" + encodeURIComponent(vm) + "/connect",
--
2.7.4
7 years, 3 months
Wok 2.5 and Kimchi 2.5 are now released!
by Aline Manera
On behalf of everyone who has worked hard on this release, I am pleased
to announce the availability of *Wok 2.5* and *Kimchi 2.5*!
Kimchi 2.5 depends on *Wok 2.5*! So make sure to have both of them properly
installed in your system.
Among many features,
Wok 2.5 release includes:
✔ Allow Wok server discover others on same subnet (Check: README-federation.md for more details)
✔ Remove OpenSans fonts need
✔ Bug fixes
Kimchi 2.5 release includes:
✔ Does not depend on Ginger Base anymore
✔ Remove OpenSans fonts need
✔ Move federation feature to Wok
✔ Bug fixes
We have worked hard to ensure that Wok and Kimchi run well on the most
popular Linux distributions including: Fedora 25, Ubuntu 17.04,
openSUSE LEAP 42.2, and CentOS 7. They use standard Linux interfaces so
it should run well on many other distributions too.
You can easily grab this release in tarball format or via git:
✔ https://github.com/kimchi-project/wok/archive/2.5.0.tar.gz
✔ https://github.com/kimchi-project/kimchi/archive/2.5.0.tar.gz
✔ git clone -b stable-2.5.x --recursive https://github.com/kimchi-project/wok.git
There are also some packages available for download at:
✔http://kimchi-project.github.io/wok/downloads/
✔http://kimchi-project.github.io/kimchi/downloads/
Go ahead! Give it a try and let us know what you think!
Although the Wok and Kimchi development have slowed down due the small number of active developers,
Kimchi and Wok are still alive! And I will do my best to keep them going.
Any help on any area is more than welcome. I count on you to make it better and better. ;-)
Regards,
Aline Manera
7 years, 3 months