mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 14:11:10 +00:00
Routes the file browser thumbnail requests through the authenticated Web proxy
This commit is contained in:
1 parent
a32f80337b
commit
f694882b46
15 files changed
+299
-35
No files matched your search
-2
@@ -7,14 +7,12 @@ namespace Lumina.Presentation.Web.Common.DTO.Themes;
|
||||
/// <summary>
|
||||
/// Data transfer object for the runtime configuration of the file system browser component.
|
||||
/// </summary>
|
||||
/// <param name="ServerBasePath">The base URL of the remote API used for thumbnail retrieval.</param>
|
||||
/// <param name="ClientBasePath">The base URL of the Web application used for file system API calls.</param>
|
||||
/// <param name="Path">The initial path displayed by the file system browser.</param>
|
||||
/// <param name="ViewMode">The initial view mode of the file system browser.</param>
|
||||
/// <param name="IconSize">The initial icon size of the file system browser.</param>
|
||||
[DebuggerDisplay("Path: {Path}, ViewMode: {ViewMode}")]
|
||||
public sealed record ThemeFileSystemBrowserConfigurationDto(
|
||||
string ServerBasePath,
|
||||
string ClientBasePath,
|
||||
string Path,
|
||||
string ViewMode,
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
#region ========================================================================= USING =====================================================================================
|
||||
using System.Diagnostics;
|
||||
#endregion
|
||||
|
||||
namespace Lumina.Presentation.Web.Common.Requests.FileSystemManagement.Thumbnails;
|
||||
|
||||
/// <summary>
|
||||
/// Represents a request for retrieving the thumbnail of a file system file.
|
||||
/// </summary>
|
||||
/// <param name="Path">The path of the file for which the thumbnail is retrieved.</param>
|
||||
/// <param name="Quality">The quality to use for the thumbnail.</param>
|
||||
[DebuggerDisplay("Path: {Path}")]
|
||||
public record GetThumbnailRequest(
|
||||
string? Path,
|
||||
int Quality
|
||||
);
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace Lumina.Presentation.Web.Common.Routes;
|
||||
|
||||
/// <summary>
|
||||
/// Class for the collection of remote API routes called by this Web application.
|
||||
/// </summary>
|
||||
public static partial class ApiRoutes
|
||||
{
|
||||
/// <summary>
|
||||
/// Routes for the thumbnail endpoints of the remote API.
|
||||
/// </summary>
|
||||
public static class Thumbnails
|
||||
{
|
||||
public const string GET_THUMBNAIL = "thumbnails/get-thumbnail";
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
namespace Lumina.Presentation.Web.Common.Routes;
|
||||
|
||||
/// <summary>
|
||||
/// Class for the collection of routes defined in the Web application.
|
||||
/// </summary>
|
||||
public static partial class WebRoutes
|
||||
{
|
||||
/// <summary>
|
||||
/// Routes for the thumbnail endpoints.
|
||||
/// </summary>
|
||||
public static class Thumbnails
|
||||
{
|
||||
public const string GET_THUMBNAIL = "thumbnails/api-get-thumbnail";
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user