Major changes across backend, frontend, infrastructure: - Provider system with model selection (Google, DeepL, OpenAI, Ollama, Google Cloud) - Admin panel: user management, pricing, settings - Glossary system with CSV import/export - Subscription and tier quota management - Security hardening (rate limiting, API key auth, path traversal fixes) - Docker compose for dev, prod, and IONOS deployment - Alembic migrations for new tables - Frontend: dashboard, pricing page, landing page, i18n (en/fr) - Test suite and verification scripts Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
26 lines
754 B
TypeScript
26 lines
754 B
TypeScript
import { FileText, Key, BookText, User, type LucideIcon } from 'lucide-react';
|
|
|
|
export interface NavItem {
|
|
labelKey: string;
|
|
href: string;
|
|
icon: LucideIcon;
|
|
proOnly?: boolean;
|
|
}
|
|
|
|
export const baseNavItems: NavItem[] = [
|
|
{ labelKey: 'dashboard.nav.translate', href: '/dashboard/translate', icon: FileText },
|
|
{ labelKey: 'dashboard.nav.profile', href: '/dashboard/profile', icon: User },
|
|
{ labelKey: 'dashboard.nav.apiKeys', href: '/dashboard/api-keys', icon: Key },
|
|
];
|
|
|
|
export const proNavItem: NavItem = {
|
|
labelKey: 'dashboard.nav.glossaries',
|
|
href: '/dashboard/glossaries',
|
|
icon: BookText,
|
|
proOnly: true,
|
|
};
|
|
|
|
export function getNavItems(isPro: boolean): NavItem[] {
|
|
return isPro ? [...baseNavItems, proNavItem] : baseNavItems;
|
|
}
|