Updated web ui to razor
This commit is contained in:
@@ -1,8 +0,0 @@
|
||||
namespace WebUI.Models;
|
||||
|
||||
public class ErrorViewModel
|
||||
{
|
||||
public string? RequestId { get; set; }
|
||||
|
||||
public bool ShowRequestId => !string.IsNullOrEmpty(RequestId);
|
||||
}
|
||||
@@ -1,8 +0,0 @@
|
||||
namespace WebUI.Models;
|
||||
|
||||
public class InstalledPluginViewModel
|
||||
{
|
||||
public string Name { get; set; }
|
||||
public string Version { get; set; }
|
||||
public bool IsOfflineAdded { get; set; }
|
||||
}
|
||||
@@ -1,11 +0,0 @@
|
||||
namespace WebUI.Models;
|
||||
|
||||
public class OnlinePluginViewModel
|
||||
{
|
||||
public int Id { get; set; }
|
||||
public string Name { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Author { get; set; }
|
||||
public string Version { get; set; }
|
||||
public string DownloadUrl { get; set; }
|
||||
}
|
||||
@@ -1,9 +0,0 @@
|
||||
namespace WebUI.Models;
|
||||
|
||||
public class PluginDetailsViewModel
|
||||
{
|
||||
public string PluginName { get; set; }
|
||||
public string Version { get; set; }
|
||||
public string Description { get; set; }
|
||||
public string Author { get; set; }
|
||||
}
|
||||
@@ -1,15 +0,0 @@
|
||||
using System.ComponentModel.DataAnnotations;
|
||||
|
||||
namespace WebUI.Models;
|
||||
|
||||
public class SettingsViewModel
|
||||
{
|
||||
[Required(ErrorMessage = "Token is required.")]
|
||||
public string Token { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Prefix is required.")]
|
||||
public string Prefix { get; set; }
|
||||
|
||||
[Required(ErrorMessage = "Server IDs are required.")]
|
||||
public List<ulong> ServerIds { get; set; } = new List<ulong>();
|
||||
}
|
||||
Reference in New Issue
Block a user