mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-10-27 07:52:24 +00:00
24 lines
513 B
JavaScript
24 lines
513 B
JavaScript
// js/bootstrap.js
|
|
|
|
import Application from "./app.js";
|
|
import nostrService from "./services/nostrService.js";
|
|
import r2Service from "./services/r2Service.js";
|
|
import { loadView } from "./viewManager.js";
|
|
import { setApplication, setApplicationReady } from "./applicationContext.js";
|
|
|
|
const app = new Application({
|
|
services: {
|
|
nostrService,
|
|
r2Service,
|
|
},
|
|
loadView,
|
|
});
|
|
|
|
setApplication(app);
|
|
|
|
const appReady = app.init();
|
|
setApplicationReady(appReady);
|
|
|
|
export { app, appReady };
|
|
export default app;
|