Browse Source
Task/migrate file drop directive to standalone (#5646)
* Migrate file drop directive to standalone
* Update changelog
pull/5570/head
SK Akram
2 weeks ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with
5 additions and
14 deletions
-
CHANGELOG.md
-
apps/client/src/app/directives/file-drop/file-drop.directive.ts
-
apps/client/src/app/directives/file-drop/file-drop.module.ts
-
apps/client/src/app/pages/portfolio/activities/import-activities-dialog/import-activities-dialog.component.ts
|
|
@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 |
|
|
|
- Improved the usability of the _Cancel_ / _Close_ buttons in the create watchlist item dialog |
|
|
|
- Refactored the `fireWealth` from `number` type to a structured object in the summary of the portfolio details endpoint |
|
|
|
- Refactored the _Open Startup_ (`/open`) page to standalone |
|
|
|
- Refactored the file drop directive to standalone |
|
|
|
- Refactored the symbol pipe to standalone |
|
|
|
|
|
|
|
### Fixed |
|
|
|
|
|
@ -1,10 +1,9 @@ |
|
|
|
import { Directive, EventEmitter, HostListener, Output } from '@angular/core'; |
|
|
|
|
|
|
|
@Directive({ |
|
|
|
selector: '[gfFileDrop]', |
|
|
|
standalone: false |
|
|
|
selector: '[gfFileDrop]' |
|
|
|
}) |
|
|
|
export class FileDropDirective { |
|
|
|
export class GfFileDropDirective { |
|
|
|
@Output() filesDropped = new EventEmitter<FileList>(); |
|
|
|
|
|
|
|
@HostListener('dragenter', ['$event']) onDragEnter(event: DragEvent) { |
|
|
|
|
|
@ -1,9 +0,0 @@ |
|
|
|
import { NgModule } from '@angular/core'; |
|
|
|
|
|
|
|
import { FileDropDirective } from './file-drop.directive'; |
|
|
|
|
|
|
|
@NgModule({ |
|
|
|
declarations: [FileDropDirective], |
|
|
|
exports: [FileDropDirective] |
|
|
|
}) |
|
|
|
export class GfFileDropModule {} |
|
|
@ -4,7 +4,7 @@ import { CreateAssetProfileWithMarketDataDto } from '@ghostfolio/api/app/import/ |
|
|
|
import { Activity } from '@ghostfolio/api/app/order/interfaces/activities.interface'; |
|
|
|
import { GfDialogFooterComponent } from '@ghostfolio/client/components/dialog-footer/dialog-footer.component'; |
|
|
|
import { GfDialogHeaderComponent } from '@ghostfolio/client/components/dialog-header/dialog-header.component'; |
|
|
|
import { GfFileDropModule } from '@ghostfolio/client/directives/file-drop/file-drop.module'; |
|
|
|
import { GfFileDropDirective } from '@ghostfolio/client/directives/file-drop/file-drop.directive'; |
|
|
|
import { GfSymbolPipe } from '@ghostfolio/client/pipes/symbol/symbol.pipe'; |
|
|
|
import { DataService } from '@ghostfolio/client/services/data.service'; |
|
|
|
import { ImportActivitiesService } from '@ghostfolio/client/services/import-activities.service'; |
|
|
@ -62,7 +62,7 @@ import { ImportActivitiesDialogParams } from './interfaces/interfaces'; |
|
|
|
GfActivitiesTableComponent, |
|
|
|
GfDialogFooterComponent, |
|
|
|
GfDialogHeaderComponent, |
|
|
|
GfFileDropModule, |
|
|
|
GfFileDropDirective, |
|
|
|
GfSymbolPipe, |
|
|
|
IonIcon, |
|
|
|
MatButtonModule, |
|
|
|