Files
dickendock/frontend/toolRegistry.js

36 lines
1.5 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 für Sidebar + Mobile-Nav
// label voller Name (Sidebar Desktop)
// navLabel kurzes Label für Mobile-Nav (max 6 Zeichen)
// component React-Komponente
//
// Neues Tool:
// 1. backend/src/tools/<id>/routes.js anlegen → wird automatisch geladen
// 2. frontend/src/tools/<Name>.jsx anlegen
// 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,
},
// Nächstes Tool:
// { id: 'newtool', icon: '◇', label: 'Mein Tool', navLabel: 'Tool', component: MeinTool },
];