feat: migrate from electron-webpack to electron-forge

Electron upgrade : 10.1.3 => 13.1.7
Angular upgrade : 10.1.3 => 12.1.2
This commit is contained in:
Amadou Ada DIENE
2021-07-19 12:34:50 +02:00
parent 433dfeb7f5
commit 4fa2999961
83 changed files with 73637 additions and 13521 deletions

View File

@@ -0,0 +1,13 @@
export class AbstractService {
receptionChannel(): string {
throw new Error('Method not implemented.');
}
sendingChannel(): string {
throw new Error('Method not implemented.');
}
process(...args: any): any {
throw new Error('Method not implemented.');
}
}

View File

@@ -0,0 +1,21 @@
import { WindowApiConst } from "shared-lib";
import { AbstractService } from "./abstract-service";
export class MultiplesService extends AbstractService {
receptionChannel(): string {
return WindowApiConst.MULTIPLES_INPUT;
}
sendingChannel(): string {
return WindowApiConst.MULTIPLES_OUTPUT;
}
process(...args: any): any {
// From 1 to 10, return input multiples
const multiples = [];
for (let n = 1; n <= 10; n++) {
multiples.push(n * args[0]);
}
return multiples;
}
}