36 lines
1.5 KiB
JavaScript
36 lines
1.5 KiB
JavaScript
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 },
|
||
];
|