Merge branch 'main' into frontend

This commit is contained in:
2024-02-16 14:42:11 +01:00
4 changed files with 17 additions and 6 deletions

View File

@ -27,7 +27,7 @@ export class UploadComponent {
singleDownload: boolean = false;
fileDescription: string = '';
passwordProtected: boolean = false;
password: string = 'nigga123';
password: string = ''; // Generated by the server for only this file
uploadStarted: boolean = false;
uploadProgress = 0; // Real progress
@ -96,7 +96,7 @@ export class UploadComponent {
axios.post(this.developmentStore.getBaseUrl() + 'api/v1/upload', formData, config)
.then(response => {
console.log('Upload completed successfully:', response.data);
console.log('Upload completed successfully!');
console.log(response.data);
this.uploadFinished = true;
})

View File

@ -13,6 +13,7 @@ export class DevelopmentStore {
constructor() {
this.isDevelopment = location.port === '4200';
console.log("Development mode enabled: " + this.isDevelopment);
}
getIsDevelopment(): boolean {