mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 23:43:01 +00:00
feat: migrate everything to standalone and fix build errors
This commit is contained in:
@@ -1,7 +1,16 @@
|
||||
import { ChangeDetectionStrategy, ChangeDetectorRef, Component, EventEmitter, HostListener, Input, Output, ViewEncapsulation, } from '@angular/core';
|
||||
import {
|
||||
ChangeDetectionStrategy,
|
||||
ChangeDetectorRef,
|
||||
Component,
|
||||
EventEmitter,
|
||||
HostListener,
|
||||
Input,
|
||||
Output,
|
||||
ViewEncapsulation,
|
||||
} from '@angular/core';
|
||||
|
||||
import { of as observableOf } from 'rxjs';
|
||||
import { FileUploader } from 'ng2-file-upload';
|
||||
import { FileUploader, FileUploadModule } from 'ng2-file-upload';
|
||||
import uniqueId from 'lodash/uniqueId';
|
||||
import { ScrollToService } from '@nicky-lenaers/ngx-scroll-to';
|
||||
|
||||
@@ -12,15 +21,18 @@ import { HttpXsrfTokenExtractor } from '@angular/common/http';
|
||||
import { XSRF_COOKIE, XSRF_REQUEST_HEADER, XSRF_RESPONSE_HEADER } from '../../../core/xsrf/xsrf.constants';
|
||||
import { CookieService } from '../../../core/services/cookie.service';
|
||||
import { DragService } from '../../../core/drag.service';
|
||||
import { TranslateModule } from '@ngx-translate/core';
|
||||
import { CommonModule } from '@angular/common';
|
||||
|
||||
@Component({
|
||||
selector: 'ds-uploader',
|
||||
templateUrl: 'uploader.component.html',
|
||||
styleUrls: ['uploader.component.scss'],
|
||||
changeDetection: ChangeDetectionStrategy.Default,
|
||||
encapsulation: ViewEncapsulation.Emulated
|
||||
encapsulation: ViewEncapsulation.Emulated,
|
||||
standalone: true,
|
||||
imports: [TranslateModule, FileUploadModule, CommonModule]
|
||||
})
|
||||
|
||||
export class UploaderComponent {
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user