corrad-bp/plugins/process-flow-styles.client.js
Md Afiq Iskandar f8a67c4467 Refactor Process Flow Nodes and Enhance ProcessFlowCanvas Component
- 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.
2025-07-21 11:21:58 +08:00

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