add file extensions
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import Dispatcher from "./Dispatcher";
|
import Dispatcher from "./Dispatcher.js";
|
||||||
|
|
||||||
const dispatcher = new Dispatcher('AudioReceiver', ['begin', 'end', 'receive']);
|
const dispatcher = new Dispatcher('AudioReceiver', ['begin', 'end', 'receive']);
|
||||||
const noEncoding = bits => bits;
|
const noEncoding = bits => bits;
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import Dispatcher from "./Dispatcher";
|
import Dispatcher from "./Dispatcher.js";
|
||||||
|
|
||||||
const dispatcher = new Dispatcher('AudioSender', ['begin', 'end', 'send']);
|
const dispatcher = new Dispatcher('AudioSender', ['begin', 'end', 'send']);
|
||||||
const noEncoding = bits => bits;
|
const noEncoding = bits => bits;
|
||||||
|
|||||||
@@ -5,8 +5,8 @@ import {
|
|||||||
numberToBytes,
|
numberToBytes,
|
||||||
numberToHex,
|
numberToHex,
|
||||||
bytesToBits
|
bytesToBits
|
||||||
} from "./converters";
|
} from "./converters.js";
|
||||||
import * as CRC from './CRC';
|
import * as CRC from './CRC.js';
|
||||||
|
|
||||||
let SEGMENT_DURATION = 30;
|
let SEGMENT_DURATION = 30;
|
||||||
let PACKET_SIZE_BITS = 8;
|
let PACKET_SIZE_BITS = 8;
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import BasePanel from './BasePanel';
|
import BasePanel from './BasePanel.js';
|
||||||
import { hertz } from '../Humanize';
|
import { hertz } from '../Humanize.js';
|
||||||
class AvailableFskPairsPanel extends BasePanel {
|
class AvailableFskPairsPanel extends BasePanel {
|
||||||
constructor() {
|
constructor() {
|
||||||
super('Available FSK Pairs');
|
super('Available FSK Pairs');
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import Dispatcher from "../Dispatcher";
|
import Dispatcher from "../Dispatcher.js";
|
||||||
|
|
||||||
let lastId = 0;
|
let lastId = 0;
|
||||||
const clamp = (value, min, max) => Math.max(min, Math.min(value, max));
|
const clamp = (value, min, max) => Math.max(min, Math.min(value, max));
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { htmlEncode } from '../converters';
|
import { htmlEncode } from '../converters.js';
|
||||||
import BasePanel from './BasePanel';
|
import BasePanel from './BasePanel.js';
|
||||||
|
|
||||||
class CodePanel extends BasePanel {
|
class CodePanel extends BasePanel {
|
||||||
constructor(title) {
|
constructor(title) {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import BasePanel from './BasePanel';
|
import BasePanel from './BasePanel.js';
|
||||||
|
|
||||||
class FrequencyGraphPanel extends BasePanel {
|
class FrequencyGraphPanel extends BasePanel {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import BasePanel from './BasePanel';
|
import BasePanel from './BasePanel.js';
|
||||||
|
|
||||||
class FrequencyPanel extends BasePanel {
|
class FrequencyPanel extends BasePanel {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import BasePanel from './BasePanel';
|
import BasePanel from './BasePanel.js';
|
||||||
|
|
||||||
class GraphConfigurationPanel extends BasePanel {
|
class GraphConfigurationPanel extends BasePanel {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
import { bytesToText, textToBytes, urlToBytes, bytesToUrl } from '../converters';
|
import { bytesToText, textToBytes, urlToBytes, bytesToUrl } from '../converters.js';
|
||||||
import { byteSize } from '../Humanize';
|
import { byteSize } from '../Humanize.js';
|
||||||
import BasePanel from './BasePanel';
|
import BasePanel from './BasePanel.js';
|
||||||
|
|
||||||
class MessagePanel extends BasePanel {
|
class MessagePanel extends BasePanel {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import BasePanel from './BasePanel';
|
import BasePanel from './BasePanel.js';
|
||||||
|
|
||||||
const media = {
|
const media = {
|
||||||
audio: {
|
audio: {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import BasePanel from './BasePanel';
|
import BasePanel from './BasePanel.js';
|
||||||
|
|
||||||
class OutputPanel extends BasePanel {
|
class OutputPanel extends BasePanel {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import BasePanel from './BasePanel';
|
import BasePanel from './BasePanel.js';
|
||||||
|
|
||||||
class PacketErrorPanel extends BasePanel {
|
class PacketErrorPanel extends BasePanel {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import BasePanel from './BasePanel';
|
import BasePanel from './BasePanel.js';
|
||||||
import { byteSize, metricNumber } from '../Humanize';
|
import { byteSize, metricNumber } from '../Humanize.js';
|
||||||
|
|
||||||
class PacketizationPanel extends BasePanel {
|
class PacketizationPanel extends BasePanel {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|||||||
@@ -1,7 +1,6 @@
|
|||||||
import { bytesToText, bytesToUrl } from '../converters';
|
import { bytesToText, bytesToUrl } from '../converters.js';
|
||||||
import BasePanel from './BasePanel';
|
import BasePanel from './BasePanel.js';
|
||||||
import * as AudioReceiver from '../AudioReceiver';
|
import * as AudioReceiver from '../AudioReceiver.js';
|
||||||
import * as StreamManager from '../StreamManager';
|
|
||||||
|
|
||||||
class ReceivePanel extends BasePanel {
|
class ReceivePanel extends BasePanel {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|||||||
@@ -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));
|
const clamp = (value, min, max) => Math.max(min, Math.min(value, max));
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import BasePanel from './BasePanel';
|
import BasePanel from './BasePanel.js';
|
||||||
import * as Humanize from '../Humanize';
|
import * as Humanize from '../Humanize.js';
|
||||||
|
|
||||||
class SpeedPanel extends BasePanel {
|
class SpeedPanel extends BasePanel {
|
||||||
constructor() {
|
constructor() {
|
||||||
|
|||||||
@@ -1,11 +1,11 @@
|
|||||||
import Dispatcher from "./Dispatcher";
|
import Dispatcher from "./Dispatcher.js";
|
||||||
import * as CRC from './CRC';
|
import * as CRC from './CRC.js';
|
||||||
import * as PacketUtils from './PacketUtils';
|
import * as PacketUtils from './PacketUtils.js';
|
||||||
import {
|
import {
|
||||||
bitsToInt,
|
bitsToInt,
|
||||||
bytesToBits,
|
bytesToBits,
|
||||||
numberToBytes,
|
numberToBytes,
|
||||||
} from "./converters";
|
} from "./converters.js";
|
||||||
|
|
||||||
const dispatcher = new Dispatcher('StreamManager', [
|
const dispatcher = new Dispatcher('StreamManager', [
|
||||||
'change',
|
'change',
|
||||||
|
|||||||
44
index.js
44
index.js
@@ -1,27 +1,27 @@
|
|||||||
import * as StreamManager from "./StreamManager";
|
import * as StreamManager from "./StreamManager.js";
|
||||||
import * as HammingEncoding from './HammingEncoding';
|
import * as HammingEncoding from './HammingEncoding.js';
|
||||||
import * as InterleaverEncoding from './InterleaverEncoding';
|
import * as InterleaverEncoding from './InterleaverEncoding.js';
|
||||||
import * as PacketUtils from './PacketUtils';
|
import * as PacketUtils from './PacketUtils.js';
|
||||||
import * as Humanize from './Humanize';
|
import * as Humanize from './Humanize.js';
|
||||||
import * as Randomizer from './Randomizer';
|
import * as Randomizer from './Randomizer.js';
|
||||||
import * as AudioSender from './AudioSender';
|
import * as AudioSender from './AudioSender.js';
|
||||||
import * as AudioReceiver from './AudioReceiver';
|
import * as AudioReceiver from './AudioReceiver.js';
|
||||||
import OutputPanel from './Panels/OutputPanel';
|
import OutputPanel from './Panels/OutputPanel.js';
|
||||||
import MessagePanel from "./Panels/MessagePanel";
|
import MessagePanel from "./Panels/MessagePanel.js";
|
||||||
import CodePanel from "./Panels/CodePanel";
|
import CodePanel from "./Panels/CodePanel.js";
|
||||||
import FrequencyPanel from "./Panels/FrequencyPanel";
|
import FrequencyPanel from "./Panels/FrequencyPanel.js";
|
||||||
import SignalPanel from "./Panels/SignalPanel";
|
import SignalPanel from "./Panels/SignalPanel.js";
|
||||||
import PacketizationPanel from "./Panels/PacketizationPanel";
|
import PacketizationPanel from "./Panels/PacketizationPanel.js";
|
||||||
import AvailableFskPairsPanel from "./Panels/AvailableFskPairsPanel";
|
import AvailableFskPairsPanel from "./Panels/AvailableFskPairsPanel.js";
|
||||||
import FrequencyGraphPanel from "./Panels/FrequencyGraphPanel";
|
import FrequencyGraphPanel from "./Panels/FrequencyGraphPanel.js";
|
||||||
import GraphConfigurationPanel from './Panels/GraphConfigurationPanel';
|
import GraphConfigurationPanel from './Panels/GraphConfigurationPanel.js';
|
||||||
import PacketErrorPanel from './Panels/PacketErrorPanel';
|
import PacketErrorPanel from './Panels/PacketErrorPanel.js';
|
||||||
import SpeedPanel from './Panels/SpeedPanel';
|
import SpeedPanel from './Panels/SpeedPanel.js';
|
||||||
import {
|
import {
|
||||||
bytesToText,
|
bytesToText,
|
||||||
} from './converters';
|
} from './converters.js';
|
||||||
import MicrophonePanel from "./Panels/MicrophonePanel";
|
import MicrophonePanel from "./Panels/MicrophonePanel.js";
|
||||||
import ReceivePanel from "./Panels/ReceivePanel";
|
import ReceivePanel from "./Panels/ReceivePanel.js";
|
||||||
var audioContext;
|
var audioContext;
|
||||||
var analyser;
|
var analyser;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user