From e49b5f0e189c2369c95ab82aeb78bb76d0d9869d Mon Sep 17 00:00:00 2001
From: Lukas Kimpel <lukas.kimpel@mni.thm.de>
Date: Tue, 20 Mar 2018 15:10:45 +0100
Subject: [PATCH] Rename answer-statistics to new convention

---
 src/app/app-routing.module.ts                                 | 4 ++--
 src/app/app.module.ts                                         | 2 +-
 .../statistics.component.html}                                | 0
 .../statistics.component.scss}                                | 0
 .../statistics.component.spec.ts}                             | 2 +-
 .../statistics.component.ts}                                  | 4 ++--
 6 files changed, 6 insertions(+), 6 deletions(-)
 rename src/app/components/fragments/{answer-statistics/answer-statistics.component.html => statistics/statistics.component.html} (100%)
 rename src/app/components/fragments/{answer-statistics/answer-statistics.component.scss => statistics/statistics.component.scss} (100%)
 rename src/app/components/fragments/{answer-statistics/answer-statistics.component.spec.ts => statistics/statistics.component.spec.ts} (89%)
 rename src/app/components/fragments/{answer-statistics/answer-statistics.component.ts => statistics/statistics.component.ts} (97%)

diff --git a/src/app/app-routing.module.ts b/src/app/app-routing.module.ts
index 38fd8da0e..c0f78ea26 100644
--- a/src/app/app-routing.module.ts
+++ b/src/app/app-routing.module.ts
@@ -12,7 +12,7 @@ import { CreatorRoomComponent } from './components/pages/creator-room/creator-ro
 import { CommentListComponent } from './components/fragments/comment-list/comment-list.component';
 import { ContentListComponent } from './components/fragments/content-list/content-list.component';
 import { ContentDetailComponent } from './components/pages/content-detail/content-detail.component';
-import { AnswerStatisticsComponent } from './components/fragments/answer-statistics/answer-statistics.component';
+import { AnswerStatisticsComponent } from './components/fragments/statistics/statistics.component';
 import { AddContentComponent } from './components/pages/add-content/add-content.component';
 import {
   ParticipantContentCarouselPageComponent
@@ -47,7 +47,7 @@ const routes: Routes = [
     data: { roles: [UserRole.CREATOR] }
   },
   {
-    path: 'creator/room/:roomId/answer-statistics',
+    path: 'creator/room/:roomId/statistics',
     component: AnswerStatisticsComponent,
     canActivate: [AuthenticationGuard],
     data: { roles: [UserRole.CREATOR] }
diff --git a/src/app/app.module.ts b/src/app/app.module.ts
index bba729bc9..90120bb56 100644
--- a/src/app/app.module.ts
+++ b/src/app/app.module.ts
@@ -69,7 +69,7 @@ import { ContentService } from './services/http/content.service';
 import { ContentAnswersListComponent } from './components/fragments/content-answers-list/content-answers-list.component';
 import { ContentAnswerService } from './services/http/content-answer.service';
 import { RoomDeletionComponent } from './components/dialogs/room-delete/room-delete.component';
-import { AnswerStatisticsComponent } from './components/fragments/answer-statistics/answer-statistics.component';
+import { AnswerStatisticsComponent } from './components/fragments/statistics/statistics.component';
 import { RoomModificationComponent } from './components/dialogs/room-edit/room-edit.component';
 import { ParticipantChoiceContentComponent } from './components/fragments/participant-choice-content/participant-choice-content.component';
 import { CreatorChoiceContentComponent } from './components/fragments/creator-choice-content/creator-choice-content.component';
diff --git a/src/app/components/fragments/answer-statistics/answer-statistics.component.html b/src/app/components/fragments/statistics/statistics.component.html
similarity index 100%
rename from src/app/components/fragments/answer-statistics/answer-statistics.component.html
rename to src/app/components/fragments/statistics/statistics.component.html
diff --git a/src/app/components/fragments/answer-statistics/answer-statistics.component.scss b/src/app/components/fragments/statistics/statistics.component.scss
similarity index 100%
rename from src/app/components/fragments/answer-statistics/answer-statistics.component.scss
rename to src/app/components/fragments/statistics/statistics.component.scss
diff --git a/src/app/components/fragments/answer-statistics/answer-statistics.component.spec.ts b/src/app/components/fragments/statistics/statistics.component.spec.ts
similarity index 89%
rename from src/app/components/fragments/answer-statistics/answer-statistics.component.spec.ts
rename to src/app/components/fragments/statistics/statistics.component.spec.ts
index 44567afe6..7915c3931 100644
--- a/src/app/components/fragments/answer-statistics/answer-statistics.component.spec.ts
+++ b/src/app/components/fragments/statistics/statistics.component.spec.ts
@@ -1,6 +1,6 @@
 import { async, ComponentFixture, TestBed } from '@angular/core/testing';
 
-import { AnswerStatisticsComponent } from './answer-statistics.component';
+import { AnswerStatisticsComponent } from './statistics.component';
 
 describe('AnswerStatisticsComponent', () => {
   let component: AnswerStatisticsComponent;
diff --git a/src/app/components/fragments/answer-statistics/answer-statistics.component.ts b/src/app/components/fragments/statistics/statistics.component.ts
similarity index 97%
rename from src/app/components/fragments/answer-statistics/answer-statistics.component.ts
rename to src/app/components/fragments/statistics/statistics.component.ts
index b3da34684..bef7f2fa7 100644
--- a/src/app/components/fragments/answer-statistics/answer-statistics.component.ts
+++ b/src/app/components/fragments/statistics/statistics.component.ts
@@ -10,8 +10,8 @@ import { ContentType } from '../../../models/content-type';
 
 @Component({
   selector: 'app-answer-statistics',
-  templateUrl: './answer-statistics.component.html',
-  styleUrls: ['./answer-statistics.component.scss']
+  templateUrl: './statistics.component.html',
+  styleUrls: ['./statistics.component.scss']
 })
 export class AnswerStatisticsComponent implements OnInit {
   @Input() content: Content[];
-- 
GitLab