- Moved custom node definitions from `composables/processFlowNodes.js` to individual `.vue` files for better production compatibility and maintainability. - Updated `ProcessFlowCanvas.vue` to import node types from the new file structure, ensuring proper rendering of custom nodes. - Added new methods for setting nodes and edges directly in the `ProcessFlowCanvas` component, improving flexibility in managing flow state. - Removed the deprecated `test.vue` file to streamline the codebase and eliminate unnecessary components. - Adjusted styles and structure in the process flow components to enhance user experience and maintain consistency across the application.
10 lines
291 B
JavaScript
10 lines
291 B
JavaScript
import { nodeStyles } from '~/composables/processFlowNodes';
|
|
|
|
export default defineNuxtPlugin(() => {
|
|
// Create a style element
|
|
const styleEl = document.createElement('style');
|
|
styleEl.textContent = nodeStyles;
|
|
|
|
// Append to document head
|
|
document.head.appendChild(styleEl);
|
|
});
|