Dateien nach "frontend" hochladen

This commit is contained in:
2026-05-25 15:57:03 +02:00
parent f57ac344e2
commit 5d34619c67
2 changed files with 591 additions and 0 deletions

View File

@@ -0,0 +1,35 @@
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 },
];