forked from mofeng-git/One-KVM
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
2e89172
commit cb559f5
Showing
18 changed files
with
202 additions
and
108 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,99 +1,99 @@ | ||
li(id="msd-dropdown" class="right feature-disabled") | ||
a(class="menu-button" href="#") | ||
+navbar_led("msd-led", "led-msd") | ||
span Drive | ||
span(i18n="kvm_text60") Drive | ||
div(id="msd-menu" class="menu") | ||
div(class="text") | ||
b Mass Storage Drive: | ||
b(i18n="kvm_text61") Mass Storage Drive: | ||
span(id="msd-status") | ||
br | ||
hr | ||
div(id="msd-message-offline" class="hidden") | ||
+menu_message("warning", "Mass Storage Drive is offline") | ||
+menu_message("warning", "Mass Storage Drive is offline", "msd-message-offline") | ||
hr | ||
div(id="msd-message-image-broken" class="hidden") | ||
+menu_message("warning", "Current image is broken!") | ||
+menu_message("warning", "Current image is broken!", "msd-message-image-broken") | ||
| Perhaps uploading was interrupted#[br] | ||
hr | ||
div(id="msd-message-too-big-for-cdrom" class="hidden") | ||
+menu_message("warning", "Current image is too big for CD-ROM!") | ||
+menu_message("warning", "Current image is too big for CD-ROM!", "msd-message-too-big-for-cdrom") | ||
| The device filesystem will be truncated to 2.2GiB | ||
hr | ||
div(id="msd-message-out-of-storage" class="hidden") | ||
+menu_message("warning", "Current image is 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 | ||
div(id="msd-message-rw-enabled" class="hidden") | ||
+menu_message("warning", "Read-write mode is 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 | ||
div(id="msd-message-downloads" class="hidden") | ||
+menu_message("info", "The image is being downloaded from PiKVM") | ||
+menu_message("info", "The image is being downloaded from PiKVM", "msd-message-downloads") | ||
| Please wait | ||
hr | ||
table(class="kv") | ||
tr | ||
td Image: | ||
td(i18n="kvm_text62") Image: | ||
td(width="100%") #[select(disabled id="msd-image-selector")] | ||
td #[button(disabled id="msd-download-button" title="Download image") #[b ⇩ ]] | ||
td #[button(disabled id="msd-remove-button" title="Remove image") #[b × ]] | ||
table(class="kv") | ||
tr | ||
td Drive #[a(target="_blank" href="https://docs.pikvm.org/msd") mode]: | ||
td(i18n="kvm_text63") Drive #[a(target="_blank" href="https://docs.pikvm.org/msd") mode]: | ||
td | ||
div(class="radio-box") | ||
input(checked type="radio" id="msd-mode-radio-cdrom" name="msd-mode-radio" value="1") | ||
label(for="msd-mode-radio-cdrom") CD-ROM | ||
input(type="radio" id="msd-mode-radio-flash" name="msd-mode-radio" value="0") | ||
label(for="msd-mode-radio-flash") Flash | ||
td | ||
+menu_switch_notable("msd-rw-switch", "Writable", false, false) | ||
+menu_switch_notable("msd-rw-switch", "Writable", false, false, "msd-rw-switch") | ||
hr | ||
div(id="msd-storages") | ||
hr | ||
div(class="buttons buttons-row") | ||
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 | ||
button(disabled id="msd-select-new-button" class="row50" i18n="kvm_text64") Select image to upload | ||
button(disabled id="msd-upload-new-button" class="row25" i18n="kvm_text65") Upload | ||
button(disabled id="msd-abort-new-button" class="row25" i18n="kvm_text66") Abort | ||
div(id="msd-message-another-user-uploads" class="hidden") | ||
hr | ||
+menu_message("info", "Another user uploads an image") | ||
+menu_message("info", "Another user uploads an image", "msd-message-another-user-uploads") | ||
div(id="msd-new-sub" class="hidden") | ||
hr | ||
table(class="kv") | ||
tr | ||
td Specify a local file: | ||
td(i18n="kvm_text68") Specify a local file: | ||
td #[input(type="file" id="msd-new-file")] | ||
tr | ||
td #[b Or] paste a URL: | ||
td(i18n="kvm_text69") #[b Or] paste a URL: | ||
td #[input(type="text" id="msd-new-url" style="width: 100%")] | ||
tr(id="msd-new-part" class="hidden") | ||
td Upload partition: | ||
td(i18n="kvm_text70") Upload partition: | ||
td(width="100%") #[select(id="msd-new-part-selector")] | ||
hr | ||
table(class="kv") | ||
tr | ||
td(class="value") Note: | ||
td • Don't close the browser page until the upload is complete. | ||
td(class="value" i18n="kvm_text71") Note: | ||
td(i18n="kvm_text72") • Don't close the browser page until the upload is complete. | ||
tr | ||
td | ||
td • To speed up the upload, close the stream window. | ||
td(i18n="kvm_text73") • To speed up the upload, close the stream window. | ||
div(id="msd-uploading-sub" class="hidden") | ||
hr | ||
table(class="kv") | ||
tr | ||
td New image: | ||
td(i18n="kvm_text74") New image: | ||
td(id="msd-uploading-name" class="value") | ||
tr | ||
td Upload size: | ||
td(i18n="kvm_text75") Upload size: | ||
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 | ||
div(class="buttons buttons-row") | ||
button(disabled id="msd-connect-button" class="row50") Connect drive to Server | ||
button(disabled id="msd-disconnect-button" class="row25") Disconnect | ||
button(disabled id="msd-reset-button" class="row25") Reset | ||
button(disabled id="msd-connect-button" class="row50" i18n="kvm_text76") Connect drive to Server | ||
button(disabled id="msd-disconnect-button" class="row25" i18n="kvm_text77") Disconnect | ||
button(disabled id="msd-reset-button" class="row25" i18n="kvm_text78") Reset |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
mixin about_tab(name, title, checked=false) | ||
mixin about_tab(name, title, checked=false, i18nid) | ||
- let button_id = `about-tab-${name}-button` | ||
input(checked=checked type="radio" name="about-tab-button", id=button_id) | ||
label(for=button_id) #{title} | ||
label(for=button_id i18n=i18nid) #{title} | ||
div(class="tab") | ||
div(id=`about-${name}` class="code") | ||
if block | ||
|
@@ -28,11 +28,11 @@ div(id="about-window" class="window") | |
| Copyright © 2018-2024 #[a(target="_blank" href="mailto:[email protected]") Maxim Devaev] | ||
br | ||
div(class="tabs-box") | ||
+about_tab("meta", "Meta", true) | ||
+about_tab("hardware", "Hardware") | ||
+about_tab("version", "Version") | ||
+about_tab("meta", "Meta", true, "meta") | ||
+about_tab("hardware", "Hardware", "hardware") | ||
+about_tab("version", "Version", "version") | ||
|
||
+about_tab("thanks", "Thanks") | ||
+about_tab("thanks", "Thanks", "thanks") | ||
span(class="code-comment" i18n="kvm_text2") | ||
| // These kind people donated money to the PiKVM project#[br] | ||
| // and supported the work on it. We are very grateful#[br] | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.