From aeabd5701207818e162ac47d77b6b5a121112b1a Mon Sep 17 00:00:00 2001 From: Parthasarathy Dharmalingam Date: Mon, 4 May 2020 01:36:50 +0530 Subject: [PATCH] WebRDP related changes added. --- Myrtille.Web/App_Start/BundleConfig.cs | 2 + Myrtille.Web/Default.aspx | 52 +++++- Myrtille.Web/Default.aspx.cs | 38 +++- Myrtille.Web/Default.aspx.designer.cs | 36 ++++ Myrtille.Web/Myrtille.Web.csproj | 2 + Myrtille.Web/Web.Base.config | 4 +- Myrtille.Web/Web.config | 4 +- Myrtille.Web/css/securden.css | 237 +++++++++++++++++++++++++ Myrtille.Web/js/config.js | 2 +- Myrtille.Web/js/display/canvas.js | 1 + Myrtille.Web/js/myrtille.js | 3 +- Myrtille.Web/js/network/websocket.js | 4 +- Myrtille.Web/js/securden.js | 130 ++++++++++++++ Myrtille.Web/js/user/mouse.js | 3 + Myrtille.Web/src/RemoteSession.cs | 3 + 15 files changed, 506 insertions(+), 15 deletions(-) create mode 100644 Myrtille.Web/css/securden.css create mode 100644 Myrtille.Web/js/securden.js diff --git a/Myrtille.Web/App_Start/BundleConfig.cs b/Myrtille.Web/App_Start/BundleConfig.cs index 3acb770..0c066f9 100644 --- a/Myrtille.Web/App_Start/BundleConfig.cs +++ b/Myrtille.Web/App_Start/BundleConfig.cs @@ -42,6 +42,7 @@ public static void RegisterBundles(BundleCollection bundles) bundles.Add(new Bundle("~/js/xterm/xterm.js").Include("~/js/xterm/xterm.js")); bundles.Add(new Bundle("~/js/xterm/addons/fit/fit.js").Include("~/js/xterm/addons/fit/fit.js")); bundles.Add(new Bundle("~/js/audio/audiowebsocket.js").Include("~/js/audio/audiowebsocket.js")); + bundles.Add(new Bundle("~/js/securden.js").Include("~/js/securden.js")); // styles @@ -49,6 +50,7 @@ public static void RegisterBundles(BundleCollection bundles) bundles.Add(new Bundle("~/css/Default.css").Include("~/css/Default.css")); bundles.Add(new Bundle("~/css/xterm.css").Include("~/css/xterm.css")); + bundles.Add(new Bundle("~/css/securden.css").Include("~/css/securden.css")); } } } \ No newline at end of file diff --git a/Myrtille.Web/Default.aspx b/Myrtille.Web/Default.aspx index b38e08e..1f51c86 100644 --- a/Myrtille.Web/Default.aspx +++ b/Myrtille.Web/Default.aspx @@ -35,11 +35,12 @@ - RDP Session<%=RemoteSession != null && !RemoteSession.ConnectionService && (RemoteSession.State == RemoteSessionState.Connecting || RemoteSession.State == RemoteSessionState.Connected) && !string.IsNullOrEmpty(RemoteSession.ServerAddress) ? " - " + RemoteSession.ServerAddress.ToString() : ""%> + RDP Session<%=RemoteSession != null && !RemoteSession.ConnectionService && (RemoteSession.State == RemoteSessionState.Connecting || RemoteSession.State == RemoteSessionState.Connected) && !string.IsNullOrEmpty(RemoteSession.ServerAddress) ? (" - " + ((!string.IsNullOrEmpty(RemoteSession.UserDomain))? RemoteSession.UserDomain.ToString() + "\\" : "") + RemoteSession.UserName.ToString() + "@" + RemoteSession.ServerAddress.ToString()) : ""%> "/> "/> + "/> @@ -62,6 +63,7 @@ + @@ -249,7 +251,7 @@ show/hide toolbar -