redesign to material standards and clean up some sylings
This commit is contained in:
@@ -4,12 +4,20 @@ using System.Text;
|
||||
|
||||
namespace Server_Dashboard {
|
||||
class DashboardModule {
|
||||
public string Name { get; set; }
|
||||
public string ModulName { get; set; }
|
||||
public string Creator { get; set; }
|
||||
public DateTime Uptime { get; set; }
|
||||
public ModuleItem ModuleItem { get; set; }
|
||||
public ModuleItem ServerInfo { get; set; }
|
||||
public string ModuleIcon { get; set; }
|
||||
public int Width { get; set; }
|
||||
public int Height { get; set; }
|
||||
public string StatusIndicator { get; set; }
|
||||
public string StatusIndicatorBG { get; set; }
|
||||
|
||||
public DashboardModule() {
|
||||
ModuleItem = new ModuleItem();
|
||||
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");
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -1,12 +1,21 @@
|
||||
using System;
|
||||
using System.Collections.Generic;
|
||||
using System.Collections.ObjectModel;
|
||||
using System.Text;
|
||||
|
||||
namespace Server_Dashboard {
|
||||
class ModuleItem {
|
||||
public string Name { get; set; }
|
||||
public double CpuTemp { get; set; }
|
||||
public double GpuTemp { get; set; }
|
||||
public DateTime Uptime { get; set; }
|
||||
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) {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user