Skip to content

Commit 32b0005

Browse files
committed
feat: add erep
1 parent ddafb8f commit 32b0005

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

93 files changed

+21334
-0
lines changed
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
node_modules
2+
dist
3+
.DS_Store
4+
server/public
5+
vite.config.ts.*
6+
*.tar.gz
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8" />
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1" />
6+
</head>
7+
<body>
8+
<div id="root"></div>
9+
<script type="module" src="/src/main.tsx"></script>
10+
<!-- This is a replit script which adds a banner on the top of the page when opened in development mode outside the replit environment -->
11+
<script type="text/javascript" src="https://replit.com/public/js/replit-dev-banner.js"></script>
12+
</body>
13+
</html>
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
import { Switch, Route } from "wouter";
2+
import { queryClient } from "./lib/queryClient";
3+
import { QueryClientProvider } from "@tanstack/react-query";
4+
import { Toaster } from "@/components/ui/toaster";
5+
import { TooltipProvider } from "@/components/ui/tooltip";
6+
import { useAuth } from "@/hooks/useAuth";
7+
import AuthPage from "@/pages/auth-page";
8+
import Dashboard from "@/pages/dashboard";
9+
import References from "@/pages/references";
10+
import NotFound from "@/pages/not-found";
11+
12+
function Router() {
13+
const { isAuthenticated, isLoading } = useAuth();
14+
15+
// Show auth page if loading or not authenticated
16+
if (isLoading || !isAuthenticated) {
17+
return <AuthPage />;
18+
}
19+
20+
return (
21+
<Switch>
22+
<Route path="/" component={Dashboard} />
23+
<Route path="/references" component={References} />
24+
<Route component={NotFound} />
25+
</Switch>
26+
);
27+
}
28+
29+
function App() {
30+
return (
31+
<QueryClientProvider client={queryClient}>
32+
<TooltipProvider>
33+
<Toaster />
34+
<Router />
35+
</TooltipProvider>
36+
</QueryClientProvider>
37+
);
38+
}
39+
40+
export default App;

0 commit comments

Comments
 (0)