node-webkit

node-webkit equivalent for sinatra?

大城市里の小女人 提交于 2019-12-23 10:17:06
问题 I've been thinking about learning how to make simple Mac OS X applications based on web-technology and I came across node-webkit which seems compelling. However, I've recently invested in learning the basics of Sinatra/Ruby and I wanted to stay on that course. Is there a "node-webkit equivalent" for developers who use Sinatra? Or, is there a recommended way to use the Sinatra framework (or Ruby) to build OS X apps that are essentially web wrappers? 回答1: Sinatra is a server-side framework.

Node-Webkit Download PDF

孤者浪人 提交于 2019-12-23 03:16:39
问题 I'm building a node-webkit app where I receive a request from a website to download a particular file. When I initiate the web service call I get back the file in the response.body. I'm trying to use the example in the fs api to save the pdf to my local folder i.e.: (i'm passing the response.body into the data field, and passing a string 'binary' to specify encoding under options) var options = { encoding: 'binary' }; console.log('File name:' + fileName); fileOperations.write(fileName,

Embedding Youtube videos not working with Node-webkit

风流意气都作罢 提交于 2019-12-22 18:46:11
问题 I have an embedded youtube video in my nw.js app. The preview for the correct video shows up properly but when I click to play it I am met with the following error: An error occurred, please try again later All of the videos in the app get this error, except for one that gets this puzzling error: The following video contains content from the International Basketball Federation When I click these videos, I can see the first split second of the video before the error shows up. I tried enabling

node wkhtmltopdf create corrupted PDF in node webkit

心已入冬 提交于 2019-12-21 21:33:32
问题 Im having a lot of trouble in node webkit to convert html to PDF. Im using wkhtmltopdf 0.12.1 and did the npm install wkhtmltopdf. Here is my node code: var wkhtmltopdf = require('wkhtmltopdf'); var fs = require("fs-plus"); // URL wkhtmltopdf('http://google.com/', { pageSize: 'letter' }) .pipe(fs.createWriteStream('out.pdf')); It gave me an error. Later I found this https://github.com/devongovett/node-wkhtmltopdf/pull/9 I did the correcting and im not getting any error anymore but the PDF

net::ERR_INSECURE_RESPONSE while making ajax request from node-webkit

走远了吗. 提交于 2019-12-21 07:04:38
问题 when I'm trying to make ajax request with jquery to: https://localhost:8443/uri I get this error: net::ERR_INSECURE_RESPONSE I'm using self signed certificate, in package.json I have these parameters: "chromium-args": "--ignore-certificate-errors --auth-schemes='basic --auth-server-whitelist='*localhost:8443' --auth-negotiate-delegate-whitelist='*localhost:8443'''", does anybody know how I can add self signed certificates to node-webkit's truststore !? OS: ubuntu 14.10 回答1: The problem here

securing the source code in a node-webkit desktop application

安稳与你 提交于 2019-12-20 10:14:09
问题 first things first , i have seen nwsnapshot. and its not helping. i am building an inventory management system as a desktop app using node-webkit . the project being built is using compoundjs (mvc javascript library). which have a definite folder structure (you know mvc) and multiple javascript files inside them. the problem is nwsnapshot allows the app to have only a single snapshot file but the logic of application is spread over all the folders in different javascript files. so how do i

Alternatives to node webkit? (filesize of importance) [closed]

江枫思渺然 提交于 2019-12-20 09:17:59
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 5 years ago . Whilst node-webkit is nice, the binaries on mac and linux are over 70MB for a hello world application. Unacceptable. Is there any cross platform library available that simply uses the system default browser? I don't really care if that's IE, or webkit, or ... ? I presume that way the binary would be much smaller

Node-Webkit on Windows runs in 3 different processes?

耗尽温柔 提交于 2019-12-20 04:12:29
问题 I'm sorry if this is a duplicate. I tried to Google the answer but it isn't very helpful. If I run a node-webkit app using nw . , and then open Windows Task Manager, there are three different processes by the name of nw running. I have checked repeatedly but there is a single node-webkit application running on my system. Also, if I "End Task" any one of them, the app exits and the other two processes vanish too. Is that normal behaviour? Is there a documented explanation behind this? Here is

call parent javascript function from iframe

本秂侑毒 提交于 2019-12-18 07:14:10
问题 In node-webkit, call from iframe javascript to parent javascript doesnt work for me. I am trying to launch a link in the iframe on the default browser as a result I want to call a function in the parent window so as to call: gui.Shell.openExternal("link"); Any help is appreciated. Thanks in advance. 回答1: What you want to do, is to intercept links in the internal frame. Here we have an iframe where all links will open in the default browser, not in the Node WebKit context. I hope this helps.

call parent javascript function from iframe

梦想与她 提交于 2019-12-18 07:14:02
问题 In node-webkit, call from iframe javascript to parent javascript doesnt work for me. I am trying to launch a link in the iframe on the default browser as a result I want to call a function in the parent window so as to call: gui.Shell.openExternal("link"); Any help is appreciated. Thanks in advance. 回答1: What you want to do, is to intercept links in the internal frame. Here we have an iframe where all links will open in the default browser, not in the Node WebKit context. I hope this helps.