mirror of
https://github.com/bunny-lab-io/Borealis.git
synced 2025-09-10 23:08:43 -06:00
Additional Folder Restructuring
This commit is contained in:
@@ -41,7 +41,7 @@ if (!window.BorealisUpdateRate) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Load node modules dynamically
|
// 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 nodeTypes = {};
|
||||||
const categorizedNodes = {};
|
const categorizedNodes = {};
|
||||||
Object.entries(modules).forEach(([path, mod]) => {
|
Object.entries(modules).forEach(([path, mod]) => {
|
||||||
@@ -49,7 +49,7 @@ Object.entries(modules).forEach(([path, mod]) => {
|
|||||||
if (!comp) return;
|
if (!comp) return;
|
||||||
const { type, component } = comp;
|
const { type, component } = comp;
|
||||||
if (!type || !component) return;
|
if (!type || !component) return;
|
||||||
const parts = path.replace('./nodes/', '').split('/');
|
const parts = path.replace('./Nodes/', '').split('/');
|
||||||
const category = parts[0];
|
const category = parts[0];
|
||||||
if (!categorizedNodes[category]) categorizedNodes[category] = [];
|
if (!categorizedNodes[category]) categorizedNodes[category] = [];
|
||||||
categorizedNodes[category].push(comp);
|
categorizedNodes[category].push(comp);
|
||||||
|
@@ -41,7 +41,7 @@ const TemplateNode = ({ id, data }) => {
|
|||||||
|
|
||||||
// Local state holds the current string value shown in the textbox
|
// Local state holds the current string value shown in the textbox
|
||||||
// AI Note: valueRef.current tracks the last emitted value to prevent redundant bus writes
|
// AI Note: valueRef.current tracks the last emitted value to prevent redundant bus writes
|
||||||
const [renderValue, setRenderValue] = useState(data?.value || "/Data/Server/WebUI/src/nodes/Templates/Node_Template.jsx");
|
const [renderValue, setRenderValue] = useState(data?.value || "/Data/Server/WebUI/src/Nodes/Templates/Node_Template.jsx");
|
||||||
const valueRef = useRef(renderValue);
|
const valueRef = useRef(renderValue);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Reference in New Issue
Block a user