refactor: simplify tsconfig with @tsconfig/bases for vite react, move 'features' into 'components'

This commit is contained in:
Ryan Walters
2025-08-21 22:00:24 -05:00
parent 18ee2c8342
commit f83fc24d13
7 changed files with 30 additions and 30 deletions

View File

@@ -1,7 +1,7 @@
import { useDragDropPaths } from "./hooks/useDragDropPaths.js";
import Graph from "./features/graph/graph.js";
import DropOverlay from "./features/drop/drop-overlay.js";
import type { Frame } from "./types/graph.js";
import { useDragDropPaths } from "./hooks/useDragDropPaths";
import Graph from "./components/graph";
import DropOverlay from "./components/drop-overlay";
import type { Frame } from "./types/graph";
function App() {
const data: Frame[] = [];

View File

@@ -1,4 +1,4 @@
import { ReactNode, useEffect, useRef, useState } from "react";
import { type ReactNode, useEffect, useRef, useState } from "react";
import { match, P } from "ts-pattern";
import {
CheckCircle,
@@ -10,8 +10,8 @@ import {
Music,
XCircle,
} from "lucide-react";
import { commands } from "../../bindings";
import type { MediaType, StreamDetail } from "../../bindings";
import { commands } from "../bindings";
import type { MediaType, StreamDetail } from "../bindings";
type DropOverlayProps = {
paths: string[];

View File

@@ -1,6 +1,6 @@
import { ResponsiveLine } from "@nivo/line";
import { formatBytes } from "../../lib/format.js";
import type { Frame } from "../../types/graph.js";
import { formatBytes } from "@/lib/format";
import type { Frame } from "@/types/graph";
type GraphProps = {
data: Frame[];