Improved ui/ux of theme pages. Upgraded mooncore.blazor.flyonui

This commit is contained in:
2025-07-23 22:58:16 +02:00
parent 7dde1d86f8
commit 7cd138b09f
7 changed files with 26 additions and 10 deletions

View File

@@ -14,8 +14,11 @@
<NavTabs Index="1" Names="UiConstants.AdminNavNames" Links="UiConstants.AdminNavLinks"/>
<div class="mt-5 flex justify-between">
<span class="text-lg font-semibold">Themes</span>
<PageSeparator Icon="icon-palette">
Themes
</PageSeparator>
<div class="mt-5 flex justify-end">
<div>
<label for="import-theme" class="btn btn-info me-1">
<i class="icon-file-up"></i>
@@ -26,7 +29,7 @@
</div>
</div>
<div class="mt-2.5">
<div class="my-2.5">
<DataTable TItem="ThemeResponse">
<Configuration>
<DataTableColumn TItem="ThemeResponse" Field="@(x => x.Id)" Name="Id"/>
@@ -78,6 +81,10 @@
</DataTable>
</div>
<PageSeparator Icon="icon-images">
Images & Logos
</PageSeparator>
@code
{

View File

@@ -38,6 +38,7 @@
<label class="block text-sm font-medium leading-6 text-base-content">Version</label>
<div class="mt-2">
<input @bind="Request.Version" type="text" autocomplete="off" class="input w-full">
<span class="helper-text">This field will be used for update checks</span>
</div>
</div>
</div>

View File

@@ -28,6 +28,7 @@
<div class="mt-2">
<div class="flex items-center gap-1">
<input @bind="Request.IsEnabled" type="checkbox" class="switch" />
<span class="helper-text">Toggle on in order to enable the theme globally (a reload is required to apply)</span>
</div>
</div>
</div>
@@ -47,18 +48,21 @@
<label class="block text-sm font-medium leading-6 text-base-content">Version</label>
<div class="mt-2">
<input @bind="Request.Version" type="text" autocomplete="off" class="input w-full">
<span class="helper-text">This field will be used for update checks</span>
</div>
</div>
<div class="sm:col-span-2">
<label class="block text-sm font-medium leading-6 text-base-content">Donate URL</label>
<div class="mt-2">
<input @bind="Request.DonateUrl" type="text" autocomplete="off" class="input w-full">
<span class="helper-text">Optional: Specify a url here which people should get redirected for donating to the author</span>
</div>
</div>
<div class="sm:col-span-2">
<label class="block text-sm font-medium leading-6 text-base-content">Update URL</label>
<div class="mt-2">
<input @bind="Request.UpdateUrl" type="text" autocomplete="off" class="input w-full">
<span class="helper-text">Optional: Specify a url here which returns the latest version of this theme as the raw exported file</span>
</div>
</div>
</div>