diff --git a/.vs/Server Dashboard/DesignTimeBuild/.dtbcache.v2 b/.vs/Server Dashboard/DesignTimeBuild/.dtbcache.v2 index 866badf..3c85eb0 100644 Binary files a/.vs/Server Dashboard/DesignTimeBuild/.dtbcache.v2 and b/.vs/Server Dashboard/DesignTimeBuild/.dtbcache.v2 differ diff --git a/.vs/Server Dashboard/v16/.suo b/.vs/Server Dashboard/v16/.suo index 1a7e59f..8487474 100644 Binary files a/.vs/Server Dashboard/v16/.suo and b/.vs/Server Dashboard/v16/.suo differ diff --git a/Server Dashboard Socket/EchoServer.cs b/Server Dashboard Socket/EchoServer.cs new file mode 100644 index 0000000..906621a --- /dev/null +++ b/Server Dashboard Socket/EchoServer.cs @@ -0,0 +1,34 @@ +using System; +using System.Net; +using System.Net.Sockets; +using System.Threading.Tasks; + +namespace Server_Dashboard_Socket { + public class EchoServer { + public void Start(int port = 9565) { + IPEndPoint endPoint = new IPEndPoint(IPAddress.Loopback, port); + Socket socket = new Socket(endPoint.AddressFamily, SocketType.Stream, ProtocolType.Tcp); + socket.Bind(endPoint); + socket.Listen(128); + _ = Task.Run(() => DoEcho(socket)); + } + + private async Task DoEcho(Socket socket) { + while (true) { + Socket clientSocket = await Task.Factory.FromAsync( + new Func(socket.BeginAccept), + new Func(socket.EndAccept), + null).ConfigureAwait(false); + using(NetworkStream stream = new NetworkStream(clientSocket, true)) { + byte[] buffer = new byte[1024]; + while (true) { + int bytesRead = await stream.ReadAsync(buffer, 0, buffer.Length).ConfigureAwait(false); + if (bytesRead == 0) + break; + await stream.WriteAsync(buffer, 0, bytesRead).ConfigureAwait(false); + } + } + } + } + } +} diff --git a/Server Dashboard Socket/Server Dashboard Socket.csproj b/Server Dashboard Socket/Server Dashboard Socket.csproj new file mode 100644 index 0000000..3f916be --- /dev/null +++ b/Server Dashboard Socket/Server Dashboard Socket.csproj @@ -0,0 +1,8 @@ + + + + netcoreapp3.1 + Server_Dashboard_Socket + + + diff --git a/Server Dashboard Socket/bin/Debug/netcoreapp3.1/Server Dashboard Socket.deps.json b/Server Dashboard Socket/bin/Debug/netcoreapp3.1/Server Dashboard Socket.deps.json new file mode 100644 index 0000000..a59945e --- /dev/null +++ b/Server Dashboard Socket/bin/Debug/netcoreapp3.1/Server Dashboard Socket.deps.json @@ -0,0 +1,23 @@ +{ + "runtimeTarget": { + "name": ".NETCoreApp,Version=v3.1", + "signature": "" + }, + "compilationOptions": {}, + "targets": { + ".NETCoreApp,Version=v3.1": { + "Server Dashboard Socket/1.0.0": { + "runtime": { + "Server Dashboard Socket.dll": {} + } + } + } + }, + "libraries": { + "Server Dashboard Socket/1.0.0": { + "type": "project", + "serviceable": false, + "sha512": "" + } + } +} \ No newline at end of file diff --git a/Server Dashboard Socket/bin/Debug/netcoreapp3.1/Server Dashboard Socket.dll b/Server Dashboard Socket/bin/Debug/netcoreapp3.1/Server Dashboard Socket.dll new file mode 100644 index 0000000..9010f3c Binary files /dev/null and b/Server Dashboard Socket/bin/Debug/netcoreapp3.1/Server Dashboard Socket.dll differ diff --git a/Server Dashboard Socket/bin/Debug/netcoreapp3.1/Server Dashboard Socket.pdb b/Server Dashboard Socket/bin/Debug/netcoreapp3.1/Server Dashboard Socket.pdb new file mode 100644 index 0000000..6117fbc Binary files /dev/null and b/Server Dashboard Socket/bin/Debug/netcoreapp3.1/Server Dashboard Socket.pdb differ diff --git a/Server Dashboard Socket/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs b/Server Dashboard Socket/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs new file mode 100644 index 0000000..ad8dfe1 --- /dev/null +++ b/Server Dashboard Socket/obj/Debug/netcoreapp3.1/.NETCoreApp,Version=v3.1.AssemblyAttributes.cs @@ -0,0 +1,4 @@ +// +using System; +using System.Reflection; +[assembly: global::System.Runtime.Versioning.TargetFrameworkAttribute(".NETCoreApp,Version=v3.1", FrameworkDisplayName = "")] diff --git a/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.AssemblyInfo.cs b/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.AssemblyInfo.cs new file mode 100644 index 0000000..066605b --- /dev/null +++ b/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.AssemblyInfo.cs @@ -0,0 +1,23 @@ +//------------------------------------------------------------------------------ +// +// Dieser Code wurde von einem Tool generiert. +// Laufzeitversion:4.0.30319.42000 +// +// Änderungen an dieser Datei können falsches Verhalten verursachen und gehen verloren, wenn +// der Code erneut generiert wird. +// +//------------------------------------------------------------------------------ + +using System; +using System.Reflection; + +[assembly: System.Reflection.AssemblyCompanyAttribute("Server Dashboard Socket")] +[assembly: System.Reflection.AssemblyConfigurationAttribute("Debug")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("1.0.0.0")] +[assembly: System.Reflection.AssemblyInformationalVersionAttribute("1.0.0")] +[assembly: System.Reflection.AssemblyProductAttribute("Server Dashboard Socket")] +[assembly: System.Reflection.AssemblyTitleAttribute("Server Dashboard Socket")] +[assembly: System.Reflection.AssemblyVersionAttribute("1.0.0.0")] + +// Von der MSBuild WriteCodeFragment-Klasse generiert. + diff --git a/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.AssemblyInfoInputs.cache b/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.AssemblyInfoInputs.cache new file mode 100644 index 0000000..f3a6b8e --- /dev/null +++ b/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.AssemblyInfoInputs.cache @@ -0,0 +1 @@ +6e726691478e3d9c2ac99cb5832bdd0702cbb2d8 diff --git a/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.assets.cache b/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.assets.cache new file mode 100644 index 0000000..499aecf Binary files /dev/null and b/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.assets.cache differ diff --git a/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.csproj.CoreCompileInputs.cache b/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.csproj.CoreCompileInputs.cache new file mode 100644 index 0000000..5c9baf3 --- /dev/null +++ b/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.csproj.CoreCompileInputs.cache @@ -0,0 +1 @@ +40cb88c995736b43b2440aaa34383fa2c95563ea diff --git a/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.csproj.FileListAbsolute.txt b/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.csproj.FileListAbsolute.txt new file mode 100644 index 0000000..29ff18e --- /dev/null +++ b/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.csproj.FileListAbsolute.txt @@ -0,0 +1,8 @@ +C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard Socket\bin\Debug\netcoreapp3.1\Server Dashboard Socket.deps.json +C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard Socket\bin\Debug\netcoreapp3.1\Server Dashboard Socket.dll +C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard Socket\bin\Debug\netcoreapp3.1\Server Dashboard Socket.pdb +C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard Socket\obj\Debug\netcoreapp3.1\Server Dashboard Socket.AssemblyInfoInputs.cache +C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard Socket\obj\Debug\netcoreapp3.1\Server Dashboard Socket.AssemblyInfo.cs +C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard Socket\obj\Debug\netcoreapp3.1\Server Dashboard Socket.csproj.CoreCompileInputs.cache +C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard Socket\obj\Debug\netcoreapp3.1\Server Dashboard Socket.dll +C:\Users\Crylia\Documents\Git\Server Dashboard\Server Dashboard Socket\obj\Debug\netcoreapp3.1\Server Dashboard Socket.pdb diff --git a/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.csprojAssemblyReference.cache b/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.csprojAssemblyReference.cache new file mode 100644 index 0000000..8a5ef04 Binary files /dev/null and b/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.csprojAssemblyReference.cache differ diff --git a/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.dll b/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.dll new file mode 100644 index 0000000..9010f3c Binary files /dev/null and b/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.dll differ diff --git a/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.pdb b/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.pdb new file mode 100644 index 0000000..6117fbc Binary files /dev/null and b/Server Dashboard Socket/obj/Debug/netcoreapp3.1/Server Dashboard Socket.pdb differ diff --git a/Server Dashboard Socket/obj/Server Dashboard Socket.csproj.nuget.dgspec.json b/Server Dashboard Socket/obj/Server Dashboard Socket.csproj.nuget.dgspec.json new file mode 100644 index 0000000..81aec51 --- /dev/null +++ b/Server Dashboard Socket/obj/Server Dashboard Socket.csproj.nuget.dgspec.json @@ -0,0 +1,66 @@ +{ + "format": 1, + "restore": { + "C:\\Users\\Crylia\\Documents\\Git\\Server Dashboard\\Server Dashboard Socket\\Server Dashboard Socket.csproj": {} + }, + "projects": { + "C:\\Users\\Crylia\\Documents\\Git\\Server Dashboard\\Server Dashboard Socket\\Server Dashboard Socket.csproj": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\Crylia\\Documents\\Git\\Server Dashboard\\Server Dashboard Socket\\Server Dashboard Socket.csproj", + "projectName": "Server Dashboard Socket", + "projectPath": "C:\\Users\\Crylia\\Documents\\Git\\Server Dashboard\\Server Dashboard Socket\\Server Dashboard Socket.csproj", + "packagesPath": "C:\\Users\\Crylia\\.nuget\\packages\\", + "outputPath": "C:\\Users\\Crylia\\Documents\\Git\\Server Dashboard\\Server Dashboard Socket\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\Crylia\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.201\\RuntimeIdentifierGraph.json" + } + } + } + } +} \ No newline at end of file diff --git a/Server Dashboard Socket/obj/Server Dashboard Socket.csproj.nuget.g.props b/Server Dashboard Socket/obj/Server Dashboard Socket.csproj.nuget.g.props new file mode 100644 index 0000000..3c4e198 --- /dev/null +++ b/Server Dashboard Socket/obj/Server Dashboard Socket.csproj.nuget.g.props @@ -0,0 +1,19 @@ + + + + True + NuGet + $(MSBuildThisFileDirectory)project.assets.json + $(UserProfile)\.nuget\packages\ + C:\Users\Crylia\.nuget\packages\;C:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages + PackageReference + 5.9.1 + + + + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + \ No newline at end of file diff --git a/Server Dashboard Socket/obj/Server Dashboard Socket.csproj.nuget.g.targets b/Server Dashboard Socket/obj/Server Dashboard Socket.csproj.nuget.g.targets new file mode 100644 index 0000000..53cfaa1 --- /dev/null +++ b/Server Dashboard Socket/obj/Server Dashboard Socket.csproj.nuget.g.targets @@ -0,0 +1,6 @@ + + + + $(MSBuildAllProjects);$(MSBuildThisFileFullPath) + + \ No newline at end of file diff --git a/Server Dashboard Socket/obj/project.assets.json b/Server Dashboard Socket/obj/project.assets.json new file mode 100644 index 0000000..21f1ad3 --- /dev/null +++ b/Server Dashboard Socket/obj/project.assets.json @@ -0,0 +1,72 @@ +{ + "version": 3, + "targets": { + ".NETCoreApp,Version=v3.1": {} + }, + "libraries": {}, + "projectFileDependencyGroups": { + ".NETCoreApp,Version=v3.1": [] + }, + "packageFolders": { + "C:\\Users\\Crylia\\.nuget\\packages\\": {}, + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages": {} + }, + "project": { + "version": "1.0.0", + "restore": { + "projectUniqueName": "C:\\Users\\Crylia\\Documents\\Git\\Server Dashboard\\Server Dashboard Socket\\Server Dashboard Socket.csproj", + "projectName": "Server Dashboard Socket", + "projectPath": "C:\\Users\\Crylia\\Documents\\Git\\Server Dashboard\\Server Dashboard Socket\\Server Dashboard Socket.csproj", + "packagesPath": "C:\\Users\\Crylia\\.nuget\\packages\\", + "outputPath": "C:\\Users\\Crylia\\Documents\\Git\\Server Dashboard\\Server Dashboard Socket\\obj\\", + "projectStyle": "PackageReference", + "fallbackFolders": [ + "C:\\Program Files (x86)\\Microsoft Visual Studio\\Shared\\NuGetPackages" + ], + "configFilePaths": [ + "C:\\Users\\Crylia\\AppData\\Roaming\\NuGet\\NuGet.Config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.FallbackLocation.config", + "C:\\Program Files (x86)\\NuGet\\Config\\Microsoft.VisualStudio.Offline.config" + ], + "originalTargetFrameworks": [ + "netcoreapp3.1" + ], + "sources": { + "C:\\Program Files (x86)\\Microsoft SDKs\\NuGetPackages\\": {}, + "https://api.nuget.org/v3/index.json": {} + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "projectReferences": {} + } + }, + "warningProperties": { + "warnAsError": [ + "NU1605" + ] + } + }, + "frameworks": { + "netcoreapp3.1": { + "targetAlias": "netcoreapp3.1", + "imports": [ + "net461", + "net462", + "net47", + "net471", + "net472", + "net48" + ], + "assetTargetFallback": true, + "warn": true, + "frameworkReferences": { + "Microsoft.NETCore.App": { + "privateAssets": "all" + } + }, + "runtimeIdentifierGraphPath": "C:\\Program Files\\dotnet\\sdk\\5.0.201\\RuntimeIdentifierGraph.json" + } + } + } +} \ No newline at end of file diff --git a/Server Dashboard Socket/obj/project.nuget.cache b/Server Dashboard Socket/obj/project.nuget.cache new file mode 100644 index 0000000..efa6611 --- /dev/null +++ b/Server Dashboard Socket/obj/project.nuget.cache @@ -0,0 +1,8 @@ +{ + "version": 2, + "dgSpecHash": "TThsag+xtSY7ctBsPwAhUX7uLjuhld1ipCW1nP987HRzxMfYvczqncYfdca/U4IfbiniWP3eJFeh7yA09+/gGA==", + "success": true, + "projectFilePath": "C:\\Users\\Crylia\\Documents\\Git\\Server Dashboard\\Server Dashboard Socket\\Server Dashboard Socket.csproj", + "expectedPackageFiles": [], + "logs": [] +} \ No newline at end of file diff --git a/Server Dashboard.sln b/Server Dashboard.sln index 85b71b8..1000164 100644 --- a/Server Dashboard.sln +++ b/Server Dashboard.sln @@ -3,7 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 16 VisualStudioVersion = 16.0.31129.286 MinimumVisualStudioVersion = 10.0.40219.1 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Server Dashboard", "Server Dashboard\Server Dashboard.csproj", "{1183B3CA-7F78-4749-B571-0BCF52EA4FCD}" +Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Server Dashboard", "Server Dashboard\Server Dashboard.csproj", "{1183B3CA-7F78-4749-B571-0BCF52EA4FCD}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Server Dashboard Socket", "Server Dashboard Socket\Server Dashboard Socket.csproj", "{426A7389-BB4B-498B-B405-3ADCB0353A80}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -15,6 +17,10 @@ Global {1183B3CA-7F78-4749-B571-0BCF52EA4FCD}.Debug|Any CPU.Build.0 = Debug|Any CPU {1183B3CA-7F78-4749-B571-0BCF52EA4FCD}.Release|Any CPU.ActiveCfg = Release|Any CPU {1183B3CA-7F78-4749-B571-0BCF52EA4FCD}.Release|Any CPU.Build.0 = Release|Any CPU + {426A7389-BB4B-498B-B405-3ADCB0353A80}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {426A7389-BB4B-498B-B405-3ADCB0353A80}.Debug|Any CPU.Build.0 = Debug|Any CPU + {426A7389-BB4B-498B-B405-3ADCB0353A80}.Release|Any CPU.ActiveCfg = Release|Any CPU + {426A7389-BB4B-498B-B405-3ADCB0353A80}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE diff --git a/Server Dashboard/App.config b/Server Dashboard/App.config index a4ef717..eefb4b4 100644 --- a/Server Dashboard/App.config +++ b/Server Dashboard/App.config @@ -1,9 +1,21 @@  - + + +
+ + + + + + + + + + \ No newline at end of file diff --git a/Server Dashboard/Controls/Dashboard/CRUD Popup/CreateModulePopup.xaml b/Server Dashboard/Controls/Dashboard/CRUD Popup/CreateModulePopup.xaml index 6fedf1b..cfb80fe 100644 --- a/Server Dashboard/Controls/Dashboard/CRUD Popup/CreateModulePopup.xaml +++ b/Server Dashboard/Controls/Dashboard/CRUD Popup/CreateModulePopup.xaml @@ -7,12 +7,14 @@ xmlns:root="clr-namespace:Server_Dashboard" xmlns:i="http://schemas.microsoft.com/xaml/behaviors" d:DataContext="{d:DesignInstance Type=root:DashboardModuleViewModel}" mc:Ignorable="d" - WindowStyle="None" ResizeMode="NoResize" Height="700" Width="500" - AllowsTransparency="True" + d:WindowStyle="None" > + + + - - - - + + + + + @@ -70,6 +74,7 @@ + @@ -119,7 +124,7 @@ @@ -129,7 +134,7 @@ @@ -137,14 +142,14 @@ @@ -167,7 +172,7 @@ @@ -187,15 +192,15 @@ @@ -231,15 +236,15 @@ @@ -268,15 +273,15 @@ +