add file extensions

This commit is contained in:
Lewis Moten
2024-05-17 15:47:13 -04:00
parent 9431ec487f
commit 4b4f166346
19 changed files with 52 additions and 53 deletions

View File

@@ -1,4 +1,4 @@
import Dispatcher from "./Dispatcher";
import Dispatcher from "./Dispatcher.js";
const dispatcher = new Dispatcher('AudioReceiver', ['begin', 'end', 'receive']);
const noEncoding = bits => bits;

View File

@@ -1,4 +1,4 @@
import Dispatcher from "./Dispatcher";
import Dispatcher from "./Dispatcher.js";
const dispatcher = new Dispatcher('AudioSender', ['begin', 'end', 'send']);
const noEncoding = bits => bits;

View File

@@ -5,8 +5,8 @@ import {
numberToBytes,
numberToHex,
bytesToBits
} from "./converters";
import * as CRC from './CRC';
} from "./converters.js";
import * as CRC from './CRC.js';
let SEGMENT_DURATION = 30;
let PACKET_SIZE_BITS = 8;

View File

@@ -1,5 +1,5 @@
import BasePanel from './BasePanel';
import { hertz } from '../Humanize';
import BasePanel from './BasePanel.js';
import { hertz } from '../Humanize.js';
class AvailableFskPairsPanel extends BasePanel {
constructor() {
super('Available FSK Pairs');

View File

@@ -1,4 +1,4 @@
import Dispatcher from "../Dispatcher";
import Dispatcher from "../Dispatcher.js";
let lastId = 0;
const clamp = (value, min, max) => Math.max(min, Math.min(value, max));

View File

@@ -1,5 +1,5 @@
import { htmlEncode } from '../converters';
import BasePanel from './BasePanel';
import { htmlEncode } from '../converters.js';
import BasePanel from './BasePanel.js';
class CodePanel extends BasePanel {
constructor(title) {

View File

@@ -1,4 +1,4 @@
import BasePanel from './BasePanel';
import BasePanel from './BasePanel.js';
class FrequencyGraphPanel extends BasePanel {
constructor() {

View File

@@ -1,4 +1,4 @@
import BasePanel from './BasePanel';
import BasePanel from './BasePanel.js';
class FrequencyPanel extends BasePanel {
constructor() {

View File

@@ -1,4 +1,4 @@
import BasePanel from './BasePanel';
import BasePanel from './BasePanel.js';
class GraphConfigurationPanel extends BasePanel {
constructor() {

View File

@@ -1,6 +1,6 @@
import { bytesToText, textToBytes, urlToBytes, bytesToUrl } from '../converters';
import { byteSize } from '../Humanize';
import BasePanel from './BasePanel';
import { bytesToText, textToBytes, urlToBytes, bytesToUrl } from '../converters.js';
import { byteSize } from '../Humanize.js';
import BasePanel from './BasePanel.js';
class MessagePanel extends BasePanel {
constructor() {

View File

@@ -1,4 +1,4 @@
import BasePanel from './BasePanel';
import BasePanel from './BasePanel.js';
const media = {
audio: {

View File

@@ -1,4 +1,4 @@
import BasePanel from './BasePanel';
import BasePanel from './BasePanel.js';
class OutputPanel extends BasePanel {
constructor() {

View File

@@ -1,4 +1,4 @@
import BasePanel from './BasePanel';
import BasePanel from './BasePanel.js';
class PacketErrorPanel extends BasePanel {
constructor() {

View File

@@ -1,5 +1,5 @@
import BasePanel from './BasePanel';
import { byteSize, metricNumber } from '../Humanize';
import BasePanel from './BasePanel.js';
import { byteSize, metricNumber } from '../Humanize.js';
class PacketizationPanel extends BasePanel {
constructor() {

View File

@@ -1,7 +1,6 @@
import { bytesToText, bytesToUrl } from '../converters';
import BasePanel from './BasePanel';
import * as AudioReceiver from '../AudioReceiver';
import * as StreamManager from '../StreamManager';
import { bytesToText, bytesToUrl } from '../converters.js';
import BasePanel from './BasePanel.js';
import * as AudioReceiver from '../AudioReceiver.js';
class ReceivePanel extends BasePanel {
constructor() {

View File

@@ -1,4 +1,4 @@
import BasePanel from './BasePanel';
import BasePanel from './BasePanel.js';
const clamp = (value, min, max) => Math.max(min, Math.min(value, max));

View File

@@ -1,5 +1,5 @@
import BasePanel from './BasePanel';
import * as Humanize from '../Humanize';
import BasePanel from './BasePanel.js';
import * as Humanize from '../Humanize.js';
class SpeedPanel extends BasePanel {
constructor() {

View File

@@ -1,11 +1,11 @@
import Dispatcher from "./Dispatcher";
import * as CRC from './CRC';
import * as PacketUtils from './PacketUtils';
import Dispatcher from "./Dispatcher.js";
import * as CRC from './CRC.js';
import * as PacketUtils from './PacketUtils.js';
import {
bitsToInt,
bytesToBits,
numberToBytes,
} from "./converters";
} from "./converters.js";
const dispatcher = new Dispatcher('StreamManager', [
'change',

View File

@@ -1,27 +1,27 @@
import * as StreamManager from "./StreamManager";
import * as HammingEncoding from './HammingEncoding';
import * as InterleaverEncoding from './InterleaverEncoding';
import * as PacketUtils from './PacketUtils';
import * as Humanize from './Humanize';
import * as Randomizer from './Randomizer';
import * as AudioSender from './AudioSender';
import * as AudioReceiver from './AudioReceiver';
import OutputPanel from './Panels/OutputPanel';
import MessagePanel from "./Panels/MessagePanel";
import CodePanel from "./Panels/CodePanel";
import FrequencyPanel from "./Panels/FrequencyPanel";
import SignalPanel from "./Panels/SignalPanel";
import PacketizationPanel from "./Panels/PacketizationPanel";
import AvailableFskPairsPanel from "./Panels/AvailableFskPairsPanel";
import FrequencyGraphPanel from "./Panels/FrequencyGraphPanel";
import GraphConfigurationPanel from './Panels/GraphConfigurationPanel';
import PacketErrorPanel from './Panels/PacketErrorPanel';
import SpeedPanel from './Panels/SpeedPanel';
import * as StreamManager from "./StreamManager.js";
import * as HammingEncoding from './HammingEncoding.js';
import * as InterleaverEncoding from './InterleaverEncoding.js';
import * as PacketUtils from './PacketUtils.js';
import * as Humanize from './Humanize.js';
import * as Randomizer from './Randomizer.js';
import * as AudioSender from './AudioSender.js';
import * as AudioReceiver from './AudioReceiver.js';
import OutputPanel from './Panels/OutputPanel.js';
import MessagePanel from "./Panels/MessagePanel.js";
import CodePanel from "./Panels/CodePanel.js";
import FrequencyPanel from "./Panels/FrequencyPanel.js";
import SignalPanel from "./Panels/SignalPanel.js";
import PacketizationPanel from "./Panels/PacketizationPanel.js";
import AvailableFskPairsPanel from "./Panels/AvailableFskPairsPanel.js";
import FrequencyGraphPanel from "./Panels/FrequencyGraphPanel.js";
import GraphConfigurationPanel from './Panels/GraphConfigurationPanel.js';
import PacketErrorPanel from './Panels/PacketErrorPanel.js';
import SpeedPanel from './Panels/SpeedPanel.js';
import {
bytesToText,
} from './converters';
import MicrophonePanel from "./Panels/MicrophonePanel";
import ReceivePanel from "./Panels/ReceivePanel";
} from './converters.js';
import MicrophonePanel from "./Panels/MicrophonePanel.js";
import ReceivePanel from "./Panels/ReceivePanel.js";
var audioContext;
var analyser;