diff --git a/.electrify/.gitignore b/.electrify/.gitignore new file mode 100644 index 0000000000000000000000000000000000000000..838993efbaea1ed2e34f1bd52fe2bacef22597d5 --- /dev/null +++ b/.electrify/.gitignore @@ -0,0 +1,6 @@ +.DS_Store +.dist +app +bin +db +node_modules \ No newline at end of file diff --git a/.electrify/electrify.json b/.electrify/electrify.json new file mode 100644 index 0000000000000000000000000000000000000000..783792ba554a4ccb4ea1e5e757f09fc15116151f --- /dev/null +++ b/.electrify/electrify.json @@ -0,0 +1,3 @@ +{ + "plugins": [] +} \ No newline at end of file diff --git a/.electrify/index.js b/.electrify/index.js new file mode 100644 index 0000000000000000000000000000000000000000..37e081e046e449e2953b9313615c3a05b380bd8a --- /dev/null +++ b/.electrify/index.js @@ -0,0 +1,100 @@ +var app = require('app'); +var browser = require('browser-window'); +var electrify = require('electrify')(__dirname); +var Menu = require("menu"); + +var window = null; + +app.on('ready', function () { + + // electrify start + electrify.start(function (meteor_root_url) { + + // creates a new electron window + window = new browser({ + width: 1200, height: 900, + 'node-integration': false // node integration must to be off + }); + + // open up meteor root url + window.loadURL(meteor_root_url); + + /* UNCOMMENT FOR MAC PACKAGE + var template = [{ + label: "Application", + submenu: [ + { + label: "Quit", accelerator: "Command+Q", click: function () { + app.quit(); + } + } + ] + }, { + label: "Edit", + submenu: [ + {label: "Undo", accelerator: "CmdOrCtrl+Z", selector: "undo:"}, + {label: "Redo", accelerator: "Shift+CmdOrCtrl+Z", selector: "redo:"}, + {type: "separator"}, + {label: "Cut", accelerator: "CmdOrCtrl+X", selector: "cut:"}, + {label: "Copy", accelerator: "CmdOrCtrl+C", selector: "copy:"}, + {label: "Paste", accelerator: "CmdOrCtrl+V", selector: "paste:"}, + {label: "Select All", accelerator: "CmdOrCtrl+A", selector: "selectAll:"} + ] + } + ]; + + Menu.setApplicationMenu(Menu.buildFromTemplate(template));*/ + }); +}); + + +app.on('window-all-closed', function () { + app.quit(); +}); + + +app.on('will-quit', function terminate_and_quit(event) { + + // if electrify is up, cancel exiting with `preventDefault`, + // so we can terminate electrify gracefully without leaving child + // processes hanging in background + if (electrify.isup() && event) { + + // holds electron termination + event.preventDefault(); + + // gracefully stops electrify + electrify.stop(function () { + + // and then finally quit app + app.quit(); + }); + } +}); + +// +// ============================================================================= +// +// the methods bellow can be called seamlessly from your Meteor's +// client and server code, using: +// +// Electrify.call('methodname', [..args..], callback); +// +// ATENTION: +// From meteor, you can only call these methods after electrify is fully +// started, use the Electrify.startup() convenience method for this +// +// +// Electrify.startup(function(){ +// Electrify.call(...); +// }); +// +// ============================================================================= +// +// electrify.methods({ +// 'method.name': function(name, done) { +// // do things... and call done(err, arg1, ..., argN) +// done(null); +// } +// }); +// diff --git a/.electrify/package.json b/.electrify/package.json new file mode 100644 index 0000000000000000000000000000000000000000..b37d0778f5662f3807a428adb31512c024934238 --- /dev/null +++ b/.electrify/package.json @@ -0,0 +1,7 @@ +{ + "name": "Mongoclient", + "main": "index.js", + "dependencies": { + "electrify": "2.1.4" + } +} \ No newline at end of file diff --git a/.meteor/packages b/.meteor/packages index f7b0d95acc6ce7cb18f9bb09ac41964fe67d7810..534026d7f4a5efe3263a6b0738c9425eb4e9c8bd 100644 --- a/.meteor/packages +++ b/.meteor/packages @@ -28,5 +28,4 @@ momentjs:moment arch:ace-editor aldeed:collection2 ephemer:reactive-datatables-modified -#arboleya:electrify # need for desktop packaging only. -http +http \ No newline at end of file diff --git a/public/logo/head.icns b/public/logo/head.icns new file mode 100644 index 0000000000000000000000000000000000000000..818627132ac40f26d1bb4fd62dbb66b203b9e600 Binary files /dev/null and b/public/logo/head.icns differ diff --git a/public/logo/head.ico b/public/logo/head.ico new file mode 100644 index 0000000000000000000000000000000000000000..ac6be24bb60802e7f4f3ca368b2acc233900c890 Binary files /dev/null and b/public/logo/head.ico differ