5 Commits

Author SHA1 Message Date
Penry 9204fed54c fix: #72 fixed that the height of the PrivateEntityCard.razor changes when don't having all dropdown menues (#74)
Build Docker Linux ARM64 / build-docker-linux-arm64 (push) Successful in 1m25s
Build Docker Linux ARM64 Release / build-docker-linux-arm64-release (push) Successful in 25s
Reviewed-on: #74
2026-06-12 20:48:42 +02:00
Penry 406d0f5652 fix: #60 fixed that the Global or Private Entity Card Title chnages height of the Card (#73)
Build Docker Linux ARM64 / build-docker-linux-arm64 (push) Successful in 2m54s
Reviewed-on: #73
2026-06-12 20:05:05 +02:00
Penry 9cd651bdfe Fixed GlobalEntity Problems and removed Season and Episode on Movie Entitys (#70)
Build Docker Linux ARM64 / build-docker-linux-arm64 (push) Successful in 1m22s
Reviewed-on: #70
Fixed Issue #63
Fixed Issue #68
Fixed Issue #69
2026-06-07 22:02:10 +02:00
Penry 96336fd637 Fixed Workflow Syntax (#67)
Build Docker Linux ARM64 / build-docker-linux-arm64 (push) Successful in 38s
Reviewed-on: #67
2026-06-07 21:21:30 +02:00
Penry e7d1b4b524 Merge pull request 'Adapted Nightly and Release Workflow' (#66) from Test-Branch into main
Build Docker Linux ARM64 / build-docker-linux-arm64 (push) Failing after 8s
Reviewed-on: #66
2026-06-07 21:16:31 +02:00
4 changed files with 58 additions and 50 deletions
@@ -5,7 +5,7 @@
<MudCardMedia Image="@GlobalEntity.PicturePath" Height="400" Style="object-fit: contain;"/>
</MudPaper>
<MudCardContent>
<MudText Typo="Typo.h5">@GlobalEntity.Title</MudText>
<MudText Typo="Typo.h5" Style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap;">@GlobalEntity.Title</MudText>
</MudCardContent>
<MudCardActions>
<MudTooltip Text="Add to shared List">
@@ -120,6 +120,9 @@
//Picture
private IBrowserFile? _pictureFile;
private string _pictureBase64;
private string? _pictureContentType;
private string? _pictureExtension;
private class GlobalEntityFormModel
{
@@ -164,9 +167,12 @@
await using var stream = _pictureFile.OpenReadStream(5242880);
using var ms = new MemoryStream();
await stream.CopyToAsync(ms);
_pictureContentType = _pictureFile.ContentType;
_pictureExtension = Path.GetExtension(_pictureFile.Name);
var base64 = Convert.ToBase64String(ms.ToArray());
_imagePreview = $"data:{_pictureFile.ContentType};base64,{base64}";
_pictureBase64 = Convert.ToBase64String(ms.ToArray());
_imagePreview = $"data:{_pictureFile.ContentType};base64,{_pictureBase64}";
}
private void Cancel() => MudDialog.Cancel();
@@ -191,13 +197,10 @@
try
{
string fileName = $"{Guid.NewGuid()}{Path.GetExtension(_pictureFile.Name)}";
string fileName = $"{Guid.NewGuid()}{_pictureExtension}";
string picturePath = Path.Combine("wwwroot", "Pictures", fileName);
await using (var fs = File.Create(picturePath))
{
await _pictureFile.OpenReadStream(maxAllowedSize: 10_000_000).CopyToAsync(fs);
}
await File.WriteAllBytesAsync(picturePath, Convert.FromBase64String(_pictureBase64));
var entity = new GlobalEntity
{
@@ -151,7 +151,7 @@
private async Task OnNewEntity(GlobalEntity entity)
{
_globalEntities.Add(entity);
_globalEntities.Insert(0, entity);
await RefreshPage();
}
@@ -17,7 +17,7 @@
<MudStack Class="pa-3" Spacing="2">
<!--<editor-fold desc="Options">-->
<MudStack Row="true" AlignItems="AlignItems.Center" Justify="Justify.SpaceBetween">
<MudText Typo="Typo.h6">@PrivateEntity.GlobalEntity.Title</MudText>
<MudText Typo="Typo.h6" Style="overflow: hidden; text-overflow: ellipsis; white-space: nowrap">@PrivateEntity.GlobalEntity.Title</MudText>
<MudMenu Icon="@Icons.Material.Filled.MoreVert" Color="Color.Default" Dense="true">
<MudMenuItem>Edit</MudMenuItem>
<MudMenuItem OnClick="@(() => OnRemove.InvokeAsync())">Remove</MudMenuItem>
@@ -39,46 +39,51 @@
}
</MudSelect>
<!--</editor-fold>-->
<!-- @if (PrivateEntity.GlobalEntity.MediaType.Name == "Series" || PrivateEntity.GlobalEntity.MediaType.Name == "Anime") -->
<!--{-->
<!--<editor-fold desc="Dropdown-Season">-->
<MudSelect
T="int?"
Value="PrivateEntity.Season"
ValueChanged="@(newSeason => OnSeasonChange.InvokeAsync(newSeason))"
Dense="true"
Variant="Variant.Outlined"
Label=""
Class="@(PrivateEntity.GlobalEntity.MediaType.Name == "Series" ? "" : "invisible")">
@{
int? currentSeason = PrivateEntity.Season ?? 1;
int? startOffsetSeason = currentSeason > 1 ? -1 : 0;
}
@for (int? i = startOffsetSeason; i <= 5; i++)
{
int? season = currentSeason + i;
<MudSelectItem Value="@season">Staffel @season</MudSelectItem>
}
</MudSelect>
<!--</editor-fold>-->
<!--<editor-fold desc="Dropdown-Season">-->
<MudSelect
T="int?"
Value="PrivateEntity.Season"
ValueChanged="@(newSeason => OnSeasonChange.InvokeAsync(newSeason))"
Dense="true"
Variant="Variant.Outlined"
Label="">
@{
int? currentSeason = PrivateEntity.Season ?? 1;
int? startOffsetSeason = currentSeason > 1 ? -1 : 0;
}
@for (int? i = startOffsetSeason; i <= 5; i++)
{
int? season = currentSeason + i;
<MudSelectItem Value="@season">Staffel @season</MudSelectItem>
}
</MudSelect>
<!--</editor-fold>-->
<!--<editor-fold desc="Dropdown-Episode">-->
<MudSelect
T="int?"
Value="PrivateEntity.Episode"
ValueChanged="@(newEpisode => OnEpisodeChange.InvokeAsync(newEpisode))"
Dense="true"
Variant="Variant.Outlined"
Label="">
@{
int? currentEpisode = PrivateEntity.Episode ?? 1;
int? startOffsetEpisode = currentEpisode > 1 ? -1 : 0;
}
@for (int? i = startOffsetEpisode; i <= 5; i++)
{
int? episode = currentEpisode + i;
<MudSelectItem Value="@episode">Episode @episode</MudSelectItem>
}
</MudSelect>
<!--</editor-fold>-->
<!--<editor-fold desc="Dropdown-Episode">-->
<MudSelect
T="int?"
Value="PrivateEntity.Episode"
ValueChanged="@(newEpisode => OnEpisodeChange.InvokeAsync(newEpisode))"
Dense="true"
Variant="Variant.Outlined"
Label=""
Class="@(PrivateEntity.GlobalEntity.MediaType.Name == "Series" ? "" : "invisible")">
@{
int? currentEpisode = PrivateEntity.Episode ?? 1;
int? startOffsetEpisode = currentEpisode > 1 ? -1 : 0;
}
@for (int? i = startOffsetEpisode; i <= 5; i++)
{
int? episode = currentEpisode + i;
<MudSelectItem Value="@episode">Episode @episode</MudSelectItem>
}
</MudSelect>
<!--</editor-fold>-->
<!--}-->
<!--<editor-fold desc="Details Button">-->
<MudStack Row="true" Justify="Justify.FlexEnd">