diff --git a/Agent/Agent.csproj b/Agent/Agent.csproj index cd4207dd..a86cb34e 100644 --- a/Agent/Agent.csproj +++ b/Agent/Agent.csproj @@ -15,11 +15,15 @@ AnyCPU;x86;x64 Remotely_Agent Remotely.Agent - favicon.ico + Assets\favicon.ico - + + + + + @@ -46,10 +50,6 @@ - - - - diff --git a/Agent/favicon.ico b/Agent/Assets/favicon.ico similarity index 100% rename from Agent/favicon.ico rename to Agent/Assets/favicon.ico diff --git a/Desktop.Win/Controls/HostNamePrompt.xaml b/Desktop.Win/Controls/HostNamePrompt.xaml index 9e9f2de8..12cd8878 100644 --- a/Desktop.Win/Controls/HostNamePrompt.xaml +++ b/Desktop.Win/Controls/HostNamePrompt.xaml @@ -7,7 +7,7 @@ xmlns:local="clr-namespace:Remotely.Desktop.Win.Controls" xmlns:ViewModels="clr-namespace:Remotely.Desktop.Win.ViewModels" x:Name="PromptWindow" mc:Ignorable="d" - Title="Remotely Host Name" Height="150" Width="350" WindowStartupLocation="CenterOwner" Icon="/Remotely_Icon.png"> + Title="Remotely Host Name" Height="150" Width="350" WindowStartupLocation="CenterOwner" Icon="/Assets/Remotely_Icon.png"> diff --git a/Server/Areas/Identity/Pages/Account/Manage/ServerConfig.cshtml b/Server/Areas/Identity/Pages/Account/Manage/ServerConfig.cshtml index 5a343396..06414b5f 100644 --- a/Server/Areas/Identity/Pages/Account/Manage/ServerConfig.cshtml +++ b/Server/Areas/Identity/Pages/Account/Manage/ServerConfig.cshtml @@ -1,4 +1,6 @@ @page +@using Remotely.Server.Hubs +@inject Remotely.Server.Services.DataService DataService @model ServerConfigModel @{ ViewData["Title"] = "Server Config"; @@ -8,18 +10,41 @@ @if (Model.IsServerAdmin) { - +
Server Info
+ +
+
+
+
+ +
+ @AgentHub.ServiceConnections.Count +
+
+ +
+ @DataService.GetTotalDevices() +
+
+ +
+ @Model.Environment +
+
+ +
+
+
-
- Environment: @Model.Environment -
+ +
Application Settings
+ + +
-

Application Settings

- -

diff --git a/Server/Services/DataService.cs b/Server/Services/DataService.cs index 37a918c5..644d99f2 100644 --- a/Server/Services/DataService.cs +++ b/Server/Services/DataService.cs @@ -772,6 +772,11 @@ namespace Remotely.Server.Services return RemotelyContext.SharedFiles.Find(fileID); } + public int GetTotalDevices() + { + return RemotelyContext.Devices.Count(); + } + public RemotelyUser GetUserByID(string userID) { if (userID == null)