Create Api Key added

This commit is contained in:
Blomios
2026-01-11 23:08:03 +01:00
parent a64b10175e
commit 03ef8342e3
11 changed files with 461 additions and 83 deletions

View File

@ -1,5 +1,5 @@
import { NavLink } from '@/components/NavLink';
import { Activity, Settings, Server, Menu, X, Users, LogIn } from 'lucide-react';
import { Activity, Settings, Server, Menu, X, Users, LogIn, Key } from 'lucide-react';
import { cn } from '@/lib/utils';
import { useState } from 'react';
import { Button } from '@/components/ui/button';
@ -65,6 +65,18 @@ export function Layout({ children }: LayoutProps) {
<Users className="w-4 h-4" />
Utilisateurs
</NavLink>
<NavLink
to="/admin/api-keys"
className={cn(
'flex items-center gap-2 px-4 py-2 rounded-lg text-sm font-medium',
'text-muted-foreground hover:text-foreground hover:bg-muted/50',
'transition-colors'
)}
activeClassName="bg-muted text-foreground"
>
<Key className="w-4 h-4" />
Clés API
</NavLink>
<NavLink
to="/login"
className={cn(
@ -134,6 +146,19 @@ export function Layout({ children }: LayoutProps) {
<Users className="w-5 h-5" />
Utilisateurs
</NavLink>
<NavLink
to="/admin/api-keys"
className={cn(
'flex items-center gap-3 px-4 py-3 rounded-lg text-sm font-medium w-full',
'text-muted-foreground hover:text-foreground hover:bg-muted/50',
'transition-colors'
)}
activeClassName="bg-muted text-foreground"
onClick={() => setMobileMenuOpen(false)}
>
<Key className="w-5 h-5" />
Clés API
</NavLink>
<NavLink
to="/login"
className={cn(