From 7b38f04a0d6b20bbc306659b84efd47ff28a01db Mon Sep 17 00:00:00 2001 From: Tom Boullay Date: Tue, 28 Apr 2026 09:29:18 +0200 Subject: [PATCH] refactor: move editor page and types to conventional folders --- .gitignore | 5 +- R3F-ERROR-FIX.md | 127 ------- src/App.tsx | 2 +- src/components/editor/EditorControls.tsx | 2 +- src/components/editor/EditorPage.css | 335 ----------------- src/components/editor/EditorViewer.tsx | 3 +- src/components/editor/MapViewer.tsx | 20 +- src/components/game/GameMap.tsx | 34 +- src/index.css | 336 ++++++++++++++++++ .../editor => pages}/EditorPage.tsx | 71 ++-- .../editor/types.ts => types/editor.ts} | 0 vite.config.ts | 97 ++--- 12 files changed, 426 insertions(+), 606 deletions(-) delete mode 100644 R3F-ERROR-FIX.md delete mode 100644 src/components/editor/EditorPage.css rename src/{components/editor => pages}/EditorPage.tsx (89%) rename src/{components/editor/types.ts => types/editor.ts} (100%) diff --git a/.gitignore b/.gitignore index d6b00ff..f2b6c27 100644 --- a/.gitignore +++ b/.gitignore @@ -37,4 +37,7 @@ Thumbs.db # 3D Assets Cache (drei, GLTFJSX) .drei/ -.glitchdrei-cache/ \ No newline at end of file +.glitchdrei-cache/ + +.backend/ +backend/ diff --git a/R3F-ERROR-FIX.md b/R3F-ERROR-FIX.md deleted file mode 100644 index dd81831..0000000 --- a/R3F-ERROR-FIX.md +++ /dev/null @@ -1,127 +0,0 @@ -# ✅ Résolution de l'erreur R3F "Div is not part of the THREE namespace!" - -## ❌ Problème initial - -**Erreur** : `Uncaught Error: R3F: Div is not part of the THREE namespace! Did you forget to extend?` - -**Cause** : Le composant `EditorControls` était rendu à l'intérieur du `` de React Three Fiber, alors qu'il contient des éléments HTML (`
`, `