From 742870306dad10c68fa10a91ae369403f5f00e76 Mon Sep 17 00:00:00 2001 From: pythonzm Date: Tue, 28 Apr 2020 22:21:30 +0800 Subject: [PATCH] =?UTF-8?q?webssh=E5=A2=9E=E5=8A=A0rz=20sz?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- static/js/bootbox.min.js | 1 + static/xterm/xterm.min.css | 2 + static/xterm/zmodem/zmodem.min.js | 1 + templates/assets/ssh_terminal.html | 155 +++++++++++++++++++++++++++-- templates/fort/terminal.html | 140 +++++++++++++++++++++++++- utils/ssh.py | 82 +++++++++++---- 6 files changed, 347 insertions(+), 34 deletions(-) create mode 100644 static/js/bootbox.min.js create mode 100644 static/xterm/xterm.min.css create mode 100644 static/xterm/zmodem/zmodem.min.js diff --git a/static/js/bootbox.min.js b/static/js/bootbox.min.js new file mode 100644 index 0000000..8b8a019 --- /dev/null +++ b/static/js/bootbox.min.js @@ -0,0 +1 @@ +!function(t,e){"use strict";"function"==typeof define&&define.amd?define(["jquery"],e):"object"==typeof exports?module.exports=e(require("jquery")):t.bootbox=e(t.jQuery)}(this,function e(p,u){"use strict";var r,n,i,l;Object.keys||(Object.keys=(r=Object.prototype.hasOwnProperty,n=!{toString:null}.propertyIsEnumerable("toString"),l=(i=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"]).length,function(t){if("function"!=typeof t&&("object"!=typeof t||null===t))throw new TypeError("Object.keys called on non-object");var e,o,a=[];for(e in t)r.call(t,e)&&a.push(e);if(n)for(o=0;o