Lexical: Started converting drawio to TS

Converted events service to TS as part of this.
This commit is contained in:
Dan Brown
2024-07-18 11:19:11 +01:00
parent 5002a89754
commit 634b0aaa07
9 changed files with 142 additions and 112 deletions

View File

@ -1,4 +1,4 @@
import * as events from './services/events';
import {EventManager} from './services/events.ts';
import * as httpInstance from './services/http';
import Translations from './services/translations';
import * as componentMap from './components';
@ -21,7 +21,7 @@ window.importVersioned = function importVersioned(moduleName) {
// Set events and http services on window
window.$http = httpInstance;
window.$events = events;
window.$events = new EventManager();
// Translation setup
// Creates a global function with name 'trans' to be used in the same way as the Laravel translation system