diff --git a/.gitattributes b/.gitattributes index c05dc58d..bc0bf399 100644 --- a/.gitattributes +++ b/.gitattributes @@ -3,3 +3,4 @@ # LFS tracking for large JSON files and all images Libraries/SPTarkov.Server.Assets/SPT_Data/database/locations/**/looseLoot.json filter=lfs diff=lfs merge=lfs -text Libraries/SPTarkov.Server.Assets/SPT_Data/database/templates/items.json filter=lfs diff=lfs merge=lfs -text +Libraries/SPTarkov.Server.Web/wwwroot/thank-you/background.mp4 filter=lfs diff=lfs merge=lfs -text diff --git a/Libraries/SPTarkov.Server.Core/Status/StatusPage.cs b/Libraries/SPTarkov.Server.Core/Status/StatusPage.cs deleted file mode 100644 index 626f802e..00000000 --- a/Libraries/SPTarkov.Server.Core/Status/StatusPage.cs +++ /dev/null @@ -1,55 +0,0 @@ -using System.Text; -using Microsoft.AspNetCore.Http; -using SPTarkov.DI.Annotations; -using SPTarkov.Server.Core.Models.Common; -using SPTarkov.Server.Core.Models.Spt.Config; -using SPTarkov.Server.Core.Servers; -using SPTarkov.Server.Core.Servers.Http; -using SPTarkov.Server.Core.Services; -using SPTarkov.Server.Core.Utils; - -namespace SPTarkov.Server.Core.Status; - -[Injectable(TypePriority = 0)] -public class StatusPage(TimeUtil timeUtil, ProfileActivityService profileActivityService, ConfigServer configServer) : IHttpListener -{ - protected readonly CoreConfig CoreConfig = configServer.GetConfig(); - - public bool CanHandle(MongoId sessionId, HttpContext context) - { - return context.Request.Method == "GET" && context.Request.Path.Value.Contains("/status"); - } - - public async Task Handle(MongoId sessionId, HttpContext context) - { - var resp = context.Response; - - var sptVersion = $"SPT version: {ProgramStatics.SPT_VERSION()}"; - var debugEnabled = $"Debug enabled: {ProgramStatics.DEBUG()}"; - var modsEnabled = $"Mods enabled: {ProgramStatics.MODS()}"; - var timeStarted = $"Started : {timeUtil.GetDateTimeFromTimeStamp(CoreConfig.ServerStartTime.Value)}"; - var uptime = $"Uptime: {DateTimeOffset.UtcNow.ToUnixTimeSeconds() - CoreConfig.ServerStartTime} seconds".ToArray(); - var activeProfiles = profileActivityService.GetActiveProfileIdsWithinMinutes(30); - var activePlayerCount = $"Profiles active in last 30 minutes: {activeProfiles.Count}. {string.Join(",", activeProfiles)}"; - - resp.StatusCode = 200; - resp.ContentType = "text/html"; - - await resp.Body.WriteAsync(Encoding.ASCII.GetBytes(sptVersion)); - await resp.Body.WriteAsync(Encoding.ASCII.GetBytes("
")); - await resp.Body.WriteAsync(Encoding.ASCII.GetBytes(debugEnabled)); - await resp.Body.WriteAsync(Encoding.ASCII.GetBytes("
")); - await resp.Body.WriteAsync(Encoding.ASCII.GetBytes(modsEnabled)); - await resp.Body.WriteAsync(Encoding.ASCII.GetBytes("
")); - - await resp.Body.WriteAsync(Encoding.ASCII.GetBytes(timeStarted)); - await resp.Body.WriteAsync(Encoding.ASCII.GetBytes("
")); - await resp.Body.WriteAsync(Encoding.ASCII.GetBytes(uptime)); - await resp.Body.WriteAsync(Encoding.ASCII.GetBytes("
")); - await resp.Body.WriteAsync(Encoding.ASCII.GetBytes(activePlayerCount)); - await resp.Body.WriteAsync(Encoding.ASCII.GetBytes("
")); - - await resp.StartAsync(); - await resp.CompleteAsync(); - } -} diff --git a/Libraries/SPTarkov.Server.Core/Utils/Logger/SptLogger.cs b/Libraries/SPTarkov.Server.Core/Utils/Logger/SptLogger.cs index fa9be5ed..ef16e795 100644 --- a/Libraries/SPTarkov.Server.Core/Utils/Logger/SptLogger.cs +++ b/Libraries/SPTarkov.Server.Core/Utils/Logger/SptLogger.cs @@ -15,11 +15,6 @@ public class SptLogger : ISptLogger, IDisposable private const string ConfigurationPathDev = "./sptLogger.Development.json"; private SptLoggerConfiguration _config; - ~SptLogger() - { - _loggerQueueManager.DumpAndStop(); - } - public SptLogger(FileUtil fileUtil, JsonUtil jsonUtil, SptLoggerQueueManager loggerQueueManager) { _category = typeof(T).FullName; diff --git a/Libraries/SPTarkov.Server.Web/Components/App.razor b/Libraries/SPTarkov.Server.Web/Components/App.razor new file mode 100644 index 00000000..35e0c7a9 --- /dev/null +++ b/Libraries/SPTarkov.Server.Web/Components/App.razor @@ -0,0 +1,19 @@ + + + + + + + + + + + + + + + + + +@code { +} diff --git a/Libraries/SPTarkov.Server.Web/Components/Layout/BaseMainLayout.razor b/Libraries/SPTarkov.Server.Web/Components/Layout/BaseMainLayout.razor new file mode 100644 index 00000000..af237b4e --- /dev/null +++ b/Libraries/SPTarkov.Server.Web/Components/Layout/BaseMainLayout.razor @@ -0,0 +1,11 @@ +@inherits LayoutComponentBase + +
+
+ @Body +
+
+ +@code { + +} diff --git a/Libraries/SPTarkov.Server.Web/Components/Layout/BaseMudBlazorLayout.razor b/Libraries/SPTarkov.Server.Web/Components/Layout/BaseMudBlazorLayout.razor new file mode 100644 index 00000000..33f8eb3a --- /dev/null +++ b/Libraries/SPTarkov.Server.Web/Components/Layout/BaseMudBlazorLayout.razor @@ -0,0 +1,20 @@ +@inherits LayoutComponentBase + + + + + + + + + + + +
+@Body + +
+ +@code { + +} diff --git a/Libraries/SPTarkov.Server.Web/Components/Pages/ExamplePage.razor b/Libraries/SPTarkov.Server.Web/Components/Pages/ExamplePage.razor new file mode 100644 index 00000000..58b71289 --- /dev/null +++ b/Libraries/SPTarkov.Server.Web/Components/Pages/ExamplePage.razor @@ -0,0 +1,27 @@ +@page "/example-page" +@using SPTarkov.Server.Web.Components.Layout +@layout BaseMudBlazorLayout + + + + + + + + SPT 4.0 + + + +
+ Is pretty awesome +
+ + Feature 1 + Feature 2 + Feature 3 + +
+
+
+
+
diff --git a/Libraries/SPTarkov.Server.Web/Components/Pages/Status.razor b/Libraries/SPTarkov.Server.Web/Components/Pages/Status.razor new file mode 100644 index 00000000..211f9ed8 --- /dev/null +++ b/Libraries/SPTarkov.Server.Web/Components/Pages/Status.razor @@ -0,0 +1,110 @@ +@page "/status" +@using SPTarkov.Server.Core.Helpers +@using SPTarkov.Server.Core.Models.Spt.Config +@using SPTarkov.Server.Core.Servers +@using SPTarkov.Server.Core.Services +@using SPTarkov.Server.Core.Utils +@using SPTarkov.Server.Web.Components.Layout + +@inject ConfigServer ConfigServer +@inject TimeUtil TimeUtil +@inject ProfileActivityService ProfileActivityService +@inject ProfileHelper ProfileHelper + +@layout BaseMudBlazorLayout + + + + + + + + + + + + + + + Server health + + + + + SPT Version: @_sptVersion + Mods @(_modsEnabled ? "ENABLED" : "DISABLED") + Debug @(_debugEnabled ? "ENABLED" : "DISABLED") + Time started: @_startTime + Uptime: @_uptimeSeconds seconds + Total profile count: @_totalProfileCount + + + @foreach (var profile in _activeProfiles) + { + + @profile + + } + + + + + + + + + +@code +{ + private string _sptVersion = string.Empty; + private bool _debugEnabled = false; + private bool _modsEnabled = false; + private DateTime _startTime = DateTime.Now; + private long _uptimeSeconds = 0; + private readonly List _activeProfiles = []; + private int _totalProfileCount = 0; + + protected override void OnInitialized() + { + base.OnInitialized(); + + var coreConfig = ConfigServer.GetConfig(); + + _sptVersion = ProgramStatics.SPT_VERSION().ToString(); + _debugEnabled = ProgramStatics.DEBUG(); + _modsEnabled = ProgramStatics.MODS(); + _startTime = TimeUtil.GetDateTimeFromTimeStamp(coreConfig.ServerStartTime.Value); + _uptimeSeconds = DateTimeOffset.UtcNow.ToUnixTimeSeconds() - coreConfig.ServerStartTime.Value; + + var activeProfileIds = ProfileActivityService.GetActiveProfileIdsWithinMinutes(30); + if (activeProfileIds.Count == 0) + { + _activeProfiles.Add("None"); + } + else + { + foreach (var activeProfileId in activeProfileIds) + { + _activeProfiles.Add($"{activeProfileId} ({ProfileHelper.GetPmcProfile(activeProfileId).Info.Nickname})"); + } + } + + _totalProfileCount = ProfileHelper.GetProfiles().Count; + } + + private readonly MudTheme _theme = new() + { + PaletteDark = new PaletteDark + { + Primary = Colors.Blue.Default, + Secondary = Colors.Orange.Default, + Warning = Colors.Amber.Default, + Info = Colors.Blue.Lighten1, + Success = Colors.Green.Default, + Background = "rgba(0,0,0,0.9)", + Surface = "rgba(255,255,255,0.05)", + AppbarBackground = "rgba(0,0,0,0.8)", + TextPrimary = "#FFFFFF" + } + }; +} diff --git a/Libraries/SPTarkov.Server.Web/Components/Pages/ThankYou.razor b/Libraries/SPTarkov.Server.Web/Components/Pages/ThankYou.razor new file mode 100644 index 00000000..e82c36b2 --- /dev/null +++ b/Libraries/SPTarkov.Server.Web/Components/Pages/ThankYou.razor @@ -0,0 +1,418 @@ +@page "/" +@using Microsoft.JSInterop +@using MudBlazor +@using SPTarkov.Server.Web.Components.Layout +@inject IJSRuntime JSRuntime +Thank You - Single Player Tarkov - Version 4 Contributors + + + + + + + + +
+ +
+
+ + + + + + + + Thank You + + + Version 4 Contributors + + + + + + The release of Single Player Tarkov Version 4 would not have been possible without the incredible dedication, talent, and passion of our amazing community. From core developers to modders, testers to documentation writers, each person listed here has contributed to making SPT what it is today. + + + + To everyone who spent countless hours debugging, coding, testing, and supporting the project, this is for you. Your work has transformed the way thousands experience Tarkov, and we are forever grateful. + + + + + + @foreach (var contributor in ShuffledContributors) + { + + + + + @contributor + + + + + } + + + + + Every commit, every bug report, every line of code, and every moment of support has shaped this project. You are the heart of Single Player Tarkov. + + + + Patreon Supporters + + + + + A special thank you to our generous Patreon supporters whose financial contributions have helped sustain and grow the SPT project. Your support enables us to maintain infrastructure, develop new features, and keep this project alive for everyone to enjoy. + + + + The following list includes supporters who opted to be publicly recognized. To all our supporters not listed here, whether by choice or oversight, please know that your contributions are equally valued and deeply appreciated. Every single patron, visible or not, makes this project possible. ♥️ + + + + + + @foreach (var supporter in ShuffledPatreonSupporters) + { + + + + + + + @supporter + + + + + + } + + + + + + With deepest gratitude,
+ The SPT Team +
+
+
+
+
+
+ + + + The SPT project is not affiliated with Battlestate Games Ltd. in any way. All trademarks are property of their respective owners. + + + + + + +@code { + private readonly List Contributors = new() + { + "5o2", "AdmiralAwsum", "Angel-git", "ArchangelWTF", "BrotherVeren", + "CameronW1", "CJ", "Clodan", "CP89", "CWX", "DanW", "devmaximum", + "Doup22", "DrakiaXYZ", "fearthedje", "GentlemenSausage", "Guidot42", + "HB53", "Hulkhan22", "January", "Kaeno", "Lacyway", "Muramas", + "nailz420", "Parataku", "ParanoiaBruce", "PhantomInTime", "qe201020335", + "R3ality", "Razzmatazz", "Redbeard", "Refringe", "ShadowXtrex", + "Shibdib", "Stealthsuit", "studentchy", "Tetris", "Th3NightHawk", + "TheHeadPhonesGuy", "ThyMuffinMan", "ultragastro", "Valens", + "XeonDead", "yurikus", "Chilly" + }; + + private readonly List PatreonSupporters = new() + { + "Refringe", "DrakiaXYZ", "Tron", "Bepis", "John Thicc", + "Cardsmen", "Nexstat", "NumberedJester", "Irabeth Tyrabade", "DanW" + }; + + private List ShuffledContributors = new(); + private List ShuffledPatreonSupporters = new(); + + private readonly MudTheme _theme = new() + { + PaletteDark = new PaletteDark() + { + Primary = Colors.Blue.Default, + Secondary = Colors.Orange.Default, + Warning = Colors.Amber.Default, + Info = Colors.Blue.Lighten1, + Success = Colors.Green.Default, + Background = "rgba(0,0,0,0.9)", + Surface = "rgba(255,255,255,0.05)", + AppbarBackground = "rgba(0,0,0,0.8)", + TextPrimary = "#FFFFFF" + } + }; + + protected override void OnInitialized() + { + ShuffledContributors = ShuffleList(Contributors); + ShuffledPatreonSupporters = ShuffleList(PatreonSupporters); + } + + private async Task TriggerConfetti(bool isPatreon, string name) + { + //Todo: Needs implemnetation + + if (isPatreon) + { + } + else + { + } + } + + private static List ShuffleList(List list) + { + var shuffled = new List(list); + + for (int i = shuffled.Count - 1; i > 0; i--) + { + int j = Random.Shared.Next(i + 1); + (shuffled[i], shuffled[j]) = (shuffled[j], shuffled[i]); + } + + return shuffled; + } +} diff --git a/Libraries/SPTarkov.Server.Web/Components/Routes.razor b/Libraries/SPTarkov.Server.Web/Components/Routes.razor new file mode 100644 index 00000000..de83bf4c --- /dev/null +++ b/Libraries/SPTarkov.Server.Web/Components/Routes.razor @@ -0,0 +1,12 @@ +@using System.Reflection +@using SPTarkov.Server.Web.Components.Layout + + + + + + + + +@code { +} diff --git a/Libraries/SPTarkov.Server.Web/Components/_Imports.razor b/Libraries/SPTarkov.Server.Web/Components/_Imports.razor new file mode 100644 index 00000000..75f99676 --- /dev/null +++ b/Libraries/SPTarkov.Server.Web/Components/_Imports.razor @@ -0,0 +1,8 @@ +@using Microsoft.AspNetCore.Authorization +@using Microsoft.AspNetCore.Components.Authorization +@using Microsoft.AspNetCore.Components.Forms +@using Microsoft.AspNetCore.Components.Routing +@using Microsoft.AspNetCore.Components.Web +@using static Microsoft.AspNetCore.Components.Web.RenderMode +@using Microsoft.AspNetCore.Components.Web.Virtualization +@using MudBlazor; diff --git a/Libraries/SPTarkov.Server.Web/IModBlazorMetadata.cs b/Libraries/SPTarkov.Server.Web/IModBlazorMetadata.cs new file mode 100644 index 00000000..eff53623 --- /dev/null +++ b/Libraries/SPTarkov.Server.Web/IModBlazorMetadata.cs @@ -0,0 +1,22 @@ +namespace SPTarkov.Server.Web; + +/// +/// This empty interface is used as a metadata marker to identify mod assemblies that integrate with Blazor or MVC. +/// +/// +/// Implementing this interface signals to the host application to: +/// +/// +/// Link the mod's wwwroot directory, enabling serving of static web assets (CSS, JS, etc.). +/// +/// +/// Register the mod's Blazor components and pages for routing within the application. +/// +/// +/// Register the mod's MVC controllers for use as APIs where necessary. +/// +/// +/// +/// This interface is intentionally empty but may be extended in the future to include additional metadata. +/// +public interface IModWebMetadata { } diff --git a/Libraries/SPTarkov.Server.Web/SPTWeb.cs b/Libraries/SPTarkov.Server.Web/SPTWeb.cs new file mode 100644 index 00000000..afc034c6 --- /dev/null +++ b/Libraries/SPTarkov.Server.Web/SPTWeb.cs @@ -0,0 +1,76 @@ +using Microsoft.Extensions.FileProviders; +using MudBlazor.Services; +using SPTarkov.Server.Core.Models.Spt.Mod; +using SPTarkov.Server.Web.Components; + +namespace SPTarkov.Server.Web; + +public static class SPTWeb +{ + internal static IEnumerable SptWebMods = []; + + public static void InitializeSptBlazor(this WebApplicationBuilder builder, IReadOnlyList sptMods) + { + SptWebMods = sptMods.Where(mod => mod.ModMetadata is IModWebMetadata).ToList(); + + builder.WebHost.UseStaticWebAssets(); + builder.Services.AddMudServices(); + builder.Services.AddRazorComponents().AddInteractiveServerComponents(); + + var mvcBuilder = builder.Services.AddControllers(); + + foreach (var assembly in SptWebMods.SelectMany(mod => mod.Assemblies)) + { + mvcBuilder.AddApplicationPart(assembly); + } + } + + public static void UseSptBlazor(this WebApplication app) + { + var logger = app.Services.GetRequiredService>(); + + app.UseAntiforgery(); + +#if DEBUG + //MS currently has a bug where streaming video doesn't work properly in debug, unless you use this + //Issue: https://github.com/dotnet/aspnetcore/issues/63320 + app.UseStaticFiles(); +#else + app.MapStaticAssets(); +#endif + var razorBuilder = app.MapRazorComponents().AddInteractiveServerRenderMode(); + + foreach (var mod in SptWebMods) + { + foreach (var assembly in mod.Assemblies) + { + razorBuilder.AddAdditionalAssemblies(assembly); + } + + var modAssembly = mod.ModMetadata.GetType().Assembly; + + var location = Path.GetDirectoryName(modAssembly.Location); + + if (!string.IsNullOrEmpty(location) && Directory.Exists(Path.Combine(location, "wwwroot"))) + { + var modAssemblyName = modAssembly.GetName().Name; + + logger.LogDebug( + "Mod {modName} has a wwwroot, mapping to /{modAssemblyName}/", + mod.ModMetadata.Name, + modAssembly.GetName().Name + ); + + app.UseStaticFiles( + new StaticFileOptions + { + FileProvider = new PhysicalFileProvider(Path.Combine(location, "wwwroot")), + RequestPath = $"/{modAssembly.GetName().Name}", + } + ); + } + } + + app.MapControllers(); + } +} diff --git a/Libraries/SPTarkov.Server.Web/SPTarkov.Server.Web.csproj b/Libraries/SPTarkov.Server.Web/SPTarkov.Server.Web.csproj new file mode 100644 index 00000000..e9fbf1cb --- /dev/null +++ b/Libraries/SPTarkov.Server.Web/SPTarkov.Server.Web.csproj @@ -0,0 +1,29 @@ + + + + SPTarkov.Server.Web + Single Player Tarkov + Common shared library for the Single Player Tarkov projects. + Copyright (c) Single Player Tarkov 2025 + LICENSE + https://sp-tarkov.com + https://github.com/sp-tarkov/server-csharp + enable + Library + true + true + true + + true + SPTarkov.Server.Web + + + + + + + + + + + diff --git a/Libraries/SPTarkov.Server.Web/wwwroot/thank-you/background.mp4 b/Libraries/SPTarkov.Server.Web/wwwroot/thank-you/background.mp4 new file mode 100644 index 00000000..8315c16b --- /dev/null +++ b/Libraries/SPTarkov.Server.Web/wwwroot/thank-you/background.mp4 @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:7532edb85d6c446c38d9e7e7a7e2f31544ba62ab502381396c86bf9934cd4db8 +size 61186672 diff --git a/SPTarkov.Server/Program.cs b/SPTarkov.Server/Program.cs index a118cdc6..34bb9893 100644 --- a/SPTarkov.Server/Program.cs +++ b/SPTarkov.Server/Program.cs @@ -1,5 +1,6 @@ using System.Net; using System.Net.Sockets; +using System.Reflection; using System.Runtime.InteropServices; using System.Security.Authentication; using System.Text; @@ -20,6 +21,7 @@ using SPTarkov.Server.Core.Utils.Logger; using SPTarkov.Server.Logger; using SPTarkov.Server.Modding; using SPTarkov.Server.Services; +using SPTarkov.Server.Web; namespace SPTarkov.Server; @@ -41,7 +43,7 @@ public static class Program ProgramStatics.Initialize(); // Create web builder and logger - var builder = CreateNewHostBuilder(args); + var builder = CreateNewHostBuilder(); var diHandler = new DependencyInjectionHandler(builder.Services); // register SPT components @@ -64,6 +66,8 @@ public static class Program } diHandler.InjectAll(); + builder.InitializeSptBlazor(loadedMods); + builder.Services.AddSingleton(builder); builder.Services.AddSingleton>(loadedMods); // Configure Kestrel options @@ -125,6 +129,8 @@ public static class Program await context.RequestServices.GetRequiredService().HandleRequest(context, next); } ); + + app.UseSptBlazor(); } private static void ConfigureKestrel(WebApplicationBuilder builder) @@ -167,9 +173,9 @@ public static class Program ); } - private static WebApplicationBuilder CreateNewHostBuilder(string[]? args = null) + private static WebApplicationBuilder CreateNewHostBuilder() { - var builder = WebApplication.CreateBuilder(args); + var builder = WebApplication.CreateBuilder(new WebApplicationOptions { WebRootPath = "./SPT_Data/wwwroot" }); builder.Logging.ClearProviders(); builder.Configuration.SetBasePath(Directory.GetCurrentDirectory()); builder.Host.UseSptLogger(); diff --git a/SPTarkov.Server/SPTarkov.Server.csproj b/SPTarkov.Server/SPTarkov.Server.csproj index 8255f5e5..1fc74be7 100644 --- a/SPTarkov.Server/SPTarkov.Server.csproj +++ b/SPTarkov.Server/SPTarkov.Server.csproj @@ -14,8 +14,10 @@ Exe true SPT.Server - false true + + true + ../SPT_Data/wwwroot/ ..\Libraries\SPTarkov.Server.Assets\SPT_Data\images\icon.ico @@ -27,6 +29,7 @@ + diff --git a/Testing/TestMod/Components/Pages/TestModPage.razor b/Testing/TestMod/Components/Pages/TestModPage.razor new file mode 100644 index 00000000..16584ae3 --- /dev/null +++ b/Testing/TestMod/Components/Pages/TestModPage.razor @@ -0,0 +1,9 @@ +@page "/test/page" + +

TestModPage

+ +Chomp! + +@code { + +} diff --git a/Testing/TestMod/Controllers/TestController.cs b/Testing/TestMod/Controllers/TestController.cs new file mode 100644 index 00000000..6f3b974e --- /dev/null +++ b/Testing/TestMod/Controllers/TestController.cs @@ -0,0 +1,12 @@ +using Microsoft.AspNetCore.Mvc; + +namespace TestMod.Controllers; + +public class TestController : Controller +{ + [HttpGet("/test/ping")] + public IActionResult Ping() + { + return Content("Pong from MVC!"); + } +} diff --git a/Testing/TestMod/TestMod.cs b/Testing/TestMod/TestMod.cs index ef600a54..46e7044c 100644 --- a/Testing/TestMod/TestMod.cs +++ b/Testing/TestMod/TestMod.cs @@ -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 logger) : IOnLoad { public Task OnLoad() { + logger.Info("Test mod loaded!"); + return Task.CompletedTask; } } diff --git a/Testing/TestMod/TestMod.csproj b/Testing/TestMod/TestMod.csproj index 459a5d64..8f3807e9 100644 --- a/Testing/TestMod/TestMod.csproj +++ b/Testing/TestMod/TestMod.csproj @@ -1,8 +1,9 @@ - + enable - TestMod2 + TestMod + Library @@ -10,20 +11,27 @@ + + + + + - + + + diff --git a/Testing/TestMod/wwwroot/chomp.jpg b/Testing/TestMod/wwwroot/chomp.jpg new file mode 100644 index 00000000..e3cf4fa5 Binary files /dev/null and b/Testing/TestMod/wwwroot/chomp.jpg differ diff --git a/server-csharp.sln b/server-csharp.sln index 52d9958b..5905d812 100644 --- a/server-csharp.sln +++ b/server-csharp.sln @@ -1,7 +1,7 @@  Microsoft Visual Studio Solution File, Format Version 12.00 # Visual Studio Version 17 -VisualStudioVersion = 17.12.35527.113 d17.12 +VisualStudioVersion = 17.12.35527.113 MinimumVisualStudioVersion = 10.0.40219.1 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SPTarkov.Server", "SPTarkov.Server\SPTarkov.Server.csproj", "{1F5ED9C6-8B1F-4776-85AB-B387CBBC5557}" EndProject @@ -43,6 +43,8 @@ Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "TestMod", "Testing\TestMod\ EndProject Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Ceciler.JsonExtensionData", "Patches\Ceciler.JsonExtensionData\Ceciler.JsonExtensionData.csproj", "{5D09182A-B0B3-406C-AE88-EE0929F9260C}" EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SPTarkov.Server.Web", "Libraries\SPTarkov.Server.Web\SPTarkov.Server.Web.csproj", "{BB1EB56E-9D40-8497-5A6D-B2E35E83FA89}" +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -105,6 +107,10 @@ Global {5D09182A-B0B3-406C-AE88-EE0929F9260C}.Debug|Any CPU.Build.0 = Debug|Any CPU {5D09182A-B0B3-406C-AE88-EE0929F9260C}.Release|Any CPU.ActiveCfg = Release|Any CPU {5D09182A-B0B3-406C-AE88-EE0929F9260C}.Release|Any CPU.Build.0 = Release|Any CPU + {BB1EB56E-9D40-8497-5A6D-B2E35E83FA89}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {BB1EB56E-9D40-8497-5A6D-B2E35E83FA89}.Debug|Any CPU.Build.0 = Debug|Any CPU + {BB1EB56E-9D40-8497-5A6D-B2E35E83FA89}.Release|Any CPU.ActiveCfg = Release|Any CPU + {BB1EB56E-9D40-8497-5A6D-B2E35E83FA89}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE @@ -123,5 +129,9 @@ Global {28B90486-1436-4CD7-88D0-122B6963AB58} = {07B50C44-6D38-474E-87AF-68672D241EEB} {755E473C-14F2-40BC-9377-2FAB11CA91DC} = {07B50C44-6D38-474E-87AF-68672D241EEB} {5D09182A-B0B3-406C-AE88-EE0929F9260C} = {9E41CD5A-271C-4294-AAF9-8EB379311416} + {BB1EB56E-9D40-8497-5A6D-B2E35E83FA89} = {F084DDFD-89F3-44F9-89C3-5CA11F4CDEEF} + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {6F730FC0-94A8-40B8-8E0E-5D6558E8422A} EndGlobalSection EndGlobal