Skip to content

Commit

Permalink
Reorganized file structure/renames
Browse files Browse the repository at this point in the history
  • Loading branch information
facetrollex committed May 10, 2019
1 parent 8b12372 commit 45f399c
Show file tree
Hide file tree
Showing 8 changed files with 17 additions and 20 deletions.
6 changes: 4 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "fctrlx-angular-file-reader",
"version": "1.0.3",
"version": "1.0.4",
"description": "Angular library that helps convert file (from input[type=file]) to base64/arrayBuffer/text using FileReader API.",
"keywords": [
"angular",
Expand All @@ -14,7 +14,9 @@
"array-buffer",
"filetobase64",
"file-to-base64",
"file-to-array"
"file-to-array-buffer",
"file-to-text",
"filetotext"
],
"homepage": "https://github.com/facetrollex/fctrlx-angular-file-reader",
"author": {
Expand Down
2 changes: 1 addition & 1 deletion src/lib/Base.ts → src/lib/directives/Base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import {
OnDestroy,
OnInit,
} from '@angular/core';
import { Converted } from './converted';
import { Converted } from '../models/converted';

export class Base implements OnInit, OnDestroy {
public type: string;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Base } from './Base';
@Directive({
selector: '[fileToArrBuf]',
})
export class FctrlxFileToArrayBufferDirective extends Base {
export class FileToArrayBuffer extends Base {
@Input() files: any;
@Input() type: string;
@Input() multiple: undefined | null | string | boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Base } from './Base';
@Directive({
selector: '[fileToBase64]',
})
export class FctrlxFileToBase64Directive extends Base {
export class FileToBase64 extends Base {
@Input() files: any;
@Input() type: string;
@Input() multiple: undefined | null | string | boolean;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import { Base } from './Base';
@Directive({
selector: '[fileToText]',
})
export class FctrlxFileToTextDirective extends Base {
export class FileToText extends Base {
@Input() files: any;
@Input() type: string;
@Input() multiple: undefined | null | string | boolean;
Expand Down
18 changes: 9 additions & 9 deletions src/lib/fctrlx-angular-file-reader.module.ts
Original file line number Diff line number Diff line change
@@ -1,19 +1,19 @@
import { NgModule } from '@angular/core';
import { FctrlxFileToBase64Directive } from './fctrlx-file-to-base64.directive';
import { FctrlxFileToTextDirective } from './fctrlx-file-to-text.directive';
import { FctrlxFileToArrayBufferDirective } from './fctrlx-file-to-array-buffer.directive';
import { FileToBase64 } from './directives/file-to-base64';
import { FileToText } from './directives/file-to-text';
import { FileToArrayBuffer } from './directives/file-to-array-buffer';

@NgModule({
imports: [],
declarations: [
FctrlxFileToBase64Directive,
FctrlxFileToTextDirective,
FctrlxFileToArrayBufferDirective,
FileToBase64,
FileToText,
FileToArrayBuffer,
],
exports: [
FctrlxFileToBase64Directive,
FctrlxFileToTextDirective,
FctrlxFileToArrayBufferDirective,
FileToBase64,
FileToText,
FileToArrayBuffer,
],
})
export class FctrlxAngularFileReader { }
File renamed without changes.
5 changes: 0 additions & 5 deletions src/public-api.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,3 @@
*/

export * from './lib/fctrlx-angular-file-reader.module';
export * from './lib/fctrlx-file-to-base64.directive';
export * from './lib/fctrlx-file-to-text.directive';
export * from './lib/fctrlx-file-to-array-buffer.directive';
export * from './lib/Base';
export * from './lib/converted';

0 comments on commit 45f399c

Please sign in to comment.