From 7009d6cb8bba2da9552298f8f6561109a58cd18c Mon Sep 17 00:00:00 2001 From: Thomas Lenz <Thomas.Lenz@mni.thm.de> Date: Wed, 7 Mar 2018 13:38:01 +0100 Subject: [PATCH] Add participant-home-screen component. HTML: included join-room and room-list components --- src/app/app.module.ts | 2 ++ .../participant-home-screen.component.html | 2 ++ .../participant-home-screen.component.scss | 0 .../participant-home-screen.component.spec.ts | 25 +++++++++++++++++++ .../participant-home-screen.component.ts | 15 +++++++++++ 5 files changed, 44 insertions(+) create mode 100644 src/app/participant-home-screen/participant-home-screen.component.html create mode 100644 src/app/participant-home-screen/participant-home-screen.component.scss create mode 100644 src/app/participant-home-screen/participant-home-screen.component.spec.ts create mode 100644 src/app/participant-home-screen/participant-home-screen.component.ts diff --git a/src/app/app.module.ts b/src/app/app.module.ts index 3e5072769..239d930db 100644 --- a/src/app/app.module.ts +++ b/src/app/app.module.ts @@ -60,6 +60,7 @@ import { RoomService } from './room.service'; import { RoomListComponent } from './room-list/room-list.component'; import { CreatorHomeScreenComponent } from './creator-home-screen/creator-home-screen.component'; import { CreateCommentComponent } from './create-comment/create-comment.component'; +import { ParticipantHomeScreenComponent } from './participant-home-screen/participant-home-screen.component'; @NgModule({ declarations: [ @@ -77,6 +78,7 @@ import { CreateCommentComponent } from './create-comment/create-comment.componen RoomListComponent, CreatorHomeScreenComponent, CreateCommentComponent, + ParticipantHomeScreenComponent, CommentComponent ], entryComponents: [ diff --git a/src/app/participant-home-screen/participant-home-screen.component.html b/src/app/participant-home-screen/participant-home-screen.component.html new file mode 100644 index 000000000..46484d6c1 --- /dev/null +++ b/src/app/participant-home-screen/participant-home-screen.component.html @@ -0,0 +1,2 @@ +<app-join-room></app-join-room> +<app-room-list></app-room-list> diff --git a/src/app/participant-home-screen/participant-home-screen.component.scss b/src/app/participant-home-screen/participant-home-screen.component.scss new file mode 100644 index 000000000..e69de29bb diff --git a/src/app/participant-home-screen/participant-home-screen.component.spec.ts b/src/app/participant-home-screen/participant-home-screen.component.spec.ts new file mode 100644 index 000000000..2ab3cc3b8 --- /dev/null +++ b/src/app/participant-home-screen/participant-home-screen.component.spec.ts @@ -0,0 +1,25 @@ +import { async, ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ParticipantHomeScreenComponent } from './participant-home-screen.component'; + +describe('ParticipantHomeScreenComponent', () => { + let component: ParticipantHomeScreenComponent; + let fixture: ComponentFixture<ParticipantHomeScreenComponent>; + + beforeEach(async(() => { + TestBed.configureTestingModule({ + declarations: [ ParticipantHomeScreenComponent ] + }) + .compileComponents(); + })); + + beforeEach(() => { + fixture = TestBed.createComponent(ParticipantHomeScreenComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/src/app/participant-home-screen/participant-home-screen.component.ts b/src/app/participant-home-screen/participant-home-screen.component.ts new file mode 100644 index 000000000..5cd9ffabd --- /dev/null +++ b/src/app/participant-home-screen/participant-home-screen.component.ts @@ -0,0 +1,15 @@ +import { Component, OnInit } from '@angular/core'; + +@Component({ + selector: 'app-participant-home-screen', + templateUrl: './participant-home-screen.component.html', + styleUrls: ['./participant-home-screen.component.scss'] +}) +export class ParticipantHomeScreenComponent implements OnInit { + + constructor() { } + + ngOnInit() { + } + +} -- GitLab