parent
37b6df2092
commit
365ef73089
@ -0,0 +1,69 @@
|
||||
@using BlazorAppClean.Models;
|
||||
|
||||
<CascadingValue Value="@this">
|
||||
<div class="container">
|
||||
<div class="row">
|
||||
<div class="col-6">
|
||||
|
||||
<div>
|
||||
|
||||
<div class="css-inv">
|
||||
<CraftingItem Index="0" />
|
||||
<CraftingItem Index="1" />
|
||||
<CraftingItem Index="2" />
|
||||
<CraftingItem Index="3" />
|
||||
<CraftingItem Index="4" />
|
||||
<CraftingItem Index="5" />
|
||||
<CraftingItem Index="6" />
|
||||
<CraftingItem Index="7" />
|
||||
<CraftingItem Index="8" />
|
||||
<CraftingItem Index="9" />
|
||||
<CraftingItem Index="10" />
|
||||
<CraftingItem Index="11" />
|
||||
<CraftingItem Index="12" />
|
||||
<CraftingItem Index="13" />
|
||||
<CraftingItem Index="14" />
|
||||
<CraftingItem Index="15" />
|
||||
<CraftingItem Index="16" />
|
||||
<CraftingItem Index="17" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
|
||||
<div>Available items:</div>
|
||||
<div>
|
||||
|
||||
<div class="css-grid d-sm-block">
|
||||
<DataGrid TItem="Item"
|
||||
Data="@Items"
|
||||
TotalItems="@totalItem"
|
||||
PageSize="6"
|
||||
ShowPager
|
||||
Responsive>
|
||||
<DataGridColumn TItem="Item" Field="@nameof(Item.Id)" Caption="#" />
|
||||
<DataGridColumn TItem="Item" Field="@nameof(Item.Id)" Caption="Image">
|
||||
<DisplayTemplate>
|
||||
@if (!string.IsNullOrWhiteSpace(context.ImageBase64))
|
||||
{
|
||||
<img src="data:image/png;base64, @(context.ImageBase64)" class="img-thumbnail" title="@context.DisplayName" alt="@context.DisplayName" style="min-width: 60px; max-width: 60px" />
|
||||
}
|
||||
else
|
||||
{
|
||||
<img src="images/default.png" class="img-thumbnail" title="@context.DisplayName" alt="@context.DisplayName" style="max-width: 60px" />
|
||||
}
|
||||
</DisplayTemplate>
|
||||
</DataGridColumn>
|
||||
<DataGridColumn TItem="Item" Field="@nameof(Item.DisplayName)" Caption="Display name" />
|
||||
|
||||
|
||||
</DataGrid>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
</div>
|
||||
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</CascadingValue>
|
@ -0,0 +1,36 @@
|
||||
@using BlazorAppClean.Models
|
||||
|
||||
<CascadingValue Value="@this">
|
||||
<div class="css-grid">
|
||||
<div><h1>List</h1></div>
|
||||
|
||||
<DataGrid TItem="Item"
|
||||
Data="@Items"
|
||||
TotalItems="8"
|
||||
PageSize="8"
|
||||
Filterable
|
||||
ShowPager
|
||||
Responsive>
|
||||
<DataGridColumn TItem="Item" Field="@nameof(Item.Id)" Caption="Image" Filterable="false" Sortable="false">
|
||||
<DisplayTemplate>
|
||||
@if (!string.IsNullOrWhiteSpace(context.ImageBase64))
|
||||
{
|
||||
<img src="data:image/png;base64, @(context.ImageBase64)" class="img-thumbnail" title="@context.DisplayName" alt="@context.DisplayName" style="min-width: 50px; max-width: 150px"/>
|
||||
}
|
||||
</DisplayTemplate>
|
||||
</DataGridColumn>
|
||||
<DataGridColumn TItem="Item" Field="@nameof(Item.DisplayName)" Caption="Nom"/>
|
||||
<DataGridColumn TItem="Item" Field="@nameof(Item.StackSize)" Caption="Stack" Filterable="false" Sortable="false"/>
|
||||
</DataGrid>
|
||||
</div>
|
||||
|
||||
<div><h1>Inventory</h1></div>
|
||||
<div class="css-recipe">
|
||||
@for (int i = 0; i < 27; i++)
|
||||
{
|
||||
<GetItemInInventory Index="@i" />
|
||||
|
||||
}
|
||||
</div>
|
||||
|
||||
</CascadingValue>
|
@ -1,9 +1,10 @@
|
||||
@page "/config"
|
||||
<h3>Config</h3>
|
||||
|
||||
<div>
|
||||
<div>MyKey: @Configuration["MyKey"]</div>
|
||||
<div>Position:Title: @Configuration["Position:Title"]</div>
|
||||
<div>Position:Name: @Configuration["Position:Name"]</div>
|
||||
<div>Logging:LogLevel:Default: @Configuration["Logging:LogLevel:Default"]</div>
|
||||
</div>
|
||||
@if (positionOptions != null)
|
||||
{
|
||||
<div>
|
||||
<div>Title: @positionOptions.Title</div>
|
||||
<div>Name: @positionOptions.Name</div>
|
||||
</div>
|
||||
}
|
@ -0,0 +1,5 @@
|
||||
@page "/logs"
|
||||
|
||||
<h3>CreateLog</h3>
|
||||
|
||||
<button @onclick="CreateLogs">Create logs</button>
|
@ -0,0 +1,8 @@
|
||||
@page "/inventory"
|
||||
@using System.Globalization
|
||||
@using BlazorAppClean.Components
|
||||
<h1>My Inventory</h1>
|
||||
|
||||
|
||||
|
||||
<InventoryComponent/>
|
@ -0,0 +1,9 @@
|
||||
{
|
||||
"Logging": {
|
||||
"LogLevel": {
|
||||
"Default": "Trace",
|
||||
"Microsoft": "Warning",
|
||||
"Microsoft.Hosting.Lifetime": "Information"
|
||||
}
|
||||
}
|
||||
}
|
After Width: | Height: | Size: 162 KiB |
After Width: | Height: | Size: 449 KiB |
Loading…
Reference in new issue