mirror of
				https://github.com/BookStackApp/BookStack.git
				synced 2025-10-31 03:50:27 +03:00 
			
		
		
		
	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.
		
			
				
	
	
		
			24 lines
		
	
	
		
			796 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			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();
 |