Lint pass

This commit is contained in:
marko1616
2024-08-23 11:42:53 +08:00
parent d6c2c5de31
commit 4d60ae2e90
5 changed files with 10 additions and 10 deletions

View File

@@ -90,19 +90,19 @@ export interface FileUploadOptions {
export class DirectoryUpload {
private childrens: (FileUpload|DirectoryUpload)[] = []
constructor(private name = '') {
constructor (private name = '') {
// Just set name for now.
}
getName () {
getName (): string {
return this.name
}
getChildrens () {
getChildrens (): (FileUpload|DirectoryUpload)[] {
return this.childrens
}
pushChildren (item: FileUpload|DirectoryUpload) {
pushChildren (item: FileUpload|DirectoryUpload): void {
this.childrens.push(item)
}
}

View File

@@ -29,7 +29,7 @@ export class DropZoneDirective implements AfterViewInit {
})
this.el.nativeElement.addEventListener('drop', async (event: DragEvent) => {
this.removeHint()
this.transfer.emit(await this.platform.startUploadFromDragEvent(event, true))
this.transfer.emit(await this.platform.startUploadFromDragEvent(event, true))
})
this.el.nativeElement.addEventListener('dragleave', () => {
this.removeHint()