use strict

This commit is contained in:
Devaev Maxim 2019-07-17 04:17:22 +03:00
parent 9737b926b8
commit ad83678eb3
14 changed files with 67 additions and 25 deletions

View File

@ -20,6 +20,9 @@
*****************************************************************************/
"use strict";
export function checkBrowser() {
if (
!window.navigator

View File

@ -20,6 +20,9 @@
*****************************************************************************/
"use strict";
import {tools, $} from "../tools.js";
import {checkBrowser} from "../bb.js";
import {wm, initWindowManager} from "../wm.js";
@ -78,7 +81,7 @@ function __loadKvmdInfo() {
if (info.meta && info.meta.server && info.meta.server.host) {
$("kvmd-meta-server-host").innerHTML = info.meta.server.host;
document.title = "Pi-KVM Index: " + info.meta.server.host;
document.title = `Pi-KVM Index: ${info.meta.server.host}`;
} else {
$("kvmd-meta-server-host").innerHTML = "";
document.title = "Pi-KVM Index";

View File

@ -20,12 +20,15 @@
*****************************************************************************/
"use strict";
import {$} from "../tools.js";
export function main() {
let host = window.location.hostname;
let site = window.location.protocol + "//" + window.location.host;
let site = `${window.location.protocol}//${window.location.host}`;
$("ipmi-text").innerHTML = `
<span class="code-comment"># Power on the server if it's off:<br>
$</span> ipmitool -I lanplus -U admin -P admin -H ${host} power on<br>

View File

@ -20,6 +20,9 @@
*****************************************************************************/
"use strict";
import {tools, $$$} from "./tools.js";

View File

@ -20,6 +20,9 @@
*****************************************************************************/
"use strict";
import {tools, $} from "../tools.js";
import {wm} from "../wm.js";

View File

@ -20,6 +20,9 @@
*****************************************************************************/
"use strict";
import {tools, $, $$$} from "../tools.js";
import {wm} from "../wm.js";

View File

@ -20,6 +20,9 @@
*****************************************************************************/
"use strict";
import {tools, $} from "../tools.js";
import {checkBrowser} from "../bb.js";
import {wm, initWindowManager} from "../wm.js";

View File

@ -20,6 +20,9 @@
*****************************************************************************/
"use strict";
import {tools, $} from "../tools.js";
import {Keypad} from "../keypad.js";

View File

@ -20,6 +20,9 @@
*****************************************************************************/
"use strict";
import {tools, $} from "../tools.js";
import {wm} from "../wm.js";

View File

@ -20,6 +20,9 @@
*****************************************************************************/
"use strict";
import {tools, $} from "../tools.js";
import {wm} from "../wm.js";
@ -62,8 +65,8 @@ export function Session() {
${text}
`;
if (state.meta.server && state.meta.server.host) {
$("kvmd-meta-server-host").innerHTML = "Server: " + state.meta.server.host;
document.title = "Pi-KVM Session: " + state.meta.server.host;
$("kvmd-meta-server-host").innerHTML = `Server: ${state.meta.server.host}`;
document.title = `Pi-KVM Session: ${state.meta.server.host}`;
} else {
$("kvmd-meta-server-host").innerHTML = "";
document.title = "Pi-KVM Session";

View File

@ -20,6 +20,9 @@
*****************************************************************************/
"use strict";
import {tools, $} from "../tools.js";
import {wm} from "../wm.js";

View File

@ -20,6 +20,9 @@
*****************************************************************************/
"use strict";
import {tools, $} from "../tools.js";
import {checkBrowser} from "../bb.js";
import {wm, initWindowManager} from "../wm.js";

View File

@ -20,6 +20,9 @@
*****************************************************************************/
"use strict";
export var tools = new function() {
let __debug = (new URL(window.location.href)).searchParams.get("debug");

View File

@ -20,6 +20,9 @@
*****************************************************************************/
"use strict";
import {tools, $, $$, $$$} from "./tools.js";