From 4bbef112ec7528bf1e54de744512bbc57633197a Mon Sep 17 00:00:00 2001 From: Nicole Rappe Date: Tue, 2 Sep 2025 20:07:29 -0600 Subject: [PATCH] Mass-Restructure of JSX Folder Structure --- Data/Server/WebUI/src/App.jsx | 16 ++++++++-------- .../WebUI/src/{ => Devices}/Device_Details.jsx | 0 .../WebUI/src/{ => Devices}/Device_List.jsx | 2 +- .../{ => Flow_Editor}/Context_Menu_Sidebar.jsx | 0 .../WebUI/src/{ => Flow_Editor}/Flow_Editor.jsx | 0 .../WebUI/src/{ => Flow_Editor}/Flow_Tabs.jsx | 0 .../Node_Configuration_Sidebar.jsx | 0 .../WebUI/src/{ => Flow_Editor}/Node_Sidebar.jsx | 2 +- .../src/{ => Scheduling}/Scheduled_Jobs_List.jsx | 0 .../WebUI/src/{ => Scripting}/Script_List.jsx | 0 .../WebUI/src/{ => Workflows}/Workflow_List.jsx | 3 +-- 11 files changed, 11 insertions(+), 12 deletions(-) rename Data/Server/WebUI/src/{ => Devices}/Device_Details.jsx (100%) rename Data/Server/WebUI/src/{ => Devices}/Device_List.jsx (99%) rename Data/Server/WebUI/src/{ => Flow_Editor}/Context_Menu_Sidebar.jsx (100%) rename Data/Server/WebUI/src/{ => Flow_Editor}/Flow_Editor.jsx (100%) rename Data/Server/WebUI/src/{ => Flow_Editor}/Flow_Tabs.jsx (100%) rename Data/Server/WebUI/src/{ => Flow_Editor}/Node_Configuration_Sidebar.jsx (100%) rename Data/Server/WebUI/src/{ => Flow_Editor}/Node_Sidebar.jsx (99%) rename Data/Server/WebUI/src/{ => Scheduling}/Scheduled_Jobs_List.jsx (100%) rename Data/Server/WebUI/src/{ => Scripting}/Script_List.jsx (100%) rename Data/Server/WebUI/src/{ => Workflows}/Workflow_List.jsx (99%) diff --git a/Data/Server/WebUI/src/App.jsx b/Data/Server/WebUI/src/App.jsx index 1236d97..b4d0491 100644 --- a/Data/Server/WebUI/src/App.jsx +++ b/Data/Server/WebUI/src/App.jsx @@ -14,9 +14,9 @@ import { import { ReactFlowProvider } from "reactflow"; import "reactflow/dist/style.css"; -import FlowTabs from "./Flow_Tabs"; -import FlowEditor from "./Flow_Editor"; -import NodeSidebar from "./Node_Sidebar"; +import FlowTabs from "./Flow_Editor/Flow_Tabs"; +import FlowEditor from "./Flow_Editor/Flow_Editor"; +import NodeSidebar from "./Flow_Editor/Node_Sidebar"; import { CloseAllDialog, CreditsDialog, RenameTabDialog, TabContextMenu } from "./Dialogs"; @@ -24,12 +24,12 @@ import StatusBar from "./Status_Bar"; // New imports for split pages import NavigationSidebar from "./Navigation_Sidebar"; -import WorkflowList from "./Workflow_List"; -import DeviceList from "./Device_List"; -import ScriptList from "./Script_List"; -import ScheduledJobsList from "./Scheduled_Jobs_List"; +import WorkflowList from "./Workflows/Workflow_List"; +import DeviceList from "./Devices/Device_List"; +import ScriptList from "./Scripting/Script_List"; +import ScheduledJobsList from "./Scheduling/Scheduled_Jobs_List"; import Login from "./Login.jsx"; -import DeviceDetails from "./Device_Details"; +import DeviceDetails from "./Devices/Device_Details"; import { io } from "socket.io-client"; diff --git a/Data/Server/WebUI/src/Device_Details.jsx b/Data/Server/WebUI/src/Devices/Device_Details.jsx similarity index 100% rename from Data/Server/WebUI/src/Device_Details.jsx rename to Data/Server/WebUI/src/Devices/Device_Details.jsx diff --git a/Data/Server/WebUI/src/Device_List.jsx b/Data/Server/WebUI/src/Devices/Device_List.jsx similarity index 99% rename from Data/Server/WebUI/src/Device_List.jsx rename to Data/Server/WebUI/src/Devices/Device_List.jsx index 0149754..74e87c2 100644 --- a/Data/Server/WebUI/src/Device_List.jsx +++ b/Data/Server/WebUI/src/Devices/Device_List.jsx @@ -16,7 +16,7 @@ import { MenuItem } from "@mui/material"; import MoreVertIcon from "@mui/icons-material/MoreVert"; -import { DeleteDeviceDialog } from "./Dialogs.jsx"; +import { DeleteDeviceDialog } from "../Dialogs.jsx"; function formatLastSeen(tsSec, offlineAfter = 15) { if (!tsSec) return "unknown"; diff --git a/Data/Server/WebUI/src/Context_Menu_Sidebar.jsx b/Data/Server/WebUI/src/Flow_Editor/Context_Menu_Sidebar.jsx similarity index 100% rename from Data/Server/WebUI/src/Context_Menu_Sidebar.jsx rename to Data/Server/WebUI/src/Flow_Editor/Context_Menu_Sidebar.jsx diff --git a/Data/Server/WebUI/src/Flow_Editor.jsx b/Data/Server/WebUI/src/Flow_Editor/Flow_Editor.jsx similarity index 100% rename from Data/Server/WebUI/src/Flow_Editor.jsx rename to Data/Server/WebUI/src/Flow_Editor/Flow_Editor.jsx diff --git a/Data/Server/WebUI/src/Flow_Tabs.jsx b/Data/Server/WebUI/src/Flow_Editor/Flow_Tabs.jsx similarity index 100% rename from Data/Server/WebUI/src/Flow_Tabs.jsx rename to Data/Server/WebUI/src/Flow_Editor/Flow_Tabs.jsx diff --git a/Data/Server/WebUI/src/Node_Configuration_Sidebar.jsx b/Data/Server/WebUI/src/Flow_Editor/Node_Configuration_Sidebar.jsx similarity index 100% rename from Data/Server/WebUI/src/Node_Configuration_Sidebar.jsx rename to Data/Server/WebUI/src/Flow_Editor/Node_Configuration_Sidebar.jsx diff --git a/Data/Server/WebUI/src/Node_Sidebar.jsx b/Data/Server/WebUI/src/Flow_Editor/Node_Sidebar.jsx similarity index 99% rename from Data/Server/WebUI/src/Node_Sidebar.jsx rename to Data/Server/WebUI/src/Flow_Editor/Node_Sidebar.jsx index bf3b3ad..9b408ff 100644 --- a/Data/Server/WebUI/src/Node_Sidebar.jsx +++ b/Data/Server/WebUI/src/Flow_Editor/Node_Sidebar.jsx @@ -21,7 +21,7 @@ import { ChevronLeft as ChevronLeftIcon, ChevronRight as ChevronRightIcon } from "@mui/icons-material"; -import { SaveWorkflowDialog } from "./Dialogs"; +import { SaveWorkflowDialog } from "../Dialogs"; export default function NodeSidebar({ categorizedNodes, diff --git a/Data/Server/WebUI/src/Scheduled_Jobs_List.jsx b/Data/Server/WebUI/src/Scheduling/Scheduled_Jobs_List.jsx similarity index 100% rename from Data/Server/WebUI/src/Scheduled_Jobs_List.jsx rename to Data/Server/WebUI/src/Scheduling/Scheduled_Jobs_List.jsx diff --git a/Data/Server/WebUI/src/Script_List.jsx b/Data/Server/WebUI/src/Scripting/Script_List.jsx similarity index 100% rename from Data/Server/WebUI/src/Script_List.jsx rename to Data/Server/WebUI/src/Scripting/Script_List.jsx diff --git a/Data/Server/WebUI/src/Workflow_List.jsx b/Data/Server/WebUI/src/Workflows/Workflow_List.jsx similarity index 99% rename from Data/Server/WebUI/src/Workflow_List.jsx rename to Data/Server/WebUI/src/Workflows/Workflow_List.jsx index 1f34a4c..fa4d83a 100644 --- a/Data/Server/WebUI/src/Workflow_List.jsx +++ b/Data/Server/WebUI/src/Workflows/Workflow_List.jsx @@ -11,7 +11,7 @@ import { RenameFolderDialog, NewWorkflowDialog, ConfirmDeleteDialog -} from "./Dialogs"; +} from "../Dialogs"; function buildTree(workflows, folders) { const map = {}; @@ -389,4 +389,3 @@ export default function WorkflowList({ onOpenWorkflow }) { ); } -