corrad-bp/plugins/process-flow-styles.client.js
Md Afiq Iskandar b8431c1a65 Refactor Process Flow Nodes to File-Based Components and Update Styles
- 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.
2025-07-21 11:47:16 +08:00

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