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