upload image by url in web ui

This commit is contained in:
Maxim Devaev
2021-08-01 21:25:26 +03:00
parent f5c1908657
commit 5933cc0b09
4 changed files with 154 additions and 84 deletions

View File

@@ -37,7 +37,7 @@ li(id="msd-dropdown" class="right feature-disabled")
tr
td Image:
td(width="100%") #[select(disabled id="msd-image-selector")]
td #[button(disabled id="msd-remove-image") Remove]
td #[button(disabled id="msd-remove-button") Remove]
table(class="kv msd-multi-storage feature-disabled")
tr(class="msd-cdrom-emulation feature-disabled")
td Drive #[a(target="_blank" href="https://github.com/pikvm/pikvm/blob/master/pages/msd.md") mode]:
@@ -53,34 +53,34 @@ li(id="msd-dropdown" class="right feature-disabled")
div(id="msd-storage-progress" class="progress")
span(id="msd-storage-progress-value" class="progress-value")
hr
input(type="file" id="msd-select-new-image-file" class="hidden")
div(class="buttons buttons-row")
button(disabled id="msd-select-new-image-button" class="row50") Select image to upload
button(disabled id="msd-upload-new-image-button" class="row25") Upload
button(disabled id="msd-abort-uploading-button" class="row25") Abort
button(disabled id="msd-select-new-button" class="row50") Select image to upload
button(disabled id="msd-upload-new-button" class="row25") Upload
button(disabled id="msd-abort-new-button" class="row25") Abort
div(id="msd-message-another-user-uploads" class="hidden")
hr
+menu_message("info", "Another user uploads an image")
div(id="msd-submenu-new-image" class="hidden")
div(id="msd-new-sub" class="hidden")
hr
table(class="kv")
tr
td Specify a local file:
td #[input(type="file" id="msd-new-file")]
tr
td #[b Or] paste a URL:
td #[input(type="text" id="msd-new-url" style="width: 100%")]
div(id="msd-uploading-sub" class="hidden")
hr
table(class="kv")
tr
td New image:
td(id="msd-new-image-name" class="value")
td(id="msd-uploading-name" class="value")
tr
td Upload size:
td(id="msd-new-image-size" class="value")
td(id="msd-uploading-size" class="value")
div(class="text")
div(id="msd-uploading-progress" class="progress")
span(id="msd-uploading-progress-value" class="progress-value")
hr
table(class="kv")
tr
td(class="value") Tip:
td To speed up uploading, close the Stream window.
tr
td
td This will save network bandwidth.
hr
div(class="buttons buttons-row")
button(disabled id="msd-connect-button" class="row50") Connect drive to Server