1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-06-27 16:41:53 +03:00

JS: Converted come common services to typescript

This commit is contained in:
Dan Brown
2024-07-03 11:00:57 +01:00
parent feca1f0502
commit a8f1160743
9 changed files with 172 additions and 187 deletions

View File

@ -1,9 +1,8 @@
import * as events from './services/events';
import * as httpInstance from './services/http';
import Translations from './services/translations';
import * as components from './services/components';
import * as componentMap from './components';
import {ComponentStore} from './services/components.ts';
// Url retrieval function
window.baseUrl = function baseUrl(path) {
@ -32,6 +31,6 @@ window.trans_choice = translator.getPlural.bind(translator);
window.trans_plural = translator.parsePlural.bind(translator);
// Load & initialise components
components.register(componentMap);
window.$components = components;
components.init();
window.$components = new ComponentStore();
window.$components.register(componentMap);
window.$components.init();