mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-18 10:22:28 +08:00
Lexical: Started converting drawio to TS
Converted events service to TS as part of this.
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user