CoreFiles by mySites.guru
workflowgraph.es6.js24 lines, 763 bytes, from Joomla_6.1.2-Stable-Full_Package.zip
Raw History Compare with 6.1.1
md5
3718af00fdbdf7a4d3c5a3c3e85b3001
sha1
f86ffb5321fda85eb90101fb6925dbe6eb201c3f
sha256
08aea38921bd51fd49281bd5cb7481b26dc407ce9754b05ed5455ddcb609f978
import { createApp } from 'vue';
import App from './components/App.vue';
import EventBus from './app/Event.es6';
import store from './store/store.es6';
import translate from './plugins/translate.es6.js';
import notifications from './plugins/Notifications.es6.js';

// Register WorkflowGraph namespace
window.WorkflowGraph = window.WorkflowGraph || {};
// Register the WorkflowGraph event bus
window.WorkflowGraph.Event = EventBus;

document.addEventListener('DOMContentLoaded', () => {
  const mountElement = document.getElementById('workflow-graph-root');

  if (mountElement) {
    const app = createApp(App);
    app.use(store);
    app.use(translate);
    app.mount(mountElement);
  } else {
    notifications.error('COM_WORKFLOW_GRAPH_API_NOT_SET');
  }
});

The same content is in 18 releases, Joomla 6.1.0-beta1 to 6.1.4. See them all, or every version of this file.