diff --git a/app/app.module.ts b/app/app.module.ts
index 8988169..532113b 100644
--- a/app/app.module.ts
+++ b/app/app.module.ts
@@ -2,7 +2,6 @@ import {NgModule} from "@angular/core";
import {BrowserModule} from "@angular/platform-browser";
import {FormsModule} from "@angular/forms";
import {AppComponent} from "./app.component";
-import {InputareaComponent} from "./inputarea.component";
@NgModule({
imports: [
@@ -10,8 +9,7 @@ import {InputareaComponent} from "./inputarea.component";
FormsModule
],
declarations: [
- AppComponent,
- InputareaComponent
+ AppComponent
],
bootstrap: [AppComponent]
})
diff --git a/app/conversioninput.ts b/app/conversioninput.ts
deleted file mode 100644
index 9f52cca..0000000
--- a/app/conversioninput.ts
+++ /dev/null
@@ -1,6 +0,0 @@
-import {ConversionType} from "./conversiontype";
-
-export class ConversionInput {
- public content:string;
- public type:ConversionType;
-}
diff --git a/app/conversiontype.ts b/app/conversiontype.ts
deleted file mode 100644
index 4f34586..0000000
--- a/app/conversiontype.ts
+++ /dev/null
@@ -1,28 +0,0 @@
-export enum ConversionType {
- ENCODE_BASE64,
- DECODE_BASE64
-}
-
-export namespace ConversionType {
- export function getName(type:ConversionType):string {
- switch (type) {
- case ConversionType.DECODE_BASE64:
- return "Decode BASE64";
- case ConversionType.ENCODE_BASE64:
- return "Encode BASE64";
- default:
- return "Unknown";
- }
- }
-
- export function of(id:number):ConversionType {
- switch (id) {
- case 0:
- return ConversionType.ENCODE_BASE64;
- case 1:
- return ConversionType.DECODE_BASE64;
- default:
- return undefined;
- }
- }
-}
diff --git a/app/inputarea.component.css b/app/inputarea.component.css
deleted file mode 100644
index e69de29..0000000
diff --git a/app/inputarea.component.html b/app/inputarea.component.html
deleted file mode 100644
index d8e65ee..0000000
--- a/app/inputarea.component.html
+++ /dev/null
@@ -1,15 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
diff --git a/app/inputarea.component.ts b/app/inputarea.component.ts
deleted file mode 100644
index d6164ad..0000000
--- a/app/inputarea.component.ts
+++ /dev/null
@@ -1,47 +0,0 @@
-import {Component, OnInit} from "@angular/core";
-import {ConverterRegistryService} from "./converterregistry.service";
-import {Converter} from "./converter/converter";
-import {InputComponentManagerService} from "./inputcomponentmanager.service";
-
-
-@Component({
- moduleId: module.id,
- selector: "den-inputarea",
- templateUrl: "inputarea.component.html",
- styleUrls: ["inputarea.component.css"]
-})
-export class InputareaComponent extends OnInit {
- public converters:Converter[] = [];
- public content:string = '';
- private selectedConverter:Converter;
-
- constructor(private converterRegistryService:ConverterRegistryService, private inputComponentManagerService:InputComponentManagerService) {
- super();
- }
-
- public convert(e):void {
- this.selectedConverter = this.converterRegistryService.getConverter(e.target.selectedOptions[0].id);
- this.update();
- }
-
- public update():void {
- if (this.selectedConverter !== undefined) {
- let result:string = this.selectedConverter.convert(this.content);
- let nextComponent:InputareaComponent = this.inputComponentManagerService.getNext(this);
- if (nextComponent !== undefined) {
- nextComponent.setContent(result);
- }
- }
- }
-
- public setContent(content:string):void {
- this.content = content;
- this.update();
- }
-
- ngOnInit():void {
- this.converters = this.converterRegistryService.getAllConverters();
- this.selectedConverter = undefined;
- this.inputComponentManagerService.register(this);
- }
-}
diff --git a/app/option.component._t_s_ b/app/option.component._t_s_
deleted file mode 100644
index 1398f21..0000000
--- a/app/option.component._t_s_
+++ /dev/null
@@ -1,12 +0,0 @@
-//import {Component} from "@angular/core";
-//
-//@Component({
-// selector: "den-option",
-// template: `
-//
-// `
-//})
-//export class OptionComponent {
-// public id:string;
-// public displayName:string;
-//}
\ No newline at end of file
diff --git a/app/selector.component._t_s_ b/app/selector.component._t_s_
deleted file mode 100644
index 0c17a7e..0000000
--- a/app/selector.component._t_s_
+++ /dev/null
@@ -1,19 +0,0 @@
-//import {Component} from "@angular/core";
-//
-//import {OptionComponent} from "./option.component";
-//
-//@Component({
-// selector: "den-selector",
-// template: `
-//
-// `,
-// directives: [OptionComponent]
-//})
-//export class SelectorComponent {
-// private options:OptionComponent[];
-//
-//}
\ No newline at end of file