Added support for printing

This commit is contained in:
2023-11-21 11:51:37 +01:00
parent c891fdad45
commit f34d8e836a
6 changed files with 57 additions and 12 deletions

View File

@@ -22,7 +22,8 @@ export class Window {
const fileListService = new FileListService();
this.registerService<void, any[]>(fileListService);
this.registerService<any, Door[]>(new DoorService());
const doorService = new DoorService();
this.registerService<any, Door[]>(doorService);
readFile('./config.json', 'utf8', (error, data) => {
if(error){
@@ -31,7 +32,7 @@ export class Window {
}
const config = JSON.parse(data);
fileListService.setPaths(config.filePaths);
doorService.setMapping(config.mapping);
});
}