mirror of
https://github.com/Xevion/byte-me.git
synced 2025-12-05 21:14:29 -06:00
chore: use path aliasing
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
import { useDragDropPaths } from "./hooks/useDragDropPaths";
|
||||
import Graph from "./components/graph";
|
||||
import DropOverlay from "./components/drop-overlay";
|
||||
import type { Frame } from "./types/graph";
|
||||
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,8 +1,8 @@
|
||||
// Import generated TypeScript types from ts-rs
|
||||
import type { StreamResult } from "./bindings/StreamResult";
|
||||
import type { StreamDetail } from "./bindings/StreamDetail";
|
||||
import type { StreamResultError } from "./bindings/StreamResultError";
|
||||
import type { MediaType } from "./bindings/MediaType";
|
||||
import type { StreamResult } from "@/bindings/StreamResult";
|
||||
import type { StreamDetail } from "@/bindings/StreamDetail";
|
||||
import type { StreamResultError } from "@/bindings/StreamResultError";
|
||||
import type { MediaType } from "@/bindings/MediaType";
|
||||
export type { StreamResult, StreamDetail, StreamResultError, MediaType };
|
||||
|
||||
// Tauri invoke wrapper
|
||||
|
||||
@@ -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,4 +1,4 @@
|
||||
import { formatBytes } from "./format.js";
|
||||
import { formatBytes } from "@/lib/format";
|
||||
import { test, expect } from "vitest";
|
||||
|
||||
test("formats bytes less than 1024", () => {
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom/client";
|
||||
import App from "./App";
|
||||
import "./global.css";
|
||||
import App from "@/App";
|
||||
import "@/global.css";
|
||||
|
||||
ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
|
||||
<React.StrictMode>
|
||||
|
||||
@@ -3,7 +3,6 @@ import react from "@vitejs/plugin-react";
|
||||
import tailwindcss from "@tailwindcss/vite";
|
||||
import path from "path";
|
||||
|
||||
// @ts-expect-error process is a nodejs global
|
||||
const host = process.env.TAURI_DEV_HOST;
|
||||
|
||||
// https://vite.dev/config/
|
||||
|
||||
Reference in New Issue
Block a user