radial progressbar

This commit is contained in:
Rene Schwarz
2021-04-14 00:53:57 +02:00
parent cf7b9abcf0
commit e220c09ec3
61 changed files with 2449 additions and 262 deletions

View File

@@ -6,14 +6,16 @@ namespace Server_Dashboard {
class DashboardModule {
public string ModulName { get; set; }
public string Creator { get; set; }
public ModuleItem ServerInfo { get; set; }
public ServerInformation ServerInfo { get; set; }
public string StatusIndicator { get; set; }
public string StatusIndicatorBG { get; set; }
public bool ActiveConnection { get; set; }
public string ModuleIcon { get; set; }
public DashboardModule() {
StatusIndicator = true ? "#20c657" : "#e53935";
StatusIndicatorBG = true ? "#94eeb0" : "#ef9a9a";
ServerInfo = new ModuleItem(true, 88.88, 69.69, DateTime.Now, "sudo", "Archlinux", "192.168.1.100", "84.102.25.96");
public DashboardModule(bool activeConnection) {
ActiveConnection = activeConnection;
StatusIndicator = ActiveConnection ? "#20c657" : "#e53935";
StatusIndicatorBG = ActiveConnection ? "#94eeb0" : "#ef9a9a";
}
}
}

View File

@@ -1,21 +0,0 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
namespace Server_Dashboard {
class ModuleItem {
public string[] HostName { get; set; } = new string[2];
public string[] CpuTemp { get; set; } = new string[2];
public string[] GpuTemp { get; set; } = new string[2];
public string[] Uptime { get; set; } = new string[2];
public string[] DeployDate { get; set; } = new string[2];
public string[] PublicIpAdress { get; set; } = new string[2];
public string[] PrivateIpAdress { get; set; } = new string[2];
public string[] OSHostName { get; set; } = new string[2];
public ModuleItem(bool isServerUp, double gpu, double cpu, DateTime uptime, string hostname, string osname, string privateip, string publicip) {
}
}
}

View File

@@ -0,0 +1,18 @@
using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.Text;
namespace Server_Dashboard {
class ServerInformation {
public string ServerName { get; set; }
public string HostName { get; set; }
public string CpuTemp { get; set; }
public string GpuTemp { get; set; }
public string Uptime { get; set; }
public string DeployDate { get; set; }
public string PublicIpAdress { get; set; }
public string PrivateIpAdress { get; set; }
public string OSHostName { get; set; }
}
}