Tidy up frontend directory tree

This commit is contained in:
Rob Watson 2021-09-30 16:16:51 +02:00
parent b08165d7f1
commit 6e75834662
6 changed files with 10 additions and 14 deletions

View File

@ -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();

View File

@ -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;

View File

@ -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

View File

@ -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 {

View File

@ -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;

View File

@ -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;