Files
dickendock/frontend/src/toolRegistry.js

34 lines
1.3 KiB
JavaScript
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
import Kalkulator3D, { SavedList } from './tools/kalkulator3d.jsx';
// ══════════════════════════════════════════════════════════════════════════════
// Tool-Registry hier neue Tools eintragen
//
// Felder:
// id eindeutige ID (muss mit backend/src/tools/<id>/ übereinstimmen)
// icon Emoji
// label voller Name (Sidebar)
// navLabel kurzes Label für Mobile-Nav
// component React-Komponente
//
// Neues Tool hinzufügen:
// 1. backend/src/tools/<id>/routes.js → wird automatisch geladen
// 2. frontend/src/tools/<id>.jsx → Komponente
// 3. Hier eintragen
// ══════════════════════════════════════════════════════════════════════════════
export const TOOLS = [
{
id: 'kalkulator3d',
icon: '◈',
label: '3D-Kalkulator',
navLabel: '3D-Calc',
component: Kalkulator3D,
},
{
id: 'kalkulator3d-saved',
icon: '◉',
label: 'Gespeichert',
navLabel: 'Saves',
component: SavedList,
},
];