Fix calling tools JS
This commit is contained in:
parent
5f0080a7d7
commit
29eb07c159
23 changed files with 27 additions and 23 deletions
|
@ -20,6 +20,7 @@ build/ICUMessageParams.d.ts
|
||||||
# Third-party files
|
# Third-party files
|
||||||
js/Mp3LameEncoder.min.js
|
js/Mp3LameEncoder.min.js
|
||||||
js/WebAudioRecorderMp3.js
|
js/WebAudioRecorderMp3.js
|
||||||
|
js/calling-tools/**
|
||||||
|
|
||||||
# TypeScript generated files
|
# TypeScript generated files
|
||||||
app/**/*.js
|
app/**/*.js
|
||||||
|
|
3
.gitignore
vendored
3
.gitignore
vendored
|
@ -38,9 +38,6 @@ build/ICUMessageParams.d.ts
|
||||||
app/*.js
|
app/*.js
|
||||||
ts/**/*.js
|
ts/**/*.js
|
||||||
ts/protobuf/*.d.ts
|
ts/protobuf/*.d.ts
|
||||||
# allow js from callingtools
|
|
||||||
!ts/windows/callingtools/**/*.js
|
|
||||||
ts/windows/callingtools/preload.js
|
|
||||||
|
|
||||||
# CSS Modules
|
# CSS Modules
|
||||||
**/*.scss.d.ts
|
**/*.scss.d.ts
|
||||||
|
|
|
@ -29,6 +29,7 @@ components/**
|
||||||
js/curve/**
|
js/curve/**
|
||||||
js/Mp3LameEncoder.min.js
|
js/Mp3LameEncoder.min.js
|
||||||
js/WebAudioRecorderMp3.js
|
js/WebAudioRecorderMp3.js
|
||||||
|
js/calling-tools/**
|
||||||
|
|
||||||
# Assets
|
# Assets
|
||||||
/images/
|
/images/
|
||||||
|
|
|
@ -1266,7 +1266,7 @@ async function showCallingDevToolsWindow() {
|
||||||
sandbox: true,
|
sandbox: true,
|
||||||
contextIsolation: true,
|
contextIsolation: true,
|
||||||
nativeWindowOpen: true,
|
nativeWindowOpen: true,
|
||||||
preload: join(__dirname, '../bundles/callingtools/preload.js'),
|
preload: join(__dirname, '../bundles/calling-tools/preload.js'),
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
/>
|
/>
|
||||||
<script
|
<script
|
||||||
type="module"
|
type="module"
|
||||||
src="bundles/callingtools/webrtc_internals.js"
|
src="bundles/calling-tools/webrtc_internals.js"
|
||||||
></script>
|
></script>
|
||||||
</head>
|
</head>
|
||||||
<body>
|
<body>
|
||||||
|
|
|
@ -11,7 +11,7 @@ import {StatsRatesCalculator, StatsReport} from './stats_rates_calculator.js';
|
||||||
import {StatsTable} from './stats_table.js';
|
import {StatsTable} from './stats_table.js';
|
||||||
import {TabView} from './tab_view.js';
|
import {TabView} from './tab_view.js';
|
||||||
import {UserMediaTable} from './user_media_table.js';
|
import {UserMediaTable} from './user_media_table.js';
|
||||||
import { i18n } from '../sandboxedInit.js';
|
import { i18n } from '../../ts/windows/sandboxedInit.js';
|
||||||
|
|
||||||
let tabView = null;
|
let tabView = null;
|
||||||
let peerConnectionUpdateTable = null;
|
let peerConnectionUpdateTable = null;
|
|
@ -136,8 +136,8 @@ async function sandboxedEnv() {
|
||||||
ROOT_DIR,
|
ROOT_DIR,
|
||||||
'ts',
|
'ts',
|
||||||
'windows',
|
'windows',
|
||||||
'callingtools',
|
'calling-tools',
|
||||||
'webrtc_internals.js'
|
'webrtc_internals.ts'
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
},
|
},
|
||||||
|
@ -149,7 +149,7 @@ async function sandboxedEnv() {
|
||||||
path.join(ROOT_DIR, 'ts', 'windows', 'debuglog', 'preload.ts'),
|
path.join(ROOT_DIR, 'ts', 'windows', 'debuglog', 'preload.ts'),
|
||||||
path.join(ROOT_DIR, 'ts', 'windows', 'loading', 'preload.ts'),
|
path.join(ROOT_DIR, 'ts', 'windows', 'loading', 'preload.ts'),
|
||||||
path.join(ROOT_DIR, 'ts', 'windows', 'permissions', 'preload.ts'),
|
path.join(ROOT_DIR, 'ts', 'windows', 'permissions', 'preload.ts'),
|
||||||
path.join(ROOT_DIR, 'ts', 'windows', 'callingtools', 'preload.ts'),
|
path.join(ROOT_DIR, 'ts', 'windows', 'calling-tools', 'preload.ts'),
|
||||||
path.join(ROOT_DIR, 'ts', 'windows', 'screenShare', 'preload.ts'),
|
path.join(ROOT_DIR, 'ts', 'windows', 'screenShare', 'preload.ts'),
|
||||||
path.join(ROOT_DIR, 'ts', 'windows', 'settings', 'preload.ts'),
|
path.join(ROOT_DIR, 'ts', 'windows', 'settings', 'preload.ts'),
|
||||||
],
|
],
|
||||||
|
|
|
@ -52,20 +52,20 @@ const FILES_TO_IGNORE = new Set(
|
||||||
'sticker-creator/src/util/protos.js',
|
'sticker-creator/src/util/protos.js',
|
||||||
// ignore calling developer tools licensing which use Chromium license
|
// ignore calling developer tools licensing which use Chromium license
|
||||||
'calling_tools.html',
|
'calling_tools.html',
|
||||||
'ts/windows/callingtools/assert.js',
|
'js/calling-tools/assert.js',
|
||||||
'ts/windows/callingtools/candidate_grid.js',
|
'js/calling-tools/candidate_grid.js',
|
||||||
'ts/windows/callingtools/data_series.js',
|
'js/calling-tools/data_series.js',
|
||||||
'ts/windows/callingtools/dump_creator.js',
|
'js/calling-tools/dump_creator.js',
|
||||||
'ts/windows/callingtools/peer_connection_update_table.js',
|
'js/calling-tools/peer_connection_update_table.js',
|
||||||
'ts/windows/callingtools/stats_graph_helper.js',
|
'js/calling-tools/stats_graph_helper.js',
|
||||||
'ts/windows/callingtools/stats_helper.js',
|
'js/calling-tools/stats_helper.js',
|
||||||
'ts/windows/callingtools/stats_rates_calculator.js',
|
'js/calling-tools/stats_rates_calculator.js',
|
||||||
'ts/windows/callingtools/stats_table.js',
|
'js/calling-tools/stats_table.js',
|
||||||
'ts/windows/callingtools/tab_view.js',
|
'js/calling-tools/tab_view.js',
|
||||||
'ts/windows/callingtools/timeline_graph_view.js',
|
'js/calling-tools/timeline_graph_view.js',
|
||||||
'ts/windows/callingtools/user_media_table.js',
|
'js/calling-tools/user_media_table.js',
|
||||||
'ts/windows/callingtools/util.js',
|
'js/calling-tools/util.js',
|
||||||
'ts/windows/callingtools/webrtc_internals.js',
|
'js/calling-tools/webrtc_internals.js',
|
||||||
].map(
|
].map(
|
||||||
// This makes sure the files are correct on Windows.
|
// This makes sure the files are correct on Windows.
|
||||||
path.normalize
|
path.normalize
|
||||||
|
|
5
ts/windows/calling-tools/webrtc_internals.ts
Normal file
5
ts/windows/calling-tools/webrtc_internals.ts
Normal file
|
@ -0,0 +1,5 @@
|
||||||
|
// Copyright 2024 Signal Messenger, LLC
|
||||||
|
// SPDX-License-Identifier: AGPL-3.0-only
|
||||||
|
|
||||||
|
// eslint-disable-next-line import/extensions
|
||||||
|
import '../../../js/calling-tools/webrtc_internals.js';
|
Loading…
Add table
Add a link
Reference in a new issue