diff --git a/app.js b/app.js index 3675f3c2..60a29827 100644 --- a/app.js +++ b/app.js @@ -35,3 +35,7 @@ function sync() { services: services }); } + +require('electron').ipcRenderer.on('showAbout', (event, message) => { + !Ext.cq1('about') ? Ext.create('Rambox.view.main.About') : ''; +}); diff --git a/app/view/main/About.js b/app/view/main/About.js new file mode 100644 index 00000000..941d628e --- /dev/null +++ b/app/view/main/About.js @@ -0,0 +1,28 @@ +Ext.define('Rambox.view.main.About', { + extend: 'Ext.window.Window' + ,xtype: 'about' + ,title: 'About Rambox' + ,autoShow: true + ,modal: true + ,width: 300 + ,bodyPadding: 10 + ,data: { + version: require('electron').remote.app.getVersion() + ,platform: process.platform + ,arch: process.arch + ,electron: process.versions.electron + ,chromium: process.versions.chrome + ,node: process.versions.node + } + ,tpl: [ + '