openvidu-testapp: update to Angular 18

master
pabloFuente 2025-02-19 11:48:56 +01:00
parent f610f37ac3
commit 051b14c5b2
5 changed files with 7944 additions and 14284 deletions

View File

@ -11,11 +11,12 @@
"prefix": "app", "prefix": "app",
"architect": { "architect": {
"build": { "build": {
"builder": "@angular-devkit/build-angular:browser", "builder": "@angular-devkit/build-angular:application",
"options": { "options": {
"outputPath": "dist/openvidu-testapp-livekit", "outputPath": {
"base": "dist/openvidu-testapp-livekit"
},
"index": "src/index.html", "index": "src/index.html",
"main": "src/main.ts",
"polyfills": [ "polyfills": [
"zone.js", "zone.js",
"src/polyfills.ts" "src/polyfills.ts"
@ -29,7 +30,8 @@
"src/openvidu-theme.scss", "src/openvidu-theme.scss",
"src/styles.css" "src/styles.css"
], ],
"scripts": [] "scripts": [],
"browser": "src/main.ts"
}, },
"configurations": { "configurations": {
"production": { "production": {
@ -48,9 +50,7 @@
"outputHashing": "all" "outputHashing": "all"
}, },
"development": { "development": {
"buildOptimizer": false,
"optimization": false, "optimization": false,
"vendorChunk": true,
"extractLicenses": false, "extractLicenses": false,
"sourceMap": true, "sourceMap": true,
"namedChunks": true "namedChunks": true

File diff suppressed because it is too large Load Diff

View File

@ -11,16 +11,16 @@
}, },
"private": true, "private": true,
"dependencies": { "dependencies": {
"@angular/animations": "^17.3.12", "@angular/animations": "^18.2.13",
"@angular/cdk": "^17.3.10", "@angular/cdk": "^17.3.10",
"@angular/common": "^17.3.12", "@angular/common": "^18.2.13",
"@angular/compiler": "^17.3.12", "@angular/compiler": "^18.2.13",
"@angular/core": "^17.3.12", "@angular/core": "^18.2.13",
"@angular/forms": "^17.3.12", "@angular/forms": "^18.2.13",
"@angular/material": "^17.3.10", "@angular/material": "^17.3.10",
"@angular/platform-browser": "^17.3.12", "@angular/platform-browser": "^18.2.13",
"@angular/platform-browser-dynamic": "^17.3.12", "@angular/platform-browser-dynamic": "^18.2.13",
"@angular/router": "^17.3.12", "@angular/router": "^18.2.13",
"@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",
@ -35,9 +35,9 @@
"zone.js": "~0.14.10" "zone.js": "~0.14.10"
}, },
"devDependencies": { "devDependencies": {
"@angular-devkit/build-angular": "^17.3.12", "@angular-devkit/build-angular": "^18.2.14",
"@angular/cli": "~17.3.12", "@angular/cli": "~18.2.14",
"@angular/compiler-cli": "^17.3.12", "@angular/compiler-cli": "^18.2.13",
"@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",

View File

@ -1,6 +1,6 @@
import { NgModule } from '@angular/core'; import { NgModule } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser'; import { BrowserModule } from '@angular/platform-browser';
import { HttpClientModule } from '@angular/common/http'; import { provideHttpClient, withInterceptorsFromDi } from '@angular/common/http';
import { FormsModule } from '@angular/forms'; import { FormsModule } from '@angular/forms';
import { AppComponent } from './app.component'; import { AppComponent } from './app.component';
@ -47,57 +47,51 @@ import { AppRoutingModule } from './app.routing';
import { VideoResolutionComponent } from './components/dialogs/options-dialog/video-resolution/video-resolution.component'; import { VideoResolutionComponent } from './components/dialogs/options-dialog/video-resolution/video-resolution.component';
import { InfoDialogComponent } from './components/dialogs/info-dialog/info-dialog.component'; import { InfoDialogComponent } from './components/dialogs/info-dialog/info-dialog.component';
@NgModule({ @NgModule({ declarations: [
declarations: [ AppComponent,
AppComponent, TestScenariosComponent,
TestScenariosComponent, TestSessionsComponent,
TestSessionsComponent, OpenviduInstanceComponent,
OpenviduInstanceComponent, ParticipantComponent,
ParticipantComponent, VideoTrackComponent,
VideoTrackComponent, AudioTrackComponent,
AudioTrackComponent, TrackComponent,
TrackComponent, RoomApiDialogComponent,
RoomApiDialogComponent, EventsDialogComponent,
EventsDialogComponent, UsersTableComponent,
UsersTableComponent, TableVideoComponent,
TableVideoComponent, CallbackPipe,
CallbackPipe, OptionsDialogComponent,
OptionsDialogComponent, VideoResolutionComponent,
VideoResolutionComponent, InfoDialogComponent,
InfoDialogComponent, ],
], bootstrap: [AppComponent], imports: [FormsModule,
imports: [ BrowserModule,
FormsModule, AppRoutingModule,
BrowserModule, BrowserAnimationsModule,
HttpClientModule, MatExpansionModule,
AppRoutingModule, MatToolbarModule,
BrowserAnimationsModule, MatSidenavModule,
MatExpansionModule, MatFormFieldModule,
MatToolbarModule, MatIconModule,
MatSidenavModule, MatInputModule,
MatFormFieldModule, MatButtonModule,
MatIconModule, MatCheckboxModule,
MatInputModule, MatCardModule,
MatButtonModule, MatTooltipModule,
MatCheckboxModule, MatDialogModule,
MatCardModule, MatDividerModule,
MatTooltipModule, MatRadioModule,
MatDialogModule, MatSelectModule,
MatDividerModule, MatChipsModule,
MatRadioModule, MatSlideToggleModule,
MatSelectModule, MatBadgeModule,
MatChipsModule, MatProgressSpinnerModule], providers: [
MatSlideToggleModule, TestFeedService,
MatBadgeModule, {
MatProgressSpinnerModule, provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
], useValue: { appearance: 'outline', subscriptSizing: 'dynamic' },
providers: [ },
TestFeedService, provideHttpClient(withInterceptorsFromDi()),
{ ] })
provide: MAT_FORM_FIELD_DEFAULT_OPTIONS,
useValue: { appearance: 'outline', subscriptSizing: 'dynamic' },
},
],
bootstrap: [AppComponent],
})
export class AppModule {} export class AppModule {}

View File

@ -2,10 +2,10 @@
{ {
"compileOnSave": false, "compileOnSave": false,
"compilerOptions": { "compilerOptions": {
"allowSyntheticDefaultImports": true, // TODO: fix for https://github.com/livekit/client-sdk-js/issues/893
"baseUrl": "./", "baseUrl": "./",
"outDir": "./dist/out-tsc", "outDir": "./dist/out-tsc",
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"esModuleInterop": true,
"strict": true, "strict": true,
"noImplicitOverride": true, "noImplicitOverride": true,
"noPropertyAccessFromIndexSignature": true, "noPropertyAccessFromIndexSignature": true,
@ -13,7 +13,6 @@
"noFallthroughCasesInSwitch": true, "noFallthroughCasesInSwitch": true,
"sourceMap": true, "sourceMap": true,
"declaration": false, "declaration": false,
"downlevelIteration": true,
"experimentalDecorators": true, "experimentalDecorators": true,
"moduleResolution": "node", "moduleResolution": "node",
"importHelpers": true, "importHelpers": true,