eliminates region sections

This commit is contained in:
BinaryAlley committed 2024-10-12 22:03:57 +03:00
1 parent 705c02b90d
commit 405fc1ff9a
370 files changed
+47 -1618

No files matched your search

@@ -17,11 +17,8 @@ namespace Lumina.Presentation.Web.Controllers.FileManagement;
[Route("[controller]")]
public class DirectoriesController : Controller
{
#region ================================================================== FIELD MEMBERS ================================================================================
private readonly IApiHttpClient _apiHttpClient;
#endregion
#region ====================================================================== CTOR =====================================================================================
/// <summary>
/// Initializes a new instance of the <see cref="DirectoriesController"/> class.
/// </summary>
@@ -30,9 +27,7 @@ public class DirectoriesController : Controller
{
_apiHttpClient = apiHttpClient;
}
#endregion
#region ===================================================================== METHODS ===================================================================================
/// <summary>
/// Gets the directories of <paramref name="path"/>.
/// </summary>
@@ -83,5 +78,4 @@ public class DirectoriesController : Controller
FileSystemTreeNodeModel[] response = await _apiHttpClient.GetAsync<FileSystemTreeNodeModel[]>($"directories/get-directory-tree?path={Uri.EscapeDataString(path)}&includeFiles={includeFiles}&includeHiddenElements={includeHiddenElements}", cancellationToken: cancellationToken);
return Json(new { success = true, data = new { tree = response } });
}
#endregion
}
@@ -14,11 +14,8 @@ namespace Lumina.Presentation.Web.Controllers.FileManagement;
[Route("[controller]")]
public class DrivesController : Controller
{
#region ================================================================== FIELD MEMBERS ================================================================================
private readonly IApiHttpClient _apiHttpClient;
#endregion
#region ====================================================================== CTOR =====================================================================================
/// <summary>
/// Initializes a new instance of the <see cref="DrivesController"/> class.
/// </summary>
@@ -27,9 +24,7 @@ public class DrivesController : Controller
{
_apiHttpClient = apiHttpClient;
}
#endregion
#region ===================================================================== METHODS ===================================================================================
/// <summary>
/// Controller action for getting the list of all file system drives.
/// </summary>
@@ -40,5 +35,4 @@ public class DrivesController : Controller
FileSystemTreeNodeModel[] response = await _apiHttpClient.GetAsync<FileSystemTreeNodeModel[]>($"drives/get-drives", cancellationToken: cancellationToken);
return Json(new { success = true, data = new { drives = response } });
}
#endregion
}
@@ -14,11 +14,8 @@ namespace Lumina.Presentation.Web.Controllers.FileManagement;
[Route("/file-system")]
public class FileSystemController : Controller
{
#region ================================================================== FIELD MEMBERS ================================================================================
private readonly IApiHttpClient _apiHttpClient;
#endregion
#region ====================================================================== CTOR =====================================================================================
/// <summary>
/// Initializes a new instance of the <see cref="FileSystemController"/> class.
/// </summary>
@@ -27,9 +24,7 @@ public class FileSystemController : Controller
{
_apiHttpClient = apiHttpClient;
}
#endregion
#region ===================================================================== METHODS ===================================================================================
/// <summary>
/// Gets the type of the file system.
/// </summary>
@@ -40,5 +35,4 @@ public class FileSystemController : Controller
FileSystemTypeModel response = await _apiHttpClient.GetAsync<FileSystemTypeModel>($"file-system/get-type", cancellationToken: cancellationToken);
return Json(new { success = true, data = new { platformType = response.PlatformType.ToString() } });
}
#endregion
}
@@ -16,11 +16,8 @@ namespace Lumina.Presentation.Web.Controllers.FileManagement;
[Route("[controller]")]
public class FilesController : Controller
{
#region ================================================================== FIELD MEMBERS ================================================================================
private readonly IApiHttpClient _apiHttpClient;
#endregion
#region ====================================================================== CTOR =====================================================================================
/// <summary>
/// Initializes a new instance of the <see cref="FilesController"/> class.
/// </summary>
@@ -29,9 +26,7 @@ public class FilesController : Controller
{
_apiHttpClient = apiHttpClient;
}
#endregion
#region ===================================================================== METHODS ===================================================================================
/// <summary>
/// Gets the files of <paramref name="path"/>.
/// </summary>
@@ -69,5 +64,4 @@ public class FilesController : Controller
yield return file;
}
}
#endregion
}
@@ -15,11 +15,8 @@ namespace Lumina.Presentation.Web.Controllers.FileManagement;
[Route("[controller]")]
public class PathController : Controller
{
#region ================================================================== FIELD MEMBERS ================================================================================
private readonly IApiHttpClient _apiHttpClient;
#endregion
#region ====================================================================== CTOR =====================================================================================
/// <summary>
/// Initializes a new instance of the <see cref="PathController"/> class.
/// </summary>
@@ -28,9 +25,7 @@ public class PathController : Controller
{
_apiHttpClient = apiHttpClient;
}
#endregion
#region ===================================================================== METHODS ===================================================================================
/// <summary>
/// Gets the root of <paramref name="path"/>.
/// </summary>
@@ -102,5 +97,4 @@ public class PathController : Controller
PathExistsModel response = await _apiHttpClient.GetAsync<PathExistsModel>($"path/check-path-exists?path={Uri.EscapeDataString(path)}&includeHiddenElements={includeHiddenElements}", cancellationToken: cancellationToken);
return Json(new { success = true, data = new { exists = response.Exists } });
}
#endregion
}