mirror of
https://github.com/retspen/webvirtcloud
synced 2024-12-26 08:05:22 +00:00
commit
5d3a11e7c9
7 changed files with 27 additions and 6 deletions
|
@ -3,7 +3,7 @@ language: python
|
||||||
python:
|
python:
|
||||||
- "3.9"
|
- "3.9"
|
||||||
env:
|
env:
|
||||||
- DJANGO=3.2.15
|
- DJANGO=4.2.4
|
||||||
install:
|
install:
|
||||||
- pip install -r dev/requirements.txt
|
- pip install -r dev/requirements.txt
|
||||||
script:
|
script:
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/retspen/webvirtcloud)
|
[![Gitpod ready-to-code](https://img.shields.io/badge/Gitpod-ready--to--code-blue?logo=gitpod)](https://gitpod.io/#https://github.com/retspen/webvirtcloud)
|
||||||
|
|
||||||
# WebVirtCloud
|
# WebVirtCloud
|
||||||
###### Python 3.x & Django 3.2 LTS
|
###### Python 3.x & Django 4.2 LTS
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
* QEMU/KVM Hypervisor Management
|
* QEMU/KVM Hypervisor Management
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
Django==3.2.20
|
Django==4.2.4
|
||||||
django_bootstrap5==23.3
|
django_bootstrap5==23.3
|
||||||
django-bootstrap-icons==0.8.3
|
django-bootstrap-icons==0.8.3
|
||||||
django-login-required-middleware==0.9.0
|
django-login-required-middleware==0.9.0
|
||||||
|
|
|
@ -62,12 +62,11 @@
|
||||||
{% endif %}
|
{% endif %}
|
||||||
{% if instance.status == 1 %}
|
{% if instance.status == 1 %}
|
||||||
<!-- Split button -->
|
<!-- Split button -->
|
||||||
<div class="btn-group float-end">
|
<div class="btn-group float-end" role="group">
|
||||||
<button type="button" id="consoleBtnGroup" class="btn btn-lg btn-success"
|
<button type="button" id="consoleBtnGroup" class="btn btn-lg btn-success"
|
||||||
onclick="open_console('lite')">{% trans 'Console' %}</button>
|
onclick="open_console('lite')">{% trans 'Console' %}</button>
|
||||||
<button type="button" class="btn btn-success dropdown-toggle dropdown-toggle-split"
|
<button type="button" class="btn btn-success dropdown-toggle dropdown-toggle-split"
|
||||||
data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
data-bs-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
|
||||||
<span class="sr-only">{% trans 'Toggle Dropdown' %}</span>
|
|
||||||
</button>
|
</button>
|
||||||
<div class="dropdown-menu">
|
<div class="dropdown-menu">
|
||||||
<a class="dropdown-item" href="#"
|
<a class="dropdown-item" href="#"
|
||||||
|
|
11
static/icon_cache/camera_None_None_None.svg
Normal file
11
static/icon_cache/camera_None_None_None.svg
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" ?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-camera" viewBox="0 0 16 16">
|
||||||
|
|
||||||
|
|
||||||
|
<path d="M15 12a1 1 0 0 1-1 1H2a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h1.172a3 3 0 0 0 2.12-.879l.83-.828A1 1 0 0 1 6.827 3h2.344a1 1 0 0 1 .707.293l.828.828A3 3 0 0 0 12.828 5H14a1 1 0 0 1 1 1v6zM2 4a2 2 0 0 0-2 2v6a2 2 0 0 0 2 2h12a2 2 0 0 0 2-2V6a2 2 0 0 0-2-2h-1.172a2 2 0 0 1-1.414-.586l-.828-.828A2 2 0 0 0 9.172 2H6.828a2 2 0 0 0-1.414.586l-.828.828A2 2 0 0 1 3.172 4H2z"/>
|
||||||
|
|
||||||
|
|
||||||
|
<path d="M8 11a2.5 2.5 0 1 1 0-5 2.5 2.5 0 0 1 0 5zm0 1a3.5 3.5 0 1 0 0-7 3.5 3.5 0 0 0 0 7zM3 6.5a.5.5 0 1 1-1 0 .5.5 0 0 1 1 0z"/>
|
||||||
|
|
||||||
|
|
||||||
|
</svg>
|
After Width: | Height: | Size: 675 B |
11
static/icon_cache/download_None_None_None.svg
Normal file
11
static/icon_cache/download_None_None_None.svg
Normal file
|
@ -0,0 +1,11 @@
|
||||||
|
<?xml version="1.0" ?>
|
||||||
|
<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="currentColor" class="bi bi-download" viewBox="0 0 16 16">
|
||||||
|
|
||||||
|
|
||||||
|
<path d="M.5 9.9a.5.5 0 0 1 .5.5v2.5a1 1 0 0 0 1 1h12a1 1 0 0 0 1-1v-2.5a.5.5 0 0 1 1 0v2.5a2 2 0 0 1-2 2H2a2 2 0 0 1-2-2v-2.5a.5.5 0 0 1 .5-.5z"/>
|
||||||
|
|
||||||
|
|
||||||
|
<path d="M7.646 11.854a.5.5 0 0 0 .708 0l3-3a.5.5 0 0 0-.708-.708L8.5 10.293V1.5a.5.5 0 0 0-1 0v8.793L5.354 8.146a.5.5 0 1 0-.708.708l3 3z"/>
|
||||||
|
|
||||||
|
|
||||||
|
</svg>
|
After Width: | Height: | Size: 462 B |
|
@ -1368,7 +1368,7 @@ class wvmInstance(wvmConnect):
|
||||||
name = name.replace("s1", "s2")
|
name = name.replace("s1", "s2")
|
||||||
self.create_external_snapshot(name, date, desc)
|
self.create_external_snapshot(name, date, desc)
|
||||||
|
|
||||||
def get_snapshot(self, flag=VIR_DOMAIN_SNAPSHOT_LIST_INTERNAL):
|
def get_snapshot(self, flag=VIR_DOMAIN_SNAPSHOT_LIST_INTERNAL|VIR_DOMAIN_SNAPSHOT_LIST_EXTERNAL):
|
||||||
snapshots = []
|
snapshots = []
|
||||||
snapshot_list = self.instance.snapshotListNames(flag)
|
snapshot_list = self.instance.snapshotListNames(flag)
|
||||||
for snapshot in snapshot_list:
|
for snapshot in snapshot_list:
|
||||||
|
|
Loading…
Reference in a new issue