mirror of https://github.com/OpenVidu/openvidu.git
ov-components: remove unnecessary console logs
parent
c80c8d3ab2
commit
b71991a3e4
|
@ -258,7 +258,6 @@ export class LayoutComponent implements OnInit, OnDestroy, AfterViewInit {
|
||||||
const handler = (event) => {
|
const handler = (event) => {
|
||||||
if (!this.panelService.isPanelOpened()) return;
|
if (!this.panelService.isPanelOpened()) return;
|
||||||
const { x, width } = this.localLayoutElement.nativeElement.getBoundingClientRect();
|
const { x, width } = this.localLayoutElement.nativeElement.getBoundingClientRect();
|
||||||
console.log(x);
|
|
||||||
const { width: parentWidth } = this.layoutContainer.element.nativeElement.getBoundingClientRect();
|
const { width: parentWidth } = this.layoutContainer.element.nativeElement.getBoundingClientRect();
|
||||||
if (x === 0) {
|
if (x === 0) {
|
||||||
// Video is at the left
|
// Video is at the left
|
||||||
|
|
|
@ -957,13 +957,6 @@ export class VideoconferenceComponent implements OnDestroy, AfterViewInit {
|
||||||
isRoomReady: true,
|
isRoomReady: true,
|
||||||
showPrejoin: false
|
showPrejoin: false
|
||||||
});
|
});
|
||||||
console.log(this.componentState);
|
|
||||||
console.warn(
|
|
||||||
this.componentState.isRoomReady &&
|
|
||||||
!this.componentState.showPrejoin &&
|
|
||||||
!this.componentState.isLoading &&
|
|
||||||
!this.componentState.error?.hasError
|
|
||||||
);
|
|
||||||
} else {
|
} else {
|
||||||
// Only update showPrejoin if user hasn't initiated join process yet
|
// Only update showPrejoin if user hasn't initiated join process yet
|
||||||
// This prevents prejoin from showing again after user clicked join
|
// This prevents prejoin from showing again after user clicked join
|
||||||
|
|
|
@ -290,27 +290,6 @@ export class OpenViduComponentsConfigService {
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Compare GeneralConfig efficiently
|
|
||||||
*/
|
|
||||||
private compareGeneralConfig(prev: GeneralConfig, curr: GeneralConfig): boolean {
|
|
||||||
const equal =
|
|
||||||
prev.token === curr.token &&
|
|
||||||
prev.livekitUrl === curr.livekitUrl &&
|
|
||||||
prev.tokenError === curr.tokenError &&
|
|
||||||
prev.minimal === curr.minimal &&
|
|
||||||
prev.participantName === curr.participantName &&
|
|
||||||
prev.prejoin === curr.prejoin &&
|
|
||||||
prev.prejoinDisplayParticipantName === curr.prejoinDisplayParticipantName &&
|
|
||||||
prev.showDisconnectionDialog === curr.showDisconnectionDialog &&
|
|
||||||
prev.recordingStreamBaseUrl === curr.recordingStreamBaseUrl;
|
|
||||||
|
|
||||||
if (!equal) {
|
|
||||||
console.log('GeneralConfig cambió', { prev, curr });
|
|
||||||
}
|
|
||||||
return equal;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Grouped configuration items by domain
|
// Grouped configuration items by domain
|
||||||
private generalConfig = this.createGeneralConfigItem({
|
private generalConfig = this.createGeneralConfigItem({
|
||||||
token: '',
|
token: '',
|
||||||
|
|
|
@ -3,19 +3,17 @@ import { RecordingDeleteRequestedEvent, RecordingInfo } from 'openvidu-component
|
||||||
import { RestService } from 'src/app/services/rest.service';
|
import { RestService } from 'src/app/services/rest.service';
|
||||||
|
|
||||||
@Component({
|
@Component({
|
||||||
selector: 'app-admin-dashboard',
|
selector: 'app-admin-dashboard',
|
||||||
templateUrl: './admin-dashboard.component.html',
|
templateUrl: './admin-dashboard.component.html',
|
||||||
styleUrls: ['./admin-dashboard.component.scss'],
|
styleUrls: ['./admin-dashboard.component.scss'],
|
||||||
standalone: false
|
standalone: false
|
||||||
})
|
})
|
||||||
export class AdminDashboardComponent implements OnInit {
|
export class AdminDashboardComponent implements OnInit {
|
||||||
recordings: RecordingInfo[] = [];
|
recordings: RecordingInfo[] = [];
|
||||||
logged: boolean;
|
logged: boolean;
|
||||||
error: any;
|
error: any;
|
||||||
private continuationToken: string;
|
private continuationToken: string;
|
||||||
constructor(
|
constructor(private restService: RestService) {}
|
||||||
private restService: RestService,
|
|
||||||
) {}
|
|
||||||
|
|
||||||
async ngOnInit() {
|
async ngOnInit() {
|
||||||
// try {
|
// try {
|
||||||
|
@ -29,7 +27,6 @@ export class AdminDashboardComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
async login(credentials: { username: string; password: string }) {
|
async login(credentials: { username: string; password: string }) {
|
||||||
console.log('LOGIN', credentials);
|
|
||||||
try {
|
try {
|
||||||
const resp: any = await this.restService.login(credentials);
|
const resp: any = await this.restService.login(credentials);
|
||||||
this.logged = true;
|
this.logged = true;
|
||||||
|
@ -50,7 +47,6 @@ export class AdminDashboardComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
async onRefreshRecordingsClicked() {
|
async onRefreshRecordingsClicked() {
|
||||||
console.log('GET ALL ');
|
|
||||||
const response = await this.restService.getRecordings();
|
const response = await this.restService.getRecordings();
|
||||||
this.recordings = response.recordings;
|
this.recordings = response.recordings;
|
||||||
this.continuationToken = response.continuationToken;
|
this.continuationToken = response.continuationToken;
|
||||||
|
|
|
@ -20,7 +20,6 @@ export class DashboardComponent implements OnInit {
|
||||||
}
|
}
|
||||||
|
|
||||||
staticVideosChanged(value: boolean) {
|
staticVideosChanged(value: boolean) {
|
||||||
console.warn('VC video enabled: ', value);
|
|
||||||
this.areStaticVideosEnabled = value;
|
this.areStaticVideosEnabled = value;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue