mirror of https://github.com/OpenVidu/openvidu.git
openvidu-components: Added prettier
parent
3c97ceac37
commit
31f5206f01
|
@ -0,0 +1,10 @@
|
||||||
|
{
|
||||||
|
"singleQuote": true,
|
||||||
|
"printWidth": 140,
|
||||||
|
"trailingComma": "none",
|
||||||
|
"semi": true,
|
||||||
|
"bracketSpacing": true,
|
||||||
|
"useTabs": true,
|
||||||
|
"jsxSingleQuote": true,
|
||||||
|
"tabWidth": 4
|
||||||
|
}
|
|
@ -1,2 +1 @@
|
||||||
|
|
||||||
<router-outlet></router-outlet>
|
<router-outlet></router-outlet>
|
|
@ -4,9 +4,7 @@ import { AppComponent } from './app.component';
|
||||||
describe('AppComponent', () => {
|
describe('AppComponent', () => {
|
||||||
beforeEach(async(() => {
|
beforeEach(async(() => {
|
||||||
TestBed.configureTestingModule({
|
TestBed.configureTestingModule({
|
||||||
declarations: [
|
declarations: [AppComponent]
|
||||||
AppComponent
|
|
||||||
],
|
|
||||||
}).compileComponents();
|
}).compileComponents();
|
||||||
}));
|
}));
|
||||||
|
|
||||||
|
|
|
@ -10,5 +10,4 @@ export class AppComponent implements OnInit {
|
||||||
constructor() {}
|
constructor() {}
|
||||||
|
|
||||||
ngOnInit() {}
|
ngOnInit() {}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
|
@ -16,7 +16,15 @@ import { ChatTestComponent } from './components/chat-test/chat-test.component';
|
||||||
import { LayoutTestComponent } from './components/layout-test/layout-test.component';
|
import { LayoutTestComponent } from './components/layout-test/layout-test.component';
|
||||||
import { ParticipantTestComponent } from './components/participant-test/participant-test.component';
|
import { ParticipantTestComponent } from './components/participant-test/participant-test.component';
|
||||||
|
|
||||||
import { OpenviduAngularModule, UserSettingsComponent, ChatComponent, ToolbarComponent, RoomComponent, LayoutComponent } from 'openvidu-angular';
|
import {
|
||||||
|
OpenviduAngularModule,
|
||||||
|
UserSettingsComponent,
|
||||||
|
ChatComponent,
|
||||||
|
ToolbarComponent,
|
||||||
|
RoomComponent,
|
||||||
|
LayoutComponent,
|
||||||
|
VideoconferenceComponent
|
||||||
|
} from 'openvidu-angular';
|
||||||
import { MatButtonModule } from '@angular/material/button';
|
import { MatButtonModule } from '@angular/material/button';
|
||||||
|
|
||||||
@NgModule({
|
@NgModule({
|
||||||
|
@ -36,13 +44,7 @@ import { MatButtonModule } from '@angular/material/button';
|
||||||
OpenviduAngularModule.forRoot(environment),
|
OpenviduAngularModule.forRoot(environment),
|
||||||
AppRoutingModule // Order is important, AppRoutingModule must be the last import for useHash working
|
AppRoutingModule // Order is important, AppRoutingModule must be the last import for useHash working
|
||||||
],
|
],
|
||||||
providers: [
|
providers: [VideoconferenceComponent, UserSettingsComponent, ToolbarComponent, ChatComponent, RoomComponent, LayoutComponent],
|
||||||
UserSettingsComponent,
|
|
||||||
ToolbarComponent,
|
|
||||||
ChatComponent,
|
|
||||||
RoomComponent,
|
|
||||||
LayoutComponent
|
|
||||||
],
|
|
||||||
bootstrap: [AppComponent]
|
bootstrap: [AppComponent]
|
||||||
})
|
})
|
||||||
export class AppModule {}
|
export class AppModule {}
|
||||||
|
|
|
@ -7,19 +7,16 @@ import { ChatTestComponent } from './components/chat-test/chat-test.component';
|
||||||
import { LayoutTestComponent } from './components/layout-test/layout-test.component';
|
import { LayoutTestComponent } from './components/layout-test/layout-test.component';
|
||||||
import { ParticipantTestComponent } from './components/participant-test/participant-test.component';
|
import { ParticipantTestComponent } from './components/participant-test/participant-test.component';
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
const routes: Routes = [
|
const routes: Routes = [
|
||||||
{ path: '', component: DashboardComponent },
|
{ path: '', component: DashboardComponent },
|
||||||
{ path: 'call', component: CallComponent },
|
{ path: 'call', component: CallComponent },
|
||||||
{ path: 'toolbar', component: ToolbarTestComponent },
|
{ path: 'toolbar', component: ToolbarTestComponent },
|
||||||
{ path: 'chat', component: ChatTestComponent },
|
{ path: 'chat', component: ChatTestComponent },
|
||||||
{ path: 'layout', component: LayoutTestComponent },
|
{ path: 'layout', component: LayoutTestComponent },
|
||||||
{ path: 'participant', component: ParticipantTestComponent },
|
{ path: 'participant', component: ParticipantTestComponent }
|
||||||
|
|
||||||
];
|
];
|
||||||
@NgModule({
|
@NgModule({
|
||||||
imports: [RouterModule.forRoot(routes, { useHash: true })],
|
imports: [RouterModule.forRoot(routes, { useHash: true })],
|
||||||
exports: [RouterModule],
|
exports: [RouterModule]
|
||||||
})
|
})
|
||||||
export class AppRoutingModule {}
|
export class AppRoutingModule {}
|
||||||
|
|
|
@ -2,13 +2,11 @@ import { Component, OnInit } from '@angular/core';
|
||||||
import { RestService } from '../services/rest.service';
|
import { RestService } from '../services/rest.service';
|
||||||
import { Router } from '@angular/router';
|
import { Router } from '@angular/router';
|
||||||
|
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-call',
|
selector: 'app-call',
|
||||||
templateUrl: './call.component.html',
|
templateUrl: './call.component.html',
|
||||||
styleUrls: ['./call.component.scss']
|
styleUrls: ['./call.component.scss']
|
||||||
})
|
})
|
||||||
|
|
||||||
export class CallComponent implements OnInit {
|
export class CallComponent implements OnInit {
|
||||||
sessionId = 'prueba-majestuosa-amable';
|
sessionId = 'prueba-majestuosa-amable';
|
||||||
tokens: { webcam: string; screen: string };
|
tokens: { webcam: string; screen: string };
|
||||||
|
|
Loading…
Reference in New Issue