Fix frontpage and pin functionality (#11)

Co-authored-by: Myx <info@azaaxin.com>
This commit is contained in:
2025-01-25 05:57:18 +01:00
committed by GitHub
parent 7e60850c7a
commit 28e55a5a6b
31 changed files with 372 additions and 60 deletions

View File

@@ -1,5 +1,5 @@
<app-dual-textarea
title="base64 to text"
title="Base64 to Text"
topPlaceholder="Enter base64 here..."
bottomPlaceholder="Text will appear here..."
[topValue]="convertedBase64"

View File

@@ -1,6 +1,7 @@
<app-file-converter
title="Image converter"
method="post"
privacyText="This tool requires internet access to convert images. The images are processed on the servers and are not stored on any disk."
[isPreview]="false"
[fileTypeSelector]="true"
[processedFiles]="processedFiles"
@@ -13,5 +14,5 @@
(fileSelected)="onFileSelected($event)"
(selectedFormat)="onFormatSelected($event)"
(upload)="onUploadClicked()"
>
>
</app-file-converter>

View File

@@ -8,12 +8,20 @@ import { CommonModule } from '@angular/common';
import { FileConverterComponent } from "../../../app/shared/upload/file-converter.component";
import { Format, ProcessedFile } from '../../../app/models/conversion.model';
import { HttpHeaders } from '@angular/common/http';
import { CardModule } from 'primeng/card';
@Component({
selector: 'app-image-converter',
templateUrl: 'image-converter.component.html',
styleUrls: ['image-converter.component.scss'],
imports: [DropdownModule, AutoCompleteModule, FormsModule, CommonModule, FileConverterComponent]
imports: [
DropdownModule,
AutoCompleteModule,
FormsModule,
CommonModule,
FileConverterComponent,
CardModule
]
})
export class ImageConverterComponent implements OnInit, OnDestroy {
constructor(private ImageService: ImageService) { }
@@ -65,7 +73,6 @@ export class ImageConverterComponent implements OnInit, OnDestroy {
);
}
}
onFormatSelected(format: string) {
this.selectedFormat = format;