Compare commits
42 Commits
Binary file not shown.
Binary file not shown.
After Width: | Height: | Size: 291 KiB |
After Width: | Height: | Size: 168 KiB |
@ -1,68 +1,52 @@
|
|||||||
<CascadingValue Value="@this">
|
@using BlazorT.Models;
|
||||||
|
@using BlazorT.Composants
|
||||||
|
<CascadingValue Value="@this">
|
||||||
<div class="container">
|
<div class="container">
|
||||||
<div class="row">
|
<div class="row">
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
<div>My ìnventory</div>
|
<div><h2>My ìnventory</h2></div>
|
||||||
|
|
||||||
<div>
|
<div>
|
||||||
|
|
||||||
<div class="css-recipe">
|
<div class="css-recipe">
|
||||||
@for (int i = 0; i < NombreRecipes; i++)
|
@for (int i = 0; i < NombreRecipes; i++)
|
||||||
{
|
{
|
||||||
<InventoryItem Index="@i" />
|
<InventoryItem Index="@i" />
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div>Result</div>
|
|
||||||
<div>
|
|
||||||
<InventoryItem Item="RecipeResult" />
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
<div class="col-6">
|
<div class="col-6">
|
||||||
|
|
||||||
<div>LES ELEMENTS DISPO:</div>
|
|
||||||
<input type="text" bind-value="searchValue" onchange="@onSearching" />
|
|
||||||
<div>
|
|
||||||
<div class="css-grid">
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<table>
|
|
||||||
<thead>
|
|
||||||
<tr>
|
|
||||||
<th>ID</th>
|
|
||||||
<th>IMAGE</th>
|
|
||||||
<th>NAME</th>
|
|
||||||
<th>DATE</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<Virtualize Items="@Items" Context="item">
|
|
||||||
|
|
||||||
<InventoryItemTR Item="item" NoDrop="true" />
|
|
||||||
|
|
||||||
</Virtualize>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
|
|
||||||
|
|
||||||
|
<div><h2>LES ELEMENTS DISPONIBLES:</h2></div>
|
||||||
</div>
|
|
||||||
|
<div class="@BS.Input_Group mb-2">
|
||||||
|
<span class="@BS.Input_Group_Text">RECHERCHE</span>
|
||||||
|
<BSInput placeholder="By name" Value="searchValue" ValueChanged="(string e) => onSearching(e)" UpdateOnInput="true" />
|
||||||
</div>
|
</div>
|
||||||
|
<BSDataTable @ref="_customFilterRef" FetchItems="FetchItems" PaginationBottom="true" StartPage="1" RowsPerPage="20" Context="item" Items="Items" IsResponsive="true" IsStriped="true">
|
||||||
|
<Header>
|
||||||
|
<BSDataTableHead TValue="Item" Sortable="true" Column="@(nameof(Item.Id))">Id</BSDataTableHead>
|
||||||
|
<BSDataTableHead TValue="Item" Sortable="true" Column="@(nameof(Item.ImageBase64))" ColumnFilter="false">Image</BSDataTableHead>
|
||||||
|
|
||||||
|
<BSDataTableHead TValue="Item" Sortable="true" Column="@(nameof(Item.Name))" ColumnFilter="true">Name</BSDataTableHead>
|
||||||
|
<BSDataTableHead TValue="Item" Sortable="false" >Action</BSDataTableHead>
|
||||||
|
</Header>
|
||||||
|
<Body>
|
||||||
|
<InventoryItemTR Item="item" />
|
||||||
|
</Body>
|
||||||
|
</BSDataTable>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
<div class="col-12">
|
|
||||||
<div>Actions</div>
|
|
||||||
<div class="actions" id="actions">
|
|
||||||
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</CascadingValue>
|
|
||||||
|
|
||||||
|
</CascadingValue>
|
||||||
|
@ -1,6 +1,12 @@
|
|||||||
@page "/inventory"
|
@page "/inventory"
|
||||||
@using System.Globalization
|
@using System.Globalization
|
||||||
@using BlazorT.Composants
|
@using BlazorT.Composants
|
||||||
|
<div>
|
||||||
|
<NavLink class="btn btn-primary" href="Add" Match="NavLinkMatch.All">
|
||||||
|
<i class="fa fa-plus"></i> Ajouter
|
||||||
|
</NavLink>
|
||||||
|
<hr />
|
||||||
|
</div>
|
||||||
<div>
|
<div>
|
||||||
<InventoryComponent Items="Items" Recipes="Recipes" NombreRecipes="NombreRecipes" />
|
<InventoryComponent Items="Items" Recipes="Recipes" NombreRecipes="NombreRecipes" />
|
||||||
</div>
|
</div>
|
@ -1,25 +0,0 @@
|
|||||||
<Project Sdk="Microsoft.NET.Sdk">
|
|
||||||
|
|
||||||
<PropertyGroup>
|
|
||||||
<TargetFramework>net6.0</TargetFramework>
|
|
||||||
|
|
||||||
<IsPackable>false</IsPackable>
|
|
||||||
</PropertyGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<PackageReference Include="Microsoft.NET.Test.Sdk" Version="17.3.1" />
|
|
||||||
<PackageReference Include="xunit" Version="2.4.2" />
|
|
||||||
<PackageReference Include="xunit.runner.visualstudio" Version="2.4.5">
|
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
||||||
<PrivateAssets>all</PrivateAssets>
|
|
||||||
</PackageReference>
|
|
||||||
<PackageReference Include="coverlet.collector" Version="3.1.2">
|
|
||||||
<IncludeAssets>runtime; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
|
|
||||||
<PrivateAssets>all</PrivateAssets>
|
|
||||||
</PackageReference>
|
|
||||||
</ItemGroup>
|
|
||||||
|
|
||||||
<ItemGroup>
|
|
||||||
<ProjectReference Include="..\..\HelloWorldLib\HelloWorldLib.csproj" />
|
|
||||||
</ItemGroup>
|
|
||||||
</Project>
|
|
Loading…
Reference in new issue