From 301e284d36fe468a93b06b5ec91f6e67acc5a3a0 Mon Sep 17 00:00:00 2001 From: csantosm <4a.santos@gmail.com> Date: Tue, 15 Feb 2022 16:30:06 +0100 Subject: [PATCH] openvidu-components: Renamed participant item component --- .../participant-item.component.spec.ts | 25 ------------------- .../participant-item.component.ts | 16 ------------ .../participant-panel-item.component.css} | 0 .../participant-panel-item.component.html} | 0 .../participant-panel-item.component.spec.ts | 25 +++++++++++++++++++ .../participant-panel-item.component.ts | 16 ++++++++++++ .../participants-panel.component.html | 9 ++----- .../participants-panel.component.ts | 4 +-- .../src/lib/openvidu-angular.module.ts | 4 +-- 9 files changed, 47 insertions(+), 52 deletions(-) delete mode 100644 openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-item/participant-item.component.spec.ts delete mode 100644 openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-item/participant-item.component.ts rename openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/{participant-item/participant-item.component.css => participant-panel-item/participant-panel-item.component.css} (100%) rename openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/{participant-item/participant-item.component.html => participant-panel-item/participant-panel-item.component.html} (100%) create mode 100644 openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.spec.ts create mode 100644 openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.ts diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-item/participant-item.component.spec.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-item/participant-item.component.spec.ts deleted file mode 100644 index 19a0488e..00000000 --- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-item/participant-item.component.spec.ts +++ /dev/null @@ -1,25 +0,0 @@ -import { ComponentFixture, TestBed } from '@angular/core/testing'; - -import { ParticipantItemComponent } from './participant-item.component'; - -describe('ParticipantItemComponent', () => { - let component: ParticipantItemComponent; - let fixture: ComponentFixture; - - beforeEach(async () => { - await TestBed.configureTestingModule({ - declarations: [ ParticipantItemComponent ] - }) - .compileComponents(); - }); - - beforeEach(() => { - fixture = TestBed.createComponent(ParticipantItemComponent); - component = fixture.componentInstance; - fixture.detectChanges(); - }); - - it('should create', () => { - expect(component).toBeTruthy(); - }); -}); diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-item/participant-item.component.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-item/participant-item.component.ts deleted file mode 100644 index a921937f..00000000 --- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-item/participant-item.component.ts +++ /dev/null @@ -1,16 +0,0 @@ -import { Component, Input, OnInit } from '@angular/core'; - -@Component({ - selector: 'ov-participant-item', - templateUrl: './participant-item.component.html', - styleUrls: ['./participant-item.component.css'] -}) -export class ParticipantItemComponent implements OnInit { - @Input() name: string; - @Input() connections: string; - @Input() showDividerLine: boolean; - - constructor() {} - - ngOnInit(): void {} -} diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-item/participant-item.component.css b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.css similarity index 100% rename from openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-item/participant-item.component.css rename to openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.css diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-item/participant-item.component.html b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.html similarity index 100% rename from openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-item/participant-item.component.html rename to openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.html diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.spec.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.spec.ts new file mode 100644 index 00000000..5386dbec --- /dev/null +++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.spec.ts @@ -0,0 +1,25 @@ +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { ParticipantPanelItemComponent } from './participant-panel-item.component'; + +describe('ParticipantPanelItemComponent', () => { + let component: ParticipantPanelItemComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [ ParticipantPanelItemComponent ] + }) + .compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(ParticipantPanelItemComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.ts new file mode 100644 index 00000000..5c27caac --- /dev/null +++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participant-panel-item/participant-panel-item.component.ts @@ -0,0 +1,16 @@ +import { Component, Input, OnInit } from '@angular/core'; + +@Component({ + selector: 'ov-participant-panel-item', + templateUrl: './participant-panel-item.component.html', + styleUrls: ['./participant-panel-item.component.css'] +}) +export class ParticipantPanelItemComponent implements OnInit { + @Input() name: string; + @Input() connections: string; + @Input() showDividerLine: boolean; + + constructor() {} + + ngOnInit(): void {} +} diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participants-panel/participants-panel.component.html b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participants-panel/participants-panel.component.html index 604766f7..f6f46473 100644 --- a/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participants-panel/participants-panel.component.html +++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/components/panel/participants-panel/participants-panel/participants-panel.component.html @@ -9,18 +9,13 @@
- + >
- -
{ this.localParticipant = p; - // Mark for re-rendering using an impure pipe 'connectionsEnabled' + // Mark for re-rendering using an impure pipe 'streamsEnabled' this.cd.markForCheck(); }); this.participantService.remoteParticipantsObs.subscribe((p: ParticipantModel[]) => { this.remoteParticipants = p; - // Mark for re-rendering using an impure pipe 'connectionsEnabled' + // Mark for re-rendering using an impure pipe 'streamsEnabled' this.cd.markForCheck(); }); } diff --git a/openvidu-components-angular/projects/openvidu-angular/src/lib/openvidu-angular.module.ts b/openvidu-components-angular/projects/openvidu-angular/src/lib/openvidu-angular.module.ts index 7e20386a..b7e97453 100644 --- a/openvidu-components-angular/projects/openvidu-angular/src/lib/openvidu-angular.module.ts +++ b/openvidu-components-angular/projects/openvidu-angular/src/lib/openvidu-angular.module.ts @@ -54,7 +54,7 @@ import { DocumentService } from './services/document/document.service'; import { LayoutService } from './services/layout/layout.service'; import { SidenavMenuService } from './services/sidenav-menu/sidenav-menu.service'; import { ParticipantService } from './services/participant/participant.service'; -import { ParticipantItemComponent } from './components/panel/participants-panel/participant-item/participant-item.component'; +import { ParticipantPanelItemComponent } from './components/panel/participants-panel/participant-panel-item/participant-panel-item.component'; import { ParticipantsPanelComponent } from './components/panel/participants-panel/participants-panel/participants-panel.component'; import { VideoconferenceComponent } from './components/videoconference/videoconference.component'; import { PanelComponent } from './components/panel/panel.component'; @@ -77,7 +77,7 @@ import { AudioWaveComponent } from './components/audio-wave/audio-wave.component ParticipantStreamsPipe, StreamsEnabledPipe, NicknamePipe, - ParticipantItemComponent, + ParticipantPanelItemComponent, ParticipantsPanelComponent, VideoconferenceComponent, AudioWaveComponent,