diff --git a/openvidu-testapp/package.json b/openvidu-testapp/package.json
index 257bdb00..88eb0ce7 100644
--- a/openvidu-testapp/package.json
+++ b/openvidu-testapp/package.json
@@ -1,6 +1,6 @@
{
"name": "openvidu-testapp",
- "version": "0.0.0",
+ "version": "1.1.0",
"license": "Apache-2.0",
"scripts": {
"ng": "ng",
@@ -42,10 +42,10 @@
"codelyzer": "~3.1.1",
"jasmine-core": "~2.6.2",
"jasmine-spec-reporter": "~4.1.0",
- "karma": "~1.7.0",
- "karma-chrome-launcher": "~2.1.1",
+ "karma": "1.7.1",
+ "karma-chrome-launcher": "2.2.0",
"karma-cli": "~1.0.1",
- "karma-coverage-istanbul-reporter": "^1.2.1",
+ "karma-coverage-istanbul-reporter": "^1.3.0",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"protractor": "~5.1.2",
diff --git a/openvidu-testapp/src/app/app.component.css b/openvidu-testapp/src/app/app.component.css
index 57c7a932..d2e551e4 100644
--- a/openvidu-testapp/src/app/app.component.css
+++ b/openvidu-testapp/src/app/app.component.css
@@ -6,3 +6,13 @@
main {
padding: 30px 50px 30px 50px;
}
+
+#nav-logo {
+ padding-right: 20px;
+ font-weight: inherit;
+}
+
+md-toolbar a {
+ padding: 0 10px 0 10px;
+ font-weight: bold;
+}
\ No newline at end of file
diff --git a/openvidu-testapp/src/app/app.component.html b/openvidu-testapp/src/app/app.component.html
index f47d98fc..96d73726 100644
--- a/openvidu-testapp/src/app/app.component.html
+++ b/openvidu-testapp/src/app/app.component.html
@@ -1,10 +1,18 @@
+
TestApp
+ SESSIONS
+ API REST
+
+
+
+
+
+
+
-
\ No newline at end of file
+
diff --git a/openvidu-testapp/src/app/app.component.ts b/openvidu-testapp/src/app/app.component.ts
index 655c40c9..753ec969 100644
--- a/openvidu-testapp/src/app/app.component.ts
+++ b/openvidu-testapp/src/app/app.component.ts
@@ -1,5 +1,6 @@
import { Component } from '@angular/core';
import { Router } from '@angular/router';
+import { OpenviduParamsService } from './services/openvidu-params.service';
@Component({
selector: 'app-root',
@@ -8,10 +9,23 @@ import { Router } from '@angular/router';
})
export class AppComponent {
- constructor(private router: Router) { }
+ openviduURL = 'https://localhost:8443';
+ openviduSecret = 'MY_SECRET';
- isVideoSessionUrl() {
- return (this.router.url.substring(0, '/lesson/'.length) === '/lesson/');
+ constructor(private router: Router, private openviduParamsService: OpenviduParamsService) { }
+
+ updateUrl(url) {
+ this.openviduURL = url;
+ this.updateParams();
+ }
+
+ updateSecret(secret) {
+ this.openviduSecret = secret;
+ this.updateParams();
+ }
+
+ updateParams() {
+ this.openviduParamsService.updateParams({ openviduUrl: this.openviduURL, openviduSecret: this.openviduSecret });
}
}
diff --git a/openvidu-testapp/src/app/app.material.module.ts b/openvidu-testapp/src/app/app.material.module.ts
index f094fd3c..2f5a6cd5 100644
--- a/openvidu-testapp/src/app/app.material.module.ts
+++ b/openvidu-testapp/src/app/app.material.module.ts
@@ -15,6 +15,7 @@ import {
MdListModule,
MdRadioModule,
MdSelectModule,
+ MdChipsModule,
MdSlideToggleModule
} from '@angular/material';
@@ -35,6 +36,7 @@ import {
MdListModule,
MdRadioModule,
MdSelectModule,
+ MdChipsModule,
MdSlideToggleModule
],
})
diff --git a/openvidu-testapp/src/app/app.module.ts b/openvidu-testapp/src/app/app.module.ts
index e97feffb..cbdf0d2e 100644
--- a/openvidu-testapp/src/app/app.module.ts
+++ b/openvidu-testapp/src/app/app.module.ts
@@ -7,16 +7,18 @@ import { AppMaterialModule } from './app.material.module';
import { routing } from './app.routing';
import { AppComponent } from './app.component';
-import { DashboardComponent } from './components/dashboard/dashboard.component';
-
-import { OpenviduRestService } from './services/openvidu-rest.service';
+import { TestSessionsComponent } from './components/test-sessions/test-sessions.component';
+import { TestApirestComponent } from './components/test-apirest/test-apirest.component';
import { OpenviduInstanceComponent } from './components/openvidu-instance/openvidu-instance.component';
+import { OpenviduRestService } from './services/openvidu-rest.service';
+import { OpenviduParamsService } from './services/openvidu-params.service';
@NgModule({
declarations: [
AppComponent,
- DashboardComponent,
- OpenviduInstanceComponent
+ OpenviduInstanceComponent,
+ TestSessionsComponent,
+ TestApirestComponent
],
imports: [
BrowserModule,
@@ -27,7 +29,8 @@ import { OpenviduInstanceComponent } from './components/openvidu-instance/openvi
routing
],
providers: [
- OpenviduRestService
+ OpenviduRestService,
+ OpenviduParamsService
],
bootstrap: [AppComponent]
})
diff --git a/openvidu-testapp/src/app/app.routing.ts b/openvidu-testapp/src/app/app.routing.ts
index cac03737..eecf43da 100644
--- a/openvidu-testapp/src/app/app.routing.ts
+++ b/openvidu-testapp/src/app/app.routing.ts
@@ -1,12 +1,20 @@
import { ModuleWithProviders } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
-import { DashboardComponent } from './components/dashboard/dashboard.component';
+import { TestSessionsComponent } from './components/test-sessions/test-sessions.component';
+import { TestApirestComponent } from './components/test-apirest/test-apirest.component';
const appRoutes: Routes = [
{
- path: '',
- component: DashboardComponent
+ path: '', redirectTo: '/test-sessions', pathMatch: 'full'
+ },
+ {
+ path: 'test-sessions',
+ component: TestSessionsComponent
+ },
+ {
+ path: 'test-apirest',
+ component: TestApirestComponent
}
];
diff --git a/openvidu-testapp/src/app/components/dashboard/dashboard.component.css b/openvidu-testapp/src/app/components/dashboard/dashboard.component.css
deleted file mode 100644
index 018094fe..00000000
--- a/openvidu-testapp/src/app/components/dashboard/dashboard.component.css
+++ /dev/null
@@ -1,37 +0,0 @@
-.demo-tab-content {
- margin-top: 30px;
- padding-left: 10px;
- padding-right: 10px;
-}
-
-table {
- width: 100%;
-}
-
-table tr {
- text-align: left;
-}
-
-#table-row {
- margin-top: 40px;
-}
-
-.first-col {
- padding-right: 20px;
-}
-
-th {
- padding-bottom: 20px;
-}
-
-#server-data-field {
- padding-top: 16px;
-}
-
-app-openvidu-instance {
- display: inline-flex;
- margin: 15px 25px 0 0;
- background-color: #797979;
- padding: 10px;
- border-radius: 2px;
-}
\ No newline at end of file
diff --git a/openvidu-testapp/src/app/components/dashboard/dashboard.component.html b/openvidu-testapp/src/app/components/dashboard/dashboard.component.html
deleted file mode 100644
index 700ef276..00000000
--- a/openvidu-testapp/src/app/components/dashboard/dashboard.component.html
+++ /dev/null
@@ -1,83 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- sessionIds |
- tokens |
- Session |
-
-
-
- {{sid[0]}}
- |
-
- 0" [style.background]="getBackgroundColor(ind)">
- {{token}}
-
- |
-
-
- |
-
-
-
-
-
-
-
-
diff --git a/openvidu-testapp/src/app/components/openvidu-instance/openvidu-instance.component.css b/openvidu-testapp/src/app/components/openvidu-instance/openvidu-instance.component.css
index bfff4aab..c2c5c796 100644
--- a/openvidu-testapp/src/app/components/openvidu-instance/openvidu-instance.component.css
+++ b/openvidu-testapp/src/app/components/openvidu-instance/openvidu-instance.component.css
@@ -1,3 +1,10 @@
+.div-wrapper {
+ display: inline-flex;
+ background-color: #797979;
+ padding: 10px;
+ border-radius: 2px;
+}
+
md-card {
background-color: #ffffff;
margin: 0;
@@ -81,3 +88,34 @@ md-radio-button {
.session-actions button:hover {
color: #4d4d4d;
}
+
+.event-list {
+ display: inline-block;
+ width: 125px;
+ max-height: 77.75px;
+ margin-top: 12px;
+ overflow-y: auto;
+}
+
+md-chip {
+ line-height: 6px;
+ font-size: 9.5px;
+ padding: 6px 9px !important;
+ margin-bottom: 3.5px !important;
+ margin-right: 5px !important;
+}
+
+.scroll-custom::-webkit-scrollbar-track {
+ -webkit-box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
+ box-shadow: inset 0 0 6px rgba(0, 0, 0, 0.3);
+ background-color: #F5F5F5;
+}
+
+.scroll-custom::-webkit-scrollbar {
+ width: 8px;
+ background-color: #F5F5F5;
+}
+
+.scroll-custom::-webkit-scrollbar-thumb {
+ background-color: #797979;
+}
diff --git a/openvidu-testapp/src/app/components/openvidu-instance/openvidu-instance.component.html b/openvidu-testapp/src/app/components/openvidu-instance/openvidu-instance.component.html
index 104a2ee3..706cf5d9 100644
--- a/openvidu-testapp/src/app/components/openvidu-instance/openvidu-instance.component.html
+++ b/openvidu-testapp/src/app/components/openvidu-instance/openvidu-instance.component.html
@@ -1,80 +1,91 @@
-