From 2858731cd10647d70aaa9ae5ae5ddbc3a99e0ae0 Mon Sep 17 00:00:00 2001 From: Jared Goodwin Date: Fri, 15 Mar 2019 22:56:44 -0700 Subject: [PATCH] Sorted command completions. Console tab notifies when new messages have arrived if another tab is selected. Desktop app prepends scheme to URL if missing. Increased upload size limit. --- .gitignore | 1 + .../ViewModels/MainWindowViewModel.cs | 5 ++ Remotely_Server/Pages/_IndexLoggedIn.cshtml | 15 +++++- Remotely_Server/web.config | 5 ++ Remotely_Server/wwwroot/css/site.css | 17 +++++++ .../wwwroot/scripts/CommandCompletion.js | 43 +++++++++++++--- .../wwwroot/scripts/CommandCompletion.js.map | 2 +- .../wwwroot/scripts/CommandCompletion.ts | 49 +++++++++++++++---- .../wwwroot/scripts/CommandProcessor.js | 30 +----------- .../wwwroot/scripts/CommandProcessor.js.map | 2 +- .../wwwroot/scripts/CommandProcessor.ts | 31 +----------- .../wwwroot/scripts/InputEventHandlers.js | 6 +++ .../wwwroot/scripts/InputEventHandlers.js.map | 2 +- .../wwwroot/scripts/InputEventHandlers.ts | 6 +++ Remotely_Server/wwwroot/scripts/UI.js | 5 ++ Remotely_Server/wwwroot/scripts/UI.js.map | 2 +- Remotely_Server/wwwroot/scripts/UI.ts | 6 +++ 17 files changed, 146 insertions(+), 81 deletions(-) diff --git a/.gitignore b/.gitignore index 4bcd5bd4..2cce2e55 100644 --- a/.gitignore +++ b/.gitignore @@ -263,5 +263,6 @@ __pycache__/ /Remotely_Server/wwwroot/Downloads/*.exe /Remotely_Server/wwwroot/Downloads/*.zip /Remotely_Server/wwwroot/Downloads/*.appimage +/Remotely_Server/wwwroot/Downloads/CurrentAgentVersion.txt /Remotely_Server/Server.db /Remotely_Agent/Resources/* \ No newline at end of file diff --git a/Remotely_Desktop/ViewModels/MainWindowViewModel.cs b/Remotely_Desktop/ViewModels/MainWindowViewModel.cs index 18363175..31d7caa3 100644 --- a/Remotely_Desktop/ViewModels/MainWindowViewModel.cs +++ b/Remotely_Desktop/ViewModels/MainWindowViewModel.cs @@ -54,6 +54,7 @@ namespace Remotely_Desktop.ViewModels Config = Config.GetConfig(); while (string.IsNullOrWhiteSpace(Config.Host)) { + Config.Host = "https://"; PromptForHostName(); } @@ -135,6 +136,10 @@ namespace Remotely_Desktop.ViewModels prompt.Owner = App.Current?.MainWindow; prompt.ShowDialog(); var result = HostNamePromptViewModel.Current.Host.TrimEnd("/".ToCharArray()); + if (!result.StartsWith("https://") && !result.StartsWith("http://")) + { + result = $"https://{result}"; + } if (result != Config.Host) { Config.Host = result; diff --git a/Remotely_Server/Pages/_IndexLoggedIn.cshtml b/Remotely_Server/Pages/_IndexLoggedIn.cshtml index a28362b8..51a1617a 100644 --- a/Remotely_Server/Pages/_IndexLoggedIn.cshtml +++ b/Remotely_Server/Pages/_IndexLoggedIn.cshtml @@ -2,8 +2,19 @@