From 4609bcf5012fad9814b021ddce77b793eda4c55d Mon Sep 17 00:00:00 2001 From: Hagen <hagen.dressler@mni.thm.de> Date: Tue, 6 Mar 2018 14:46:34 +0100 Subject: [PATCH] Rename component comment to comment-creator --- src/app/app.module.ts | 4 ++-- .../comment-creator.component.html} | 0 .../comment-creator.component.scss} | 0 .../comment-creator.component.spec.ts} | 12 ++++++------ .../comment-creator/comment-creator.component.ts | 15 +++++++++++++++ src/app/comment/comment.component.ts | 15 --------------- 6 files changed, 23 insertions(+), 23 deletions(-) rename src/app/{comment/comment.component.html => comment-creator/comment-creator.component.html} (100%) rename src/app/{comment/comment.component.scss => comment-creator/comment-creator.component.scss} (100%) rename src/app/{comment/comment.component.spec.ts => comment-creator/comment-creator.component.spec.ts} (52%) create mode 100644 src/app/comment-creator/comment-creator.component.ts delete mode 100644 src/app/comment/comment.component.ts diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 3e5072769..66b562f9c 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -8,7 +8,7 @@ import { JoinRoomComponent } from './join-room/join-room.component'; import { LoginComponent } from './login/login.component'; import { RegisterComponent } from './register/register.component'; import { PasswordResetComponent } from './password-reset/password-reset.component'; -import { CommentComponent } from './comment/comment.component'; +import { CommentCreatorComponent } from './comment-creator/comment-creator.component'; import { AppRoutingModule } from './app-routing.module'; import { FormsModule, ReactiveFormsModule } from '@angular/forms'; @@ -77,7 +77,7 @@ import { CreateCommentComponent } from './create-comment/create-comment.componen RoomListComponent, CreatorHomeScreenComponent, CreateCommentComponent, - CommentComponent + CommentCreatorComponent ], entryComponents: [ RegisterComponent, diff --git a/src/app/comment/comment.component.html b/src/app/comment-creator/comment-creator.component.html similarity index 100% rename from src/app/comment/comment.component.html rename to src/app/comment-creator/comment-creator.component.html diff --git a/src/app/comment/comment.component.scss b/src/app/comment-creator/comment-creator.component.scss similarity index 100% rename from src/app/comment/comment.component.scss rename to src/app/comment-creator/comment-creator.component.scss diff --git a/src/app/comment/comment.component.spec.ts b/src/app/comment-creator/comment-creator.component.spec.ts similarity index 52% rename from src/app/comment/comment.component.spec.ts rename to src/app/comment-creator/comment-creator.component.spec.ts index bcac3f25f..4f2088ee8 100644 --- a/src/app/comment/comment.component.spec.ts +++ b/src/app/comment-creator/comment-creator.component.spec.ts @@ -1,20 +1,20 @@ import { async, ComponentFixture, TestBed } from '@angular/core/testing'; -import { CommentComponent } from './comment.component'; +import { CommentCreatorComponent } from './comment-creator.component'; -describe('CommentComponent', () => { - let component: CommentComponent; - let fixture: ComponentFixture<CommentComponent>; +describe('CommentCreatorComponent', () => { + let component: CommentCreatorComponent; + let fixture: ComponentFixture<CommentCreatorComponent>; beforeEach(async(() => { TestBed.configureTestingModule({ - declarations: [ CommentComponent ] + declarations: [ CommentCreatorComponent ] }) .compileComponents(); })); beforeEach(() => { - fixture = TestBed.createComponent(CommentComponent); + fixture = TestBed.createComponent(CommentCreatorComponent); component = fixture.componentInstance; fixture.detectChanges(); }); diff --git a/src/app/comment-creator/comment-creator.component.ts b/src/app/comment-creator/comment-creator.component.ts new file mode 100644 index 000000000..168d0662d --- /dev/null +++ b/src/app/comment-creator/comment-creator.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-comment-creator', + templateUrl: './comment-creator.component.html', + styleUrls: ['./comment-creator.component.scss'] +}) +export class CommentCreatorComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} diff --git a/src/app/comment/comment.component.ts b/src/app/comment/comment.component.ts deleted file mode 100644 index 0d47e825d..000000000 --- a/src/app/comment/comment.component.ts +++ /dev/null @@ -1,15 +0,0 @@ -import { Component, OnInit } from '@angular/core'; - -@Component({ - selector: 'app-comment', - templateUrl: './comment.component.html', - styleUrls: ['./comment.component.scss'] -}) -export class CommentComponent implements OnInit { - - constructor() { } - - ngOnInit() { - } - -} -- GitLab