Add blazor & MVC Support (#602)
* Add initial code for Razor pages support * Remove finalizer * Try fully loading blazor This is most likely entirely broken because of a rebase now * UseSptBlazor after app.Use * Fix up StaticWebAsset loading, add MudBlazor * Implement page * Update comment * Replaced existing status page with razor * Track background video in LFS * Update attributes * Improved status page theming * Fix up wwwroot publish folder to SPT_Data/wwwroot * Added name to page * Remove unnecessary code * Begin fixing up MVC & Blazor for modding * Update TestMod * Cleanup todo * Further work out mod support * Re-order initialization and use logger * Rename library to SPTarkov.Server.Web --------- Co-authored-by: Chomp <dev@dev.sp-tarkov.com> Co-authored-by: Chomp <27521899+chompDev@users.noreply.github.com>
This commit is contained in:
@@ -2,11 +2,12 @@
|
||||
using SPTarkov.Server.Core.DI;
|
||||
using SPTarkov.Server.Core.Models.Spt.Mod;
|
||||
using SPTarkov.Server.Core.Models.Utils;
|
||||
using SPTarkov.Server.Web;
|
||||
using Version = SemanticVersioning.Version;
|
||||
|
||||
namespace TestMod;
|
||||
|
||||
public record TestModMetadata : AbstractModMetadata
|
||||
public record TestModMetadata : AbstractModMetadata, IModWebMetadata
|
||||
{
|
||||
public override string ModGuid { get; init; } = "com.sp-tarkov.test-mod";
|
||||
public override string Name { get; init; } = "test-mod";
|
||||
@@ -26,6 +27,8 @@ public class TestMod(ISptLogger<TestMod> logger) : IOnLoad
|
||||
{
|
||||
public Task OnLoad()
|
||||
{
|
||||
logger.Info("Test mod loaded!");
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user