openvidu-testapp: update to Angular 19

master
pabloFuente 2025-02-19 12:03:43 +01:00
parent 0ae67e8a87
commit fa507d492f
18 changed files with 2282 additions and 2273 deletions

File diff suppressed because it is too large Load Diff

View File

@ -11,16 +11,16 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^18.2.13", "@angular/animations": "^19.1.6",
"@angular/cdk": "^18.2.14", "@angular/cdk": "^18.2.14",
"@angular/common": "^18.2.13", "@angular/common": "^19.1.6",
"@angular/compiler": "^18.2.13", "@angular/compiler": "^19.1.6",
"@angular/core": "^18.2.13", "@angular/core": "^19.1.6",
"@angular/forms": "^18.2.13", "@angular/forms": "^19.1.6",
"@angular/material": "^18.2.14", "@angular/material": "^18.2.14",
"@angular/platform-browser": "^18.2.13", "@angular/platform-browser": "^19.1.6",
"@angular/platform-browser-dynamic": "^18.2.13", "@angular/platform-browser-dynamic": "^19.1.6",
"@angular/router": "^18.2.13", "@angular/router": "^19.1.6",
"@livekit/protocol": "1.29.2", "@livekit/protocol": "1.29.2",
"buffer": "^6.0.3", "buffer": "^6.0.3",
"crypto-browserify": "^3.12.0", "crypto-browserify": "^3.12.0",
@ -32,12 +32,12 @@
"stream-browserify": "^3.0.0", "stream-browserify": "^3.0.0",
"tslib": "^2.6.2", "tslib": "^2.6.2",
"util": "^0.12.5", "util": "^0.12.5",
"zone.js": "~0.14.10" "zone.js": "~0.15.0"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^18.2.14", "@angular-devkit/build-angular": "^19.1.7",
"@angular/cli": "~18.2.14", "@angular/cli": "~19.1.7",
"@angular/compiler-cli": "^18.2.13", "@angular/compiler-cli": "^19.1.6",
"@types/events": "^3.0.2", "@types/events": "^3.0.2",
"@types/jasmine": "~5.1.1", "@types/jasmine": "~5.1.1",
"@types/json-stringify-safe": "^5.0.2", "@types/json-stringify-safe": "^5.0.2",
@ -49,6 +49,6 @@
"karma-coverage": "~2.2.1", "karma-coverage": "~2.2.1",
"karma-jasmine": "~5.1.0", "karma-jasmine": "~5.1.0",
"karma-jasmine-html-reporter": "~2.1.0", "karma-jasmine-html-reporter": "~2.1.0",
"typescript": "5.4.5" "typescript": "5.7.3"
} }
} }

View File

