Add image service

This commit is contained in:
Myx
2024-10-12 16:51:25 +02:00
parent 49d1cb8a7a
commit 5bf3041bb0
68 changed files with 1069 additions and 108 deletions

View File

@@ -0,0 +1,29 @@
<div class="card flex justify-center">
<p-panel [header]="title">
<p-fileUpload
name="file"
url="./upload"
(onSelect)="onFileSelect($event)"
[auto]="true"
[accept]="accept"
[previewWidth]="isPreview ? '50px' : '0px'"
>
</p-fileUpload>
<p-table [value]="processedFiles" *ngIf="processedFiles.length != 0">
<ng-template pTemplate="header">
<tr>
<th>Name</th>
<th>Format</th>
<th>Download</th>
</tr>
</ng-template>
<ng-template pTemplate="body" let-file>
<tr>
<td>{{file.name}}</td>
<td>{{file.format}}</td>
<td><a [href]="file.link" download>{{file.name}}</a></td>
</tr>
</ng-template>
</p-table>
</p-panel>
</div>