BookStack/resources/js/app.ts
Dan Brown f41c02cbd7
Some checks are pending
lint-js / build (push) Waiting to run
test-js / build (push) Waiting to run
TS: Converted app file and animations service
Extracted functions out of app file during changes to clean up.
Altered animation function to use normal css prop names instead of JS
CSS prop names.
2024-10-11 15:19:19 +01:00

24 lines
796 B
TypeScript

import {EventManager} from './services/events';
import {HttpManager} from './services/http';
import {Translator} from './services/translations';
import * as componentMap from './components/index';
import {ComponentStore} from './services/components';
import {baseUrl, importVersioned} from "./services/util";
// eslint-disable-next-line no-underscore-dangle
window.__DEV__ = false;
// Make common important util functions global
window.baseUrl = baseUrl;
window.importVersioned = importVersioned;
// Setup events, http & translation services
window.$http = new HttpManager();
window.$events = new EventManager();
window.$trans = new Translator();
// Load & initialise components
window.$components = new ComponentStore();
window.$components.register(componentMap);
window.$components.init();