Update the drag and drop, still have an error i cant resolve
continuous-integration/drone/push Build is failing
Details
continuous-integration/drone/push Build is failing
Details
parent
0ac6fce12b
commit
fe7edad43e
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1,9 +1,6 @@
|
|||||||
{
|
{
|
||||||
"ExpandedNodes": [
|
"ExpandedNodes": [
|
||||||
"",
|
""
|
||||||
"\\Code",
|
|
||||||
"\\Code\\ProjetBlazor\\Properties"
|
|
||||||
],
|
],
|
||||||
"SelectedNode": "\\Code\\BlazorApp.sln",
|
|
||||||
"PreviewInSolutionExplorer": false
|
"PreviewInSolutionExplorer": false
|
||||||
}
|
}
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@ -1 +1 @@
|
|||||||
d3262fc31f365d3ae2c93faff7841ae2ba475b3c
|
c265d9e9f5fcd34df9ebfe876a1036461508ba75
|
||||||
|
File diff suppressed because it is too large
Load Diff
Binary file not shown.
@ -1 +1 @@
|
|||||||
dc37e66f47ae43cee4b2425074d9be0523a82cf5
|
77c4b4e2e70764d1c091287e1e15be24402e097e
|
||||||
|
Binary file not shown.
Binary file not shown.
File diff suppressed because one or more lines are too long
Binary file not shown.
Binary file not shown.
@ -1,16 +1,16 @@
|
|||||||
{
|
{
|
||||||
"version": 2,
|
"version": 2,
|
||||||
"dgSpecHash": "jinAgCxMwIRFrEI5kUkq9j6tS7O5nXy9V+Kp7wTtk5NHeBQgrSke3YfqxLx1xBbwcLvq/9mU+lZrtGwH8VHPNw==",
|
"dgSpecHash": "owyzLgO4yVYTIR2lDapMCcrdgkz7FivgvZaVNyumorGhLyhR/dS7DZp43unAO4vZ12llc9JTCb8saKy9SRwiqg==",
|
||||||
"success": true,
|
"success": true,
|
||||||
"projectFilePath": "C:\\Users\\Dorian\\Documents\\Blazor\\Code\\Minecraft.Crafting.Api\\Minecraft.Crafting.Api.csproj",
|
"projectFilePath": "C:\\Users\\doria\\source\\repos\\ProjetBlazor\\Code\\Minecraft.Crafting.Api\\Minecraft.Crafting.Api.csproj",
|
||||||
"expectedPackageFiles": [
|
"expectedPackageFiles": [
|
||||||
"C:\\Users\\Dorian\\.nuget\\packages\\microsoft.extensions.apidescription.server\\3.0.0\\microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512",
|
"C:\\Users\\doria\\.nuget\\packages\\microsoft.extensions.apidescription.server\\3.0.0\\microsoft.extensions.apidescription.server.3.0.0.nupkg.sha512",
|
||||||
"C:\\Users\\Dorian\\.nuget\\packages\\microsoft.openapi\\1.2.3\\microsoft.openapi.1.2.3.nupkg.sha512",
|
"C:\\Users\\doria\\.nuget\\packages\\microsoft.openapi\\1.2.3\\microsoft.openapi.1.2.3.nupkg.sha512",
|
||||||
"C:\\Users\\Dorian\\.nuget\\packages\\newtonsoft.json\\13.0.1\\newtonsoft.json.13.0.1.nupkg.sha512",
|
"C:\\Users\\doria\\.nuget\\packages\\newtonsoft.json\\13.0.1\\newtonsoft.json.13.0.1.nupkg.sha512",
|
||||||
"C:\\Users\\Dorian\\.nuget\\packages\\swashbuckle.aspnetcore\\6.2.3\\swashbuckle.aspnetcore.6.2.3.nupkg.sha512",
|
"C:\\Users\\doria\\.nuget\\packages\\swashbuckle.aspnetcore\\6.2.3\\swashbuckle.aspnetcore.6.2.3.nupkg.sha512",
|
||||||
"C:\\Users\\Dorian\\.nuget\\packages\\swashbuckle.aspnetcore.swagger\\6.2.3\\swashbuckle.aspnetcore.swagger.6.2.3.nupkg.sha512",
|
"C:\\Users\\doria\\.nuget\\packages\\swashbuckle.aspnetcore.swagger\\6.2.3\\swashbuckle.aspnetcore.swagger.6.2.3.nupkg.sha512",
|
||||||
"C:\\Users\\Dorian\\.nuget\\packages\\swashbuckle.aspnetcore.swaggergen\\6.2.3\\swashbuckle.aspnetcore.swaggergen.6.2.3.nupkg.sha512",
|
"C:\\Users\\doria\\.nuget\\packages\\swashbuckle.aspnetcore.swaggergen\\6.2.3\\swashbuckle.aspnetcore.swaggergen.6.2.3.nupkg.sha512",
|
||||||
"C:\\Users\\Dorian\\.nuget\\packages\\swashbuckle.aspnetcore.swaggerui\\6.2.3\\swashbuckle.aspnetcore.swaggerui.6.2.3.nupkg.sha512"
|
"C:\\Users\\doria\\.nuget\\packages\\swashbuckle.aspnetcore.swaggerui\\6.2.3\\swashbuckle.aspnetcore.swaggerui.6.2.3.nupkg.sha512"
|
||||||
],
|
],
|
||||||
"logs": []
|
"logs": []
|
||||||
}
|
}
|
@ -1,25 +0,0 @@
|
|||||||
@using ProjetBlazor.Models
|
|
||||||
<CascadingValue Value="@this">
|
|
||||||
<div class="css-grid">
|
|
||||||
<div><h1>@Localizer["List"]</h1></div>
|
|
||||||
|
|
||||||
<DataGrid TItem="Item"
|
|
||||||
Data="@items"
|
|
||||||
TotalItems="8"
|
|
||||||
PageSize="8"
|
|
||||||
Filterable
|
|
||||||
ShowPager
|
|
||||||
Responsive>
|
|
||||||
<DataGridColumn TItem="Item" Field="@nameof(Item.Id)" Caption="@Localizer["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="@Localizer["Nom"]"/>
|
|
||||||
<DataGridColumn TItem="Item" Field="@nameof(Item.StackSize)" Caption="@Localizer["Stack"]" Filterable="false" Sortable="false"/>
|
|
||||||
</DataGrid>
|
|
||||||
</div>
|
|
||||||
</CascadingValue>
|
|
@ -1,21 +0,0 @@
|
|||||||
@using ProjetBlazor.Models;
|
|
||||||
|
|
||||||
<div
|
|
||||||
class="item"
|
|
||||||
ondragover="event.preventDefault();"
|
|
||||||
draggable="true"
|
|
||||||
@ondragstart="@OnDragStart"
|
|
||||||
@ondrop="@OnDrop"
|
|
||||||
@ondragenter="@OnDragEnter"
|
|
||||||
@ondragleave="@OnDragLeave">
|
|
||||||
|
|
||||||
@if (!string.IsNullOrWhiteSpace(Item.ImageBase64))
|
|
||||||
{
|
|
||||||
<img src="data:image/png;base64, @(Item.ImageBase64)" class="img-thumbnail" title="Item.DisplayName" alt="Item.DisplayName" style="width: 60px" />
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
<img src="images/background.png" class="img-thumbnail" title="Item.DisplayName" alt="Item.DisplayName" style="width: 60px"/>
|
|
||||||
}
|
|
||||||
|
|
||||||
</div>
|
|
@ -1,29 +1,24 @@
|
|||||||
<div ondragover="event.preventDefault();"
|
@using ProjetBlazor.Components;
|
||||||
draggable=""
|
|
||||||
@ondragstart="@OnDragStartAsync"
|
<div class="item"
|
||||||
@ondrop="@OnDropAsync"
|
ondragover="event.preventDefault();"
|
||||||
|
draggable="@(Item == null)"
|
||||||
|
@ondragstart="@OnDragStart"
|
||||||
|
@ondrop="@OnDrop"
|
||||||
@ondragenter="@OnDragEnter"
|
@ondragenter="@OnDragEnter"
|
||||||
@ondragleave="@OnDragLeave">
|
@ondragleave="@OnDragLeave"
|
||||||
@if (Items != null)
|
@ondragend="@OnDragEnd">
|
||||||
|
|
||||||
|
@if (Item != null)
|
||||||
{
|
{
|
||||||
@if(!string.IsNullOrWhiteSpace(Items.item.ImageBase64))
|
<div style="position:relative">
|
||||||
{
|
<img src="data:image/png;base64, @(Item.ImageBase64)" title="@Item.DisplayName" alt="@Item.DisplayName" style="min-width: 64px; max-width: 64px" />
|
||||||
<div class="item">
|
@if (Item.Num > 0)
|
||||||
<img src="data:image/png;base64, @(Items.item.ImageBase64)" title="@Items.item.DisplayName" alt="@Items.item.DisplayName" style="width: 50px; height: 50px" />
|
{
|
||||||
<span class="number-item">@Items.Stack</span>
|
<div class="number">@(
|
||||||
</div>
|
Item.Num
|
||||||
}
|
)</div>
|
||||||
else
|
}
|
||||||
{
|
|
||||||
<div class="item">
|
|
||||||
<img src="images/background.png" title="@Items.item.DisplayName" alt="@Items.item.DisplayName" style="width: 100px; height: 100px"/>
|
|
||||||
<span class="number-item">@Items.Stack</span>
|
|
||||||
</div>
|
|
||||||
}
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
<div class="item">
|
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
</div>
|
</div>
|
||||||
|
@ -1,11 +0,0 @@
|
|||||||
@typeparam TItem
|
|
||||||
|
|
||||||
<div>
|
|
||||||
@if ((Items?.Count ?? 0) != 0)
|
|
||||||
{
|
|
||||||
@foreach (var item in Items)
|
|
||||||
{
|
|
||||||
@ShowTemplate(item);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
</div>
|
|
Loading…
Reference in new issue