Right Click Menu using React JS

UPDATE: Figured it out – here is what you can do var addMenu; componentWillMount: function() { addMenu = new nw.Menu(); addMenu.append(new nw.MenuItem({ label: ‘doSomething’, click: function() { // doSomething } })); }, contextMenu: function(e) { e.preventDefault(); addMenu.popup(e.clientX, e.clientY); }, render: function(){ return <button onClick={this.handleClick} onContextMenu={this.contextMenu}>SomethingUseful</button> } In render you can pass a function to onContextMenu … Read more

Node-Webkit vs Electron [closed]

Electron has a page explaining the differences with nwjs. Like NW.js, Electron provides a platform to write desktop applications with web technologies. Both platforms enable developers to utilize HTML, JavaScript, and Node.js. On the surface, they seem very similar. There are however fundamental differences between the two projects that make Electron a completely separate product … Read more

How to access a RowDataPacket object

Turns out they are normal objects and you can access them through user_id. RowDataPacket is actually the name of the constructor function that creates an object, it would look like this new RowDataPacket(user_id, …). You can check by accessing its name [0].constructor.name If the result is an array, you would have to use [0].user_id.

What are the functional differences between NW.js, Brackets-Shell and Electron?

I did similar research about two months ago, and in the end I went with node-webkit. The biggest upside on node-webkit is node.js and npm. The package management of npm is really nice, and node has well done filesystem access. Brackets-shell looked interesting, but other than a nice IDE I didn’t really get what made … Read more

What is the Visual Studio Code editor built on

Visual Studio Code is built using web technologies on top of Github’s Electron. Electron is an app runtime for writing native apps that uses Chromium (which Google Chrome is built on) for rendering the interface and node.js for local APIs (example: file system access), it was built primarily as the shell for Github’s Atom code … Read more

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)