mirror of
https://github.com/Xevion/byte-me.git
synced 2025-12-11 10:06:48 -06:00
refactor: simplify tsconfig with @tsconfig/bases for vite react, move 'features' into 'components'
This commit is contained in:
@@ -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[] = [];
|
||||
|
||||
@@ -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[];
|
||||
@@ -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[];
|
||||
Reference in New Issue
Block a user