Additional Folder Restructuring

This commit is contained in:
2025-09-02 20:18:40 -06:00
parent 4bbef112ec
commit c3b0287472
2 changed files with 3 additions and 3 deletions

View File

@@ -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);

View File

@@ -41,7 +41,7 @@ const TemplateNode = ({ id, data }) => {
// 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
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);
/**