S3 Storage korrektur
All checks were successful
Build & Deploy PLDpro.Web Test to 192.168.1.100 / build-and-deploy (push) Successful in 1m9s
All checks were successful
Build & Deploy PLDpro.Web Test to 192.168.1.100 / build-and-deploy (push) Successful in 1m9s
This commit is contained in:
@@ -9,14 +9,14 @@
|
|||||||
<MudText Typo="Typo.h4" GutterBottom="true">S3 Storage</MudText>
|
<MudText Typo="Typo.h4" GutterBottom="true">S3 Storage</MudText>
|
||||||
|
|
||||||
<MudPaper Class="pa-4 mb-4" Elevation="0">
|
<MudPaper Class="pa-4 mb-4" Elevation="0">
|
||||||
<MudStack Row="true" Spacing="2" AlignItems="center">
|
<MudStack Row="true" Spacing="2">
|
||||||
<MudText Typo="Typo.h6">Buckets</MudText>
|
<MudText Typo="Typo.h6">Buckets</MudText>
|
||||||
<MudSpacer />
|
<MudSpacer />
|
||||||
<MudTextField @bind-Value="newBucketName" Placeholder="neuer Bucketname" Variant="Variant.Outlined" />
|
<MudTextField @bind-Value="newBucketName" Placeholder="neuer Bucketname" Variant="Variant.Outlined" />
|
||||||
<MudButton Color="Color.Primary" Variant="Variant.Filled" OnClick="CreateBucket">Erstellen</MudButton>
|
<MudButton Color="Color.Primary" Variant="Variant.Filled" OnClick="CreateBucket">Erstellen</MudButton>
|
||||||
</MudStack>
|
</MudStack>
|
||||||
|
|
||||||
<MudList Dense="true" Class="mt-2">
|
<MudList T="BucketVm" Dense="true" Class="mt-2">
|
||||||
@if (buckets is null)
|
@if (buckets is null)
|
||||||
{
|
{
|
||||||
<MudListItem>(lädt...)</MudListItem>
|
<MudListItem>(lädt...)</MudListItem>
|
||||||
@@ -42,7 +42,7 @@
|
|||||||
@if (!string.IsNullOrEmpty(selectedBucket))
|
@if (!string.IsNullOrEmpty(selectedBucket))
|
||||||
{
|
{
|
||||||
<MudPaper Class="pa-4" Elevation="0">
|
<MudPaper Class="pa-4" Elevation="0">
|
||||||
<MudStack Row="true" Spacing="2" AlignItems="center">
|
<MudStack Row="true" Spacing="2">
|
||||||
<MudText Typo="Typo.h6">Objekte in '@selectedBucket'</MudText>
|
<MudText Typo="Typo.h6">Objekte in '@selectedBucket'</MudText>
|
||||||
<MudSpacer />
|
<MudSpacer />
|
||||||
<InputFile OnChange="OnFilesSelected" />
|
<InputFile OnChange="OnFilesSelected" />
|
||||||
|
|||||||
@@ -35,7 +35,7 @@ public sealed class S3StorageService(IAmazonS3 s3) : IStorageService
|
|||||||
}, ct);
|
}, ct);
|
||||||
|
|
||||||
items.AddRange(resp.S3Objects.Select(o => new ObjectItem(o.Key, o.Size, o.LastModified)));
|
items.AddRange(resp.S3Objects.Select(o => new ObjectItem(o.Key, o.Size, o.LastModified)));
|
||||||
token = resp.IsTruncated ? resp.NextContinuationToken : null;
|
token = (bool)resp.IsTruncated ? resp.NextContinuationToken : null;
|
||||||
} while (token is not null);
|
} while (token is not null);
|
||||||
|
|
||||||
return items;
|
return items;
|
||||||
|
|||||||
Reference in New Issue
Block a user