More testing of the new mooncore ui changes

This commit is contained in:
Marcel Baumgartner
2024-05-28 22:43:46 +02:00
parent 83f453da3f
commit a580e4335b
5 changed files with 12 additions and 8 deletions

View File

@@ -29,11 +29,11 @@
<CrudColumn TItem="User" Field="@(x => x.Username)" Title="Username" Filterable="true"/> <CrudColumn TItem="User" Field="@(x => x.Username)" Title="Username" Filterable="true"/>
<CrudColumn TItem="User" Field="@(x => x.CreatedAt)" Title="Created at" /> <CrudColumn TItem="User" Field="@(x => x.CreatedAt)" Title="Created at" />
</View> </View>
<Actions> <UpdateActions>
<WButton OnClick="() => ChangePassword(context)" CssClasses="btn btn-icon btn-primary"> <WButton OnClick="() => ChangePassword(context)" CssClasses="btn btn-icon btn-primary">
<i class="bx bx-sm bxs-key"></i> <i class="bx bx-sm bxs-key"></i>
</WButton> </WButton>
</Actions> </UpdateActions>
</AutoCrud> </AutoCrud>
@code @code

View File

@@ -46,4 +46,9 @@ public class CreateServerForm
[Selector(SelectorProp = "Name", DisplayProp = "Name", UseDropdown = true)] [Selector(SelectorProp = "Name", DisplayProp = "Name", UseDropdown = true)]
[Section("Deployment", Icon = "bx-cube")] [Section("Deployment", Icon = "bx-cube")]
public ServerNode Node { get; set; } public ServerNode Node { get; set; }
[Description("The allocations the server should have")]
[MultiSelection("Port", "Port", Icon = "bx-network-chart")]
[Section("Deployment", Icon = "bx-cube")]
public List<ServerAllocation> Allocations { get; set; } = new();
} }

View File

@@ -34,11 +34,11 @@
ValidateAdd="ValidateAdd" ValidateAdd="ValidateAdd"
CustomDelete="CustomDelete" CustomDelete="CustomDelete"
@ref="Crud"> @ref="Crud">
<Actions> <UpdateActions>
<a href="/admin/servers/images/view/@(context.Id)" class="btn btn-icon btn-info"> <a href="/admin/servers/images/view/@(context.Id)" class="btn btn-icon btn-info">
<i class="bx bx-sm bx-wrench"></i> <i class="bx bx-sm bx-wrench"></i>
</a> </a>
</Actions> </UpdateActions>
<View> <View>
<CrudColumn TItem="ServerImage" Field="@(x => x.Id)" Title="Id" Filterable="true"/> <CrudColumn TItem="ServerImage" Field="@(x => x.Id)" Title="Id" Filterable="true"/>
<CrudColumn TItem="ServerImage" Field="@(x => x.Name)" Title="Name" Filterable="true"/> <CrudColumn TItem="ServerImage" Field="@(x => x.Name)" Title="Name" Filterable="true"/>
@@ -73,7 +73,7 @@
Download and import a image from our <a href="https://github.com/Moonlight-Panel/Images">repository</a> or create a new one. Need help? Check out our <a href="https://docs.moonlightpanel.xyz">documentation</a> Download and import a image from our <a href="https://github.com/Moonlight-Panel/Images">repository</a> or create a new one. Need help? Check out our <a href="https://docs.moonlightpanel.xyz">documentation</a>
</IconAlert> </IconAlert>
</NoItemsView> </NoItemsView>
<Toolbar> <OverviewToolbar>
<SmartCustomFileSelect @ref="EggUpload" OnFileSelected="ImportEgg"> <SmartCustomFileSelect @ref="EggUpload" OnFileSelected="ImportEgg">
<a class="btn btn-info me-3"> <a class="btn btn-info me-3">
Import egg Import egg
@@ -84,7 +84,7 @@
Import Import
</a> </a>
</SmartCustomFileSelect> </SmartCustomFileSelect>
</Toolbar> </OverviewToolbar>
</AutoCrud> </AutoCrud>
@code @code

View File

@@ -18,7 +18,6 @@
<AutoCrud TItem="Server" <AutoCrud TItem="Server"
TCreateForm="CreateServerForm" TCreateForm="CreateServerForm"
TUpdateForm="CreateServerForm" TUpdateForm="CreateServerForm"
Title=""
Loader="Load" Loader="Load"
CustomAdd="CustomAdd" CustomAdd="CustomAdd"
ValidateUpdate="ValidateUpdate" ValidateUpdate="ValidateUpdate"

View File

@@ -91,7 +91,7 @@
<PrivateAssets>all</PrivateAssets> <PrivateAssets>all</PrivateAssets>
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets> <IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
</PackageReference> </PackageReference>
<PackageReference Include="MoonCore" Version="1.3.3" /> <PackageReference Include="MoonCore" Version="1.3.4" />
<PackageReference Include="Otp.NET" Version="1.3.0" /> <PackageReference Include="Otp.NET" Version="1.3.0" />
<PackageReference Include="QRCoder" Version="1.4.3" /> <PackageReference Include="QRCoder" Version="1.4.3" />
<PackageReference Include="XtermBlazor" Version="1.10.2" /> <PackageReference Include="XtermBlazor" Version="1.10.2" />