electron

How to use n-tier application development

。_饼干妹妹 提交于 2019-12-24 17:08:11
问题 I am a .net desktop app developer. I use c# and WPF. I used SQL Server as my database. Now I want to learn electron, node.js and would like to code in HTML, CSS and Javascript. Also, as everything mentioned above is open-source/free I would change my database as well. Now I will be using MySQL. In .net we were using n-tier application development. I know that n-tier application development is not specific to .net, so I think it's possible with electron, node.js, HTML, CSS, Javascript using

Why is my ipcMain not sending to ipcRenderer in Electron?

醉酒当歌 提交于 2019-12-24 10:56:29
问题 New to electron I've figured out how to send from Renderer to Main but I'm trying to learn how to go from Main to Renderer . In my research I've read: IPC send from main process to renderer and tried: main.js : const { app, ipcMain, Menu } = require('electron') const appVersion = process.env.npm_package_version const mainWindow = require('./renderer/mainWindow') app.on('ready', () => { mainWindow.createWindow(), console.log(`Trying to send app version to renderer: ${appVersion}`), mainWindow

Getting proxy settings from electron

放肆的年华 提交于 2019-12-24 10:56:13
问题 When i set proxy settings in the system my Electron application gets it automatically for common requests (axios package), but not for websockets (socket.io-client package). If i provide proxy settings manually then websockets starts to work too, but i want to try to avoid manual configuration, because it may be tricky to the real app's users. So i'm looking any way to get proxy settings from electron and transfer them to the websockets. I have tried to use login event for my browserWindow in

Electron Node and Chrome version outdated?

六眼飞鱼酱① 提交于 2019-12-24 10:35:19
问题 I am trying to develop a webgl desktop app, I am just a bit worried about the versions that electron shows. I currently get this: But chrome is at version 64 I think since jan 2018? Also my node.js version locally is 9.8.0. So I was wondering electron comes with it's own nodejs distribution ? 回答1: Yes, Electron comes with its own bundled version of NodeJS. However, note that neither Electron nor NodeJS are required in order to run apps built in Electron. As for why the version of NodeJS

Handling onClick of a <a> tag inside of dangerouslySetInnerHTML/regular html

依然范特西╮ 提交于 2019-12-24 09:29:48
问题 I am currently writing a reddit client inside of ReactJS plus electron. I am simply doing this to understand apis better and to understand programming a large scale program. However I am becoming stuck when trying to render markdown. I have imported markdown to jsx libraries but none of them (unless I am using them wrong) have allowed me to properly convert the reddit markdown into a component I can work with. For example from the reddit api, I receive a comment like this: Hi mi name is John

Unable to install electron from npm

风流意气都作罢 提交于 2019-12-24 09:06:16
问题 I am trying to install electron on my ubuntu 16.04, i already have a working nodejs and npm. But suddenly I am unable to install modules by type: sudo npm install electron Below is the response am getting: npm WARN registry Unexpected warning for https://registry.npmjs.org/: Miscellaneous Warning EAI_AGAIN: request to https://registry.npmjs.org/electron failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org:443 npm WARN registry Using stale package data from https://registry.npmjs.org/ due

run .swf files in electron project in windows os

橙三吉。 提交于 2019-12-24 08:40:00
问题 i have this code for convert website to exe file using electon js but i have problem inside the website there are .swf files and i search alot about how i can run .swf files but it's not work i was traing by plugin it's name "Pepper Flash Plugin" this is the url for this plugin https://electron.atom.io/docs/tutorial/using-pepper-flash-plugin/ and i was searsh about "pepflashplayer.dll" and put it on the root on prject directory and also not work any help please file:main.js 'use strict';

Building Electron Native Extensions using Visual Basic 2015

和自甴很熟 提交于 2019-12-24 08:37:46
问题 Where I am currently: I have began working on a NodeJS native extension I intend to work with Electron, but from previous works I have noted that the build steps for building for just NodeJS are as expected, include the libraries as per instruction and change to output a .dll file with a .node extension. The problem I am facing: When compiling my extension, which tried and tested within NodeJS, does not work within an Electron contained instance of NodeJS - from searching around I understand

How to get the arguments for opening file with electron app

偶尔善良 提交于 2019-12-24 06:08:50
问题 Perhaps I'm being stupid but I can't seem to find any documentation on how to get the startup arguments for an electron app. My scenario is something like this: Right-click file in Windows Explorer Open with -> My electron app Electron app opens and can work with the file I can get the electron app to open, but how do I work with the file that was right-clicked? 回答1: Assuming that you have the "Open with" portion working, Windows will pass the filename as a command line argument. So just get

getUserMedia not capturing the screen correctly

旧巷老猫 提交于 2019-12-24 05:53:05
问题 Using the following code: function captureScreen(size) { navigator.webkitGetUserMedia({ audio: false, video: { mandatory: { chromeMediaSource: 'desktop', minWidth: size.width, maxWidth: size.width, minHeight: size.height, maxHeight: size.height, minFrameRate: 1, maxFrameRate: 1 } } }, gotStream, getUserMediaError); function gotStream(stream) { var video = document.createElement('video'); video.addEventListener('loadedmetadata',function(){ var canvas = document.createElement('canvas'); canvas