diff --git a/main.js b/main.js new file mode 100644 index 00000000..bb1ba6c4 --- /dev/null +++ b/main.js @@ -0,0 +1,27 @@ +var app = require('app') // Module to control application life. +var BrowserWindow = require('browser-window') // Module to create native browser window. + +// Report crashes to our server. +require('crash-reporter').start() + +// Keep a global reference of the window object, if you don't, the window will +// be closed automatically when the javascript object is GCed. +var mainWindow = null + +console.log(process.platform) +// Quit when all windows are closed. +app.on('window-all-closed', function () { + if (process.platform !== 'darwin') + app.quit() +}) +app.on('ready', function () { + mainWindow = new BrowserWindow({width: 800, height: 600}) + + mainWindow.loadUrl('file://' + __dirname + '/build/index.html') + + mainWindow.openDevTools() + + mainWindow.on('closed', function () { + mainWindow = null + }) +}) diff --git a/readme.md b/readme.md new file mode 100644 index 00000000..06bee76b --- /dev/null +++ b/readme.md @@ -0,0 +1,14 @@ +# CodeXen app + +Short code(Snippet/Templatefile/Command) storage + boosting service + +## Status +v0.1 breakthru + +## Specs +Web application +Electron application + +## Using packages + - AngularJS + - Electron diff --git a/src/directives/side-nav.tpl.html b/src/directives/side-nav.tpl.html index 1adaa2a9..0b5a698f 100644 --- a/src/directives/side-nav.tpl.html +++ b/src/directives/side-nav.tpl.html @@ -6,7 +6,7 @@
@@ -14,6 +14,18 @@