mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-02 14:01:11 +00:00
Fixes file system domain unit tests failing on UNIX systems
This commit is contained in:
1 parent
45e9911363
commit
90e3237ec4
5 files changed
+484
-325
No files matched your search
@@ -3,6 +3,8 @@ using Lumina.Presentation.Web.Common.Enums.FileSystem;
|
||||
using Lumina.Presentation.Web.Common.Models.Configuration;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
using Microsoft.Extensions.Options;
|
||||
using System.Runtime.InteropServices;
|
||||
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.ViewComponents;
|
||||
@@ -38,7 +40,7 @@ public class FileSystemBrowserViewComponent : ViewComponent
|
||||
{
|
||||
return View(new
|
||||
{
|
||||
Path = @"C:\",
|
||||
Path = RuntimeInformation.IsOSPlatform(OSPlatform.Linux) ? @"/" : @"C:\",
|
||||
ServerBasePath = $"{_serverConfigurationModel.BaseAddress}:{_serverConfigurationModel.Port}/api/v{_serverConfigurationModel.ApiVersion}/",
|
||||
ClientBasePath = "http://localhost:5012/", // TODO: take from appsettings or environment
|
||||
ViewMode = FileSystemViewMode.List,
|
||||
|
||||
Reference in new issue
Block a user