diff --git a/web/base.pug b/web/base.pug index 523b076f..a3bbadf8 100644 --- a/web/base.pug +++ b/web/base.pug @@ -51,14 +51,15 @@ html(lang="en") link(rel="stylesheet" href=`${css_dir}/${name}.css`) link(rel="stylesheet" href=`${css_dir}/user.css`) + script(src=`${js_dir}/i18n/jquery-3.7.1.min.js`) + script(src=`${js_dir}/i18n/jquery.i18n.min.js`) + script(src=`${js_dir}/i18n/i18n.js`) + if main_js script(type="module") | import {main} from "#{js_dir}/#{main_js}.js"; | main(); - script(src=`${js_dir}/i18n/jquery-3.7.1.min.js`) - script(src=`${js_dir}/i18n/jquery.i18n.min.js`) - script(src=`${js_dir}/i18n/i18n.js`) body(class=body_class) block body diff --git a/web/index.html b/web/index.html index 452502d6..9f8134e1 100644 --- a/web/index.html +++ b/web/index.html @@ -40,12 +40,12 @@ - +
@@ -56,39 +56,37 @@ - + - +
The Open Source KVM over IPThe Open Source KVM over IP

- - - - -
- Server:
-

Loading ...

+
+ + + + +
+ Server:
-
-

+

Please note that when you are working with a KVM session or another application that captures the keyboard, you can't use some keyboard shortcuts such as Ctrl+Alt+Del (which will be caught by your OS) or Ctrl+W (caught by your browser).

-

To override this limitation you can use Google Chrome +

To override this limitation you can use Google Chrome or Chromium in application mode.

-

-

PiKVM Project  |  Documentation  |  Support

+

PiKVM Project  |  PiKVM Documentation  |  One-KVM Project  |  One-KVM Documentation

diff --git a/web/index.pug b/web/index.pug index c84efb59..1e3bb99e 100644 --- a/web/index.pug +++ b/web/index.pug @@ -13,35 +13,36 @@ block start img(class="svg-gray" src=`${svg_dir}/logo.svg` alt="PiKVM" height="40") td table - tr #[td(colspan="2" class="title") The Open Source KVM over IP] + tr #[td(colspan="2" class="title" i18n="index_title") The Open Source KVM over IP] tr - td(colspan="2" class="copyright") - | Copyright © 2018-2024 #[a(target="_blank" href="mailto:mdevaev@gmail.com") Maxim Devaev] + td(colspan="2" class="copyright" i18n="copyright") + | Copyright © 2018-2024 Maxim Devaev | Modified by SilentWind + hr + + div(id="apps-box") + h4 Loading ... + hr table td(class="server") - td Server: + td(i18n="serve_name") Server: td #[a(id="kvmd-meta-server-host" target="_blank" href="/api/info")] - hr - div(id="apps-box") - h4 Loading ... - div(id="app-keyboard-warning") - hr - p(class="text") + p(class="text" i18n="index_text_1") | Please note that when you are working with a KVM session or another application that captures the keyboard, | you can't use some keyboard shortcuts such as Ctrl+Alt+Del (which will be caught by your OS) or Ctrl+W (caught by your browser). - p(class="text") + p(class="text" i18n="index_text_2") | To override this limitation you can use #[a(target="_blank" href="https://google.com/chrome") Google Chrome] | or #[a(target="_blank" href="https://chromium.org/Home") Chromium] in application mode. - div(id="app-text" class="code") hr p(class="text credits") - a(target="_blank" href="https://pikvm.org") PiKVM Project + a(target="_blank" href="https://pikvm.org" i18n="index_text_10") PiKVM Project |   |   - a(target="_blank" href="https://docs.pikvm.org") Documentation + a(target="_blank" href="https://docs.pikvm.org" i18n="index_text_11") PiKVM Documentation |   |   - a(target="_blank" href="https://pikvm.org/support") Support + a(target="_blank" href="https://github.com/mofeng-git/One-KVM" i18n="index_text_12") One-KVM Project + |   |   + a(target="_blank" href="https://one-kvm.mofeng.run" i18n="index_text_13") One-KVM Documentation \ No newline at end of file diff --git a/web/ipmi/index.html b/web/ipmi/index.html index 2a272349..ca0ce4f7 100644 --- a/web/ipmi/index.html +++ b/web/ipmi/index.html @@ -37,16 +37,16 @@ - +
-
  ←   [ PiKVM Index ] +
  ←   [ One-KVM Index ]

This PiKVM device has running kvmd-ipmi daemon and provides IPMI 2.0 interface for some basic BMC operations like on/off/reset the server. diff --git a/web/kvm/index.html b/web/kvm/index.html index 6b9327e8..7e1ccd55 100644 --- a/web/kvm/index.html +++ b/web/kvm/index.html @@ -52,12 +52,12 @@ - +