Upgraded to latest mooncore packages. Upgraded to tailwind v4

This commit is contained in:
2025-05-02 13:06:09 +02:00
parent 6657bae0cd
commit bbc6c0fbd3
28 changed files with 1386 additions and 1963 deletions

View File

@@ -3,7 +3,7 @@
<p class="text-xl font-semibold text-slate-200">
@Text
</p>
<i class="@Icon text-4xl text-primary-500"></i>
<i class="@Icon text-4xl text-primary"></i>
</div>
<p class="text-base text-slate-300">@Title</p>
</div>

View File

@@ -4,12 +4,12 @@
@inherits LayoutComponentBase
<div class="relative isolate flex min-h-svh w-full max-lg:flex-col bg-gray-950">
<div class="relative isolate flex min-h-svh w-full max-lg:flex-col bg-gray-900 lg:bg-gray-950/80">
<AppSidebar Layout="this"/>
<AppHeader Layout="this" />
<main class="flex flex-1 flex-col lg:pb-5 lg:min-w-0 lg:pt-5 lg:pr-3.5 lg:pl-64">
<div class="grow p-6 lg:rounded-lg lg:p-10 lg:ring-1 lg:shadow-xs lg:bg-gray-900 lg:ring-white/10">
<div class="grow p-6 lg:rounded-lg lg:p-10 lg:ring-1 lg:shadow-xs lg:bg-gray-900/80 lg:ring-white/10">
<div class="mx-auto max-w-7xl">
<CascadingValue Value="this" IsFixed="true">
@Body
@@ -23,6 +23,19 @@
<ToastLauncher/>
<ModalLauncher/>
<div id="blazor-error-ui" class="fixed bottom-0 left-0 w-full z-50">
<div class="bg-danger-600 text-white p-4 flex flex-row justify-between items-center">
<div class="flex items-center">
<i class="icon-bomb text-lg text-white me-2"></i>
<span>An unhandled error has occurred.</span>
</div>
<div>
<a href="#" class="reload text-white underline mr-4">Reload</a>
<a href="#" class="dismiss hidden">🗙</a>
</div>
</div>
</div>
@code
{
// Mobile navigation

View File

@@ -56,7 +56,7 @@
AddSetting("primary", "primary-200", 199, 210, 254);
AddSetting("primary", "primary-300", 165, 180, 252);
AddSetting("primary", "primary-400", 129, 140, 248);
AddSetting("primary", "primary-500", 99, 102, 241);
AddSetting("primary", "primary", 99, 102, 241);
AddSetting("primary", "primary-600", 79, 70, 229);
AddSetting("primary", "primary-700", 67, 56, 202);
AddSetting("primary", "primary-800", 55, 48, 163);
@@ -81,7 +81,7 @@
AddSetting("tertiary", "tertiary-200", 221, 214, 254);
AddSetting("tertiary", "tertiary-300", 196, 181, 253);
AddSetting("tertiary", "tertiary-400", 167, 139, 250);
AddSetting("tertiary", "tertiary-500", 139, 92, 246);
AddSetting("tertiary", "tertiary", 139, 92, 246);
AddSetting("tertiary", "tertiary-600", 124, 58, 237);
AddSetting("tertiary", "tertiary-700", 109, 40, 217);
AddSetting("tertiary", "tertiary-800", 91, 33, 182);
@@ -107,7 +107,7 @@
AddSetting("danger", "danger-200", 254, 202, 202);
AddSetting("danger", "danger-300", 252, 165, 165);
AddSetting("danger", "danger-400", 248, 113, 113);
AddSetting("danger", "danger-500", 239, 68, 68);
AddSetting("danger", "danger", 239, 68, 68);
AddSetting("danger", "danger-600", 220, 38, 38);
AddSetting("danger", "danger-700", 185, 28, 28);
AddSetting("danger", "danger-800", 153, 27, 27);
@@ -120,7 +120,7 @@
AddSetting("success", "success-200", 187, 247, 208);
AddSetting("success", "success-300", 134, 239, 172);
AddSetting("success", "success-400", 74, 222, 128);
AddSetting("success", "success-500", 34, 197, 94);
AddSetting("success", "success", 34, 197, 94);
AddSetting("success", "success-600", 22, 163, 74);
AddSetting("success", "success-700", 21, 128, 61);
AddSetting("success", "success-800", 22, 101, 52);

View File

@@ -10,38 +10,38 @@
@inject ToastService ToastService
<div class="grid grid-cols-1 sm:grid-cols-3 mb-8 gap-x-3 gap-y-2 sm:gap-y-0">
<div class="col-span-1 card card-body border-l-4 border-primary-500">
<div class="col-span-1 card card-body border-l-4 border-primary">
<p class="font-medium tracking-wide text-slate-100">
API Documentation
</p>
<a href="/api/swagger" target="_blank" class="mt-2 flex items-center justify-between text-primary-500">
<a href="/api/swagger" target="_blank" class="mt-2 flex items-center justify-between text-primary">
<div class="font-medium">Open</div>
<div>
<i class="bi bi-box-arrow-up-right text-lg text-primary-500"></i>
<i class="bi bi-box-arrow-up-right text-lg text-primary"></i>
</div>
</a>
</div>
<div class="col-span-1 card card-body border-l-4 border-tertiary-500">
<div class="col-span-1 card card-body border-l-4 border-tertiary">
<p class="font-medium tracking-wide text-slate-100">
Learn about the api usage
</p>
<a href="https://help.moonlightpanel.xyz" target="_blank" class="mt-2 flex items-center justify-between text-primary-500">
<a href="https://help.moonlightpanel.xyz" target="_blank" class="mt-2 flex items-center justify-between text-primary">
<div class="font-medium">Open</div>
<div>
<i class="bi bi-box-arrow-up-right text-lg text-tertiary-500"></i>
<i class="bi bi-box-arrow-up-right text-lg text-tertiary"></i>
</div>
</a>
</div>
<div class="col-span-1 card card-body border-l-4 border-success-500">
<div class="col-span-1 card card-body border-l-4 border-success">
<p class="font-medium tracking-wide text-slate-100">
Open API Specification
</p>
<a href="/api/swagger/main" target="_blank" class="mt-2 flex items-center justify-between text-primary-500">
<a href="/api/swagger/main" target="_blank" class="mt-2 flex items-center justify-between text-primary">
<div class="font-medium">Open</div>
<div>
<i class="bi bi-box-arrow-up-right text-lg text-success-500"></i>
<i class="bi bi-box-arrow-up-right text-lg text-success"></i>
</div>
</a>
</div>
@@ -67,12 +67,12 @@
<DataTableColumn TItem="ApiKeyResponse">
<ColumnTemplate>
<div class="flex justify-end">
<a href="/admin/api/@(context.Id)" class="text-primary-500 mr-2 sm:mr-3">
<a href="/admin/api/@(context.Id)" class="text-primary mr-2 sm:mr-3">
<i class="icon-pencil text-base"></i>
</a>
<a href="#" @onclick="() => Delete(context)" @onclick:preventDefault
class="text-danger-500">
class="text-danger">
<i class="icon-trash text-base"></i>
</a>
</div>

View File

@@ -8,7 +8,7 @@
@inject HttpApiClient ApiClient
@inject DownloadService DownloadService
<div class="mb-3">
<div class="mb-5">
<NavTabs Index="4" Names="UiConstants.AdminNavNames" Links="UiConstants.AdminNavLinks" />
</div>
@@ -22,7 +22,7 @@
If you want to host your moonlight frontend on a static web server instead of it being hosted by the api server
(useful for hosting on a cdn for high availability) you can use this helper. By pressing the button below moonlight
will generate a zip file containing everything you need to host the frontend. Next to the WASM app itself it automatically
includes your installed theme and plugins. For more information, have a look at <a class="text-primary-500" href="https://help.moonlightpanel.xyz">our docs</a>
includes your installed theme and plugins. For more information, have a look at <a class="text-primary" href="https://help.moonlightpanel.xyz">our docs</a>
</p>
<WButton OnClick="GenerateFrontend" CssClasses="btn btn-primary mt-5">Generate frontend.zip</WButton>

View File

@@ -12,7 +12,7 @@
@inject DownloadService DownloadService
@inject LocalStorageService LocalStorageService
<div class="mb-3">
<div class="mb-5">
<NavTabs Index="2" Names="UiConstants.AdminNavNames" Links="UiConstants.AdminNavLinks"/>
</div>

View File

@@ -9,7 +9,7 @@
@inject HttpApiClient ApiClient
<div class="mb-3">
<div class="mb-5">
<NavTabs Index="3" Names="UiConstants.AdminNavNames" Links="UiConstants.AdminNavLinks"/>
</div>

View File

@@ -9,7 +9,7 @@
@inject HttpApiClient ApiClient
<div class="mb-3">
<div class="mb-5">
<NavTabs Index="0" Names="UiConstants.AdminNavNames" Links="UiConstants.AdminNavLinks" />
</div>

View File

@@ -5,7 +5,7 @@
@attribute [RequirePermission("admin.system.theme")]
<div class="mb-3">
<div class="mb-5">
<NavTabs Index="1" Names="UiConstants.AdminNavNames" Links="UiConstants.AdminNavLinks" />
</div>

View File

@@ -27,12 +27,12 @@
<DataTableColumn TItem="UserResponse">
<ColumnTemplate>
<div class="flex justify-end">
<a href="/admin/users/@(context.Id)" class="text-primary-500 mr-2 sm:mr-3">
<a href="/admin/users/@(context.Id)" class="text-primary mr-2 sm:mr-3">
<i class="icon-pencil text-base"></i>
</a>
<a href="#" @onclick="() => Delete(context)" @onclick:preventDefault
class="text-danger-500">
class="text-danger">
<i class="icon-trash text-base"></i>
</a>
</div>