mirror of
https://github.com/arduino/arduino-ide.git
synced 2025-04-27 16:57:19 +00:00

- update Theia to `1.39.0`, - remove the application packager and fix the security vulnerabilities, - bundle the backed application with `webpack`, and - enhance the developer docs. Co-authored-by: Akos Kitta <a.kitta@arduino.cc> Co-authored-by: per1234 <accounts@perglass.com> Signed-off-by: Akos Kitta <a.kitta@arduino.cc>
27 lines
812 B
TypeScript
27 lines
812 B
TypeScript
import type { Disposable } from '@theia/core/lib/common/disposable';
|
|
import { injectable } from '@theia/core/shared/inversify';
|
|
import type { AppInfo, AppService } from '../browser/app-service';
|
|
import type { Sketch } from '../common/protocol/sketches-service';
|
|
import type { StartupTasks } from '../electron-common/startup-task';
|
|
|
|
@injectable()
|
|
export class ElectronAppService implements AppService {
|
|
quit(): void {
|
|
window.electronArduino.quitApp();
|
|
}
|
|
|
|
info(): Promise<AppInfo> {
|
|
return window.electronArduino.appInfo();
|
|
}
|
|
|
|
registerStartupTasksHandler(
|
|
handler: (tasks: StartupTasks) => void
|
|
): Disposable {
|
|
return window.electronArduino.registerStartupTasksHandler(handler);
|
|
}
|
|
|
|
scheduleDeletion(sketch: Sketch): void {
|
|
window.electronArduino.scheduleDeletion(sketch);
|
|
}
|
|
}
|