How to use remote - 10 common examples

To help you get started, we’ve selected a few remote examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github Algram / Hypha / app / js / util.js View on Github external
'use strict';
const path = require('path');
const shell = require('shell');
const remote = require('remote');
const Menu = remote.require('menu');
const MenuItem = remote.require('menu-item');
const webFrame = require('electron').webFrame;
try {
	const checker = require('spellchecker');
} catch (e) {
	console.log(e);
}

/**
 * Activates spell checking for every text input that is in the application
 * At the moment the default language is en-US, this will eventually be
 * determined by the language selected in the settings
 * @return {void} void
 */
function activateSpellChecking() {
	// Return if spell checker isn't found
github Algram / Hypha / app / js / util.js View on Github external
$('input').on('contextmenu', function (e) {
		// use current menu, probably the one that was built the last time spellcheck ran
		menu.popup(remote.getCurrentWindow());
		// build a new one with only select all in it
		menu = Menu.buildFromTemplate(template);
	})
}
github openWMail / openWMail / src / mailbox / MailboxList.js View on Github external
"use strict"

const remote = require('remote');
const Menu = remote.require('menu');
const MMailbox = require('./models/MMailbox')
const mailboxActions = require('./actions/mailbox')

class MailboxList {
	/***************************************************************************/
	// Lifecycle
	/***************************************************************************/
	constructor(app) {
		this.app = app
	}

	/***************************************************************************/
	// Active state
	/***************************************************************************/

	/**
github jimschubert / electron-aurelia-example / client / dev.js View on Github external
if(args.dev){
  // Make the main window centered, visible, and opened with dev tools
  var currentWindow = require('remote').getCurrentWindow();
  currentWindow.setSize(800, 600);
  currentWindow.center();
  currentWindow.show();
  currentWindow.openDevTools();
}
github Team-WebFlight / webflight / test / fixtures / test-website / wfPath / js / wf-seed.js View on Github external
response.on('data', function(data) {
        data = JSON.parse(data);

        if (data.count < 2) {
          console.log("😴 bots going offline")
          http.get('http://localhost:3000/bots.no.longer.seeding.4wf')
          require('remote').require('app').quit()
        }
      });
    });
github expo / xde / build / web / MainMenu.js View on Github external
onClick: function onClick() {
          console.log("Quit");
          require('remote').require('app').quit();
        }
      }];
github expo / xde / src / web / MainMenu.js View on Github external
onClick: () => {
          console.log("Quit");
          require('remote').require('app').quit();
        },
      },
github Tasarinan / editor-framework / page / page-init.js View on Github external
window.onload = function () {
        var Remote = require('remote');
        var currentWindow = Remote.getCurrentWindow();
        currentWindow.setSize(800, 600);
        currentWindow.center();
        currentWindow.show();
        currentWindow.openDevTools();
        console.error(error.stack || error);
    };
}
github s-a / iron-node-zerodarkmatrix-theme / index.js View on Github external
Theme.prototype.loadExtension = function() {
	var ext = require('remote').require('browser-window').removeDevToolsExtension("DevTools Theme: Zero Dark Matrix");
	var dir = path.join(__dirname, "chrome-devtools-zerodarkmatrix-theme","theme-extension" );
	ext = require('remote').require('browser-window').addDevToolsExtension(dir);
};
github mccxiv / tc / src / ng / providers / electron.js View on Github external
angular.module('tc').factory('electron', function() {
  return {
    local: require('electron'),
    remote: require('remote').require('electron')
  }
});

remote

Work on client-side files with a remote API server transparently

BSD
Latest version published 11 years ago

Package Health Score

41 / 100
Full package analysis

Popular remote functions