mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-28 15:54:56 +00:00
ORGANIZED INTO 4 MAIN CATEGORIES: - react/ React TypeScript components (145 components + Python bindings) - qml/ QML desktop components (104+ QML components) - python/ Python package implementations - legacy/ Utilities, contexts, and migration-in-progress code SUPPORTING FOLDERS (kept as-is): - icons/ 421 SVG icons - theming/ Material Design 3 theme system - styles/ SCSS modules and utilities - scss/ SCSS preprocessor files - docs/ Documentation files STRUCTURE IMPROVEMENTS: ✅ All code preserved (nothing deleted) ✅ Clear separation by implementation type ✅ Better navigation and discoverability ✅ Easy to find what you need ✅ Professional organization DOCUMENTATION: - Added STRUCTURE.md explaining the new layout - Updated folder organization with clear purpose - Maintained all original functionality All files reorganized while keeping full functionality intact. Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
35 lines
866 B
TypeScript
35 lines
866 B
TypeScript
/**
|
|
* WorkflowCardActions Component
|
|
* Renders resize handles for the workflow card
|
|
*/
|
|
|
|
import React from 'react';
|
|
|
|
const RESIZE_DIRECTIONS = ['n', 's', 'e', 'w', 'ne', 'nw', 'se', 'sw'] as const;
|
|
|
|
interface WorkflowCardActionsProps {
|
|
onResizeStart: (e: React.MouseEvent, direction: string) => void;
|
|
}
|
|
|
|
export const WorkflowCardActions: React.FC<WorkflowCardActionsProps> = ({
|
|
onResizeStart
|
|
}) => {
|
|
return (
|
|
<>
|
|
{RESIZE_DIRECTIONS.map((direction) => (
|
|
<div
|
|
key={direction}
|
|
data-no-drag
|
|
data-resize-handle={direction}
|
|
onMouseDown={(e) => onResizeStart(e, direction)}
|
|
style={{
|
|
position: 'absolute',
|
|
backgroundColor: 'transparent',
|
|
cursor: direction === 'n' || direction === 's' ? 'ns-resize' : 'ew-resize',
|
|
}}
|
|
/>
|
|
))}
|
|
</>
|
|
);
|
|
};
|