mirror of
https://github.com/PR0M3TH3AN/bitvid.git
synced 2026-11-06 04:42:57 +00:00
Refactor app orchestrator into Application with dependency injection
This commit is contained in:
1 parent
ef6b8bf1cf
commit
cf34e28a47
17 files changed
+525
-375
No files matched your search
Vendored
+23
@@ -0,0 +1,23 @@
|
||||
// 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;
|
||||
Reference in new issue
Block a user