diff --git a/src/app/components/Home/Home.component.ts b/src/app/components/Home/Home.component.ts
index 6f8ca28..8d36e78 100644
--- a/src/app/components/Home/Home.component.ts
+++ b/src/app/components/Home/Home.component.ts
@@ -59,7 +59,7 @@ export class HomeComponent implements OnInit {
...files.filter((i: any) => i.children),
...files.filter((i: any) => !i.children)
];
- console.log('FILES', this.files);
+ // console.log('FILES', this.files);
}
onClose(idx: number): void {
this.dialogs = this.dialogs.filter((i, k) => k !== idx);
@@ -72,7 +72,7 @@ export class HomeComponent implements OnInit {
if (!filename) {
return;
}
- console.log('downloading file', filename);
+ // console.log('downloading file', filename);
const href = encodeURIComponent('/' + filename);
const url = `/webshark/json?method=download&capture=${href}&token=self`;
diff --git a/src/app/components/controls/chart-and-table/chart-and-table.component.ts b/src/app/components/controls/chart-and-table/chart-and-table.component.ts
index be70482..8d121e7 100644
--- a/src/app/components/controls/chart-and-table/chart-and-table.component.ts
+++ b/src/app/components/controls/chart-and-table/chart-and-table.component.ts
@@ -15,12 +15,12 @@ export class ChartAndTableComponent implements OnInit {
return;
}
- console.log({ val });
+ // console.log({ val });
const _data = val;
const arrTitle: any[] = [];
Object.entries(_data).forEach(([key, value]: any) => {
if (Array.isArray(value)) {
- console.log({ key, value });
+ // console.log({ key, value });
this._data = value || [];
} else {
// this.title += `${value}`;
@@ -31,10 +31,10 @@ export class ChartAndTableComponent implements OnInit {
* get data for chart
*/
//
- console.log('this._data', this._data);
+ // console.log('this._data', this._data);
var o: any = {};
this._data.forEach((i: any) => {
- console.log(i)
+ // console.log(i)
Object.entries(i).map(([key, val]) => {
if (typeof val === 'number') {
if (!o[key]) {
diff --git a/src/app/components/controls/flexible-chart/flexible-chart.component.ts b/src/app/components/controls/flexible-chart/flexible-chart.component.ts
index 739748c..be9eb4d 100644
--- a/src/app/components/controls/flexible-chart/flexible-chart.component.ts
+++ b/src/app/components/controls/flexible-chart/flexible-chart.component.ts
@@ -40,7 +40,7 @@ export class FlexibleChartComponent implements OnInit, AfterViewInit, OnDestroy
@Input() set typeOfChart(val: TypeOfChart) {
this._typeOfChart = val;
- console.log({ val });
+ // console.log({ val });
this.redraw();
}
get typeOfChart(): TypeOfChart {
diff --git a/src/app/components/controls/menu-stat/menu-stat.component.ts b/src/app/components/controls/menu-stat/menu-stat.component.ts
index 222cad4..3884547 100644
--- a/src/app/components/controls/menu-stat/menu-stat.component.ts
+++ b/src/app/components/controls/menu-stat/menu-stat.component.ts
@@ -27,7 +27,7 @@ export class MenuStatComponent implements OnInit {
async initMenu() {
try {
this.menuTreeIndex = [];
- console.log('MENU:ngOnInit()')
+ // console.log('MENU:ngOnInit()')
const info = await this.webSharkDataService.getInfo();
const {
stats, nstat, convs,
diff --git a/src/app/components/controls/tap/tap-rtp-streams/tap-rtp-streams.component.ts b/src/app/components/controls/tap/tap-rtp-streams/tap-rtp-streams.component.ts
index 4b27802..5264e07 100644
--- a/src/app/components/controls/tap/tap-rtp-streams/tap-rtp-streams.component.ts
+++ b/src/app/components/controls/tap/tap-rtp-streams/tap-rtp-streams.component.ts
@@ -69,7 +69,7 @@ export class TapRtpStreamsComponent implements OnInit {
isDone = done;
}
- console.log({ collectArrayData });
+ // console.log({ collectArrayData });
return new Blob(collectArrayData, { type: DATA_TYPE });
}
@@ -88,7 +88,7 @@ export class TapRtpStreamsComponent implements OnInit {
this.progressMessage.push(`Reading data from ${this.captureFile} file`);
this.cdr.detectChanges();
const blobData: Blob = await this.getFileArrayOfUint8Array(this.captureFile);
- console.log(this.captureFile, { blobData });
+ // console.log(this.captureFile, { blobData });
// const blobUrl = await transcode(blobData);
// console.log(blobUrl)
@@ -104,12 +104,12 @@ export class TapRtpStreamsComponent implements OnInit {
offset += 16;
return [offset, ...i.c, blobData.slice(offset, offset + +i.c[5], DATA_TYPE)];
})
- console.log(arrOffset);
+ // console.log(arrOffset);
this.progressMessage.push('Collect payload binary to streams')
this.cdr.detectChanges();
// rtp-streams
const { taps: [{ streams: rtpStreams }] } = await this.webSharkDataService.getTapJson('rtp-streams');
- console.log(rtpStreams);
+ // console.log(rtpStreams);
const arr = rtpStreams.map((streamData: any) => {
return {
@@ -120,7 +120,7 @@ export class TapRtpStreamsComponent implements OnInit {
.map((i: any) => (i[8] as Blob).slice(54)), { type: DATA_TYPE })
};
})
- console.log({ arr })
+ // console.log({ arr })
const codecDictionary: any = {
'g711a': 'alaw',
'g711u': 'mulaw',
@@ -128,16 +128,16 @@ export class TapRtpStreamsComponent implements OnInit {
};
const out: any[] = [];
for (let item of arr) {
- console.log('<>>>>', item.data);
+ // console.log('<>>>>', item.data);
const codec = codecDictionary[(item.data.payload + '').toLowerCase()] || 'g722';
- console.log('<>>>>', {codec});
+ // console.log('<>>>>', {codec});
// const i = arr[0];
this.progressMessage.push(`FFmpeg:: converting ${item.ssrc} stream to audio (mp3)`);
this.cdr.detectChanges();
const blobUrl = await transcode(item.blob, codec, `audio-${item.ssrc}.mp3`);
- console.log(blobUrl)
+ // console.log(blobUrl)
out.push({ ssrc: item.ssrc, blobUrl });
this.blobSaveAsFile(blobUrl, `audio-${item.ssrc}.mp3`);
@@ -205,14 +205,14 @@ export class TapRtpStreamsComponent implements OnInit {
}
async rowClick({ row }: any) {
- console.log({ row });
+ // console.log({ row });
const id = `player-${hash(JSON.stringify(row))}`;
let playerElement = this.players.find(p => p.id === id);
if (!playerElement) {
const rowData = await this.webSharkDataService.getRTPStreamTap(row);
// const mp3link = this.webSharkDataService.getMp3LinkByRowData(row);
const { taps: [{ ssrc }] } = rowData;
- console.log(this.audioStreamsBlobURL, { rowData })
+ // console.log(this.audioStreamsBlobURL, { rowData })
playerElement = {
id,
@@ -246,7 +246,7 @@ export class TapRtpStreamsComponent implements OnInit {
console.log({ event });
}
onZoomAudio(event: any, player: any) {
- console.log(event.wheelDelta);
+ // console.log(event.wheelDelta);
if (!player._myZoom) {
player._myZoom = 1;
}
diff --git a/src/app/components/controls/tree-filter/tree-filter.component.ts b/src/app/components/controls/tree-filter/tree-filter.component.ts
index c02e564..640d40a 100644
--- a/src/app/components/controls/tree-filter/tree-filter.component.ts
+++ b/src/app/components/controls/tree-filter/tree-filter.component.ts
@@ -35,7 +35,7 @@ export class TreeFilterComponent implements OnInit, AfterViewInit {
}
this.textFilterTree = val;
this.onKeyUpFilterTree();
- console.log('textFilterTree = val')
+ // console.log('textFilterTree = val')
}
@Input() set jsonData(val: any) {
if (!val) {
@@ -69,7 +69,7 @@ export class TreeFilterComponent implements OnInit, AfterViewInit {
}
this.dataSource.data = val;
this.dataIndex = [];
- console.log('this.dataSource.data = val;')
+ // console.log('this.dataSource.data = val;')
const pushToIndex = (i: any) => {
i.forEach(({ name, description, children }: any) => {
const o: any = { name, description: description || name };
@@ -185,7 +185,7 @@ export class TreeFilterComponent implements OnInit, AfterViewInit {
tc.collapseAll();
}
}
- console.log('------------', this.bufferFiltered)
+ // console.log('------------', this.bufferFiltered)
const b = this.dataIndex.filter(i => !!Math.max(...this.textFilterTree.toLowerCase().split('||').map(f => {
return (i.description + i.name + (i.children || '')).toLowerCase().includes(f)
})));
@@ -201,7 +201,7 @@ export class TreeFilterComponent implements OnInit, AfterViewInit {
this.cdr.detectChanges();
}
onClickLine(data: any) {
- console.log(data)
+ // console.log(data)
this.clickRow.emit(data);
}
}
diff --git a/src/app/components/files-page/files-page.component.html b/src/app/components/files-page/files-page.component.html
index 60eea34..a1fe399 100644
--- a/src/app/components/files-page/files-page.component.html
+++ b/src/app/components/files-page/files-page.component.html
@@ -1,37 +1,49 @@
-