More testing of the new mooncore ui changes
This commit is contained in:
@@ -29,11 +29,11 @@
|
||||
<CrudColumn TItem="User" Field="@(x => x.Username)" Title="Username" Filterable="true"/>
|
||||
<CrudColumn TItem="User" Field="@(x => x.CreatedAt)" Title="Created at" />
|
||||
</View>
|
||||
<Actions>
|
||||
<UpdateActions>
|
||||
<WButton OnClick="() => ChangePassword(context)" CssClasses="btn btn-icon btn-primary">
|
||||
<i class="bx bx-sm bxs-key"></i>
|
||||
</WButton>
|
||||
</Actions>
|
||||
</UpdateActions>
|
||||
</AutoCrud>
|
||||
|
||||
@code
|
||||
|
||||
@@ -46,4 +46,9 @@ public class CreateServerForm
|
||||
[Selector(SelectorProp = "Name", DisplayProp = "Name", UseDropdown = true)]
|
||||
[Section("Deployment", Icon = "bx-cube")]
|
||||
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();
|
||||
}
|
||||
@@ -34,11 +34,11 @@
|
||||
ValidateAdd="ValidateAdd"
|
||||
CustomDelete="CustomDelete"
|
||||
@ref="Crud">
|
||||
<Actions>
|
||||
<UpdateActions>
|
||||
<a href="/admin/servers/images/view/@(context.Id)" class="btn btn-icon btn-info">
|
||||
<i class="bx bx-sm bx-wrench"></i>
|
||||
</a>
|
||||
</Actions>
|
||||
</UpdateActions>
|
||||
<View>
|
||||
<CrudColumn TItem="ServerImage" Field="@(x => x.Id)" Title="Id" 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>
|
||||
</IconAlert>
|
||||
</NoItemsView>
|
||||
<Toolbar>
|
||||
<OverviewToolbar>
|
||||
<SmartCustomFileSelect @ref="EggUpload" OnFileSelected="ImportEgg">
|
||||
<a class="btn btn-info me-3">
|
||||
Import egg
|
||||
@@ -84,7 +84,7 @@
|
||||
Import
|
||||
</a>
|
||||
</SmartCustomFileSelect>
|
||||
</Toolbar>
|
||||
</OverviewToolbar>
|
||||
</AutoCrud>
|
||||
|
||||
@code
|
||||
|
||||
@@ -18,7 +18,6 @@
|
||||
<AutoCrud TItem="Server"
|
||||
TCreateForm="CreateServerForm"
|
||||
TUpdateForm="CreateServerForm"
|
||||
Title=""
|
||||
Loader="Load"
|
||||
CustomAdd="CustomAdd"
|
||||
ValidateUpdate="ValidateUpdate"
|
||||
|
||||
@@ -91,7 +91,7 @@
|
||||
<PrivateAssets>all</PrivateAssets>
|
||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
||||
</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="QRCoder" Version="1.4.3" />
|
||||
<PackageReference Include="XtermBlazor" Version="1.10.2" />
|
||||
|
||||
Reference in New Issue
Block a user