mirror of
https://github.com/BinaryAlley/Nemera.git
synced 2026-12-03 11:11:10 +00:00
Moves the plugins management page under the administrator area
This commit is contained in:
1 parent
932fe2be28
commit
74e5efdf74
18 files changed
+26
-206
No files matched your search
+1
-1
@@ -15,7 +15,7 @@ using System.Threading.Tasks;
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Plugins.GetPluginSettings;
|
||||
|
||||
/// <summary>
|
||||
/// API endpoint for the <c>/{culture}/plugins/api-get-plugin-settings/{pluginId}</c> route.
|
||||
/// API endpoint for the <c>/{culture}/admin/manage-plugins/api-get-plugin-settings/{pluginId}</c> route.
|
||||
/// </summary>
|
||||
public class GetPluginSettingsEndpoint : BaseEndpoint<GetPluginSettingsRequest, IResult>
|
||||
{
|
||||
|
||||
@@ -14,7 +14,7 @@ using System.Threading.Tasks;
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Plugins.GetPlugins;
|
||||
|
||||
/// <summary>
|
||||
/// API endpoint for the <c>/{culture}/plugins/api-get-plugins</c> route.
|
||||
/// API endpoint for the <c>/{culture}/admin/manage-plugins/api-get-plugins</c> route.
|
||||
/// </summary>
|
||||
public class GetPluginsEndpoint : BaseEndpoint<EmptyRequest, IResult>
|
||||
{
|
||||
|
||||
+2
-2
@@ -16,7 +16,7 @@ using System.Threading.Tasks;
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Plugins.Index;
|
||||
|
||||
/// <summary>
|
||||
/// API endpoint for the <c>/{culture}/plugins</c> route.
|
||||
/// API endpoint for the <c>/{culture}/admin/manage-plugins</c> route.
|
||||
/// </summary>
|
||||
public class PluginsIndexViewEndpoint : BaseEndpoint<EmptyRequest, IResult>
|
||||
{
|
||||
@@ -57,6 +57,6 @@ public class PluginsIndexViewEndpoint : BaseEndpoint<EmptyRequest, IResult>
|
||||
if (plugin.LoadStatus == Lumina.Presentation.Web.Common.Enums.Plugins.PluginLoadStatus.Loaded)
|
||||
settingsByPluginId[plugin.Id] = await _apiHttpClient.GetAsync<PluginSettingsDto>(ApiRoutes.Plugins.GET_PLUGIN_SETTINGS.Replace("{pluginId}", plugin.Id.ToString()), cancellationToken).ConfigureAwait(false);
|
||||
Dictionary<string, object?> viewData = new() { ["pluginSettings"] = settingsByPluginId };
|
||||
return View("/Core/Views/Plugins/Index.cshtml", plugins, viewData);
|
||||
return View("/Core/Views/Admin/Plugins.cshtml", plugins, viewData);
|
||||
}
|
||||
}
|
||||
+1
-1
@@ -14,7 +14,7 @@ using System.Threading.Tasks;
|
||||
namespace Lumina.Presentation.Web.Core.Endpoints.Plugins.UpdatePluginSettings;
|
||||
|
||||
/// <summary>
|
||||
/// API endpoint for the <c>/{culture}/plugins/api-update-plugin-settings</c> route.
|
||||
/// API endpoint for the <c>/{culture}/admin/manage-plugins/api-update-plugin-settings</c> route.
|
||||
/// </summary>
|
||||
public class UpdatePluginSettingsEndpoint : BaseEndpoint<UpdatePluginSettingsRequest, IResult>
|
||||
{
|
||||
|
||||
Reference in new issue
Block a user