Skip to content

Commit 45f399c

Browse files
committed
Reorganized file structure/renames
1 parent 8b12372 commit 45f399c

File tree

8 files changed

+17
-20
lines changed

8 files changed

+17
-20
lines changed

package.json

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "fctrlx-angular-file-reader",
3-
"version": "1.0.3",
3+
"version": "1.0.4",
44
"description": "Angular library that helps convert file (from input[type=file]) to base64/arrayBuffer/text using FileReader API.",
55
"keywords": [
66
"angular",
@@ -14,7 +14,9 @@
1414
"array-buffer",
1515
"filetobase64",
1616
"file-to-base64",
17-
"file-to-array"
17+
"file-to-array-buffer",
18+
"file-to-text",
19+
"filetotext"
1820
],
1921
"homepage": "https://github.com/facetrollex/fctrlx-angular-file-reader",
2022
"author": {

src/lib/Base.ts renamed to src/lib/directives/Base.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import {
44
OnDestroy,
55
OnInit,
66
} from '@angular/core';
7-
import { Converted } from './converted';
7+
import { Converted } from '../models/converted';
88

99
export class Base implements OnInit, OnDestroy {
1010
public type: string;

src/lib/fctrlx-file-to-array-buffer.directive.ts renamed to src/lib/directives/file-to-array-buffer.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Base } from './Base';
1010
@Directive({
1111
selector: '[fileToArrBuf]',
1212
})
13-
export class FctrlxFileToArrayBufferDirective extends Base {
13+
export class FileToArrayBuffer extends Base {
1414
@Input() files: any;
1515
@Input() type: string;
1616
@Input() multiple: undefined | null | string | boolean;

src/lib/fctrlx-file-to-base64.directive.ts renamed to src/lib/directives/file-to-base64.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Base } from './Base';
1010
@Directive({
1111
selector: '[fileToBase64]',
1212
})
13-
export class FctrlxFileToBase64Directive extends Base {
13+
export class FileToBase64 extends Base {
1414
@Input() files: any;
1515
@Input() type: string;
1616
@Input() multiple: undefined | null | string | boolean;

src/lib/fctrlx-file-to-text.directive.ts renamed to src/lib/directives/file-to-text.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ import { Base } from './Base';
1010
@Directive({
1111
selector: '[fileToText]',
1212
})
13-
export class FctrlxFileToTextDirective extends Base {
13+
export class FileToText extends Base {
1414
@Input() files: any;
1515
@Input() type: string;
1616
@Input() multiple: undefined | null | string | boolean;
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
11
import { NgModule } from '@angular/core';
2-
import { FctrlxFileToBase64Directive } from './fctrlx-file-to-base64.directive';
3-
import { FctrlxFileToTextDirective } from './fctrlx-file-to-text.directive';
4-
import { FctrlxFileToArrayBufferDirective } from './fctrlx-file-to-array-buffer.directive';
2+
import { FileToBase64 } from './directives/file-to-base64';
3+
import { FileToText } from './directives/file-to-text';
4+
import { FileToArrayBuffer } from './directives/file-to-array-buffer';
55

66
@NgModule({
77
imports: [],
88
declarations: [
9-
FctrlxFileToBase64Directive,
10-
FctrlxFileToTextDirective,
11-
FctrlxFileToArrayBufferDirective,
9+
FileToBase64,
10+
FileToText,
11+
FileToArrayBuffer,
1212
],
1313
exports: [
14-
FctrlxFileToBase64Directive,
15-
FctrlxFileToTextDirective,
16-
FctrlxFileToArrayBufferDirective,
14+
FileToBase64,
15+
FileToText,
16+
FileToArrayBuffer,
1717
],
1818
})
1919
export class FctrlxAngularFileReader { }
File renamed without changes.

src/public-api.ts

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,3 @@
33
*/
44

55
export * from './lib/fctrlx-angular-file-reader.module';
6-
export * from './lib/fctrlx-file-to-base64.directive';
7-
export * from './lib/fctrlx-file-to-text.directive';
8-
export * from './lib/fctrlx-file-to-array-buffer.directive';
9-
export * from './lib/Base';
10-
export * from './lib/converted';

0 commit comments

Comments
 (0)