From 69aa4ac6136583bdbf73c13d7c7c4beaea738316 Mon Sep 17 00:00:00 2001 From: grossmj Date: Fri, 30 Jun 2023 17:29:56 +1000 Subject: [PATCH] Upgrade ng2-file-upload to v3.0.0 --- package.json | 2 +- .../add-image-dialog/add-image-dialog.component.ts | 4 ++-- .../add-ios-template/add-ios-template.component.ts | 2 +- .../add-iou-template/add-iou-template.component.ts | 2 +- .../add-qemu-vm-template.component.ts | 2 +- .../import-appliance/import-appliance.component.ts | 2 +- .../new-template-dialog.component.ts | 4 ++-- .../import-project-dialog.component.ts | 2 +- yarn.lock | 10 +++++----- 9 files changed, 15 insertions(+), 15 deletions(-) diff --git a/package.json b/package.json index 1917519e..62c26edc 100644 --- a/package.json +++ b/package.json @@ -72,7 +72,7 @@ "material-design-icons": "^3.0.1", "mousetrap": "^1.6.5", "ng-circle-progress": "^1.6.0", - "ng2-file-upload": "^1.4.0", + "ng2-file-upload": "^3.0.0", "ngx-childprocess": "^0.0.6", "ngx-device-detector": "4.0.1", "ngx-electron": "^2.2.0", diff --git a/src/app/components/image-manager/add-image-dialog/add-image-dialog.component.ts b/src/app/components/image-manager/add-image-dialog/add-image-dialog.component.ts index f796ac48..392e6063 100644 --- a/src/app/components/image-manager/add-image-dialog/add-image-dialog.component.ts +++ b/src/app/components/image-manager/add-image-dialog/add-image-dialog.component.ts @@ -36,9 +36,9 @@ export class AddImageDialogComponent implements OnInit { ) {} public ngOnInit() { - this.controller =this.data; + this.controller = this.data; - this.uploaderImage = new FileUploader({}); + this.uploaderImage = new FileUploader({url: ''}); this.uploaderImage.onAfterAddingFile = (file) => { file.withCredentials = false; }; diff --git a/src/app/components/preferences/dynamips/add-ios-template/add-ios-template.component.ts b/src/app/components/preferences/dynamips/add-ios-template/add-ios-template.component.ts index 127e0d9b..54713c33 100644 --- a/src/app/components/preferences/dynamips/add-ios-template/add-ios-template.component.ts +++ b/src/app/components/preferences/dynamips/add-ios-template/add-ios-template.component.ts @@ -85,7 +85,7 @@ export class AddIosTemplateComponent implements OnInit, OnDestroy { } ngOnInit() { - this.uploader = new FileUploader({}); + this.uploader = new FileUploader({url: ''}); this.uploader.onAfterAddingFile = (file) => { file.withCredentials = false; }; diff --git a/src/app/components/preferences/ios-on-unix/add-iou-template/add-iou-template.component.ts b/src/app/components/preferences/ios-on-unix/add-iou-template/add-iou-template.component.ts index e69300fd..5d167976 100644 --- a/src/app/components/preferences/ios-on-unix/add-iou-template/add-iou-template.component.ts +++ b/src/app/components/preferences/ios-on-unix/add-iou-template/add-iou-template.component.ts @@ -62,7 +62,7 @@ export class AddIouTemplateComponent implements OnInit, OnDestroy { } ngOnInit() { - this.uploader = new FileUploader({}); + this.uploader = new FileUploader({url: ''}); this.uploader.onAfterAddingFile = (file) => { file.withCredentials = false; }; diff --git a/src/app/components/preferences/qemu/add-qemu-vm-template/add-qemu-vm-template.component.ts b/src/app/components/preferences/qemu/add-qemu-vm-template/add-qemu-vm-template.component.ts index ac864fd1..cfdc1718 100644 --- a/src/app/components/preferences/qemu/add-qemu-vm-template/add-qemu-vm-template.component.ts +++ b/src/app/components/preferences/qemu/add-qemu-vm-template/add-qemu-vm-template.component.ts @@ -72,7 +72,7 @@ export class AddQemuVmTemplateComponent implements OnInit { } ngOnInit() { - this.uploader = new FileUploader({}); + this.uploader = new FileUploader({url: ''}); this.uploader.onAfterAddingFile = (file) => { file.withCredentials = false; diff --git a/src/app/components/project-map/import-appliance/import-appliance.component.ts b/src/app/components/project-map/import-appliance/import-appliance.component.ts index e5ae84b8..1c6d8aea 100644 --- a/src/app/components/project-map/import-appliance/import-appliance.component.ts +++ b/src/app/components/project-map/import-appliance/import-appliance.component.ts @@ -33,7 +33,7 @@ export class ImportApplianceComponent implements OnInit { ) {} ngOnInit() { - this.uploader = new FileUploader({}); + this.uploader = new FileUploader({url: ''}); this.uploader.onAfterAddingFile = (file) => { file.withCredentials = false; }; diff --git a/src/app/components/project-map/new-template-dialog/new-template-dialog.component.ts b/src/app/components/project-map/new-template-dialog/new-template-dialog.component.ts index dbf921d6..71e6d156 100644 --- a/src/app/components/project-map/new-template-dialog/new-template-dialog.component.ts +++ b/src/app/components/project-map/new-template-dialog/new-template-dialog.component.ts @@ -149,7 +149,7 @@ export class NewTemplateDialogComponent implements OnInit { this.dataSource.paginator = this.paginator; }); - this.uploader = new FileUploader({}); + this.uploader = new FileUploader({url: ''}); this.uploader.onAfterAddingFile = (file) => { file.withCredentials = false; }; @@ -168,7 +168,7 @@ export class NewTemplateDialogComponent implements OnInit { this.getAppliance(item.url); }; - this.uploaderImage = new FileUploader({}); + this.uploaderImage = new FileUploader({url: ''}); this.uploaderImage.onAfterAddingFile = (file) => { file.withCredentials = false; }; diff --git a/src/app/components/projects/import-project-dialog/import-project-dialog.component.ts b/src/app/components/projects/import-project-dialog/import-project-dialog.component.ts index 9a25690d..22d0ff2f 100644 --- a/src/app/components/projects/import-project-dialog/import-project-dialog.component.ts +++ b/src/app/components/projects/import-project-dialog/import-project-dialog.component.ts @@ -52,7 +52,7 @@ export class ImportProjectDialogComponent implements OnInit { } ngOnInit() { - this.uploader = new FileUploader({}); + this.uploader = new FileUploader({url: ''}); this.uploader.onAfterAddingFile = (file) => { file.withCredentials = false; }; diff --git a/yarn.lock b/yarn.lock index 0ac363f1..d89a6ad1 100644 --- a/yarn.lock +++ b/yarn.lock @@ -7094,12 +7094,12 @@ ng-circle-progress@^1.6.0: dependencies: tslib "^2.0.0" -ng2-file-upload@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/ng2-file-upload/-/ng2-file-upload-1.4.0.tgz#8dea28d573234c52af474ad2a4001b335271e5c4" - integrity sha512-3J/KPU/tyh/ad6TFeUbrxX+SihUj0iOEt2Zsg4EX7mB3GFiQscXOfcUOxCkBtPWWWaqt3azrYbVGzsYa3/7NzQ== +ng2-file-upload@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/ng2-file-upload/-/ng2-file-upload-3.0.0.tgz#55ce8752a93cf234a754fe1009ceff40c625582c" + integrity sha512-Xz7Pa9bC9loZ7eu1EzdAyPb3dpLbGe1G1nHgf+YUvtqQepxdQ3OBtd04Jbg3yx8r+nhi8tKGmdajsBAkeA87rA== dependencies: - tslib "^1.9.0" + tslib "^2.3.0" ngx-childprocess@^0.0.6: version "0.0.6"