Adds a new template for the beginning of a new front end

This commit is contained in:
GloriousCode
2017-08-15 06:45:36 +10:00
parent e1c68e5ffb
commit f0a2793e8c
91 changed files with 11583 additions and 1317 deletions

View File

@@ -0,0 +1,22 @@
import { Component } from '@angular/core';
import { ElectronService } from './providers/electron.service';
@Component({
selector: 'app-root',
templateUrl: './app.component.html',
styleUrls: ['./app.component.scss']
})
export class AppComponent {
constructor(public electronService: ElectronService) {
if (electronService.isElectron()) {
console.log('Mode electron');
// Check if electron is correctly injected (see externals in webpack.config.js)
console.log('c', electronService.ipcRenderer);
// Check if nodeJs childProcess is correctly injected (see externals in webpack.config.js)
console.log('c', electronService.childProcess);
} else {
console.log('Mode web');
}
}
}