UNPKG

ngx-electron-plus

Version:

This library is a fork of a great module created by Thorsten Hans located here: http://github.com/ThorstenHans/ngx-electron With more usefull tools fs-jetpack , node-powershell, notifier, ssh2.Client etc...

62 lines (57 loc) 2.38 kB
import { __decorate } from 'tslib'; import { ɵɵdefineInjectable, Injectable, NgModule } from '@angular/core'; var NgxElectronPlusService = /** @class */ (function () { function NgxElectronPlusService() { // Conditional imports if (this.isElectron) { this.ipcRenderer = window.require('electron').ipcRenderer; this.webFrame = window.require('electron').webFrame; this.remote = window.require('electron').remote; this.os = window.require('os'); this.powershell = window.require('node-powershell'); this.childProcess = window.require('child_process'); this.fs = window.require('fs-jetpack'); this.shell = window.require('electron').shell; this.desktopCapturer = window.require('electron').desktopCapturer; this.clipboard = window.require('electron').clipboard; this.screen = window.screen; this.nativeImage = window.require('electron').nativeImage; this.ssh = window.require('ssh2').Client; this.notifier = window.require('node-notifier'); } } Object.defineProperty(NgxElectronPlusService.prototype, "isElectron", { get: function () { return !!(window && window.process && window.process.type); }, enumerable: true, configurable: true }); NgxElectronPlusService.ɵprov = ɵɵdefineInjectable({ factory: function NgxElectronPlusService_Factory() { return new NgxElectronPlusService(); }, token: NgxElectronPlusService, providedIn: "root" }); NgxElectronPlusService = __decorate([ Injectable({ providedIn: 'root' }) ], NgxElectronPlusService); return NgxElectronPlusService; }()); /* * Public API Surface of ngx-electron-plus */ var NgxElectronPlusModule = /** @class */ (function () { function NgxElectronPlusModule() { } NgxElectronPlusModule = __decorate([ NgModule({ declarations: [], exports: [], providers: [NgxElectronPlusService] }) ], NgxElectronPlusModule); return NgxElectronPlusModule; }()); /** * Generated bundle index. Do not edit. */ export { NgxElectronPlusModule, NgxElectronPlusService }; //# sourceMappingURL=ngx-electron-plus.js.map