feat: initial auth config

This commit is contained in:
2025-09-14 21:46:38 +00:00
parent f64be82967
commit 3ae648145c
15 changed files with 626 additions and 100 deletions

View File

@@ -13,7 +13,7 @@ import {
SidebarRail,
} from "@/components/ui/sidebar"
function DashboardSidebar() {
export function DashboardSidebar() {
return (
<Sidebar collapsible="icon">
<SidebarHeader>
@@ -75,5 +75,3 @@ function UserSwitcher() {
</DropdownMenu>
)
}
export default DashboardSidebar

View File

@@ -1,21 +0,0 @@
import { createRouter, RouterProvider } from "@tanstack/react-router"
import "./index.css"
// Import the generated route tree
import { routeTree } from "../routeTree.gen"
// Create a new router instance
const router = createRouter({ routeTree })
// Register the router instance for type safety
declare module "@tanstack/react-router" {
interface Register {
router: typeof router
}
}
export function App() {
return <RouterProvider router={router} />
}
export default App

View File

@@ -1,29 +0,0 @@
/**
* This file is the entry point for the React app, it sets up the root
* element and renders the App component to the DOM.
*
* It is included in `src/index.html`.
*/
import { StrictMode } from "react"
import { createRoot } from "react-dom/client"
import { App } from "./dashboard"
import { ThemeProvider } from "@/components/theme-provider"
const elem = document.getElementById("root")!
const app = (
<StrictMode>
<ThemeProvider defaultTheme="system" storageKey="fileone-ui-theme">
<App />
</ThemeProvider>
</StrictMode>
)
if (import.meta.hot) {
// With hot module reloading, `import.meta.hot.data` is persisted.
const root = (import.meta.hot.data.root ??= createRoot(elem))
root.render(app)
} else {
// The hot module reloading API is not available in production.
createRoot(elem).render(app)
}