From 617860388f818f9605c2c15af613485b68203d0e Mon Sep 17 00:00:00 2001 From: Carlos Santos <4a.santos@gmail.com> Date: Fri, 25 Oct 2024 17:57:17 +0200 Subject: [PATCH] frontend: Moved video-room page to common library --- .../shared-call-components/src/lib/pages/index.ts | 3 ++- .../lib}/pages/video-room/video-room.component.html | 0 .../lib}/pages/video-room/video-room.component.scss | 0 .../pages/video-room/video-room.component.spec.ts | 0 .../lib}/pages/video-room/video-room.component.ts | 12 ++++++------ frontend/src/app/app.routes.ts | 4 ++-- 6 files changed, 10 insertions(+), 9 deletions(-) rename frontend/{src/app => projects/shared-call-components/src/lib}/pages/video-room/video-room.component.html (100%) rename frontend/{src/app => projects/shared-call-components/src/lib}/pages/video-room/video-room.component.scss (100%) rename frontend/{src/app => projects/shared-call-components/src/lib}/pages/video-room/video-room.component.spec.ts (100%) rename frontend/{src/app => projects/shared-call-components/src/lib}/pages/video-room/video-room.component.ts (94%) diff --git a/frontend/projects/shared-call-components/src/lib/pages/index.ts b/frontend/projects/shared-call-components/src/lib/pages/index.ts index 6b612313..c34075b3 100644 --- a/frontend/projects/shared-call-components/src/lib/pages/index.ts +++ b/frontend/projects/shared-call-components/src/lib/pages/index.ts @@ -4,4 +4,5 @@ export * from './console/access-permissions/access-permissions.component'; export * from './console/appearance/appearance.component'; export * from './console/security-preferences/security-preferences.component'; export * from './console/about/about.component'; -export * from './console/overview/overview.component'; \ No newline at end of file +export * from './console/overview/overview.component'; +export * from './video-room/video-room.component'; \ No newline at end of file diff --git a/frontend/src/app/pages/video-room/video-room.component.html b/frontend/projects/shared-call-components/src/lib/pages/video-room/video-room.component.html similarity index 100% rename from frontend/src/app/pages/video-room/video-room.component.html rename to frontend/projects/shared-call-components/src/lib/pages/video-room/video-room.component.html diff --git a/frontend/src/app/pages/video-room/video-room.component.scss b/frontend/projects/shared-call-components/src/lib/pages/video-room/video-room.component.scss similarity index 100% rename from frontend/src/app/pages/video-room/video-room.component.scss rename to frontend/projects/shared-call-components/src/lib/pages/video-room/video-room.component.scss diff --git a/frontend/src/app/pages/video-room/video-room.component.spec.ts b/frontend/projects/shared-call-components/src/lib/pages/video-room/video-room.component.spec.ts similarity index 100% rename from frontend/src/app/pages/video-room/video-room.component.spec.ts rename to frontend/projects/shared-call-components/src/lib/pages/video-room/video-room.component.spec.ts diff --git a/frontend/src/app/pages/video-room/video-room.component.ts b/frontend/projects/shared-call-components/src/lib/pages/video-room/video-room.component.ts similarity index 94% rename from frontend/src/app/pages/video-room/video-room.component.ts rename to frontend/projects/shared-call-components/src/lib/pages/video-room/video-room.component.ts index 7edd32af..fb3825e6 100644 --- a/frontend/src/app/pages/video-room/video-room.component.ts +++ b/frontend/projects/shared-call-components/src/lib/pages/video-room/video-room.component.ts @@ -11,13 +11,13 @@ import { ApiDirectiveModule } from 'openvidu-components-angular'; -import { ContextService, GlobalPreferencesService, HttpService } from 'shared-call-components'; import { BroadcastingPreferences, ChatPreferences, RecordingPreferences, VirtualBackgroundPreferences } from '@openvidu/call-common-types'; +import { HttpService, ContextService, GlobalPreferencesService } from '../../services'; @Component({ selector: 'app-video-room', @@ -48,11 +48,11 @@ export class VideoRoomComponent implements OnInit { }; constructor( - private httpService: HttpService, - private router: Router, - private contextService: ContextService, - private globalPreferencesService: GlobalPreferencesService, - private cdr: ChangeDetectorRef + protected httpService: HttpService, + protected router: Router, + protected contextService: ContextService, + protected globalPreferencesService: GlobalPreferencesService, + protected cdr: ChangeDetectorRef ) {} async ngOnInit() { diff --git a/frontend/src/app/app.routes.ts b/frontend/src/app/app.routes.ts index 40401563..f5213830 100644 --- a/frontend/src/app/app.routes.ts +++ b/frontend/src/app/app.routes.ts @@ -1,6 +1,5 @@ import { Routes } from '@angular/router'; import { HomeComponent } from '@app/pages/home/home.component'; -import { VideoRoomComponent } from '@app/pages/video-room/video-room.component'; import { RoomPreferencesComponent, @@ -13,7 +12,8 @@ import { OverviewComponent, embeddedGuard, nonEmbeddedGuard, - standardGuard + standardGuard, + VideoRoomComponent } from 'shared-call-components'; export const routes: Routes = [ // Embedded mode