[RFC][PATCH 0/3] VM supports interfaces
by shaohef@linux.vnet.ibm.com
From: ShaoHe Feng <shaohef(a)linux.vnet.ibm.com>
just support get interfaces
missing mockmodel and testcase
ShaoHe Feng (3):
VM supports interfaces: update API
VM supports interfaces: update model
VM supports interfaces: update controller
docs/API.md | 47 ++++++++++++++++++++++++++++++++++++++++
src/kimchi/control/vm/ifaces.py | 48 +++++++++++++++++++++++++++++++++++++++++
src/kimchi/control/vms.py | 9 ++++++++
src/kimchi/model.py | 31 ++++++++++++++++++++++++++
4 files changed, 135 insertions(+)
create mode 100644 src/kimchi/control/vm/ifaces.py
--
1.8.4.2
10 years, 10 months
[PATCH V3] add a synchronous function with timeout to execute command
by shaohef@linux.vnet.ibm.com
From: ShaoHe Feng <shaohef(a)linux.vnet.ibm.com>
V2 -> V3
address zhengsheng's commnet.
raise TimeoutExpired when timeout
do not return timeout_flag
V1 -> V2
check timeout happens and report a specific error
+ if proc.returncode == -9 and timeout_flag[0] is True:
+ kimchi_log.error("subprocess is killed by signal.SIGKILL "
+ "for timeout %s seconds", timeout)
ShaoHe Feng (1):
add a synchronous function with timeout to execute command
src/kimchi/exception.py | 4 ++++
src/kimchi/utils.py | 58 +++++++++++++++++++++++++++++++++++++++++++++++++
2 files changed, 62 insertions(+)
--
1.8.4.2
10 years, 10 months
[PATCH V2] Add jquery widget dropDown button
by zhoumeina
v1-v2 Modify the widget with create and destroy function
and drop redundant function.
This patch is working for make dropDown button a jquery
widget.
We can create a dropdown button simply with:
$('#buttonId').dropdownButton();
And in html:
<div id="buttonId">
<span class="text">$_("Button label")</span><span class="arrow"></span>
<div>
<button><span class="text">$_("dropdownbutton1")</span></button>
<button><span class="text">$_("dropdownbutton2")</span></button>
</div>
</div>
If we need some other style, you can add it to html, and bind action in js.
Not a perfect widget, but a beginning.
Signed-off-by: zhoumeina <zhoumein(a)linux.vnet.ibm.com>
---
ui/js/widgets/button-dropDown.js | 38 ++++++++++++++++++++++++++++++++++++++
1 files changed, 38 insertions(+), 0 deletions(-)
create mode 100644 ui/js/widgets/button-dropDown.js
diff --git a/ui/js/widgets/button-dropDown.js b/ui/js/widgets/button-dropDown.js
new file mode 100644
index 0000000..0adda37
--- /dev/null
+++ b/ui/js/widgets/button-dropDown.js
@@ -0,0 +1,38 @@
+/*
+ * Project Kimchi
+ *
+ * Copyright IBM, Corp. 2013
+ *
+ * Authors:
+ * zhoumeina <zhoumein(a)linux.vnet.ibm.com>
+ *
+ * Licensed under the Apache License, Version 2.0 (the 'License');
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an 'AS IS' BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+(function($) {
+ $.widget('kimchi.dropdownButton', {
+
+ _create : function() {
+ this.actionDiv = this.element;
+ this.actionDiv.addClass('btn dropdown popable');
+ this.actionDiv.find('div').addClass('popover');
+ this.actionDiv.find('button').addClass('button-big');
+ },
+
+ destroy : function() {
+ this.actionDiv.removeClass('btn dropdown popable');
+ this.actionDiv.find('div').removeClass('popover');
+ this.actionDiv.find('button').removeClass('button-big');
+ $.Widget.prototype.destroy.call(this);
+ }
+ });
+}(jQuery));
\ No newline at end of file
--
1.7.1
10 years, 10 months
[PATCH] Change all CSS files indentation to 4 spaces
by Crístian Viana
In order to make the code more consistent, all CSS files should use the
same indentation level.
Use 4 spaces to indent the CSS properties.
Signed-off-by: Crístian Viana <vianac(a)linux.vnet.ibm.com>
---
ui/css/theme-default/button.css | 10 +++++-----
ui/css/theme-default/line-chart.css | 6 +++---
ui/css/theme-default/popover.css | 14 +++++++-------
ui/css/theme-default/storage.css | 24 ++++++++++++------------
ui/css/theme-default/template_add.css | 4 ++--
ui/css/theme-default/topbar.css | 2 +-
6 files changed, 30 insertions(+), 30 deletions(-)
diff --git a/ui/css/theme-default/button.css b/ui/css/theme-default/button.css
index c7ed3f6..304f4f4 100644
--- a/ui/css/theme-default/button.css
+++ b/ui/css/theme-default/button.css
@@ -80,7 +80,7 @@
}
.btn.loading .icon {
- background: url(../images/theme-default/icon-load.png) center center no-repeat;
+ background: url(../images/theme-default/icon-load.png) center center no-repeat;
}
.btn .text {
@@ -125,7 +125,7 @@
background: #f3f3f3;
background: -moz-linear-gradient(top, #f3f3f3 0%, #dddddd 50%, #d8d8d8 51%, #cccccc 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #f3f3f3), color-stop(50%, #dddddd),
- color-stop(51%, #d8d8d8), color-stop(100%, #cccccc));
+ color-stop(51%, #d8d8d8), color-stop(100%, #cccccc));
background: -webkit-linear-gradient(top, #f3f3f3 0%, #dddddd 50%, #d8d8d8 51%, #cccccc 100%);
background: -o-linear-gradient(top, #f3f3f3 0%, #dddddd 50%, #d8d8d8 51%, #cccccc 100%);
background: -ms-linear-gradient(top, #f3f3f3 0%, #dddddd 50%, #d8d8d8 51%, #cccccc 100%);
@@ -137,7 +137,7 @@
.btn-tool:hover {
box-shadow: -1px -1px 1px #777, 1px 1px 1px #eee, 2px 2px 2px rgba(0, 0, 0, .25) inset, -3px -3px 3px rgba(0, 0, 0, .25)
- inset;
+ inset;
}
/* Generated at http://colorzilla.com/gradient-editor/ */
@@ -373,8 +373,8 @@
line-height: 38px;
padding: 0 20px;
color: #EEE;
- border-radius: 8px;
- font-size: 13px;
+ border-radius: 8px;
+ font-size: 13px;
}
.btn-normal:not([disabled]):hover {
diff --git a/ui/css/theme-default/line-chart.css b/ui/css/theme-default/line-chart.css
index 4fc0e2e..5bb61e2 100644
--- a/ui/css/theme-default/line-chart.css
+++ b/ui/css/theme-default/line-chart.css
@@ -1,13 +1,13 @@
.chart-container {
- background: black;
+ background: black;
}
.line-chart {
- overflow: hidden;
+ overflow: hidden;
}
.line-chart .background {
- fill: black;
+ fill: black;
}
.line-chart text {
diff --git a/ui/css/theme-default/popover.css b/ui/css/theme-default/popover.css
index 95eb183..63f09cb 100644
--- a/ui/css/theme-default/popover.css
+++ b/ui/css/theme-default/popover.css
@@ -75,18 +75,18 @@
.actionsheet {
background: rgb(238, 238, 238);
background: -moz-linear-gradient(top, rgba(238, 238, 238, 1) 0%, rgba(204, 204, 204, 1) 10px, rgba(204, 204, 204, 1) 96%,
- rgba(165, 165, 165, 1) 100%);
+ rgba(165, 165, 165, 1) 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, rgba(238, 238, 238, 1)),
- color-stop(10px, rgba(204, 204, 204, 1)), color-stop(96%, rgba(204, 204, 204, 1)),
- color-stop(100%, rgba(165, 165, 165, 1)));
+ color-stop(10px, rgba(204, 204, 204, 1)), color-stop(96%, rgba(204, 204, 204, 1)),
+ color-stop(100%, rgba(165, 165, 165, 1)));
background: -webkit-linear-gradient(top, rgba(238, 238, 238, 1) 0%, rgba(204, 204, 204, 1) 10px, rgba(204, 204, 204, 1)
- 96%, rgba(165, 165, 165, 1) 100%);
+ 96%, rgba(165, 165, 165, 1) 100%);
background: -o-linear-gradient(top, rgba(238, 238, 238, 1) 0%, rgba(204, 204, 204, 1) 10px, rgba(204, 204, 204, 1) 96%,
- rgba(165, 165, 165, 1) 100%);
+ rgba(165, 165, 165, 1) 100%);
background: -ms-linear-gradient(top, rgba(238, 238, 238, 1) 0%, rgba(204, 204, 204, 1) 10px, rgba(204, 204, 204, 1) 96%,
- rgba(165, 165, 165, 1) 100%);
+ rgba(165, 165, 165, 1) 100%);
background: linear-gradient(to bottom, rgba(238, 238, 238, 1) 0%, rgba(204, 204, 204, 1) 10px, rgba(204, 204, 204, 1)
- 96%, rgba(165, 165, 165, 1) 100%);
+ 96%, rgba(165, 165, 165, 1) 100%);
padding: 10px 10px 0 10px;
}
diff --git a/ui/css/theme-default/storage.css b/ui/css/theme-default/storage.css
index d81dc75..3eb3321 100644
--- a/ui/css/theme-default/storage.css
+++ b/ui/css/theme-default/storage.css
@@ -66,13 +66,13 @@
background: #ffffff;
background: -moz-linear-gradient(top, #ffffff 0%, #e5e5e5 100%);
background: -webkit-gradient(linear, left top, left bottom, color-stop(0%, #ffffff),
- color-stop(100%, #e5e5e5));
+ color-stop(100%, #e5e5e5));
background: -webkit-linear-gradient(top, #ffffff 0%, #e5e5e5 100%);
background: -o-linear-gradient(top, #ffffff 0%, #e5e5e5 100%);
background: -ms-linear-gradient(top, #ffffff 0%, #e5e5e5 100%);
background: linear-gradient(to bottom, #ffffff 0%, #e5e5e5 100%);
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffffff',
- endColorstr='#e5e5e5', GradientType=0);
+ endColorstr='#e5e5e5', GradientType=0);
border: 1px solid #ccc;
color: #333;
-moz-border-top-left-radius: 8px;
@@ -212,7 +212,7 @@
.status-dot {
background: #72AA00;
background: linear-gradient(to bottom, #BFD255 0%, #8EB92A 50%, #72AA00 51%, #9ECB2D
- 100%) repeat scroll 0 0 transparent;
+ 100%) repeat scroll 0 0 transparent;
border: 1px solid #72AA00;
border-radius: 13px;
box-shadow: 3px 3px 3px #FFFFFF, -3px -3px 3px #DDDDDD;
@@ -282,7 +282,7 @@
.inactive {
background: #E80501;
background: linear-gradient(to bottom, #E88692 0%, #E84845 50%, #E80501 51%, #E84845
- 100%) repeat scroll 0 0 transparent;
+ 100%) repeat scroll 0 0 transparent;
border: 1px solid #FF340C;
}
@@ -300,7 +300,7 @@
.detail-view-icon {
background: url(../images/large_details_icon.png) no-repeat center
- center;
+ center;
height: 30px;
width: 42px;
}
@@ -458,21 +458,21 @@
.list-storage .storage-li[data-stat="active"]>.handle>.arrow-down {
background: url(../images/theme-default/arrow-down.png) no-repeat center
- center;
+ center;
height: 52px;
width: 45px;
}
.list-storage .storage-li[data-stat="inactive"]>.handle>.arrow-down {
background: url(../images/theme-default/arrow-down-disable.png) no-repeat center
- center;
+ center;
height: 52px;
width: 45px;
}
.arrow-up {
background: url(../images/theme-default/arrow-up.png) no-repeat center
- center;
+ center;
height: 52px;
width: 45px;
}
@@ -489,22 +489,22 @@
.volume-default {
background: url(../images/theme-default/icon-volume-default.png)
- no-repeat center center;
+ no-repeat center center;
}
.icon-raw {
background: url(../images/theme-default/icon-raw.png) no-repeat center
- center;
+ center;
}
.icon-qcow2 {
background: url(../images/theme-default/icon-qcow2.png) no-repeat center
- center;
+ center;
}
.icon-iso {
background: url(../images/theme-default/icon-iso.png) no-repeat center
- center;
+ center;
}
.host-partition {
diff --git a/ui/css/theme-default/template_add.css b/ui/css/theme-default/template_add.css
index 46cf56b..e392fe9 100644
--- a/ui/css/theme-default/template_add.css
+++ b/ui/css/theme-default/template_add.css
@@ -284,6 +284,6 @@
}
#iso-more-loading {
- background: #C0C0C0 url(../../images/theme-default/loading.gif) 7px center no-repeat;
- padding: 0 20px 0 26px;
+ background: #C0C0C0 url(../../images/theme-default/loading.gif) 7px center no-repeat;
+ padding: 0 20px 0 26px;
}
diff --git a/ui/css/theme-default/topbar.css b/ui/css/theme-default/topbar.css
index 6a5aec6..43eef2f 100644
--- a/ui/css/theme-default/topbar.css
+++ b/ui/css/theme-default/topbar.css
@@ -162,6 +162,6 @@ a#btn-logout:hover {
@media ( max-width : 640px) {
#logo {
- display: none;
+ display: none;
}
}
--
1.8.4.2
10 years, 10 months
[PATCH V3 0/2] Debugreport tool test enhancement
by Shu Ming
V3->V2:
Addressed ZHengsheng's comment by adding space in the end of " "
V2->V1:
Addressed Shaohe's comment
V1:
1)We need a way to tune the debugreport timeout value
2)Skip the test if there is not debugreport tool
Shu Ming (2):
Skip the debug report test if there is no tool avaible
Add a timeout tunning environment variable for debug report test
tests/test_model.py | 15 +++++++++++++--
1 file changed, 13 insertions(+), 2 deletions(-)
--
1.8.1.4
10 years, 10 months
[PATCH V6 0/2] Add spice support of UI
by zhoumeina
v5-v6 Add token in spice contructor to be consistent with
the current proxy mechanism.
modify the vnc_proxy_port to display_proxy_port so
that it can be used by spice too.
v4-v5 vm_graphics is not null and not running make it
disabled
v3-v4 restructure js code to drop redundance code.
replace tabs with 4 spaces
v2-v3 Add related make files
v1-v2 add spice.html.tmpl
This patch add the front end support of spice.
1 If there were a spice vm in host, show a "spice" button
but not "vnc" in guest page.
2 click "spice" we can show a screen just like the demo
http://www.spice-space.org/spice-html5/spice.html
zhoumeina (2):
Add the front end support for SPICE
Modify vnc_proxy_port to display_proxy_port
configure.ac | 1 +
contrib/kimchi.spec.fedora.in | 1 +
contrib/kimchi.spec.suse.in | 1 +
docs/API.md | 2 +-
src/kimchi.conf.in | 2 +-
src/kimchi/config.py.in | 2 +-
src/kimchi/control/config.py | 2 +-
src/kimchi/vnc.py | 2 +-
ui/css/spice/spice.css | 115 ++++
ui/js/Makefile.am | 2 +-
ui/js/spice/Makefile.am | 25 +
ui/js/spice/atKeynames.js | 183 ++++++
ui/js/spice/bitmap.js | 51 ++
ui/js/spice/cursor.js | 92 +++
ui/js/spice/display.js | 806 ++++++++++++++++++++++++
ui/js/spice/enums.js | 282 +++++++++
ui/js/spice/inputs.js | 251 ++++++++
ui/js/spice/jsbn.js | 589 ++++++++++++++++++
ui/js/spice/lz.js | 166 +++++
ui/js/spice/main.js | 176 ++++++
ui/js/spice/png.js | 256 ++++++++
ui/js/spice/prng4.js | 79 +++
ui/js/spice/quic.js | 1335 ++++++++++++++++++++++++++++++++++++++++
ui/js/spice/rng.js | 102 +++
ui/js/spice/rsa.js | 146 +++++
ui/js/spice/sha1.js | 346 +++++++++++
ui/js/spice/spiceconn.js | 447 ++++++++++++++
ui/js/spice/spicedataview.js | 96 +++
ui/js/spice/spicemsg.js | 883 ++++++++++++++++++++++++++
ui/js/spice/spicetype.js | 480 +++++++++++++++
ui/js/spice/ticket.js | 250 ++++++++
ui/js/spice/utils.js | 261 ++++++++
ui/js/spice/wire.js | 123 ++++
ui/js/src/kimchi.api.js | 25 +-
ui/js/src/kimchi.guest_main.js | 27 +-
ui/pages/guest.html.tmpl | 1 +
ui/pages/spice.html.tmpl | 139 +++++
37 files changed, 7736 insertions(+), 11 deletions(-)
create mode 100644 ui/css/spice/spice.css
create mode 100644 ui/js/spice/Makefile.am
create mode 100644 ui/js/spice/atKeynames.js
create mode 100644 ui/js/spice/bitmap.js
create mode 100644 ui/js/spice/cursor.js
create mode 100644 ui/js/spice/display.js
create mode 100644 ui/js/spice/enums.js
create mode 100644 ui/js/spice/inputs.js
create mode 100644 ui/js/spice/jsbn.js
create mode 100644 ui/js/spice/lz.js
create mode 100644 ui/js/spice/main.js
create mode 100644 ui/js/spice/png.js
create mode 100644 ui/js/spice/prng4.js
create mode 100644 ui/js/spice/quic.js
create mode 100644 ui/js/spice/rng.js
create mode 100644 ui/js/spice/rsa.js
create mode 100644 ui/js/spice/sha1.js
create mode 100644 ui/js/spice/spiceconn.js
create mode 100644 ui/js/spice/spicedataview.js
create mode 100644 ui/js/spice/spicemsg.js
create mode 100644 ui/js/spice/spicetype.js
create mode 100644 ui/js/spice/ticket.js
create mode 100644 ui/js/spice/utils.js
create mode 100644 ui/js/spice/wire.js
create mode 100644 ui/pages/spice.html.tmpl
10 years, 10 months
[PATCH] host.css: Change Indent to 4 Spaces
by Hongliang Wang
Apply
%s/^ / /g
in host.css.
Signed-off-by: Hongliang Wang <hlwang(a)linux.vnet.ibm.com>
---
ui/css/theme-default/host.css | 146 +++++++++++++++++++++---------------------
1 file changed, 73 insertions(+), 73 deletions(-)
diff --git a/ui/css/theme-default/host.css b/ui/css/theme-default/host.css
index 5e96b37..b6e04b2 100644
--- a/ui/css/theme-default/host.css
+++ b/ui/css/theme-default/host.css
@@ -1,207 +1,207 @@
.host-panel {
- font-size: 12px;
- margin-bottom: 100px;
+ font-size: 12px;
+ margin-bottom: 100px;
}
.host-panel .logo-container, .host-panel .info-container,
.host-panel .section-label, .host-panel .section-value {
- display: inline-block;
- vertical-align: top;
+ display: inline-block;
+ vertical-align: top;
}
.host-panel .section-label {
- display: inline-block;
- margin-right: 1em;
- vertical-align: top;
+ display: inline-block;
+ margin-right: 1em;
+ vertical-align: top;
}
.host-panel .logo {
- background: url("../images/icon-vm.png") no-repeat left top;
- height: 128px;
- width: 128px;
+ background: url("../images/icon-vm.png") no-repeat left top;
+ height: 128px;
+ width: 128px;
}
.host-panel .hostname {
- text-decoration: underline;
+ text-decoration: underline;
}
.host-panel .action-panel {
- margin-top: 2em;
- padding-left: 10px;
+ margin-top: 2em;
+ padding-left: 10px;
}
.host-panel .button-icon {
- background: url("../images/theme-default/host-icon-sprite.png") no-repeat left top;
- display: inline-block;
- height: 12px;
- width: 12px;
+ background: url("../images/theme-default/host-icon-sprite.png") no-repeat left top;
+ display: inline-block;
+ height: 12px;
+ width: 12px;
}
.host-panel .action-icon-stop {
- background-position: -14px 0;
+ background-position: -14px 0;
}
.host-panel .action-icon-restart {
- background-position: -28px 0;
+ background-position: -28px 0;
}
.host-panel .action-icon-download {
- background-position: -42px 0;
+ background-position: -42px 0;
}
.host-panel .action-icon-connect {
- background-position: -56px 0;
+ background-position: -56px 0;
}
.host-panel .action-icon-add {
- background-position: -70px 0;
+ background-position: -70px 0;
}
.host-panel .action-icon-edit {
- background-position: -84px 0;
+ background-position: -84px 0;
}
.host-panel .action-icon-remove {
- background-position: -98px 0;
+ background-position: -98px 0;
}
.host-panel button:disabled .action-icon-start {
- background-position: 0 -14px;
+ background-position: 0 -14px;
}
.host-panel button:disabled .action-icon-stop {
- background-position: -14px -14px;
+ background-position: -14px -14px;
}
.host-panel button:disabled .action-icon-restart {
- background-position: -28px -14px;
+ background-position: -28px -14px;
}
.host-panel button:disabled .action-icon-download {
- background-position: -42px -14px;
+ background-position: -42px -14px;
}
.host-panel button:disabled .action-icon-connect {
- background-position: -56px -14px;
+ background-position: -56px -14px;
}
.host-panel button:disabled .action-icon-add {
- background-position: -70px -14px;
+ background-position: -70px -14px;
}
.host-panel button:disabled .action-icon-edit {
- background-position: -84px -14px;
+ background-position: -84px -14px;
}
.host-panel button:disabled .action-icon-remove {
- background-position: -98px -14px;
+ background-position: -98px -14px;
}
.host-panel .info-container {
- padding-top: 16px;
- width: 892px;
+ padding-top: 16px;
+ width: 892px;
}
.host-panel .section-header {
- background: #EEE;
- border-radius: 5px;
- cursor: pointer;
- line-height: 2em;
- margin: 1em 0 1em;
- padding-left: 6px;
+ background: #EEE;
+ border-radius: 5px;
+ cursor: pointer;
+ line-height: 2em;
+ margin: 1em 0 1em;
+ padding-left: 6px;
}
.host-panel .section-header:hover {
- background: #06f;
- color: white;
+ background: #06f;
+ color: white;
}
.host-panel .section-content {
- padding-left: 1em;
+ padding-left: 1em;
}
.host-panel .section-header .arrow {
- border-color: transparent;
- border-style: solid;
- display: inline-block;
- margin-right: 6px;
- width: 0;
+ border-color: transparent;
+ border-style: solid;
+ display: inline-block;
+ margin-right: 6px;
+ width: 0;
}
.host-panel .section-header[aria-expanded="true"] .arrow {
- border-top-color: black;
- border-width: 8px 4px 0;
- border-bottom: none;
+ border-top-color: black;
+ border-width: 8px 4px 0;
+ border-bottom: none;
}
.host-panel .section-header[aria-expanded="true"]:hover .arrow {
- border-top-color: white;
+ border-top-color: white;
}
.host-panel .section-header[aria-expanded="false"] .arrow {
- border-left-color: black;
- border-right: none;
- border-width: 4px 0 4px 8px;
+ border-left-color: black;
+ border-right: none;
+ border-width: 4px 0 4px 8px;
}
.host-panel .section-header[aria-expanded="false"]:hover .arrow {
- border-left-color: white;
+ border-left-color: white;
}
.host-panel .section-row {
- line-height: 1.6em;
- margin-bottom: 1em;
+ line-height: 1.6em;
+ margin-bottom: 1em;
}
.host-panel .section-label {
- width: 100px;
+ width: 100px;
}
#frequency-textbox {
- width: 20px;
+ width: 20px;
}
#container-chart-cpu,
#container-chart-memory,
#container-chart-disk-io,
#container-chart-network-io {
- border: 1px solid white;
- box-shadow: 2px 2px 2px gray, 2px -2px 2px gray, -2px -2px 2px gray, -2px 2px 2px gray;
- height: 100px;
- width: 500px;
+ border: 1px solid white;
+ box-shadow: 2px 2px 2px gray, 2px -2px 2px gray, -2px -2px 2px gray, -2px 2px 2px gray;
+ height: 100px;
+ width: 500px;
}
#container-chart-disk-io .disk-write,
#container-chart-network-io .network-sent {
- stroke: #f80;
+ stroke: #f80;
}
/* Debug Report */
.host-panel #available-reports-grid {
- border-color: #ddd;
- height: 400px;
- width: 750px;
+ border-color: #ddd;
+ height: 400px;
+ width: 750px;
}
.host-panel select#available-reports-list {
- width: 300px;
+ width: 300px;
}
.host-panel select#available-reports-list option {
- margin: .2em 1em;
+ margin: .2em 1em;
}
.debug-report-id {
- width: 30px;
+ width: 30px;
}
.debug-report-name,
.debug-report-file,
.debug-report-time {
- width: 200px;
+ width: 200px;
}
.debug-report-file {
- width: 300px;
+ width: 300px;
}
/* End of Debug Report */
--
1.8.1.4
10 years, 10 months
[PATCH] UI: Remove Unused Label Room for Debug Report
by Hongliang Wang
A blank column was reserved for labeling debug report grid, though
there is no need place a label here. Remove it and make the report
grid wider to make full use of page width.
Dependency:
* [PATCH] host.css: Change Indent to 4 Spaces
Signed-off-by: Hongliang Wang <hlwang(a)linux.vnet.ibm.com>
---
ui/css/theme-default/host.css | 2 +-
ui/pages/tabs/host.html.tmpl | 1 -
2 files changed, 1 insertion(+), 2 deletions(-)
diff --git a/ui/css/theme-default/host.css b/ui/css/theme-default/host.css
index 5e96b37..ad778bf 100644
--- a/ui/css/theme-default/host.css
+++ b/ui/css/theme-default/host.css
@@ -180,7 +180,7 @@
.host-panel #available-reports-grid {
border-color: #ddd;
height: 400px;
- width: 750px;
+ width: 850px;
}
.host-panel select#available-reports-list {
diff --git a/ui/pages/tabs/host.html.tmpl b/ui/pages/tabs/host.html.tmpl
index aa4ecfb..d32773a 100644
--- a/ui/pages/tabs/host.html.tmpl
+++ b/ui/pages/tabs/host.html.tmpl
@@ -130,7 +130,6 @@
</h3>
<div id="content-sys-reports" class="section-content">
<div class="section-row">
- <div class="section-label"></div>
<div class="section-value">
<div id="available-reports-grid-container"></div>
</div>
--
1.8.1.4
10 years, 10 months
[PATCH V6 0/2] Add spice support of UI
by zhoumeina
v5-v6 Add token in spice contructor to be consistent with
the current proxy mechanism.
modify the vnc_proxy_port to display_proxy_port so
that it can be used by spice too.
v4-v5 vm_graphics is not null and not running make it
disabled
v3-v4 restructure js code to drop redundance code.
replace tabs with 4 spaces
v2-v3 Add related make files
v1-v2 add spice.html.tmpl
This patch add the front end support of spice.
1 If there were a spice vm in host, show a "spice" button
but not "vnc" in guest page.
2 click "spice" we can show a screen just like the demo
http://www.spice-space.org/spice-html5/spice.html
zhoumeina (2):
Add the front end support for SPICE
Modify vnc_proxy_port to display_proxy_port
configure.ac | 1 +
contrib/kimchi.spec.fedora.in | 1 +
contrib/kimchi.spec.suse.in | 1 +
docs/API.md | 2 +-
src/kimchi.conf.in | 2 +-
src/kimchi/config.py.in | 2 +-
src/kimchi/control/config.py | 2 +-
src/kimchi/vnc.py | 2 +-
ui/css/spice/spice.css | 115 ++++
ui/js/Makefile.am | 2 +-
ui/js/spice/Makefile.am | 25 +
ui/js/spice/atKeynames.js | 183 ++++++
ui/js/spice/bitmap.js | 51 ++
ui/js/spice/cursor.js | 92 +++
ui/js/spice/display.js | 806 ++++++++++++++++++++++++
ui/js/spice/enums.js | 282 +++++++++
ui/js/spice/inputs.js | 251 ++++++++
ui/js/spice/jsbn.js | 589 ++++++++++++++++++
ui/js/spice/lz.js | 166 +++++
ui/js/spice/main.js | 176 ++++++
ui/js/spice/png.js | 256 ++++++++
ui/js/spice/prng4.js | 79 +++
ui/js/spice/quic.js | 1335 ++++++++++++++++++++++++++++++++++++++++
ui/js/spice/rng.js | 102 +++
ui/js/spice/rsa.js | 146 +++++
ui/js/spice/sha1.js | 346 +++++++++++
ui/js/spice/spiceconn.js | 447 ++++++++++++++
ui/js/spice/spicedataview.js | 96 +++
ui/js/spice/spicemsg.js | 883 ++++++++++++++++++++++++++
ui/js/spice/spicetype.js | 480 +++++++++++++++
ui/js/spice/ticket.js | 250 ++++++++
ui/js/spice/utils.js | 261 ++++++++
ui/js/spice/wire.js | 123 ++++
ui/js/src/kimchi.api.js | 25 +-
ui/js/src/kimchi.guest_main.js | 27 +-
ui/pages/guest.html.tmpl | 1 +
ui/pages/spice.html.tmpl | 139 +++++
37 files changed, 7736 insertions(+), 11 deletions(-)
create mode 100644 ui/css/spice/spice.css
create mode 100644 ui/js/spice/Makefile.am
create mode 100644 ui/js/spice/atKeynames.js
create mode 100644 ui/js/spice/bitmap.js
create mode 100644 ui/js/spice/cursor.js
create mode 100644 ui/js/spice/display.js
create mode 100644 ui/js/spice/enums.js
create mode 100644 ui/js/spice/inputs.js
create mode 100644 ui/js/spice/jsbn.js
create mode 100644 ui/js/spice/lz.js
create mode 100644 ui/js/spice/main.js
create mode 100644 ui/js/spice/png.js
create mode 100644 ui/js/spice/prng4.js
create mode 100644 ui/js/spice/quic.js
create mode 100644 ui/js/spice/rng.js
create mode 100644 ui/js/spice/rsa.js
create mode 100644 ui/js/spice/sha1.js
create mode 100644 ui/js/spice/spiceconn.js
create mode 100644 ui/js/spice/spicedataview.js
create mode 100644 ui/js/spice/spicemsg.js
create mode 100644 ui/js/spice/spicetype.js
create mode 100644 ui/js/spice/ticket.js
create mode 100644 ui/js/spice/utils.js
create mode 100644 ui/js/spice/wire.js
create mode 100644 ui/pages/spice.html.tmpl
10 years, 10 months
[PATCH V7 0/2] Add UI spice support
by zhoumeina
v6-v7 Add commit message of the second patch
v5-v6 Add token in spice contructor to be consistent with
the current proxy mechanism.
modify the vnc_proxy_port to display_proxy_port so
that it can be used by spice too.
v4-v5 vm_graphics is not null and not running make it
disabled
v3-v4 restructure js code to drop redundance code.
replace tabs with 4 spaces
v2-v3 Add related make files
v1-v2 add spice.html.tmpl
This patch add the front end support of spice.
1 If there were a spice vm in host, show a "spice" button
but not "vnc" in guest page.
2 click "spice" we can show a screen just like the demo
http://www.spice-space.org/spice-html5/spice.html
zhoumeina (2):
Add the front end support for SPICE
Modify vnc_proxy_port to display_proxy_port
configure.ac | 1 +
contrib/kimchi.spec.fedora.in | 1 +
contrib/kimchi.spec.suse.in | 1 +
docs/API.md | 2 +-
src/kimchi.conf.in | 2 +-
src/kimchi/config.py.in | 2 +-
src/kimchi/control/config.py | 2 +-
src/kimchi/vnc.py | 2 +-
ui/css/spice/spice.css | 115 ++++
ui/js/Makefile.am | 2 +-
ui/js/spice/Makefile.am | 25 +
ui/js/spice/atKeynames.js | 183 ++++++
ui/js/spice/bitmap.js | 51 ++
ui/js/spice/cursor.js | 92 +++
ui/js/spice/display.js | 806 ++++++++++++++++++++++++
ui/js/spice/enums.js | 282 +++++++++
ui/js/spice/inputs.js | 251 ++++++++
ui/js/spice/jsbn.js | 589 ++++++++++++++++++
ui/js/spice/lz.js | 166 +++++
ui/js/spice/main.js | 176 ++++++
ui/js/spice/png.js | 256 ++++++++
ui/js/spice/prng4.js | 79 +++
ui/js/spice/quic.js | 1335 ++++++++++++++++++++++++++++++++++++++++
ui/js/spice/rng.js | 102 +++
ui/js/spice/rsa.js | 146 +++++
ui/js/spice/sha1.js | 346 +++++++++++
ui/js/spice/spiceconn.js | 447 ++++++++++++++
ui/js/spice/spicedataview.js | 96 +++
ui/js/spice/spicemsg.js | 883 ++++++++++++++++++++++++++
ui/js/spice/spicetype.js | 480 +++++++++++++++
ui/js/spice/ticket.js | 250 ++++++++
ui/js/spice/utils.js | 261 ++++++++
ui/js/spice/wire.js | 123 ++++
ui/js/src/kimchi.api.js | 25 +-
ui/js/src/kimchi.guest_main.js | 27 +-
ui/pages/guest.html.tmpl | 1 +
ui/pages/spice.html.tmpl | 139 +++++
37 files changed, 7736 insertions(+), 11 deletions(-)
create mode 100644 ui/css/spice/spice.css
create mode 100644 ui/js/spice/Makefile.am
create mode 100644 ui/js/spice/atKeynames.js
create mode 100644 ui/js/spice/bitmap.js
create mode 100644 ui/js/spice/cursor.js
create mode 100644 ui/js/spice/display.js
create mode 100644 ui/js/spice/enums.js
create mode 100644 ui/js/spice/inputs.js
create mode 100644 ui/js/spice/jsbn.js
create mode 100644 ui/js/spice/lz.js
create mode 100644 ui/js/spice/main.js
create mode 100644 ui/js/spice/png.js
create mode 100644 ui/js/spice/prng4.js
create mode 100644 ui/js/spice/quic.js
create mode 100644 ui/js/spice/rng.js
create mode 100644 ui/js/spice/rsa.js
create mode 100644 ui/js/spice/sha1.js
create mode 100644 ui/js/spice/spiceconn.js
create mode 100644 ui/js/spice/spicedataview.js
create mode 100644 ui/js/spice/spicemsg.js
create mode 100644 ui/js/spice/spicetype.js
create mode 100644 ui/js/spice/ticket.js
create mode 100644 ui/js/spice/utils.js
create mode 100644 ui/js/spice/wire.js
create mode 100644 ui/pages/spice.html.tmpl
10 years, 10 months