Skip to content

Commit 69dfe39

Browse files
authored
Merge pull request #3386 from ProgrammeVitam/cp-9.0-15307-remove-ng2-file-upload
CP V9.0 - Story #15307: Clean code - remove unused ng2-file-upload
2 parents 29334f3 + 5204fe5 commit 69dfe39

File tree

12 files changed

+1
-320
lines changed

12 files changed

+1
-320
lines changed

ui/ui-frontend/package-lock.json

Lines changed: 0 additions & 13 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ui/ui-frontend/package.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,6 @@
113113
"luxon": "^3.7.1",
114114
"material-design-icons-iconfont": "^6.7.0",
115115
"moment": "^2.30.1",
116-
"ng2-file-upload": "^8.0.0",
117116
"ngx-color-picker": "^17.0.0",
118117
"ngx-filesize": "^3.0.5",
119118
"ngx-quicklink": "0.4.7",

ui/ui-frontend/projects/pastis/src/app/app.component.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
display: flex;
99
font-size: 15px;
1010
font-family: Mulish;
11+
z-index: 2; // To have header over sidenav in pastis standalone
1112
}
1213
.separator {
1314
margin-top: 100px;

ui/ui-frontend/projects/pastis/src/app/profile/list-profile/list-profile.component.html

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,10 +29,8 @@ <h5>{{ 'APPLICATION.PASTIS_APP.TITLE' | translate }}</h5>
2929
<input
3030
#fileInput
3131
(change)="uploadProfile($event.target.files)"
32-
[uploader]="uploader"
3332
accept=".json, .rng"
3433
class="buttons"
35-
ng2FileSelect
3634
style="display: none"
3735
type="file"
3836
/>

ui/ui-frontend/projects/pastis/src/app/profile/profile.module.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,6 @@ import { MatTabsModule } from '@angular/material/tabs';
8383
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
8484
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
8585
import { TranslateModule } from '@ngx-translate/core';
86-
import { FileUploadModule } from 'ng2-file-upload';
8786
import { VitamUICommonModule, VitamUILibraryModule } from 'vitamui-library';
8887
import { PastisMaterialModule } from '../material.module';
8988
import { UserActionsModule } from '../user-actions/user-actions.module';
@@ -99,7 +98,6 @@ import { ProfilePreviewModule } from './profile-preview/profile-preview.module';
9998
CommonModule,
10099
CoreModule,
101100
FileTreeModule,
102-
FileUploadModule,
103101
FormsModule,
104102
MatIconModule,
105103
MatSlideToggleModule,

ui/ui-frontend/projects/pastis/src/app/shared/pastis-popup-option/pastis-popup-option.component.html

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
(change)="uploadProfile($event.target.files)"
1515
accept=".json, .rng"
1616
class="buttons"
17-
ng2FileSelect
1817
style="display: none"
1918
type="file"
2019
/>

ui/ui-frontend/projects/pastis/src/app/shared/pastis-popup-option/pastis-popup-option.component.ts

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ import { Component, Input, OnDestroy, OnInit } from '@angular/core';
3838
import { MatDialog, MatDialogConfig } from '@angular/material/dialog';
3939
import { ActivatedRoute, Router } from '@angular/router';
4040
import { LangChangeEvent, TranslateService } from '@ngx-translate/core';
41-
import { FileUploader } from 'ng2-file-upload';
4241
import { NgxUiLoaderService } from 'ngx-ui-loader';
4342
import { environment } from 'projects/pastis/src/environments/environment';
4443
import { Subscription } from 'rxjs';
@@ -107,8 +106,6 @@ export class PastisPopupOptionComponent implements OnInit, OnDestroy {
107106
sedaUrl: string;
108107
@Input()
109108
newProfileUrl: string;
110-
@Input()
111-
uploader: FileUploader = new FileUploader({ url: '' });
112109

113110
expanded = false;
114111

ui/ui-frontend/projects/pastis/src/app/user-actions/upload-profile/upload-profile.component.html

Lines changed: 0 additions & 13 deletions
This file was deleted.

ui/ui-frontend/projects/pastis/src/app/user-actions/upload-profile/upload-profile.component.scss

Lines changed: 0 additions & 30 deletions
This file was deleted.

ui/ui-frontend/projects/pastis/src/app/user-actions/upload-profile/upload-profile.component.spec.ts

Lines changed: 0 additions & 115 deletions
This file was deleted.

0 commit comments

Comments
 (0)