Merge remote-tracking branch 'origin/v2_ChangeArchitecture' into v2_ChangeArchitecture

This commit is contained in:
2025-07-24 08:33:29 +02:00
7 changed files with 26 additions and 10 deletions

View File

@@ -24,7 +24,7 @@
<PackageReference Include="Blazor-ApexCharts" Version="6.0.0" /> <PackageReference Include="Blazor-ApexCharts" Version="6.0.0" />
<PackageReference Include="MoonCore" Version="1.9.2" /> <PackageReference Include="MoonCore" Version="1.9.2" />
<PackageReference Include="MoonCore.Blazor" Version="1.3.1" /> <PackageReference Include="MoonCore.Blazor" Version="1.3.1" />
<PackageReference Include="MoonCore.Blazor.FlyonUi" Version="1.0.8" /> <PackageReference Include="MoonCore.Blazor.FlyonUi" Version="1.0.9" />
</ItemGroup> </ItemGroup>
<ItemGroup> <ItemGroup>
<Compile Remove="storage\**\*" /> <Compile Remove="storage\**\*" />
@@ -49,9 +49,4 @@
<None Include="Styles/mappings/*.map" Pack="true" PackagePath="Styles/" /> <None Include="Styles/mappings/*.map" Pack="true" PackagePath="Styles/" />
<None Include="Moonlight.Client.targets" Pack="true" PackagePath="build/Moonlight.Client.targets" /> <None Include="Moonlight.Client.targets" Pack="true" PackagePath="build/Moonlight.Client.targets" />
</ItemGroup> </ItemGroup>
<ItemGroup>
<UpToDateCheckInput Remove="UI\Views\Internal\Mockup.razor" />
<UpToDateCheckInput Remove="UI\Partials\Design\ThemeSettings.razor" />
</ItemGroup>
</Project> </Project>

View File

@@ -81,6 +81,7 @@ border-2
border-b border-b
border-base-content border-base-content
border-base-content/20 border-base-content/20
border-base-content/25
border-base-content/40 border-base-content/40
border-base-content/5 border-base-content/5
border-dashed border-dashed
@@ -295,6 +296,7 @@ md:text-3xl
me-1 me-1
me-1.5 me-1.5
me-2 me-2
me-2.5
me-5 me-5
menu menu
menu-active menu-active

View File

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

View File

@@ -38,6 +38,7 @@
<label class="block text-sm font-medium leading-6 text-base-content">Version</label> <label class="block text-sm font-medium leading-6 text-base-content">Version</label>
<div class="mt-2"> <div class="mt-2">
<input @bind="Request.Version" type="text" autocomplete="off" class="input w-full"> <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> </div>
</div> </div>

View File

@@ -28,6 +28,7 @@
<div class="mt-2"> <div class="mt-2">
<div class="flex items-center gap-1"> <div class="flex items-center gap-1">
<input @bind="Request.IsEnabled" type="checkbox" class="switch" /> <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> </div>
</div> </div>
@@ -47,18 +48,21 @@
<label class="block text-sm font-medium leading-6 text-base-content">Version</label> <label class="block text-sm font-medium leading-6 text-base-content">Version</label>
<div class="mt-2"> <div class="mt-2">
<input @bind="Request.Version" type="text" autocomplete="off" class="input w-full"> <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> </div>
<div class="sm:col-span-2"> <div class="sm:col-span-2">
<label class="block text-sm font-medium leading-6 text-base-content">Donate URL</label> <label class="block text-sm font-medium leading-6 text-base-content">Donate URL</label>
<div class="mt-2"> <div class="mt-2">
<input @bind="Request.DonateUrl" type="text" autocomplete="off" class="input w-full"> <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> </div>
<div class="sm:col-span-2"> <div class="sm:col-span-2">
<label class="block text-sm font-medium leading-6 text-base-content">Update URL</label> <label class="block text-sm font-medium leading-6 text-base-content">Update URL</label>
<div class="mt-2"> <div class="mt-2">
<input @bind="Request.UpdateUrl" type="text" autocomplete="off" class="input w-full"> <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> </div>
</div> </div>

View File

@@ -19,7 +19,13 @@
<StatCard Title="Memory Usage" Text="@(Formatter.FormatSize(OverviewData.MemoryUsage))" Icon="icon-memory-stick"/> <StatCard Title="Memory Usage" Text="@(Formatter.FormatSize(OverviewData.MemoryUsage))" Icon="icon-memory-stick"/>
<StatCard Title="Host OS" Text="@(OverviewData.OperatingSystem)" Icon="icon-server-cog"/> <StatCard Title="Host OS" Text="@(OverviewData.OperatingSystem)" Icon="icon-server-cog"/>
<StatCard Title="Uptime" Text="@(Formatter.FormatUptime(OverviewData.Uptime))" Icon="icon-clock"/> <StatCard Title="Uptime" Text="@(Formatter.FormatUptime(OverviewData.Uptime))" Icon="icon-clock"/>
</div>
<PageSeparator Icon="icon-tool-case">
Actions
</PageSeparator>
<div class="flex">
<div class="card card-body"> <div class="card card-body">
<div class="flex justify-center"> <div class="flex justify-center">
<WButton OnClick="Restart" CssClasses="btn btn-error w-full"> <WButton OnClick="Restart" CssClasses="btn btn-error w-full">

View File

@@ -45,6 +45,7 @@
<label class="block text-sm font-medium leading-6 text-base-content">Password</label> <label class="block text-sm font-medium leading-6 text-base-content">Password</label>
<div class="mt-2"> <div class="mt-2">
<input @bind="Request.Password" type="password" autocomplete="off" class="input w-full"> <input @bind="Request.Password" type="password" autocomplete="off" class="input w-full">
<span class="helper-text">Leave empty if the password should not be changed</span>
</div> </div>
</div> </div>
</div> </div>