One-KVM/web/kvm/navbar-msd.pug
mofeng-git 2c056ca3e3 feat: merge upstream master - version 4.94
Merge upstream PiKVM master branch updates:

- Bump version from 4.93 to 4.94
- HID: improved jiggler pattern for better compatibility
- Streamer: major refactoring for improved performance and maintainability
- Prometheus: tidying GPIO channel name formatting
- Web: added __gpio-label class for custom styling
- HID: customizable /api/hid/print delay configuration
- ATX: independent power/reset regions for better control
- OLED: added --fill option for display testing
- Web: improved keyboard handling in modal dialogs
- Web: enhanced login error messages
- Switch: added heartbeat functionality
- Web: mouse touch code simplification and refactoring
- Configs: use systemd-networkd-wait-online --any by default
- PKGBUILD: use cp -r to install systemd units properly
- Various bug fixes and performance improvements
2025-08-21 11:26:59 +08:00

129 lines
4.5 KiB
Plaintext
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

li.right.feature-disabled#msd-dropdown
a.menu-button(href="#")
+navbar_led("msd-led", "led-msd")
span(i18n="kvm_text60") Drive
.menu#msd-menu
.text
b(i18n="kvm_text61") Mass Storage Drive:
span#msd-status
br
hr
.hidden#msd-message-offline
+menu_message("warning", "Mass Storage Drive is offline", "msd-message-offline")
hr
.hidden#msd-message-image-broken
+menu_message("warning", "Current image is broken!", "msd-message-image-broken")
| Perhaps uploading was interrupted#[br]
hr
.hidden#msd-message-too-big-for-dvd
+menu_message("warning", "Current image is too big for DVD!", "msd-message-too-big-for-dvd")
| The maximum is 31.6GiB. Please switch to the Flash mode.
hr
.hidden#msd-message-out-of-storage
+menu_message("warning", "Current image is out of storage", "msd-message-out-of-storage")
| This image was connected manually using #[b kvmd-otgmsd]
hr
.hidden#msd-message-rw-enabled
+menu_message("warning", "Read-write mode is enabled", "msd-message-rw-enabled")
| Do not turn off PiKVM while this is active to prevent#[br]
| filesystem corruption. Use read-only mode where possible,#[br]
| as writing to SD card often can reduce its lifespan.
hr
.hidden#msd-message-downloads
+menu_message("info", "The image is being downloaded from One-KVM", "msd-message-downloads")
| Please wait
hr
table.kv
tr
td(i18n="kvm_text62") Image:
td(width="100%") #[select#msd-image-selector(disabled)]
td #[button#msd-download-button(disabled title="Download image") #[b   ⇩  ]]
td #[button#msd-remove-button(disabled title="Remove image") #[b   ×  ]]
table.kv
tr
+menu_radio_td2("msd-mode-radio", [
{title: "CD/DVD", value: "1", checked: true},
{title: "Flash", value: "0"},
]) Drive #[a(target="_blank" href="https://docs.pikvm.org/msd") mode]:
td  
+menu_switch_td2("msd-rw-switch", false, false) Writable:
tr
td(i18n="kvm_text84") Files
td
div.radio-box()
input#msd-mode-radio-image(checked type="radio" name="file-mode-radio" value="1")
label(for="msd-mode-radio-image" i18n="kvm_text90") ImageFiles
input#msd-mode-radio-file(type="radio" name="file-mode-radio" value="0")
label(for="msd-mode-radio-file" i18n="kvm_text91") NormalFiles
hr
#msd-storages
hr
.buttons.buttons-row
button.row50#msd-select-new-button(disabled i18n="kvm_text64") Select image to upload
button.row25#msd-upload-new-button(disabled i18n="kvm_text65") Upload
button.row25#msd-abort-new-button(disabled i18n="kvm_text66") Abort
.hidden#msd-message-another-user-uploads
+menu_message("info", "Another user uploads an image", "msd-message-another-user-uploads")
hr
.hidden#msd-new-sub
table.kv
tr
td(i18n="kvm_text68") Specify a local file:
td #[input#msd-new-file(type="file")]
tr
td(i18n="kvm_text69") #[b Or] paste a URL:
td #[input#msd-new-url(type="text" style="width: 100%")]
tr.hidden#msd-new-part
td(i18n="kvm_text70") Upload partition:
td(width="100%") #[select#msd-new-part-selector]
div(id="msd-uploading-sub" class="hidden")
hr
.hidden#msd-uploading-sub
table.kv
tr
td(i18n="kvm_text74") New image:
td.value#msd-uploading-name
tr
td(i18n="kvm_text75") Upload size:
td.value#msd-uploading-size
.text
.progress#msd-uploading-progress
span.progress-value#msd-uploading-progress-value
hr
.hidden#msd-new-tips
table.kv
tr
td.value(i18n="kvm_text71") Note:
td(i18n="kvm_text72") • Don't close the browser page until the upload is complete.
tr
td
td(i18n="kvm_text73") • To speed up the upload, close the stream window.
hr
.buttons.buttons-row
button.row50#msd-connect-button(disabled i18n="kvm_text76") Connect drive to Server
button.row25#msd-disconnect-button(disabled i18n="kvm_text77") Disconnect
button.row25#msd-reset-button(disabled i18n="kvm_text78") Reset
hr
.text
b(i18n="kvm_text85") Quick file transfer:
br
sub(i18n="kvm_text86") • Select NormalFiles tab to upload, package them and mount image
br
sub(i18n="kvm_text87") • Disconnect MSD, unpackage it, select tab to download
br
hr
div(class="buttons buttons-row")
button.row50#msd-file-image-update-button(i18n="kvm_text88") Package files into image
button.row50#msd-file-image-unzip-button(i18n="kvm_text89") Unpackage files from image
hr