mirror of https://github.com/OpenVidu/openvidu.git
openvidu-testapp: Updated to Angular 14
ci: Updated testapp building openvidu-testapp: Added missing HTTPClient import openvidu-testapp: Updated circular references stringifying a JSONpull/772/head
parent
2985593391
commit
f709eb8da9
|
@ -352,9 +352,9 @@ fi
|
||||||
# -------------
|
# -------------
|
||||||
if [[ "${BUILD_OV_TESTAPP}" == true || "${EXECUTE_ALL}" == true ]]; then
|
if [[ "${BUILD_OV_TESTAPP}" == true || "${EXECUTE_ALL}" == true ]]; then
|
||||||
pushd openvidu-testapp
|
pushd openvidu-testapp
|
||||||
npm install --legacy-peer-deps
|
npm install
|
||||||
npm link --legacy-peer-deps openvidu-browser openvidu-node-client
|
npm link openvidu-browser openvidu-node-client
|
||||||
export NG_CLI_ANALYTICS="false" && export NODE_OPTIONS=--openssl-legacy-provider && ./node_modules/@angular/cli/bin/ng build --prod --output-path=/opt/openvidu/testapp
|
export NG_CLI_ANALYTICS="false" && ./node_modules/@angular/cli/bin/ng.js build --configuration production --output-path=/opt/openvidu/testapp
|
||||||
popd
|
popd
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
|
@ -4,6 +4,7 @@
|
||||||
/dist
|
/dist
|
||||||
/tmp
|
/tmp
|
||||||
/out-tsc
|
/out-tsc
|
||||||
|
.angular
|
||||||
|
|
||||||
# dependencies
|
# dependencies
|
||||||
/node_modules
|
/node_modules
|
||||||
|
|
|
@ -18,9 +18,6 @@ Run `ng build` to build the project. The build artifacts will be stored in the `
|
||||||
|
|
||||||
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
Run `ng test` to execute the unit tests via [Karma](https://karma-runner.github.io).
|
||||||
|
|
||||||
## Running end-to-end tests
|
|
||||||
|
|
||||||
Run `ng e2e` to execute the end-to-end tests via [Protractor](http://www.protractortest.org/).
|
|
||||||
|
|
||||||
## Further help
|
## Further help
|
||||||
|
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
"index": "src/index.html",
|
"index": "src/index.html",
|
||||||
"main": "src/main.ts",
|
"main": "src/main.ts",
|
||||||
"tsConfig": "src/tsconfig.app.json",
|
"tsConfig": "src/tsconfig.app.json",
|
||||||
"showCircularDependencies": false,
|
|
||||||
"polyfills": "src/polyfills.ts",
|
"polyfills": "src/polyfills.ts",
|
||||||
"assets": [
|
"assets": [
|
||||||
"src/assets",
|
"src/assets",
|
||||||
|
@ -29,11 +28,19 @@
|
||||||
"scripts": []
|
"scripts": []
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
|
"development": {
|
||||||
|
"optimization": false,
|
||||||
|
"outputHashing": "all",
|
||||||
|
"sourceMap": true,
|
||||||
|
"namedChunks": false,
|
||||||
|
"extractLicenses": true,
|
||||||
|
"vendorChunk": false,
|
||||||
|
"buildOptimizer": false
|
||||||
|
},
|
||||||
"production": {
|
"production": {
|
||||||
"optimization": true,
|
"optimization": true,
|
||||||
"outputHashing": "all",
|
"outputHashing": "all",
|
||||||
"sourceMap": false,
|
"sourceMap": false,
|
||||||
"extractCss": true,
|
|
||||||
"namedChunks": false,
|
"namedChunks": false,
|
||||||
"aot": true,
|
"aot": true,
|
||||||
"extractLicenses": true,
|
"extractLicenses": true,
|
||||||
|
@ -51,14 +58,12 @@
|
||||||
"serve": {
|
"serve": {
|
||||||
"builder": "@angular-devkit/build-angular:dev-server",
|
"builder": "@angular-devkit/build-angular:dev-server",
|
||||||
"options": {
|
"options": {
|
||||||
"browserTarget": "openvidu-testapp:build",
|
"browserTarget": "openvidu-testapp:build"
|
||||||
"sourceMap": {
|
|
||||||
"scripts": true,
|
|
||||||
"styles": true,
|
|
||||||
"vendor": true
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
"configurations": {
|
"configurations": {
|
||||||
|
"development": {
|
||||||
|
"browserTarget": "openvidu-testapp:build:development"
|
||||||
|
},
|
||||||
"production": {
|
"production": {
|
||||||
"browserTarget": "openvidu-testapp:build:production"
|
"browserTarget": "openvidu-testapp:build:production"
|
||||||
}
|
}
|
||||||
|
@ -102,38 +107,12 @@
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
},
|
|
||||||
"openvidu-testapp-e2e": {
|
|
||||||
"root": "",
|
|
||||||
"sourceRoot": "",
|
|
||||||
"projectType": "application",
|
|
||||||
"architect": {
|
|
||||||
"e2e": {
|
|
||||||
"builder": "@angular-devkit/build-angular:protractor",
|
|
||||||
"options": {
|
|
||||||
"protractorConfig": "./protractor.conf.js",
|
|
||||||
"devServerTarget": "openvidu-testapp:serve"
|
|
||||||
}
|
|
||||||
},
|
|
||||||
"lint": {
|
|
||||||
"builder": "@angular-devkit/build-angular:tslint",
|
|
||||||
"options": {
|
|
||||||
"tsConfig": [
|
|
||||||
"e2e/tsconfig.e2e.json"
|
|
||||||
],
|
|
||||||
"exclude": [
|
|
||||||
"**/node_modules/**"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"defaultProject": "openvidu-testapp",
|
|
||||||
"schematics": {
|
"schematics": {
|
||||||
"@schematics/angular:component": {
|
"@schematics/angular:component": {
|
||||||
"prefix": "app",
|
"prefix": "app",
|
||||||
"styleext": "css"
|
"style": "css"
|
||||||
},
|
},
|
||||||
"@schematics/angular:directive": {
|
"@schematics/angular:directive": {
|
||||||
"prefix": "app"
|
"prefix": "app"
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
import { AppPage } from './app.po';
|
|
||||||
|
|
||||||
describe('openvidu-testapp App', () => {
|
|
||||||
let page: AppPage;
|
|
||||||
|
|
||||||
beforeEach(() => {
|
|
||||||
page = new AppPage();
|
|
||||||
});
|
|
||||||
|
|
||||||
it('should display welcome message', () => {
|
|
||||||
page.navigateTo();
|
|
||||||
expect(page.getParagraphText()).toEqual('Welcome to app!');
|
|
||||||
});
|
|
||||||
});
|
|
|
@ -1,11 +0,0 @@
|
||||||
import { browser, by, element } from 'protractor';
|
|
||||||
|
|
||||||
export class AppPage {
|
|
||||||
navigateTo() {
|
|
||||||
return browser.get('/');
|
|
||||||
}
|
|
||||||
|
|
||||||
getParagraphText() {
|
|
||||||
return element(by.css('app-root h1')).getText();
|
|
||||||
}
|
|
||||||
}
|
|
|
@ -1,14 +0,0 @@
|
||||||
{
|
|
||||||
"extends": "../tsconfig.json",
|
|
||||||
"compilerOptions": {
|
|
||||||
"outDir": "../out-tsc/e2e",
|
|
||||||
"baseUrl": "./",
|
|
||||||
"module": "commonjs",
|
|
||||||
"target": "es5",
|
|
||||||
"types": [
|
|
||||||
"jasmine",
|
|
||||||
"jasminewd2",
|
|
||||||
"node"
|
|
||||||
]
|
|
||||||
}
|
|
||||||
}
|
|
File diff suppressed because it is too large
Load Diff
|
@ -1,49 +1,50 @@
|
||||||
{
|
{
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@angular/animations": "8.2.14",
|
"@angular/animations": "14.2.12",
|
||||||
"@angular/cdk": "8.2.3",
|
"@angular/cdk": "14.2.7",
|
||||||
"@angular/common": "8.2.14",
|
"@angular/common": "14.2.12",
|
||||||
"@angular/compiler": "8.2.14",
|
"@angular/compiler": "14.2.12",
|
||||||
"@angular/core": "8.2.14",
|
"@angular/core": "14.2.12",
|
||||||
"@angular/flex-layout": "8.0.0-beta.27",
|
"@angular/flex-layout": "14.0.0-beta.41",
|
||||||
"@angular/forms": "8.2.14",
|
"@angular/forms": "14.2.12",
|
||||||
"@angular/http": "7.2.15",
|
"@angular/material": "14.2.7",
|
||||||
"@angular/material": "8.2.3",
|
"@angular/platform-browser": "14.2.12",
|
||||||
"@angular/platform-browser": "8.2.14",
|
"@angular/platform-browser-dynamic": "14.2.12",
|
||||||
"@angular/platform-browser-dynamic": "8.2.14",
|
"@angular/router": "14.2.12",
|
||||||
"@angular/router": "8.2.14",
|
"colormap": "2.3.2",
|
||||||
"colormap": "2.3.1",
|
"core-js": "3.26.1",
|
||||||
"core-js": "3.4.7",
|
"json-stringify-safe": "^5.0.1",
|
||||||
"hammerjs": "2.0.8",
|
"openvidu-browser": "2.24.0",
|
||||||
"json-stringify-safe": "^5.0.1",
|
"openvidu-node-client": "2.24.0",
|
||||||
"openvidu-browser": "2.24.0",
|
"rxjs": "7.5.7",
|
||||||
"openvidu-node-client": "2.24.0",
|
"tslib": "^2.4.1",
|
||||||
"rxjs": "6.5.3",
|
"zone.js": "0.12.0"
|
||||||
"zone.js": "0.10.2"
|
},
|
||||||
},
|
"devDependencies": {
|
||||||
"devDependencies": {
|
"@angular-devkit/build-angular": "14.2.10",
|
||||||
"@angular-devkit/build-angular": "0.803.20",
|
"@angular/cli": "14.2.10",
|
||||||
"@angular/cli": "8.3.20",
|
"@angular/compiler-cli": "14.2.12",
|
||||||
"@angular/compiler-cli": "8.2.14",
|
"@angular/language-service": "14.2.12",
|
||||||
"@angular/language-service": "8.2.14",
|
"@types/jasmine": "4.3.0",
|
||||||
"@types/jasmine": "3.5.0",
|
"@types/jasminewd2": "2.0.10",
|
||||||
"@types/jasminewd2": "2.0.8",
|
"@types/json-stringify-safe": "^5.0.0",
|
||||||
"@types/node": "12.12.14",
|
"@types/node": "12.12.14",
|
||||||
"codelyzer": "5.2.0",
|
"codelyzer": "6.0.2",
|
||||||
"ts-node": "8.5.4",
|
"ts-node": "8.5.4",
|
||||||
"tslint": "5.20.1",
|
"tslint": "~6.1.3",
|
||||||
"typescript": "3.5.3"
|
"typescript": "4.6.4"
|
||||||
},
|
},
|
||||||
"license": "Apache-2.0",
|
"license": "Apache-2.0",
|
||||||
"name": "openvidu-testapp",
|
"name": "openvidu-testapp",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"build": "NODE_OPTIONS=--openssl-legacy-provider ng build",
|
"build": "ng build",
|
||||||
"e2e": "ng e2e",
|
"e2e": "ng e2e",
|
||||||
"lint": "ng lint",
|
"lint": "ng lint",
|
||||||
"ng": "ng",
|
"ng": "ng",
|
||||||
"start": "NODE_OPTIONS=--openssl-legacy-provider ng serve --host 0.0.0.0 --ssl",
|
"start:dev": "ng serve --open --configuration development",
|
||||||
"test": "NODE_OPTIONS=--openssl-legacy-provider ng test"
|
"start": "ng serve --host 0.0.0.0 --ssl --configuration development",
|
||||||
},
|
"test": "ng test"
|
||||||
"version": "2.24.0"
|
},
|
||||||
}
|
"version": "2.24.0"
|
||||||
|
}
|
||||||
|
|
|
@ -1,28 +0,0 @@
|
||||||
// Protractor configuration file, see link for more information
|
|
||||||
// https://github.com/angular/protractor/blob/master/lib/config.ts
|
|
||||||
|
|
||||||
const { SpecReporter } = require('jasmine-spec-reporter');
|
|
||||||
|
|
||||||
exports.config = {
|
|
||||||
allScriptsTimeout: 11000,
|
|
||||||
specs: [
|
|
||||||
'./e2e/**/*.e2e-spec.ts'
|
|
||||||
],
|
|
||||||
capabilities: {
|
|
||||||
'browserName': 'chrome'
|
|
||||||
},
|
|
||||||
directConnect: true,
|
|
||||||
baseUrl: 'http://localhost:4200/',
|
|
||||||
framework: 'jasmine',
|
|
||||||
jasmineNodeOpts: {
|
|
||||||
showColors: true,
|
|
||||||
defaultTimeoutInterval: 30000,
|
|
||||||
print: function() {}
|
|
||||||
},
|
|
||||||
onPrepare() {
|
|
||||||
require('ts-node').register({
|
|
||||||
project: 'e2e/tsconfig.e2e.json'
|
|
||||||
});
|
|
||||||
jasmine.getEnv().addReporter(new SpecReporter({ spec: { displayStacktrace: true } }));
|
|
||||||
}
|
|
||||||
};
|
|
|
@ -1,27 +1,26 @@
|
||||||
import { NgModule } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
|
import { MatBadgeModule } from '@angular/material/badge';
|
||||||
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
|
import { MatCardModule } from '@angular/material/card';
|
||||||
|
import { MatCheckboxModule } from '@angular/material/checkbox';
|
||||||
|
import { MatChipsModule } from '@angular/material/chips';
|
||||||
|
import { MatDialogModule } from '@angular/material/dialog';
|
||||||
|
import { MatExpansionModule } from '@angular/material/expansion';
|
||||||
|
import { MatFormFieldModule } from '@angular/material/form-field';
|
||||||
|
import { MatIconModule } from '@angular/material/icon';
|
||||||
|
import { MatInputModule } from '@angular/material/input';
|
||||||
|
import { MatListModule } from '@angular/material/list';
|
||||||
|
import { MatProgressSpinnerModule } from '@angular/material/progress-spinner';
|
||||||
|
import { MatRadioModule } from '@angular/material/radio';
|
||||||
|
import { MatSelectModule } from '@angular/material/select';
|
||||||
|
import { MatSidenavModule } from '@angular/material/sidenav';
|
||||||
|
import { MatSlideToggleModule } from '@angular/material/slide-toggle';
|
||||||
|
import { MatTableModule } from '@angular/material/table';
|
||||||
|
import { MatTabsModule } from '@angular/material/tabs';
|
||||||
|
import { MatToolbarModule } from '@angular/material/toolbar';
|
||||||
|
import { MatTooltipModule } from '@angular/material/tooltip';
|
||||||
|
|
||||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||||
import {
|
|
||||||
MatButtonModule,
|
|
||||||
MatIconModule,
|
|
||||||
MatCheckboxModule,
|
|
||||||
MatCardModule,
|
|
||||||
MatInputModule,
|
|
||||||
MatProgressSpinnerModule,
|
|
||||||
MatTooltipModule,
|
|
||||||
MatDialogModule,
|
|
||||||
MatToolbarModule,
|
|
||||||
MatTabsModule,
|
|
||||||
MatTableModule,
|
|
||||||
MatListModule,
|
|
||||||
MatRadioModule,
|
|
||||||
MatSelectModule,
|
|
||||||
MatChipsModule,
|
|
||||||
MatExpansionModule,
|
|
||||||
MatSlideToggleModule,
|
|
||||||
MatSidenavModule,
|
|
||||||
MatFormFieldModule,
|
|
||||||
MatBadgeModule
|
|
||||||
} from '@angular/material';
|
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
exports: [
|
exports: [
|
||||||
|
|
|
@ -1,39 +1,39 @@
|
||||||
import { BrowserModule } from '@angular/platform-browser';
|
|
||||||
import { NgModule } from '@angular/core';
|
|
||||||
import { FormsModule } from '@angular/forms';
|
|
||||||
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
|
||||||
import { FlexLayoutModule } from '@angular/flex-layout';
|
|
||||||
import { AppMaterialModule } from './app.material.module';
|
|
||||||
import { HttpClientModule } from '@angular/common/http';
|
import { HttpClientModule } from '@angular/common/http';
|
||||||
|
import { NgModule } from '@angular/core';
|
||||||
|
import { FlexLayoutModule } from '@angular/flex-layout';
|
||||||
|
import { FormsModule } from '@angular/forms';
|
||||||
|
import { BrowserModule } from '@angular/platform-browser';
|
||||||
|
import { BrowserAnimationsModule } from '@angular/platform-browser/animations';
|
||||||
|
import { AppMaterialModule } from './app.material.module';
|
||||||
|
|
||||||
import { routing } from './app.routing';
|
|
||||||
import { AppComponent } from './app.component';
|
import { AppComponent } from './app.component';
|
||||||
import { TestSessionsComponent } from './components/test-sessions/test-sessions.component';
|
import { AppRoutingModule } from './app.routing';
|
||||||
|
import { OpenviduInstanceComponent } from './components/openvidu-instance/openvidu-instance.component';
|
||||||
import { TestApirestComponent } from './components/test-apirest/test-apirest.component';
|
import { TestApirestComponent } from './components/test-apirest/test-apirest.component';
|
||||||
import { TestScenariosComponent } from './components/test-scenarios/test-scenarios.component';
|
import { TestScenariosComponent } from './components/test-scenarios/test-scenarios.component';
|
||||||
import { OpenviduInstanceComponent } from './components/openvidu-instance/openvidu-instance.component';
|
import { TestSessionsComponent } from './components/test-sessions/test-sessions.component';
|
||||||
import { VideoComponent } from './components/video/video.component';
|
|
||||||
import { OpenViduVideoComponent } from './components/video/ov-video.component';
|
|
||||||
import { UsersTableComponent } from './components/users-table/users-table.component';
|
|
||||||
import { TableVideoComponent } from './components/users-table/table-video.component';
|
import { TableVideoComponent } from './components/users-table/table-video.component';
|
||||||
|
import { UsersTableComponent } from './components/users-table/users-table.component';
|
||||||
|
import { OpenViduVideoComponent } from './components/video/ov-video.component';
|
||||||
|
import { VideoComponent } from './components/video/video.component';
|
||||||
|
|
||||||
|
import { EventsDialogComponent } from './components/dialogs/events-dialog/events-dialog.component';
|
||||||
import { ExtensionDialogComponent } from './components/dialogs/extension-dialog/extension-dialog.component';
|
import { ExtensionDialogComponent } from './components/dialogs/extension-dialog/extension-dialog.component';
|
||||||
import { LocalRecordingDialogComponent } from './components/dialogs/local-recording-dialog/local-recording-dialog.component';
|
import { LocalRecordingDialogComponent } from './components/dialogs/local-recording-dialog/local-recording-dialog.component';
|
||||||
import { SessionPropertiesDialogComponent } from './components/dialogs/session-properties-dialog/session-properties-dialog.component';
|
|
||||||
import { SessionApiDialogComponent } from './components/dialogs/session-api-dialog/session-api-dialog.component';
|
|
||||||
import { EventsDialogComponent } from './components/dialogs/events-dialog/events-dialog.component';
|
|
||||||
import { PublisherPropertiesDialogComponent } from './components/dialogs/publisher-properties-dialog/publisher-properties-dialog.component';
|
|
||||||
import { ScenarioPropertiesDialogComponent } from './components/dialogs/scenario-properties-dialog/scenario-properties-dialog.component';
|
|
||||||
import { OtherStreamOperationsDialogComponent } from './components/dialogs/other-stream-operations-dialog/other-stream-operations-dialog.component';
|
import { OtherStreamOperationsDialogComponent } from './components/dialogs/other-stream-operations-dialog/other-stream-operations-dialog.component';
|
||||||
import { ShowCodecDialogComponent } from './components/dialogs/show-codec-dialog/show-codec-dialog.component';
|
import { PublisherPropertiesDialogComponent } from './components/dialogs/publisher-properties-dialog/publisher-properties-dialog.component';
|
||||||
import { RecordingPropertiesComponent } from './components/dialogs/recording-properties/recording-properties.component';
|
import { RecordingPropertiesComponent } from './components/dialogs/recording-properties/recording-properties.component';
|
||||||
|
import { ScenarioPropertiesDialogComponent } from './components/dialogs/scenario-properties-dialog/scenario-properties-dialog.component';
|
||||||
|
import { SessionApiDialogComponent } from './components/dialogs/session-api-dialog/session-api-dialog.component';
|
||||||
|
import { SessionPropertiesDialogComponent } from './components/dialogs/session-properties-dialog/session-properties-dialog.component';
|
||||||
|
import { ShowCodecDialogComponent } from './components/dialogs/show-codec-dialog/show-codec-dialog.component';
|
||||||
|
|
||||||
import { OpenviduRestService } from './services/openvidu-rest.service';
|
|
||||||
import { OpenviduParamsService } from './services/openvidu-params.service';
|
|
||||||
import { TestFeedService } from './services/test-feed.service';
|
|
||||||
import { MuteSubscribersService } from './services/mute-subscribers.service';
|
|
||||||
import { SessionInfoDialogComponent } from "./components/dialogs/session-info-dialog/session-info-dialog.component";
|
import { SessionInfoDialogComponent } from "./components/dialogs/session-info-dialog/session-info-dialog.component";
|
||||||
import { ShowIceServerConfiguredDialog } from './components/dialogs/show-configured-ice/show-configured-ice.component';
|
import { ShowIceServerConfiguredDialog } from './components/dialogs/show-configured-ice/show-configured-ice.component';
|
||||||
|
import { MuteSubscribersService } from './services/mute-subscribers.service';
|
||||||
|
import { OpenviduParamsService } from './services/openvidu-params.service';
|
||||||
|
import { OpenviduRestService } from './services/openvidu-rest.service';
|
||||||
|
import { TestFeedService } from './services/test-feed.service';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
declarations: [
|
declarations: [
|
||||||
|
@ -66,7 +66,7 @@ import { ShowIceServerConfiguredDialog } from './components/dialogs/show-configu
|
||||||
AppMaterialModule,
|
AppMaterialModule,
|
||||||
FlexLayoutModule,
|
FlexLayoutModule,
|
||||||
HttpClientModule,
|
HttpClientModule,
|
||||||
routing
|
AppRoutingModule
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [
|
||||||
OpenviduRestService,
|
OpenviduRestService,
|
||||||
|
@ -74,19 +74,6 @@ import { ShowIceServerConfiguredDialog } from './components/dialogs/show-configu
|
||||||
TestFeedService,
|
TestFeedService,
|
||||||
MuteSubscribersService
|
MuteSubscribersService
|
||||||
],
|
],
|
||||||
entryComponents: [
|
|
||||||
ExtensionDialogComponent,
|
|
||||||
SessionPropertiesDialogComponent,
|
|
||||||
SessionApiDialogComponent,
|
|
||||||
EventsDialogComponent,
|
|
||||||
LocalRecordingDialogComponent,
|
|
||||||
PublisherPropertiesDialogComponent,
|
|
||||||
ScenarioPropertiesDialogComponent,
|
|
||||||
OtherStreamOperationsDialogComponent,
|
|
||||||
ShowCodecDialogComponent,
|
|
||||||
ShowIceServerConfiguredDialog,
|
|
||||||
SessionInfoDialogComponent
|
|
||||||
],
|
|
||||||
bootstrap: [AppComponent]
|
bootstrap: [AppComponent]
|
||||||
})
|
})
|
||||||
export class AppModule { }
|
export class AppModule { }
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
import { ModuleWithProviders } from '@angular/core';
|
import { NgModule } from '@angular/core';
|
||||||
import { Routes, RouterModule } from '@angular/router';
|
import { RouterModule, Routes } from '@angular/router';
|
||||||
|
|
||||||
import { TestSessionsComponent } from './components/test-sessions/test-sessions.component';
|
|
||||||
import { TestScenariosComponent } from './components/test-scenarios/test-scenarios.component';
|
|
||||||
import { TestApirestComponent } from './components/test-apirest/test-apirest.component';
|
import { TestApirestComponent } from './components/test-apirest/test-apirest.component';
|
||||||
|
import { TestScenariosComponent } from './components/test-scenarios/test-scenarios.component';
|
||||||
|
import { TestSessionsComponent } from './components/test-sessions/test-sessions.component';
|
||||||
|
|
||||||
const appRoutes: Routes = [
|
const appRoutes: Routes = [
|
||||||
{
|
{
|
||||||
|
@ -23,4 +23,9 @@ const appRoutes: Routes = [
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
export const routing: ModuleWithProviders = RouterModule.forRoot(appRoutes, { useHash: true });
|
|
||||||
|
@NgModule({
|
||||||
|
imports: [RouterModule.forRoot(appRoutes, { useHash: true })],
|
||||||
|
exports: [RouterModule]
|
||||||
|
})
|
||||||
|
export class AppRoutingModule {}
|
||||||
|
|
|
@ -1,5 +1,6 @@
|
||||||
import { Component, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-events-dialog',
|
selector: 'app-events-dialog',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { Component, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { MatDialog, MAT_DIALOG_DATA, MatDialogConfig } from '@angular/material';
|
import { MatDialog, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-extension-dialog',
|
selector: 'app-extension-dialog',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { Component, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
import { LocalRecorder } from 'openvidu-browser';
|
import { LocalRecorder } from 'openvidu-browser';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { Component, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
|
||||||
import { Session, Stream, FilterEvent } from 'openvidu-browser';
|
import { FilterEvent, Session, Stream } from 'openvidu-browser';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-session-api-dialog',
|
selector: 'app-session-api-dialog',
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
import { Component, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { MatDialogRef, MAT_CHECKBOX_CLICK_ACTION, MAT_DIALOG_DATA } from '@angular/material';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
|
||||||
import { PublisherProperties, OpenVidu, Filter } from 'openvidu-browser';
|
import { Filter, OpenVidu, PublisherProperties } from 'openvidu-browser';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-publisher-properties-dialog',
|
selector: 'app-publisher-properties-dialog',
|
||||||
templateUrl: './publisher-properties-dialog.component.html',
|
templateUrl: './publisher-properties-dialog.component.html',
|
||||||
styleUrls: ['./publisher-properties-dialog.component.css'],
|
styleUrls: ['./publisher-properties-dialog.component.css'],
|
||||||
providers: [
|
// providers: [
|
||||||
{ provide: MAT_CHECKBOX_CLICK_ACTION, useValue: 'noop' }
|
// { provide: MAT_CHECKBOX_CLICK_ACTION, useValue: 'noop' }
|
||||||
]
|
// ]
|
||||||
})
|
})
|
||||||
export class PublisherPropertiesDialogComponent {
|
export class PublisherPropertiesDialogComponent {
|
||||||
|
|
||||||
|
|
|
@ -1,15 +1,15 @@
|
||||||
import { Component, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { MAT_DIALOG_DATA, MatDialogRef, MAT_CHECKBOX_CLICK_ACTION } from '@angular/material';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
|
||||||
import { PublisherProperties, OpenVidu } from 'openvidu-browser';
|
import { OpenVidu, PublisherProperties } from 'openvidu-browser';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-scenario-properties-dialog',
|
selector: 'app-scenario-properties-dialog',
|
||||||
templateUrl: './scenario-properties-dialog.component.html',
|
templateUrl: './scenario-properties-dialog.component.html',
|
||||||
styleUrls: ['./scenario-properties-dialog.component.css'],
|
styleUrls: ['./scenario-properties-dialog.component.css'],
|
||||||
providers: [
|
// providers: [
|
||||||
{ provide: MAT_CHECKBOX_CLICK_ACTION, useValue: 'noop' }
|
// { provide: MAT_CHECKBOX_CLICK_ACTION, useValue: 'noop' }
|
||||||
]
|
// ]
|
||||||
})
|
})
|
||||||
export class ScenarioPropertiesDialogComponent {
|
export class ScenarioPropertiesDialogComponent {
|
||||||
|
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { Component, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
|
||||||
import { OpenVidu as OpenViduAPI, Session as SessionAPI, RecordingProperties, ConnectionProperties, OpenViduRole } from 'openvidu-node-client';
|
import { ConnectionProperties, OpenVidu as OpenViduAPI, OpenViduRole, RecordingProperties, Session as SessionAPI } from 'openvidu-node-client';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-session-api-dialog',
|
selector: 'app-session-api-dialog',
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import { Component, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
|
||||||
import { SessionProperties, MediaMode, Recording, RecordingMode, RecordingLayout, ConnectionProperties, VideoCodec } from 'openvidu-node-client';
|
import { ConnectionProperties, MediaMode, Recording, RecordingLayout, RecordingMode, SessionProperties, VideoCodec } from 'openvidu-node-client';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-session-properties-dialog',
|
selector: 'app-session-properties-dialog',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { Component, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-codec-used-dialog',
|
selector: 'app-codec-used-dialog',
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { Component, Inject } from '@angular/core';
|
import { Component, Inject } from '@angular/core';
|
||||||
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material';
|
import { MatDialogRef, MAT_DIALOG_DATA } from '@angular/material/dialog';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|
|
@ -1,34 +1,19 @@
|
||||||
import {
|
import { ChangeDetectorRef, Component, HostListener, Input, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
||||||
Component, Input, HostListener, ChangeDetectorRef, SimpleChanges,
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
OnInit, OnDestroy, OnChanges
|
|
||||||
} from '@angular/core';
|
|
||||||
|
|
||||||
|
import { ConnectionEvent, ConnectionPropertyChangedEvent, Event, ExceptionEvent, NetworkQualityLevelChangedEvent, OpenVidu, OpenViduAdvancedConfiguration, OpenViduError, Publisher, PublisherProperties, PublisherSpeakingEvent, RecordingEvent, Session, SessionDisconnectedEvent, SignalEvent, SpeechToTextEvent, StreamEvent, StreamPropertyChangedEvent, Subscriber } from 'openvidu-browser';
|
||||||
import {
|
import {
|
||||||
OpenVidu, Session, Subscriber, Publisher, Event, StreamEvent, ConnectionEvent,
|
|
||||||
SessionDisconnectedEvent, SignalEvent, RecordingEvent,
|
|
||||||
PublisherSpeakingEvent, PublisherProperties, StreamPropertyChangedEvent, ConnectionPropertyChangedEvent, OpenViduError, NetworkQualityLevelChangedEvent, ExceptionEvent, OpenViduAdvancedConfiguration, SpeechToTextEvent
|
|
||||||
} from 'openvidu-browser';
|
|
||||||
import {
|
|
||||||
OpenVidu as OpenViduAPI,
|
|
||||||
Session as SessionAPI,
|
|
||||||
SessionProperties as SessionPropertiesAPI,
|
|
||||||
MediaMode,
|
|
||||||
RecordingMode,
|
|
||||||
RecordingLayout,
|
|
||||||
Connection,
|
Connection,
|
||||||
ConnectionProperties,
|
ConnectionProperties, MediaMode, OpenVidu as OpenViduAPI, OpenViduRole, Recording, RecordingLayout, RecordingMode, RecordingProperties, Session as SessionAPI,
|
||||||
OpenViduRole,
|
SessionProperties as SessionPropertiesAPI
|
||||||
RecordingProperties,
|
|
||||||
Recording,
|
|
||||||
} from 'openvidu-node-client';
|
} from 'openvidu-node-client';
|
||||||
import { MatDialog, MAT_CHECKBOX_CLICK_ACTION } from '@angular/material';
|
|
||||||
import { ExtensionDialogComponent } from '../dialogs/extension-dialog/extension-dialog.component';
|
|
||||||
import { TestFeedService } from '../../services/test-feed.service';
|
import { TestFeedService } from '../../services/test-feed.service';
|
||||||
import { EventsDialogComponent } from '../dialogs/events-dialog/events-dialog.component';
|
import { EventsDialogComponent } from '../dialogs/events-dialog/events-dialog.component';
|
||||||
import { SessionPropertiesDialogComponent } from '../dialogs/session-properties-dialog/session-properties-dialog.component';
|
import { ExtensionDialogComponent } from '../dialogs/extension-dialog/extension-dialog.component';
|
||||||
import { SessionApiDialogComponent } from '../dialogs/session-api-dialog/session-api-dialog.component';
|
|
||||||
import { PublisherPropertiesDialogComponent } from '../dialogs/publisher-properties-dialog/publisher-properties-dialog.component';
|
import { PublisherPropertiesDialogComponent } from '../dialogs/publisher-properties-dialog/publisher-properties-dialog.component';
|
||||||
|
import { SessionApiDialogComponent } from '../dialogs/session-api-dialog/session-api-dialog.component';
|
||||||
import { SessionInfoDialogComponent } from "../dialogs/session-info-dialog/session-info-dialog.component";
|
import { SessionInfoDialogComponent } from "../dialogs/session-info-dialog/session-info-dialog.component";
|
||||||
|
import { SessionPropertiesDialogComponent } from '../dialogs/session-properties-dialog/session-properties-dialog.component';
|
||||||
|
|
||||||
|
|
||||||
export interface SessionConf {
|
export interface SessionConf {
|
||||||
|
@ -47,9 +32,9 @@ export interface OpenViduEvent {
|
||||||
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'],
|
||||||
providers: [
|
// providers: [
|
||||||
{ provide: MAT_CHECKBOX_CLICK_ACTION, useValue: 'noop' }
|
// { provide: MAT_CHECKBOX_CLICK_ACTION, useValue: 'noop' }
|
||||||
]
|
// ]
|
||||||
})
|
})
|
||||||
export class OpenviduInstanceComponent implements OnInit, OnChanges, OnDestroy {
|
export class OpenviduInstanceComponent implements OnInit, OnChanges, OnDestroy {
|
||||||
|
|
||||||
|
|
|
@ -29,6 +29,6 @@
|
||||||
<button *ngIf="!!textAreaValue && !isFocusedOnReport" id="update-report-btn" class="report-btn" mat-mini-fab color="primary" (click)="$event.stopPropagation(); updateRemoteStreamsInfo()">
|
<button *ngIf="!!textAreaValue && !isFocusedOnReport" id="update-report-btn" class="report-btn" mat-mini-fab color="primary" (click)="$event.stopPropagation(); updateRemoteStreamsInfo()">
|
||||||
<mat-icon aria-label="Update stream info">replay</mat-icon>
|
<mat-icon aria-label="Update stream info">replay</mat-icon>
|
||||||
</button>
|
</button>
|
||||||
<textarea matInput readonly [value]="textAreaValue" [mat-autosize]="true" [disabled]="!textAreaValue"></textarea>
|
<textarea matInput readonly [value]="textAreaValue" [disabled]="!textAreaValue"></textarea>
|
||||||
</mat-form-field>
|
</mat-form-field>
|
||||||
</div>
|
</div>
|
|
@ -1,28 +1,21 @@
|
||||||
import { Component, OnInit, OnDestroy } from '@angular/core';
|
|
||||||
import { MatDialog } from '@angular/material';
|
|
||||||
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
import { HttpClient, HttpHeaders } from '@angular/common/http';
|
||||||
|
import { Component, OnDestroy, OnInit } from '@angular/core';
|
||||||
import { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
|
|
||||||
import { SessionConf } from '../openvidu-instance/openvidu-instance.component';
|
|
||||||
import { OpenviduParamsService } from '../../services/openvidu-params.service';
|
import { OpenviduParamsService } from '../../services/openvidu-params.service';
|
||||||
import { TestFeedService } from '../../services/test-feed.service';
|
import { TestFeedService } from '../../services/test-feed.service';
|
||||||
import { ScenarioPropertiesDialogComponent } from '../dialogs/scenario-properties-dialog/scenario-properties-dialog.component';
|
import { ScenarioPropertiesDialogComponent } from '../dialogs/scenario-properties-dialog/scenario-properties-dialog.component';
|
||||||
|
import { SessionConf } from '../openvidu-instance/openvidu-instance.component';
|
||||||
import { StreamManagerWrapper } from '../users-table/table-video.component';
|
import { StreamManagerWrapper } from '../users-table/table-video.component';
|
||||||
|
|
||||||
|
import { MatDialog } from '@angular/material/dialog';
|
||||||
import {
|
import {
|
||||||
OpenVidu,
|
ConnectionEvent, OpenVidu, PublisherProperties, Session,
|
||||||
Session,
|
|
||||||
StreamEvent,
|
StreamEvent,
|
||||||
StreamManagerEvent,
|
StreamManagerEvent
|
||||||
PublisherProperties,
|
|
||||||
ConnectionEvent
|
|
||||||
} from 'openvidu-browser';
|
} from 'openvidu-browser';
|
||||||
import {
|
import {
|
||||||
OpenVidu as OpenViduAPI,
|
MediaMode, OpenVidu as OpenViduAPI, RecordingLayout, RecordingMode, SessionProperties as SessionPropertiesAPI
|
||||||
SessionProperties as SessionPropertiesAPI,
|
|
||||||
MediaMode,
|
|
||||||
RecordingMode,
|
|
||||||
RecordingLayout
|
|
||||||
} from 'openvidu-node-client';
|
} from 'openvidu-node-client';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
|
|
|
@ -8,7 +8,7 @@ import { StreamManager } from 'openvidu-browser';
|
||||||
})
|
})
|
||||||
export class OpenViduVideoComponent implements OnInit, AfterViewInit {
|
export class OpenViduVideoComponent implements OnInit, AfterViewInit {
|
||||||
|
|
||||||
@ViewChild('videoElement', { static: false }) elementRef: ElementRef;
|
@ViewChild('videoElement') elementRef: ElementRef;
|
||||||
|
|
||||||
@Input() poster = '';
|
@Input() poster = '';
|
||||||
@Input() attrstyle = '';
|
@Input() attrstyle = '';
|
||||||
|
|
|
@ -1,29 +1,22 @@
|
||||||
import { Component, Input, OnInit, Output, EventEmitter, OnDestroy } from '@angular/core';
|
import { Component, EventEmitter, Input, OnDestroy, OnInit, Output } from '@angular/core';
|
||||||
import { MatDialog, MatDialogRef } from '@angular/material';
|
import { MatDialog, MatDialogRef } from '@angular/material/dialog';
|
||||||
import { ShowCodecDialogComponent } from '../dialogs/show-codec-dialog/show-codec-dialog.component';
|
import { ShowCodecDialogComponent } from '../dialogs/show-codec-dialog/show-codec-dialog.component';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
StreamManager,
|
FilterEvent, OpenVidu,
|
||||||
|
Publisher, PublisherSpeakingEvent, StreamEvent, StreamManager,
|
||||||
StreamManagerEvent,
|
StreamManagerEvent,
|
||||||
StreamPropertyChangedEvent,
|
StreamPropertyChangedEvent, Subscriber, VideoElementEvent, VideoInsertMode
|
||||||
VideoElementEvent,
|
|
||||||
Subscriber,
|
|
||||||
OpenVidu,
|
|
||||||
Publisher,
|
|
||||||
StreamEvent,
|
|
||||||
VideoInsertMode,
|
|
||||||
FilterEvent,
|
|
||||||
PublisherSpeakingEvent
|
|
||||||
} from 'openvidu-browser';
|
} from 'openvidu-browser';
|
||||||
|
|
||||||
import { EventsDialogComponent } from '../dialogs/events-dialog/events-dialog.component';
|
|
||||||
import { MuteSubscribersService } from '../../services/mute-subscribers.service';
|
|
||||||
import { Subscription } from 'rxjs';
|
import { Subscription } from 'rxjs';
|
||||||
import { LocalRecordingDialogComponent } from '../dialogs/local-recording-dialog/local-recording-dialog.component';
|
import { MuteSubscribersService } from '../../services/mute-subscribers.service';
|
||||||
|
import { EventsDialogComponent } from '../dialogs/events-dialog/events-dialog.component';
|
||||||
import { ExtensionDialogComponent } from '../dialogs/extension-dialog/extension-dialog.component';
|
import { ExtensionDialogComponent } from '../dialogs/extension-dialog/extension-dialog.component';
|
||||||
|
import { LocalRecordingDialogComponent } from '../dialogs/local-recording-dialog/local-recording-dialog.component';
|
||||||
import { OtherStreamOperationsDialogComponent } from '../dialogs/other-stream-operations-dialog/other-stream-operations-dialog.component';
|
import { OtherStreamOperationsDialogComponent } from '../dialogs/other-stream-operations-dialog/other-stream-operations-dialog.component';
|
||||||
import { OpenViduEvent } from '../openvidu-instance/openvidu-instance.component';
|
|
||||||
import { ShowIceServerConfiguredDialog } from '../dialogs/show-configured-ice/show-configured-ice.component';
|
import { ShowIceServerConfiguredDialog } from '../dialogs/show-configured-ice/show-configured-ice.component';
|
||||||
|
import { OpenViduEvent } from '../openvidu-instance/openvidu-instance.component';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-video',
|
selector: 'app-video',
|
||||||
|
@ -750,7 +743,7 @@ export class VideoComponent implements OnInit, OnDestroy {
|
||||||
});
|
});
|
||||||
dialogRef.componentInstance.myReference = dialogRef;
|
dialogRef.componentInstance.myReference = dialogRef;
|
||||||
|
|
||||||
dialogRef.afterOpen().subscribe(() => {
|
dialogRef.afterOpened().subscribe(() => {
|
||||||
this.muteSubscribersService.updateMuted(true);
|
this.muteSubscribersService.updateMuted(true);
|
||||||
this.recorder.preview('recorder-preview').controls = true;
|
this.recorder.preview('recorder-preview').controls = true;
|
||||||
});
|
});
|
||||||
|
|
|
@ -3,7 +3,7 @@ import { Subject } from 'rxjs';
|
||||||
|
|
||||||
import { Event } from 'openvidu-browser';
|
import { Event } from 'openvidu-browser';
|
||||||
|
|
||||||
var stringify = require('json-stringify-safe');
|
import * as stringify from 'json-stringify-safe';
|
||||||
|
|
||||||
@Injectable()
|
@Injectable()
|
||||||
export class TestFeedService {
|
export class TestFeedService {
|
||||||
|
@ -26,10 +26,10 @@ export class TestFeedService {
|
||||||
return stringify(event, (key, value) => {
|
return stringify(event, (key, value) => {
|
||||||
// Remove unnecessary properties
|
// Remove unnecessary properties
|
||||||
if (key == 'ee' || key == 'openvidu' || key == 'userHandlerArrowHandler' || key == 'handlers') {
|
if (key == 'ee' || key == 'openvidu' || key == 'userHandlerArrowHandler' || key == 'handlers') {
|
||||||
return
|
return undefined;
|
||||||
} else {
|
|
||||||
return value;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
return value;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -4,8 +4,6 @@ import { platformBrowserDynamic } from '@angular/platform-browser-dynamic';
|
||||||
import { AppModule } from './app/app.module';
|
import { AppModule } from './app/app.module';
|
||||||
import { environment } from './environments/environment';
|
import { environment } from './environments/environment';
|
||||||
|
|
||||||
import 'hammerjs';
|
|
||||||
|
|
||||||
if (environment.production) {
|
if (environment.production) {
|
||||||
enableProdMode();
|
enableProdMode();
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,10 +1,10 @@
|
||||||
@import '~@angular/material/theming';
|
@use '@angular/material' as mat;
|
||||||
// Plus imports for other components in your app.
|
// Plus imports for other components in your app.
|
||||||
|
|
||||||
// Include the common styles for Angular Material. We include this here so that you only
|
// Include the common styles for Angular Material. We include this here so that you only
|
||||||
// have to load a single css file for Angular Material in your app.
|
// have to load a single css file for Angular Material in your app.
|
||||||
// Be sure that you only ever include this mixin once!
|
// Be sure that you only ever include this mixin once!
|
||||||
@include mat-core();
|
@include mat.core();
|
||||||
|
|
||||||
$mat-openvidu: (
|
$mat-openvidu: (
|
||||||
50: #eaeaea,
|
50: #eaeaea,
|
||||||
|
@ -42,16 +42,16 @@ $mat-openvidu: (
|
||||||
// Define the palettes for your theme using the Material Design palettes available in palette.scss
|
// Define the palettes for your theme using the Material Design palettes available in palette.scss
|
||||||
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
|
// (imported above). For each palette, you can optionally specify a default, lighter, and darker
|
||||||
// hue.
|
// hue.
|
||||||
$openvidu-primary: mat-palette($mat-openvidu);
|
$openvidu-primary: mat.define-palette($mat-openvidu);
|
||||||
$openvidu-accent: mat-palette($mat-openvidu, A200, A100, A400);
|
$openvidu-accent: mat.define-palette($mat-openvidu, A200, A100, A400);
|
||||||
|
|
||||||
// The warn palette is optional (defaults to red).
|
// The warn palette is optional (defaults to red).
|
||||||
$openvidu-warn: mat-palette($mat-red);
|
$openvidu-warn: mat.define-palette(mat.$red-palette);
|
||||||
|
|
||||||
// Create the theme object (a Sass map containing all of the palettes).
|
// Create the theme object (a Sass map containing all of the palettes).
|
||||||
$openvidu-theme: mat-light-theme($openvidu-primary, $openvidu-accent, $openvidu-warn);
|
$openvidu-theme: mat.define-light-theme($openvidu-primary, $openvidu-accent, $openvidu-warn);
|
||||||
|
|
||||||
// Include theme styles for core and each component used in your app.
|
// Include theme styles for core and each component used in your app.
|
||||||
// Alternatively, you can import and @include the theme mixins for each component
|
// Alternatively, you can import and @include the theme mixins for each component
|
||||||
// that you are using.
|
// that you are using.
|
||||||
@include angular-material-theme($openvidu-theme);
|
@include mat.all-component-themes($openvidu-theme);
|
|
@ -4,7 +4,7 @@
|
||||||
"outDir": "../out-tsc/spec",
|
"outDir": "../out-tsc/spec",
|
||||||
"baseUrl": "./",
|
"baseUrl": "./",
|
||||||
"module": "commonjs",
|
"module": "commonjs",
|
||||||
"target": "es5",
|
"target": "es2020",
|
||||||
"types": [
|
"types": [
|
||||||
"jasmine",
|
"jasmine",
|
||||||
"node"
|
"node"
|
||||||
|
|
|
@ -7,7 +7,7 @@
|
||||||
"moduleResolution": "node",
|
"moduleResolution": "node",
|
||||||
"emitDecoratorMetadata": true,
|
"emitDecoratorMetadata": true,
|
||||||
"experimentalDecorators": true,
|
"experimentalDecorators": true,
|
||||||
"target": "es5",
|
"target": "es2020",
|
||||||
"typeRoots": [
|
"typeRoots": [
|
||||||
"node_modules/@types"
|
"node_modules/@types"
|
||||||
],
|
],
|
||||||
|
|
|
@ -13,6 +13,9 @@
|
||||||
"curly": true,
|
"curly": true,
|
||||||
"eofline": true,
|
"eofline": true,
|
||||||
"forin": true,
|
"forin": true,
|
||||||
|
"deprecation": {
|
||||||
|
"severity": "warning"
|
||||||
|
},
|
||||||
"import-blacklist": [
|
"import-blacklist": [
|
||||||
true
|
true
|
||||||
],
|
],
|
||||||
|
@ -68,7 +71,6 @@
|
||||||
"no-trailing-whitespace": true,
|
"no-trailing-whitespace": true,
|
||||||
"no-unnecessary-initializer": true,
|
"no-unnecessary-initializer": true,
|
||||||
"no-unused-expression": true,
|
"no-unused-expression": true,
|
||||||
"no-use-before-declare": true,
|
|
||||||
"no-var-keyword": true,
|
"no-var-keyword": true,
|
||||||
"object-literal-sort-keys": false,
|
"object-literal-sort-keys": false,
|
||||||
"one-line": [
|
"one-line": [
|
||||||
|
|
Loading…
Reference in New Issue