- Migrated custom node definitions from inline to individual `.vue` files for improved maintainability and production compatibility. - Updated `ProcessFlowCanvas.vue` to import new file-based node components and created a `customNodeTypes` object to manage node types. - Removed the deprecated `composables/processFlowNodes.js` and extracted shared styles into `composables/nodeStyles.js`. - Enhanced user experience by ensuring proper rendering and functionality of all node types in the process flow interface.
10 lines
285 B
JavaScript
10 lines
285 B
JavaScript
import { nodeStyles } from '~/composables/nodeStyles';
|
|
|
|
export default defineNuxtPlugin(() => {
|
|
// Create a style element
|
|
const styleEl = document.createElement('style');
|
|
styleEl.textContent = nodeStyles;
|
|
|
|
// Append to document head
|
|
document.head.appendChild(styleEl);
|
|
});
|