2020-02-08 23:26:57 +01:00
|
|
|
import 'reflect-metadata';
|
2020-04-10 05:02:19 +02:00
|
|
|
import { Container } from 'inversify';
|
2020-02-08 23:26:57 +01:00
|
|
|
import { MainAppWindow } from '../modules/app-window/main-app-window';
|
|
|
|
import { NhentaiApi } from '../modules/nhentai/nhentai-api';
|
2020-07-25 02:02:37 +02:00
|
|
|
import '../modules/nhentai/nhentai-ipc-controller';
|
2020-02-08 23:26:57 +01:00
|
|
|
import { Session } from '../modules/session/session';
|
2020-07-25 02:02:37 +02:00
|
|
|
import { Store } from '../modules/store/store';
|
2020-02-08 23:26:57 +01:00
|
|
|
import { WebCrawler } from '../modules/web-crawler/web-crawler';
|
|
|
|
|
|
|
|
export const container = new Container({ defaultScope: 'Singleton' });
|
|
|
|
|
2020-07-25 02:02:37 +02:00
|
|
|
container.bind(Symbol.for('store')).to(Store);
|
|
|
|
|
2020-02-08 23:26:57 +01:00
|
|
|
container.bind(Symbol.for('web-crawler')).to(WebCrawler);
|
|
|
|
|
|
|
|
container.bind(Symbol.for('nhentai-api')).to(NhentaiApi);
|
|
|
|
|
|
|
|
container.bind(Symbol.for('app-window-main')).to(MainAppWindow);
|
|
|
|
|
|
|
|
container.bind(Symbol.for('session')).to(Session);
|