Removed asset controllers. Started adding design section in settings
This commit is contained in:
@@ -27,7 +27,7 @@
|
||||
<PackageReference Include="MoonCore" Version="1.8.1" />
|
||||
<PackageReference Include="MoonCore.Blazor" Version="1.2.8" />
|
||||
<PackageReference Include="MoonCore.PluginFramework" Version="1.0.5"/>
|
||||
<PackageReference Include="MoonCore.Blazor.Tailwind" Version="1.2.4" />
|
||||
<PackageReference Include="MoonCore.Blazor.Tailwind" Version="1.2.6" />
|
||||
</ItemGroup>
|
||||
|
||||
<!--
|
||||
|
||||
@@ -16,6 +16,7 @@ using Moonlight.Client.Implementations;
|
||||
using Moonlight.Client.Interfaces;
|
||||
using Moonlight.Client.Services;
|
||||
using Moonlight.Client.UI;
|
||||
using Moonlight.Client.UI.Forms;
|
||||
using Moonlight.Shared.Misc;
|
||||
|
||||
namespace Moonlight.Client;
|
||||
@@ -154,6 +155,7 @@ public class Startup
|
||||
{
|
||||
FormComponentRepository.Set<string, StringComponent>();
|
||||
FormComponentRepository.Set<int, IntComponent>();
|
||||
FormComponentRepository.Set<DateTime, DateComponent>();
|
||||
|
||||
return Task.CompletedTask;
|
||||
}
|
||||
|
||||
@@ -17,21 +17,20 @@
|
||||
"bg-danger-600",
|
||||
"bg-gradient-to-t",
|
||||
"bg-gray-100",
|
||||
"bg-gray-200",
|
||||
"bg-gray-400",
|
||||
"bg-gray-50",
|
||||
"bg-gray-700",
|
||||
"bg-gray-700/50",
|
||||
"bg-gray-700/60",
|
||||
"bg-gray-750",
|
||||
"bg-gray-800",
|
||||
"bg-gray-800/60",
|
||||
"bg-gray-800/80",
|
||||
"bg-gray-900",
|
||||
"bg-gray-900/75",
|
||||
"bg-gray-950",
|
||||
"bg-indigo-500",
|
||||
"bg-info-400",
|
||||
"bg-opacity-50",
|
||||
"bg-opacity-75",
|
||||
"bg-slate-900",
|
||||
"bg-success-400",
|
||||
"bg-tertiary-500",
|
||||
@@ -51,7 +50,6 @@
|
||||
"border-slate-700",
|
||||
"border-t",
|
||||
"border-transparent",
|
||||
"bottom-0",
|
||||
"bottom-full",
|
||||
"col-span-1",
|
||||
"col-span-2",
|
||||
@@ -60,7 +58,6 @@
|
||||
"cursor-not-allowed",
|
||||
"cursor-pointer",
|
||||
"dark:bg-gray-700",
|
||||
"dark:bg-gray-700/60",
|
||||
"dark:disabled:bg-gray-800",
|
||||
"dark:disabled:border-gray-700",
|
||||
"dark:disabled:placeholder:text-gray-600",
|
||||
@@ -143,7 +140,6 @@
|
||||
"h-6",
|
||||
"h-8",
|
||||
"h-[20vh]",
|
||||
"h-px",
|
||||
"hidden",
|
||||
"hover:bg-gray-700",
|
||||
"hover:bg-gray-800",
|
||||
@@ -242,6 +238,7 @@
|
||||
"mt-5",
|
||||
"mt-8",
|
||||
"mt-auto",
|
||||
"mx-2",
|
||||
"mx-5",
|
||||
"mx-auto",
|
||||
"my-1",
|
||||
|
||||
25
Moonlight.Client/UI/Views/Admin/Sys/Design.razor
Normal file
25
Moonlight.Client/UI/Views/Admin/Sys/Design.razor
Normal file
@@ -0,0 +1,25 @@
|
||||
@page "/admin/system/design"
|
||||
|
||||
@using MoonCore.Attributes
|
||||
@using MoonCore.Helpers
|
||||
|
||||
@attribute [RequirePermission("admin.system.design")]
|
||||
|
||||
@inject HttpApiClient ApiClient
|
||||
|
||||
<div class="mb-3">
|
||||
<NavTabs Index="1" Names="UiConstants.AdminNavNames" Links="UiConstants.AdminNavLinks" />
|
||||
</div>
|
||||
|
||||
<div class="card card-body p-3 justify-end">
|
||||
</div>
|
||||
|
||||
@code
|
||||
{
|
||||
private readonly Dictionary<string, string> Colors = new();
|
||||
|
||||
protected override void OnInitialized()
|
||||
{
|
||||
|
||||
}
|
||||
}
|
||||
@@ -9,6 +9,10 @@
|
||||
|
||||
@inject HttpApiClient ApiClient
|
||||
|
||||
<div class="mb-3">
|
||||
<NavTabs Index="0" Names="UiConstants.AdminNavNames" Links="UiConstants.AdminNavLinks" />
|
||||
</div>
|
||||
|
||||
<LazyLoader Load="LoadOverview">
|
||||
<div class="gap-5 grid grid-cols-1 lg:grid-cols-2 xl:grid-cols-4">
|
||||
<StatCard Title="CPU Usage" Text="@(OverviewData.CpuUsage + "%")" Icon="icon-cpu"/>
|
||||
|
||||
7
Moonlight.Client/UiConstants.cs
Normal file
7
Moonlight.Client/UiConstants.cs
Normal file
@@ -0,0 +1,7 @@
|
||||
namespace Moonlight.Client;
|
||||
|
||||
public static class UiConstants
|
||||
{
|
||||
public static readonly string[] AdminNavNames = ["Overview", "Design"];
|
||||
public static readonly string[] AdminNavLinks = ["/admin/system", "/admin/system/design"];
|
||||
}
|
||||
Reference in New Issue
Block a user