Skip to content
This repository was archived by the owner on Sep 19, 2025. It is now read-only.

Commit 0f80e0e

Browse files
committed
added homepage
1 parent b4914c5 commit 0f80e0e

6 files changed

Lines changed: 1140 additions & 11 deletions

File tree

src/frontend/App.tsx

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ import ApplicationSplash from './components/modals/ApplicationSplash';
1515
import { AnimatePresence } from 'framer-motion';
1616
import { AppLockProvider } from './lib/contexts/AppLockContext';
1717
import ScreenLockModal from './components/modals/ScreenLockModal';
18+
import Home from './components/pages/Home';
1819

1920
// Key for session storage to check if app has been loaded before
2021
const APP_LOADED_KEY = 'cloudnotes-app-loaded';
@@ -114,11 +115,18 @@ function App() {
114115
</MainLayout>
115116
} />
116117

118+
{/* Home route */}
119+
<Route path="/home" element={
120+
<MainLayout>
121+
<Home />
122+
</MainLayout>
123+
} />
124+
117125
{/* FileReader route without MainLayout */}
118126
<Route path="/reader" element={<FileReader />} />
119127

120128
{/* Default route */}
121-
<Route path="*" element={<Navigate to="/register" replace />} />
129+
<Route path="*" element={<Navigate to="/login" replace />} />
122130
</Routes>
123131
</Router>
124132
</div>

src/frontend/components/modals/FileBrowserModal.tsx

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ import { useState, useEffect, useCallback } from 'react'
33
import { Modal } from '../ui/modal';
44
import { Input } from '../ui/input';
55
import { Tabs, TabsContent, TabsList, TabsTrigger } from '../ui/tabs';
6-
import { Button } from '../ui/button';
76
import { Skeleton } from '../ui/skeleton';
87
import { Card } from '../ui/card';
98
import { Badge } from '../ui/badge';
@@ -16,9 +15,7 @@ import {
1615
Eye,
1716
FileIcon,
1817
X,
19-
BookmarkIcon,
20-
FolderOpenIcon
21-
} from 'lucide-react';
18+
BookmarkIcon} from 'lucide-react';
2219
import { mockDataService, type MockDocument } from '../../lib/mockData';
2320
import { debounce } from '../../lib/utils';
2421
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from '../ui/tooltip';
@@ -265,7 +262,7 @@ const FileBrowserModal: React.FC<FileBrowserModalProps> = ({ isOpen, onClose })
265262
<div className="flex justify-between items-center mt-2">
266263
{document.tags.length > 0 && (
267264
<div className="flex flex-wrap gap-1">
268-
{document.tags.map((tag, index) => {
265+
{document.tags.map((tag) => {
269266
// Check if it's a file type tag
270267
const isFileType = fileTypeTags.includes(tag);
271268
let tagStyles = "text-xs px-1.5 py-0 cursor-pointer border ";

0 commit comments

Comments
 (0)