mirror of
https://github.com/LBPUnion/ProjectLighthouse.git
synced 2025-07-28 16:08:38 +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
|
@ -1,5 +1,7 @@
|
|||
#nullable enable
|
||||
#if DEBUG
|
||||
using LBPUnion.ProjectLighthouse.Helpers;
|
||||
#endif
|
||||
using LBPUnion.ProjectLighthouse.Servers.Website.Pages.Layouts;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
|
@ -12,13 +14,16 @@ public class FilterTestPage : BaseLayout
|
|||
|
||||
public string? FilteredText;
|
||||
public string? Text;
|
||||
#if DEBUG
|
||||
|
||||
public IActionResult OnGet(string? text = null)
|
||||
{
|
||||
#if DEBUG
|
||||
if (text != null) this.FilteredText = CensorHelper.FilterMessage(text);
|
||||
this.Text = text;
|
||||
|
||||
return this.Page();
|
||||
#else
|
||||
return this.NotFound();
|
||||
#endif
|
||||
}
|
||||
#endif
|
||||
}
|
|
@ -1,10 +1,9 @@
|
|||
@page "/debug/roomVisualizer"
|
||||
@using LBPUnion.ProjectLighthouse.Extensions
|
||||
@using LBPUnion.ProjectLighthouse.Helpers
|
||||
@using LBPUnion.ProjectLighthouse.Match.Rooms
|
||||
@using LBPUnion.ProjectLighthouse.PlayerData
|
||||
@using LBPUnion.ProjectLighthouse.PlayerData.Profiles
|
||||
@using LBPUnion.ProjectLighthouse.Types
|
||||
@using LBPUnion.ProjectLighthouse.Types.Entities.Profile
|
||||
@using LBPUnion.ProjectLighthouse.Types.Matchmaking.Rooms
|
||||
@using LBPUnion.ProjectLighthouse.Types.Users
|
||||
@model LBPUnion.ProjectLighthouse.Servers.Website.Pages.Debug.RoomVisualizerPage
|
||||
|
||||
@{
|
||||
|
|
|
@ -3,8 +3,7 @@
|
|||
using LBPUnion.ProjectLighthouse.Servers.Website.Pages.Layouts;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
#if !DEBUG
|
||||
using LBPUnion.ProjectLighthouse.PlayerData.Profiles;
|
||||
using LBPUnion.ProjectLighthouse.Types;
|
||||
using LBPUnion.ProjectLighthouse.Types.Entities.Profile;
|
||||
#endif
|
||||
|
||||
namespace LBPUnion.ProjectLighthouse.Servers.Website.Pages.Debug;
|
||||
|
|
|
@ -1,4 +1,3 @@
|
|||
using JetBrains.Annotations;
|
||||
using LBPUnion.ProjectLighthouse.Servers.Website.Pages.Layouts;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
|
@ -6,7 +5,7 @@ namespace LBPUnion.ProjectLighthouse.Servers.Website.Pages.Debug;
|
|||
|
||||
public class VersionInfoPage : BaseLayout
|
||||
{
|
||||
public VersionInfoPage([NotNull] Database database) : base(database)
|
||||
public VersionInfoPage(Database database) : base(database)
|
||||
{}
|
||||
public IActionResult OnGet() => this.Page();
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue