mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-29 00:18:39 +00:00
Major refactor and reorganization of types (#652)
* Start of reorganization and cleanup * Remove duplicate title id * Refactor types * Fix Release building * Move classes in /Types to a Types namespace * Fix compilation error (RoomVisualizerPage strikes again) * Fix bugs created from auto merge * Fix auto-merge compilation error * Changes from review/fix failed merge
This commit is contained in:
parent
c8120b3388
commit
f1c5ad4002
316 changed files with 1623 additions and 1518 deletions
|
@ -0,0 +1,20 @@
|
|||
#nullable enable
|
||||
|
||||
namespace LBPUnion.ProjectLighthouse.Servers.Website.Types;
|
||||
|
||||
public struct AdminPanelStatistic
|
||||
{
|
||||
public AdminPanelStatistic(string statisticNamePlural, int count, string? viewAllEndpoint = null, int? secondStatistic = null)
|
||||
{
|
||||
this.StatisticNamePlural = statisticNamePlural;
|
||||
this.Count = count;
|
||||
this.SecondStatistic = secondStatistic;
|
||||
this.ViewAllEndpoint = viewAllEndpoint;
|
||||
}
|
||||
|
||||
public readonly string StatisticNamePlural;
|
||||
public readonly int Count;
|
||||
public readonly int? SecondStatistic;
|
||||
|
||||
public readonly string? ViewAllEndpoint;
|
||||
}
|
|
@ -0,0 +1,21 @@
|
|||
#nullable enable
|
||||
|
||||
using LBPUnion.ProjectLighthouse.Localization;
|
||||
|
||||
namespace LBPUnion.ProjectLighthouse.Servers.Website.Types;
|
||||
|
||||
public class PageNavigationItem
|
||||
{
|
||||
public PageNavigationItem(TranslatableString name, string url, string? icon = null, string? customColor = null)
|
||||
{
|
||||
this.Name = name;
|
||||
this.Url = url;
|
||||
this.Icon = icon;
|
||||
this.CustomColor = customColor;
|
||||
}
|
||||
|
||||
public TranslatableString Name { get; set; }
|
||||
public string Url { get; set; }
|
||||
public string? Icon { get; set; }
|
||||
public string? CustomColor { get; set; }
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue