This commit is contained in:
alma 2025-04-20 11:40:48 +02:00
parent b14908a6c0
commit 490cabde2d
3 changed files with 10 additions and 14 deletions

View File

@ -49,7 +49,7 @@ export const Editor: React.FC<EditorProps> = ({ note, onSave }) => {
type="text" type="text"
value={title} value={title}
onChange={handleTitleChange} onChange={handleTitleChange}
placeholder="Note title" placeholder="Titre"
className="w-full text-xl font-semibold text-carnet-text-primary placeholder-carnet-text-muted focus:outline-none bg-transparent" className="w-full text-xl font-semibold text-carnet-text-primary placeholder-carnet-text-muted focus:outline-none bg-transparent"
/> />
</div> </div>
@ -80,7 +80,7 @@ export const Editor: React.FC<EditorProps> = ({ note, onSave }) => {
<textarea <textarea
value={content} value={content}
onChange={handleContentChange} onChange={handleContentChange}
placeholder="Start writing..." placeholder="Ecrire..."
className="w-full h-full resize-none focus:outline-none bg-transparent text-carnet-text-primary placeholder-carnet-text-muted" className="w-full h-full resize-none focus:outline-none bg-transparent text-carnet-text-primary placeholder-carnet-text-muted"
/> />
</div> </div>

View File

@ -20,7 +20,7 @@ export const Navigation: React.FC<NavigationProps> = ({ onLayoutChange }) => {
type="text" type="text"
value={searchQuery} value={searchQuery}
onChange={(e) => setSearchQuery(e.target.value)} onChange={(e) => setSearchQuery(e.target.value)}
placeholder="Search tags..." placeholder="Recherché..."
className="w-full pl-9 pr-4 py-2 bg-white border border-carnet-border rounded-md text-sm text-carnet-text-primary placeholder-carnet-text-muted focus:outline-none focus:ring-1 focus:ring-primary" className="w-full pl-9 pr-4 py-2 bg-white border border-carnet-border rounded-md text-sm text-carnet-text-primary placeholder-carnet-text-muted focus:outline-none focus:ring-1 focus:ring-primary"
/> />
<Search className="absolute left-3 top-2.5 h-4 w-4 text-carnet-text-muted" /> <Search className="absolute left-3 top-2.5 h-4 w-4 text-carnet-text-muted" />
@ -44,7 +44,7 @@ export const Navigation: React.FC<NavigationProps> = ({ onLayoutChange }) => {
onClick={() => onLayoutChange?.(PaneLayout.ItemSelection)} onClick={() => onLayoutChange?.(PaneLayout.ItemSelection)}
> >
<BookOpen className="w-4 h-4 mr-3" /> <BookOpen className="w-4 h-4 mr-3" />
<span className="text-sm">Notes</span> <span className="text-sm">Page</span>
<span className="ml-auto text-xs text-carnet-text-muted">54</span> <span className="ml-auto text-xs text-carnet-text-muted">54</span>
</div> </div>
@ -53,14 +53,14 @@ export const Navigation: React.FC<NavigationProps> = ({ onLayoutChange }) => {
onClick={() => onLayoutChange?.(PaneLayout.TagSelection)} onClick={() => onLayoutChange?.(PaneLayout.TagSelection)}
> >
<Star className="w-4 h-4 mr-3" /> <Star className="w-4 h-4 mr-3" />
<span className="text-sm">Starred</span> <span className="text-sm">Important</span>
</div> </div>
<div <div
className="flex items-center px-3 py-2 rounded-md hover:bg-carnet-hover cursor-pointer text-carnet-text-primary" className="flex items-center px-3 py-2 rounded-md hover:bg-carnet-hover cursor-pointer text-carnet-text-primary"
> >
<Archive className="w-4 h-4 mr-3" /> <Archive className="w-4 h-4 mr-3" />
<span className="text-sm">Archived</span> <span className="text-sm">Archivé</span>
<span className="ml-auto text-xs text-carnet-text-muted">18</span> <span className="ml-auto text-xs text-carnet-text-muted">18</span>
</div> </div>
@ -69,21 +69,21 @@ export const Navigation: React.FC<NavigationProps> = ({ onLayoutChange }) => {
onClick={() => onLayoutChange?.(PaneLayout.TableView)} onClick={() => onLayoutChange?.(PaneLayout.TableView)}
> >
<Trash2 className="w-4 h-4 mr-3" /> <Trash2 className="w-4 h-4 mr-3" />
<span className="text-sm">Trash</span> <span className="text-sm">Corbeille</span>
</div> </div>
</div> </div>
</div> </div>
{/* Favorites Section */} {/* Favorites Section */}
<div className="mt-6 px-3"> <div className="mt-6 px-3">
<h3 className="px-3 mb-2 text-xs font-medium text-carnet-text-muted uppercase">Favorites</h3> <h3 className="px-3 mb-2 text-xs font-medium text-carnet-text-muted uppercase">Vues</h3>
<div className="space-y-0.5"> <div className="space-y-0.5">
<div className="flex items-center px-3 py-2 rounded-md hover:bg-carnet-hover cursor-pointer"> <div className="flex items-center px-3 py-2 rounded-md hover:bg-carnet-hover cursor-pointer">
<span className="text-sm text-carnet-text-primary">Blogs</span> <span className="text-sm text-carnet-text-primary">Journal</span>
<span className="ml-auto text-xs text-carnet-text-muted">2</span> <span className="ml-auto text-xs text-carnet-text-muted">2</span>
</div> </div>
<div className="flex items-center px-3 py-2 rounded-md hover:bg-carnet-hover cursor-pointer"> <div className="flex items-center px-3 py-2 rounded-md hover:bg-carnet-hover cursor-pointer">
<span className="text-sm text-carnet-text-primary">Bugs</span> <span className="text-sm text-carnet-text-primary">Santé</span>
<span className="ml-auto text-xs text-carnet-text-muted">1</span> <span className="ml-auto text-xs text-carnet-text-muted">1</span>
</div> </div>
<div className="flex items-center px-3 py-2 rounded-md hover:bg-carnet-hover cursor-pointer"> <div className="flex items-center px-3 py-2 rounded-md hover:bg-carnet-hover cursor-pointer">

4
types/carnet.d.ts vendored
View File

@ -4,7 +4,6 @@ declare module "@/components/carnet/navigation" {
interface NavigationProps { interface NavigationProps {
onLayoutChange: (layout: PaneLayout) => void; onLayoutChange: (layout: PaneLayout) => void;
} }
export const Navigation: React.FC<NavigationProps>;
} }
declare module "@/components/carnet/notes-view" { declare module "@/components/carnet/notes-view" {
@ -19,7 +18,6 @@ declare module "@/components/carnet/notes-view" {
interface NotesViewProps { interface NotesViewProps {
onNoteSelect: (note: Note) => void; onNoteSelect: (note: Note) => void;
} }
export const NotesView: React.FC<NotesViewProps>;
} }
declare module "@/components/carnet/editor" { declare module "@/components/carnet/editor" {
@ -33,7 +31,6 @@ declare module "@/components/carnet/editor" {
note: Note | null; note: Note | null;
onSave: (note: Note) => void; onSave: (note: Note) => void;
} }
export const Editor: React.FC<EditorProps>;
} }
declare module "@/components/carnet/panel-resizer" { declare module "@/components/carnet/panel-resizer" {
@ -43,7 +40,6 @@ declare module "@/components/carnet/panel-resizer" {
onDragEnd: () => void; onDragEnd: () => void;
onDrag: (e: MouseEvent) => void; onDrag: (e: MouseEvent) => void;
} }
export const PanelResizer: React.FC<PanelResizerProps>;
} }
declare module "@/hooks/use-media-query" { declare module "@/hooks/use-media-query" {