diff options
author | Devaev Maxim <[email protected]> | 2019-02-18 06:22:59 +0300 |
---|---|---|
committer | Devaev Maxim <[email protected]> | 2019-02-18 06:22:59 +0300 |
commit | 6a0de7c329e45d406d12453b4de397f3d983f1d0 (patch) | |
tree | 69d00acd56a32a6962e59594348146f3431a1e89 /web/share | |
parent | d555f1d4823938022914b4cbbeef40a197ca8069 (diff) |
license
Diffstat (limited to 'web/share')
-rw-r--r-- | web/share/js/bb.js | 22 | ||||
-rw-r--r-- | web/share/js/index/main.js | 22 | ||||
-rw-r--r-- | web/share/js/kvm/atx.js | 26 | ||||
-rw-r--r-- | web/share/js/kvm/hid.js | 26 | ||||
-rw-r--r-- | web/share/js/kvm/keyboard.js | 26 | ||||
-rw-r--r-- | web/share/js/kvm/main.js | 22 | ||||
-rw-r--r-- | web/share/js/kvm/mouse.js | 26 | ||||
-rw-r--r-- | web/share/js/kvm/msd.js | 26 | ||||
-rw-r--r-- | web/share/js/kvm/session.js | 26 | ||||
-rw-r--r-- | web/share/js/kvm/stream.js | 26 | ||||
-rw-r--r-- | web/share/js/login/main.js | 22 | ||||
-rw-r--r-- | web/share/js/tools.js | 22 | ||||
-rw-r--r-- | web/share/js/wm.js | 26 |
13 files changed, 302 insertions, 16 deletions
diff --git a/web/share/js/bb.js b/web/share/js/bb.js index 565a3ab4..65c917b0 100644 --- a/web/share/js/bb.js +++ b/web/share/js/bb.js @@ -1,3 +1,25 @@ +/***************************************************************************** +# # +# KVMD - The The main Pi-KVM daemon. # +# # +# Copyright (C) 2018 Maxim Devaev <[email protected]> # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see <https://www.gnu.org/licenses/>. # +# # +*****************************************************************************/ + + function checkBrowser() { if ( !window.navigator diff --git a/web/share/js/index/main.js b/web/share/js/index/main.js index edc52073..a972b543 100644 --- a/web/share/js/index/main.js +++ b/web/share/js/index/main.js @@ -1,3 +1,25 @@ +/***************************************************************************** +# # +# KVMD - The The main Pi-KVM daemon. # +# # +# Copyright (C) 2018 Maxim Devaev <[email protected]> # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see <https://www.gnu.org/licenses/>. # +# # +*****************************************************************************/ + + var wm; function main() { diff --git a/web/share/js/kvm/atx.js b/web/share/js/kvm/atx.js index ed5f045e..a81abe45 100644 --- a/web/share/js/kvm/atx.js +++ b/web/share/js/kvm/atx.js @@ -1,7 +1,29 @@ +/***************************************************************************** +# # +# KVMD - The The main Pi-KVM daemon. # +# # +# Copyright (C) 2018 Maxim Devaev <[email protected]> # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see <https://www.gnu.org/licenses/>. # +# # +*****************************************************************************/ + + function Atx() { var self = this; - /********************************************************************************/ + /************************************************************************/ var __init__ = function() { $("atx-power-led").title = "Power Led"; @@ -12,7 +34,7 @@ function Atx() { tools.setOnClick($("atx-reset-button"), () => __clickButton("reset", "Are you sure to reboot the server?")); }; - /********************************************************************************/ + /************************************************************************/ self.setState = function(state) { $("atx-power-led").className = ((state && state.leds.power) ? "led-green" : "led-gray"); diff --git a/web/share/js/kvm/hid.js b/web/share/js/kvm/hid.js index b6896955..f927d401 100644 --- a/web/share/js/kvm/hid.js +++ b/web/share/js/kvm/hid.js @@ -1,7 +1,29 @@ +/***************************************************************************** +# # +# KVMD - The The main Pi-KVM daemon. # +# # +# Copyright (C) 2018 Maxim Devaev <[email protected]> # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see <https://www.gnu.org/licenses/>. # +# # +*****************************************************************************/ + + function Hid() { var self = this; - /********************************************************************************/ + /************************************************************************/ var __ws = null; @@ -51,7 +73,7 @@ function Hid() { }); }; - /********************************************************************************/ + /************************************************************************/ self.setSocket = function(ws) { wm.switchDisabled($("hid-pak-text"), !ws); diff --git a/web/share/js/kvm/keyboard.js b/web/share/js/kvm/keyboard.js index 9b898925..a804dce4 100644 --- a/web/share/js/kvm/keyboard.js +++ b/web/share/js/kvm/keyboard.js @@ -1,7 +1,29 @@ +/***************************************************************************** +# # +# KVMD - The The main Pi-KVM daemon. # +# # +# Copyright (C) 2018 Maxim Devaev <[email protected]> # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see <https://www.gnu.org/licenses/>. # +# # +*****************************************************************************/ + + function Keyboard() { var self = this; - /********************************************************************************/ + /************************************************************************/ var __ws = null; var __ok = true; @@ -44,7 +66,7 @@ function Keyboard() { } }; - /********************************************************************************/ + /************************************************************************/ self.setSocket = function(ws) { if (ws !== __ws) { diff --git a/web/share/js/kvm/main.js b/web/share/js/kvm/main.js index 5c6d775a..00c32d79 100644 --- a/web/share/js/kvm/main.js +++ b/web/share/js/kvm/main.js @@ -1,3 +1,25 @@ +/***************************************************************************** +# # +# KVMD - The The main Pi-KVM daemon. # +# # +# Copyright (C) 2018 Maxim Devaev <[email protected]> # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see <https://www.gnu.org/licenses/>. # +# # +*****************************************************************************/ + + var wm; function main() { diff --git a/web/share/js/kvm/mouse.js b/web/share/js/kvm/mouse.js index 13807ec7..9eee06e4 100644 --- a/web/share/js/kvm/mouse.js +++ b/web/share/js/kvm/mouse.js @@ -1,7 +1,29 @@ +/***************************************************************************** +# # +# KVMD - The The main Pi-KVM daemon. # +# # +# Copyright (C) 2018 Maxim Devaev <[email protected]> # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see <https://www.gnu.org/licenses/>. # +# # +*****************************************************************************/ + + function Mouse() { var self = this; - /********************************************************************************/ + /************************************************************************/ var __ws = null; var __ok = true; @@ -33,7 +55,7 @@ function Mouse() { setInterval(__sendMove, 100); }; - /********************************************************************************/ + /************************************************************************/ self.setSocket = function(ws) { __ws = ws; diff --git a/web/share/js/kvm/msd.js b/web/share/js/kvm/msd.js index c23de99d..7f00162a 100644 --- a/web/share/js/kvm/msd.js +++ b/web/share/js/kvm/msd.js @@ -1,7 +1,29 @@ +/***************************************************************************** +# # +# KVMD - The The main Pi-KVM daemon. # +# # +# Copyright (C) 2018 Maxim Devaev <[email protected]> # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see <https://www.gnu.org/licenses/>. # +# # +*****************************************************************************/ + + function Msd() { var self = this; - /********************************************************************************/ + /************************************************************************/ var __state = null; var __upload_http = null; @@ -22,7 +44,7 @@ function Msd() { tools.setOnClick($("msd-reset-button"), __clickResetButton); }; - /********************************************************************************/ + /************************************************************************/ self.setState = function(state) { __state = state; diff --git a/web/share/js/kvm/session.js b/web/share/js/kvm/session.js index 7f2100bd..800a46d8 100644 --- a/web/share/js/kvm/session.js +++ b/web/share/js/kvm/session.js @@ -1,7 +1,29 @@ +/***************************************************************************** +# # +# KVMD - The The main Pi-KVM daemon. # +# # +# Copyright (C) 2018 Maxim Devaev <[email protected]> # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see <https://www.gnu.org/licenses/>. # +# # +*****************************************************************************/ + + function Session() { // var self = this; - /********************************************************************************/ + /************************************************************************/ var __ws = null; @@ -17,7 +39,7 @@ function Session() { __startSession(); }; - /********************************************************************************/ + /************************************************************************/ var __setKvmdInfo = function(state) { if (state.meta) { diff --git a/web/share/js/kvm/stream.js b/web/share/js/kvm/stream.js index c1ed4df5..cbd69d32 100644 --- a/web/share/js/kvm/stream.js +++ b/web/share/js/kvm/stream.js @@ -1,7 +1,29 @@ +/***************************************************************************** +# # +# KVMD - The The main Pi-KVM daemon. # +# # +# Copyright (C) 2018 Maxim Devaev <[email protected]> # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see <https://www.gnu.org/licenses/>. # +# # +*****************************************************************************/ + + function Streamer() { var self = this; - /********************************************************************************/ + /************************************************************************/ var __resolution = {width: 640, height: 480}; var __size_factor = 1; @@ -36,7 +58,7 @@ function Streamer() { tools.setOnClick($("stream-reset-button"), __clickResetButton); }; - /********************************************************************************/ + /************************************************************************/ self.setState = function(state) { if (state && state.state) { diff --git a/web/share/js/login/main.js b/web/share/js/login/main.js index 42e614f0..0eb9411a 100644 --- a/web/share/js/login/main.js +++ b/web/share/js/login/main.js @@ -1,3 +1,25 @@ +/***************************************************************************** +# # +# KVMD - The The main Pi-KVM daemon. # +# # +# Copyright (C) 2018 Maxim Devaev <[email protected]> # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see <https://www.gnu.org/licenses/>. # +# # +*****************************************************************************/ + + var wm; function main() { diff --git a/web/share/js/tools.js b/web/share/js/tools.js index fe240d00..3993e065 100644 --- a/web/share/js/tools.js +++ b/web/share/js/tools.js @@ -1,3 +1,25 @@ +/***************************************************************************** +# # +# KVMD - The The main Pi-KVM daemon. # +# # +# Copyright (C) 2018 Maxim Devaev <[email protected]> # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see <https://www.gnu.org/licenses/>. # +# # +*****************************************************************************/ + + var tools = new function() { var __debug = (new URL(window.location.href)).searchParams.get("debug"); diff --git a/web/share/js/wm.js b/web/share/js/wm.js index 550c7a32..3a456b5b 100644 --- a/web/share/js/wm.js +++ b/web/share/js/wm.js @@ -1,7 +1,29 @@ +/***************************************************************************** +# # +# KVMD - The The main Pi-KVM daemon. # +# # +# Copyright (C) 2018 Maxim Devaev <[email protected]> # +# # +# This program is free software: you can redistribute it and/or modify # +# it under the terms of the GNU General Public License as published by # +# the Free Software Foundation, either version 3 of the License, or # +# (at your option) any later version. # +# # +# This program is distributed in the hope that it will be useful, # +# but WITHOUT ANY WARRANTY; without even the implied warranty of # +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # +# GNU General Public License for more details. # +# # +# You should have received a copy of the GNU General Public License # +# along with this program. If not, see <https://www.gnu.org/licenses/>. # +# # +*****************************************************************************/ + + function WindowManager() { var self = this; - /********************************************************************************/ + /************************************************************************/ var __top_z_index = 0; var __windows = []; @@ -44,7 +66,7 @@ function WindowManager() { window.addEventListener("orientationchange", () => __organizeWindowsOnResize(true)); }; - /********************************************************************************/ + /************************************************************************/ self.error = (...args) => __modalDialog("Error", args.join(" "), true, false); self.confirm = (...args) => __modalDialog("Question", args.join(" "), true, true); |