From b129794ff4d4511126331886a3da58baf75c2e7c Mon Sep 17 00:00:00 2001 From: Alexandr Shalaginov Date: Thu, 11 Jul 2024 13:55:50 +0300 Subject: [PATCH] SUPPORT-8381: add ng2-file-upload lib --- frontend/package-lock.json | 5 +++++ frontend/package.json | 1 + frontend/src/ts/modules/app/app.module.ts | 4 +++- frontend/systemjs.config.js | 3 ++- frontend/systemjs.preview.config.js | 3 ++- 5 files changed, 13 insertions(+), 3 deletions(-) diff --git a/frontend/package-lock.json b/frontend/package-lock.json index 18c6c476..ca099d6c 100644 --- a/frontend/package-lock.json +++ b/frontend/package-lock.json @@ -6980,6 +6980,11 @@ "integrity": "sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw==", "dev": true }, + "ng2-file-upload": { + "version": "1.3.0", + "resolved": "https://repo.micord.ru/repository/npm-all/ng2-file-upload/-/ng2-file-upload-1.3.0.tgz", + "integrity": "sha512-Pudxik6LWYsT8hNiEW7RfjgGWAnvfQywxwJYMdt1snTUe+KnlRc/QqPv3QEQW6plXTanuLkYz/TbqilSfSHOsw==" + }, "ngx-cookie": { "version": "3.0.1", "resolved": "https://repo.micord.ru/repository/npm-all/ngx-cookie/-/ngx-cookie-3.0.1.tgz", diff --git a/frontend/package.json b/frontend/package.json index ed8e8738..14acbad2 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -50,6 +50,7 @@ "jsgantt-improved": "2.0.10-cg", "moment": "2.17.1", "moment-timezone": "0.5.11", + "ng2-file-upload": "^1.3.0", "ngx-cookie": "3.0.1", "ngx-international-phone-number": "1.0.6", "ngx-toastr": "10.2.0-cg", diff --git a/frontend/src/ts/modules/app/app.module.ts b/frontend/src/ts/modules/app/app.module.ts index 33d67dba..ae1e2be4 100644 --- a/frontend/src/ts/modules/app/app.module.ts +++ b/frontend/src/ts/modules/app/app.module.ts @@ -30,6 +30,7 @@ import {TaskListComponent} from "./component/task-list.component"; import {ProcessListComponent} from "./component/process-list.component"; import {TaskComponent} from "./component/task.component"; import {TaskNotFoundComponent} from "./component/task-not-found.component"; +import {FileUploadModule} from "ng2-file-upload"; registerLocaleData(localeRu); export const DIRECTIVES = [ @@ -62,7 +63,8 @@ export const DIRECTIVES = [ ComponentsModule, AgGridModule, RouterModule, - InternationalPhoneNumberModule + InternationalPhoneNumberModule, + FileUploadModule ], declarations: [ DIRECTIVES diff --git a/frontend/systemjs.config.js b/frontend/systemjs.config.js index 5b9937f0..706856be 100644 --- a/frontend/systemjs.config.js +++ b/frontend/systemjs.config.js @@ -62,7 +62,8 @@ 'chartjs-adapter-moment': 'npm:chartjs-adapter-moment/dist/chartjs-adapter-moment.js', 'tslib': 'npm:tslib/tslib.js', 'ngx-international-phone-number': 'npm:ngx-international-phone-number/ngx-international-phone-number.umd.js', - 'google-libphonenumber': 'npm:google-libphonenumber/dist/libphonenumber.js' + 'google-libphonenumber': 'npm:google-libphonenumber/dist/libphonenumber.js', + 'ng2-file-upload': 'npm:ng2-file-upload/bundles/ng2-file-upload.umd.js' }, packages: { 'webbpm': { main: 'main', defaultExtension: 'js'}, diff --git a/frontend/systemjs.preview.config.js b/frontend/systemjs.preview.config.js index d2c44870..1c70ed56 100644 --- a/frontend/systemjs.preview.config.js +++ b/frontend/systemjs.preview.config.js @@ -62,7 +62,8 @@ 'chartjs-adapter-moment': 'npm:chartjs-adapter-moment/dist/chartjs-adapter-moment.js', 'tslib': 'npm:tslib/tslib.js', 'ngx-international-phone-number': 'npm:ngx-international-phone-number/ngx-international-phone-number.umd.js', - 'google-libphonenumber': 'npm:google-libphonenumber/dist/libphonenumber.js' + 'google-libphonenumber': 'npm:google-libphonenumber/dist/libphonenumber.js', + 'ng2-file-upload': 'npm:ng2-file-upload/bundles/ng2-file-upload.umd.js' }, packages: { 'preview': { main: './modules/preview/preview.main', defaultExtension: 'js'},