- Added new automation-related routes and controllers for managing automations. - Introduced automation nodes in the UI with distinct styles and interactions. - Updated sidebar to include navigation for automations. - Enhanced post creation logic to support automation metadata. - Refactored content type and platform enums into types for better type safety. - Added localization for automation-related terms in English, Spanish, and Portuguese. - Improved error handling in various components to accommodate new features.
9 lines
266 B
TypeScript
9 lines
266 B
TypeScript
import { useEcho } from '@laravel/echo-vue';
|
|
|
|
export const useAutomationEcho = <T = unknown>(
|
|
automationId: string,
|
|
event: string | string[],
|
|
callback: (payload: T) => void,
|
|
) => {
|
|
return useEcho<T>(`automation.${automationId}`, event, callback);
|
|
};
|