feat: setup libs
Some checks failed
Deploy to VPS (dist) / deploy (push) Has been cancelled

Co-authored-by: Hewston Fox <hewstonfox@gmail.com>
Co-authored-by: autofix <noreply@autofix.ci>
Reviewed-on: #1
This commit was merged in pull request #1.
This commit is contained in:
2026-03-08 23:30:37 +00:00
parent 06129b821e
commit 74cb37942e
24 changed files with 2527 additions and 1061 deletions

View File

@@ -1,10 +1,24 @@
import { StrictMode } from 'react'
import { createRoot } from 'react-dom/client'
import './index.css'
import App from './App.tsx'
import { StrictMode } from "react";
import ReactDOM from "react-dom/client";
import { RouterProvider, createRouter } from "@tanstack/react-router";
createRoot(document.getElementById('root')!).render(
import "./index.css";
import { routeTree } from "./routeTree.gen";
import { QueryClient, QueryClientProvider } from "@tanstack/react-query";
const router = createRouter({ routeTree });
// Register the router instance for type safety
declare module "@tanstack/react-router" {
interface Register {
router: typeof router;
}
}
ReactDOM.createRoot(document.getElementById("root")!).render(
<StrictMode>
<App />
<QueryClientProvider client={new QueryClient()}>
<RouterProvider router={router} />
</QueryClientProvider>
</StrictMode>,
)
);