@ -7,6 +7,7 @@ import { LivekitParamsService } from './services/livekit-params.service';
selector: 'app-root', selector: 'app-root',
templateUrl: './app.component.html', templateUrl: './app.component.html',
styleUrls: ['./app.component.css'], styleUrls: ['./app.component.css'],
standalone: false
}) })
export class AppComponent { export class AppComponent {
livekitUrl = 'ws://localhost:7880/'; // `${window.location.protocol === 'https:' ? 'wss' : 'ws'}://localhost:1880/`; livekitUrl = 'ws://localhost:7880/'; // `${window.location.protocol === 'https:' ? 'wss' : 'ws'}://localhost:1880/`;

View File

@ -6,6 +6,7 @@ import { TrackComponent } from '../track/track.component';
selector: 'app-audio-track', selector: 'app-audio-track',
templateUrl: './audio-track.component.html', templateUrl: './audio-track.component.html',
styleUrls: ['./audio-track.component.css'], styleUrls: ['./audio-track.component.css'],
standalone: false
}) })
export class AudioTrackComponent extends TrackComponent { export class AudioTrackComponent extends TrackComponent {
muteAudioIcon: string = 'mic'; muteAudioIcon: string = 'mic';

View File

@ -41,7 +41,8 @@ import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
'mat-divider { margin-top: 5px; margin-bottom: 5px; }', 'mat-divider { margin-top: 5px; margin-bottom: 5px; }',
'.col-50 {flex-basis: 50%; box-sizing: border-box; padding-left: 20px; }', '.col-50 {flex-basis: 50%; box-sizing: border-box; padding-left: 20px; }',
'.toggle { }' '.toggle { }'
] ],
standalone: false
}) })
export class EventsDialogComponent { export class EventsDialogComponent {

View File

@ -7,6 +7,7 @@ import { MAT_DIALOG_DATA } from '@angular/material/dialog';
selector: 'app-info-dialog', selector: 'app-info-dialog',
templateUrl: './info-dialog.component.html', templateUrl: './info-dialog.component.html',
styleUrls: ['./info-dialog.component.css'], styleUrls: ['./info-dialog.component.css'],
standalone: false
}) })
export class InfoDialogComponent implements OnDestroy { export class InfoDialogComponent implements OnDestroy {
title: string; title: string;

View File

@ -16,6 +16,7 @@ import {
selector: 'app-options-dialog', selector: 'app-options-dialog',
templateUrl: './options-dialog.component.html', templateUrl: './options-dialog.component.html',
styleUrls: ['./options-dialog.component.css'], styleUrls: ['./options-dialog.component.css'],
standalone: false
}) })
export class OptionsDialogComponent { export class OptionsDialogComponent {
roomOptions?: RoomOptions; roomOptions?: RoomOptions;

View File

@ -4,6 +4,7 @@ import { Component, EventEmitter, Input, Output } from '@angular/core';
selector: 'app-video-resolution', selector: 'app-video-resolution',
templateUrl: './video-resolution.component.html', templateUrl: './video-resolution.component.html',
styleUrls: ['./video-resolution.component.css'], styleUrls: ['./video-resolution.component.css'],
standalone: false
}) })
export class VideoResolutionComponent { export class VideoResolutionComponent {
@Input() componentId: string; @Input() componentId: string;

View File

@ -30,6 +30,7 @@ import {
selector: 'app-room-api-dialog', selector: 'app-room-api-dialog',
templateUrl: './room-api-dialog.component.html', templateUrl: './room-api-dialog.component.html',
styleUrls: ['./room-api-dialog.component.css'], styleUrls: ['./room-api-dialog.component.css'],
standalone: false
}) })
export class RoomApiDialogComponent { export class RoomApiDialogComponent {
room: Room; room: Room;

View File

@ -50,6 +50,7 @@ import { InfoDialogComponent } from '../dialogs/info-dialog/info-dialog.componen
selector: 'app-openvidu-instance', selector: 'app-openvidu-instance',
templateUrl: './openvidu-instance.component.html', templateUrl: './openvidu-instance.component.html',
styleUrls: ['./openvidu-instance.component.css'], styleUrls: ['./openvidu-instance.component.css'],
standalone: false
}) })
export class OpenviduInstanceComponent { export class OpenviduInstanceComponent {
@Input() @Input()

View File

@ -38,6 +38,7 @@ import { OptionsDialogComponent } from '../dialogs/options-dialog/options-dialog
selector: 'app-participant', selector: 'app-participant',
templateUrl: './participant.component.html', templateUrl: './participant.component.html',
styleUrls: ['./participant.component.css'], styleUrls: ['./participant.component.css'],
standalone: false
}) })
export class ParticipantComponent { export class ParticipantComponent {
@Input() @Input()

View File

@ -42,6 +42,7 @@ export interface User {
selector: 'app-test-scenarios', selector: 'app-test-scenarios',
templateUrl: './test-scenarios.component.html', templateUrl: './test-scenarios.component.html',
styleUrls: ['./test-scenarios.component.css'], styleUrls: ['./test-scenarios.component.css'],
standalone: false
}) })
export class TestScenariosComponent implements OnInit, OnDestroy { export class TestScenariosComponent implements OnInit, OnDestroy {
fixedRoomId = 'SCENARIO_TEST'; fixedRoomId = 'SCENARIO_TEST';

View File

@ -22,6 +22,7 @@ export interface RoomConf {
]), ]),
]), ]),
], ],
standalone: false
}) })
export class TestSessionsComponent { export class TestSessionsComponent {
eventsInfoSubscription: Subscription; eventsInfoSubscription: Subscription;

View File

@ -27,6 +27,7 @@ import {
selector: 'app-track', selector: 'app-track',
template: '', template: '',
styleUrls: [], styleUrls: [],
standalone: false
}) })
export class TrackComponent { export class TrackComponent {
@Output() @Output()

View File

@ -19,6 +19,7 @@ import { AudioTrack, VideoTrack } from 'livekit-client';
} }
`, `,
], ],
standalone: false
}) })
export class TableVideoComponent implements AfterViewInit { export class TableVideoComponent implements AfterViewInit {
@ViewChild('mediaElement') elementRef: ElementRef; @ViewChild('mediaElement') elementRef: ElementRef;

View File

@ -6,6 +6,7 @@ import { User } from '../test-scenarios/test-scenarios.component';
selector: 'app-users-table', selector: 'app-users-table',
styleUrls: ['users-table.component.css'], styleUrls: ['users-table.component.css'],
templateUrl: 'users-table.component.html', templateUrl: 'users-table.component.html',
standalone: false
}) })
export class UsersTableComponent { export class UsersTableComponent {
@Input() users: User[] = []; @Input() users: User[] = [];

View File

@ -14,6 +14,7 @@ import { InfoDialogComponent } from '../dialogs/info-dialog/info-dialog.componen
selector: 'app-video-track', selector: 'app-video-track',
templateUrl: './video-track.component.html', templateUrl: './video-track.component.html',
styleUrls: ['./video-track.component.css'], styleUrls: ['./video-track.component.css'],
standalone: false
}) })
export class VideoTrackComponent extends TrackComponent { export class VideoTrackComponent extends TrackComponent {
muteVideoIcon: string = 'videocam'; muteVideoIcon: string = 'videocam';

View File

@ -3,6 +3,7 @@ import { PipeTransform, Pipe } from '@angular/core';
@Pipe({ @Pipe({
name: 'callback', name: 'callback',
pure: false, pure: false,
standalone: false
}) })
export class CallbackPipe implements PipeTransform { export class CallbackPipe implements PipeTransform {
transform(items: any[], callback: (item: any) => boolean): any { transform(items: any[], callback: (item: any) => boolean): any {