How to use the remote.require function in remote

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 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 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 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')
  }
});
github TooNote / TooNote / src / scripts / main.js View on Github external
function buildAppMenu(options){
		if(!options) options = {};
		var remote = require('remote');
		var Menu = remote.require('menu');

		var template = getAppMenuTmpl(options);
		var menu = Menu.buildFromTemplate(template);
		Menu.setApplicationMenu(menu);
	}
github bojzi / sound-machine-electron-guide / app / js / index.js View on Github external
'use strict';

var ipc = require('ipc');
var remote = require('remote');
var Tray = remote.require('tray');
var Menu = remote.require('menu');
var path = require('path');

var soundButtons = document.querySelectorAll('.button-sound');
var closeEl = document.querySelector('.close');
var settingsEl = document.querySelector('.settings');

var trayIcon = null;
var trayMenu = null;

for (var i = 0; i < soundButtons.length; i++) {
    var soundButton = soundButtons[i];
    var soundName = soundButton.attributes['data-sound'].value;

    prepareButton(soundButton, soundName);
}
github Algram / Hypha / app / js / index.js View on Github external
'use strict';
const please = require('./external/Please');
const util = require('./js/util');
const ipcRenderer = require('electron').ipcRenderer;
const remote = require('remote');
const Menu = remote.require('menu');
const MenuItem = remote.require('menu-item');

let displayedServers = [];
let selectedServer = '';
let selectedChannel;
let selectedUsername;
initializeMenus();
util.activateSpellChecking();

/*
New channel was selected, tell main and trigger visual changes
 */
$('#channelList').on('click', 'channel', function (e) {
	e.preventDefault();

	//Enable input-fields

remote

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

BSD
Latest version published 12 years ago

Package Health Score

39 / 100
Full package analysis

Popular remote functions