mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-09-11 12:48:43 -06:00
Additional Folder Restructuring
This commit is contained in:
@@ -41,7 +41,7 @@ if (!window.BorealisUpdateRate) {
|
||||
}
|
||||
|
||||
// Load node modules dynamically
|
||||
const modules = import.meta.glob('./nodes/**/*.jsx', { eager: true });
|
||||
const modules = import.meta.glob('./Nodes/**/*.jsx', { eager: true });
|
||||
const nodeTypes = {};
|
||||
const categorizedNodes = {};
|
||||
Object.entries(modules).forEach(([path, mod]) => {
|
||||
@@ -49,7 +49,7 @@ Object.entries(modules).forEach(([path, mod]) => {
|
||||
if (!comp) return;
|
||||
const { type, component } = comp;
|
||||
if (!type || !component) return;
|
||||
const parts = path.replace('./nodes/', '').split('/');
|
||||
const parts = path.replace('./Nodes/', '').split('/');
|
||||
const category = parts[0];
|
||||
if (!categorizedNodes[category]) categorizedNodes[category] = [];
|
||||
categorizedNodes[category].push(comp);
|
||||
|
Reference in New Issue
Block a user