Tidy up frontend directory tree
This commit is contained in:
parent
b08165d7f1
commit
6e75834662
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import './App.css';
|
import './App.css';
|
||||||
import { Waveform } from './Waveform';
|
import { Waveform } from './Waveform/Waveform';
|
||||||
|
|
||||||
const audioContext = new AudioContext();
|
const audioContext = new AudioContext();
|
||||||
|
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { useEffect, useRef } from 'react';
|
import { useEffect, useRef } from 'react';
|
||||||
import { CanvasLogicalWidth, CanvasLogicalHeight } from '../Waveform';
|
import { CanvasLogicalWidth, CanvasLogicalHeight } from './Waveform';
|
||||||
|
|
||||||
const maxPeakValue = 32_768;
|
const maxPeakValue = 32_768;
|
||||||
|
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
import { CanvasLogicalWidth } from '../Waveform';
|
import { CanvasLogicalWidth } from './Waveform';
|
||||||
import { MouseEvent } from 'react';
|
import { MouseEvent } from 'react';
|
||||||
|
|
||||||
// TODO: add tests
|
// TODO: add tests
|
||||||
|
|
|
@ -1,10 +1,6 @@
|
||||||
import { useEffect, useState, useRef, MouseEvent } from 'react';
|
import { useEffect, useState, useRef, MouseEvent } from 'react';
|
||||||
import { Canvas as WaveformCanvas } from './Canvas';
|
import { Canvas as WaveformCanvas } from './Canvas';
|
||||||
import {
|
import { CanvasLogicalWidth, CanvasLogicalHeight, Selection } from './Waveform';
|
||||||
CanvasLogicalWidth,
|
|
||||||
CanvasLogicalHeight,
|
|
||||||
Selection,
|
|
||||||
} from '../Waveform';
|
|
||||||
import { mouseEventToCanvasX } from './Helpers';
|
import { mouseEventToCanvasX } from './Helpers';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
import { useState, useEffect, useRef } from 'react';
|
import { useState, useEffect, useRef } from 'react';
|
||||||
import { CanvasLogicalWidth, CanvasLogicalHeight, MediaSet } from '../Waveform';
|
import { CanvasLogicalWidth, CanvasLogicalHeight, MediaSet } from './Waveform';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
mediaSet: MediaSet;
|
mediaSet: MediaSet;
|
||||||
|
|
|
@ -1,8 +1,8 @@
|
||||||
import { useEffect, useState, useRef, MouseEvent } from 'react';
|
import { useEffect, useState, useRef, MouseEvent } from 'react';
|
||||||
import { Waveform as WaveformOverview } from './Waveform/Overview';
|
import { Waveform as WaveformOverview } from './Overview';
|
||||||
import { Thumbnails } from './Waveform/Thumbnails';
|
import { Thumbnails } from './Thumbnails';
|
||||||
import { Canvas as WaveformCanvas } from './Waveform/Canvas';
|
import { Canvas as WaveformCanvas } from './Canvas';
|
||||||
import { canvasXToFrame, mouseEventToCanvasX } from './Waveform/Helpers';
|
import { canvasXToFrame, mouseEventToCanvasX } from './Helpers';
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
audioContext: AudioContext;
|
audioContext: AudioContext;
|
Loading…
Reference in New Issue