nw.js

How get a template from a remote URL with AngularJS

倖福魔咒の 提交于 2019-12-11 06:34:41
问题 I am making an app with NW and AngularJS to make a desktop app, what I want is to get the files from a server(html, css, js). then I want to do something like the following code: aux.config(function ($routeProvider) { $routeProvider .when('/testInformation/', { templateUrl: 'https://serverName/test.html', controller: 'shipmentInformationController' }).otherwise({ redirectTo: '/' }); }); The problem is that when I run the app it is not getting the html of the template, then I am not sure if

Setting Javascript Context to iFrame in an iFrame

早过忘川 提交于 2019-12-10 15:54:54
问题 I have a page with an <iframe> , and inside that <iframe> another <iframe> pops up as a window. What I'm trying to do is call a function that is set in the <iframe> 's <iframe> .... I know, lot's of the same tag going on. Here's what I mean in HTML format. <body> <iframe src="blahblah.html" name="iframe"> //blahblah.html html <iframe src="blahblahpopup.html" name="iFrame2"> //blahblahpopup.html html, also where the function is set. </iframe> </iframe> </body> So, as you can see, there is an

console.log() does not appear in my terminal (nwjs)

五迷三道 提交于 2019-12-06 02:51:20
问题 In my nwjs app, I load a _launch.js file from an HTML file: <html> <body> <script type="text/javascript" src="_launch.js"></script> </body> </html> And in my _launch.js file, I fire up the the Node processes I need for an express server and socketIO. var express = require('express'), app = express(), server = require('http').Server(app), io = require('socket.io')(server), gui = require('nw.gui'), __curDir = process.cwd(), //keep the logic for the IO connections separate ioServer = require(_

console.log() does not appear in my terminal (nwjs)

末鹿安然 提交于 2019-12-04 10:04:44
In my nwjs app, I load a _launch.js file from an HTML file: <html> <body> <script type="text/javascript" src="_launch.js"></script> </body> </html> And in my _launch.js file, I fire up the the Node processes I need for an express server and socketIO. var express = require('express'), app = express(), server = require('http').Server(app), io = require('socket.io')(server), gui = require('nw.gui'), __curDir = process.cwd(), //keep the logic for the IO connections separate ioServer = require(__curDir + '/server.js'); //configure Express to default web requests to /workspace/ folder app.use

How to package a NW.js application on Windows

Deadly 提交于 2019-12-03 13:36:23
问题 I am reading the instructions for how to package a NW.js app and the wording is a confusing mess and makes no sense. I highlighted the contradictory word-salad parts. Create a zip file (this is built into XP, Vista and 7) Copy all of your files into the zip file , retaining directory structure and making sure that the package.json file is in the root directory (if you make a zip file containing a folder with your stuff in it, then it's not going to work ) Rename the file extension from .zip

How to package a NW.js application on Windows

巧了我就是萌 提交于 2019-12-03 03:44:49
I am reading the instructions for how to package a NW.js app and the wording is a confusing mess and makes no sense. I highlighted the contradictory word-salad parts. Create a zip file (this is built into XP, Vista and 7) Copy all of your files into the zip file , retaining directory structure and making sure that the package.json file is in the root directory (if you make a zip file containing a folder with your stuff in it, then it's not going to work ) Rename the file extension from .zip to .nw. By default, file extensions may be hidden. You need to (press alt), go to folder options and

Electron.js How to minimize/close window to system tray and restore window back from tray?

◇◆丶佛笑我妖孽 提交于 2019-12-03 00:42:17
问题 I want my Electron.js application to live on system tray and whenever the user wants to do something they can restore from the system tray do something and minimize/close it back to system tray. How do i do that? I've seen the tray section from the documentation but doesn't help much to achieve what i want. Here is what i got so far on the main.js file var application = require('app'), BrowserWindow = require('browser-window'), Menu = require('menu'), Tray = require('tray'); application.on(

Electron.js How to minimize/close window to system tray and restore window back from tray?

送分小仙女□ 提交于 2019-12-02 14:14:58
I want my Electron.js application to live on system tray and whenever the user wants to do something they can restore from the system tray do something and minimize/close it back to system tray. How do i do that? I've seen the tray section from the documentation but doesn't help much to achieve what i want. Here is what i got so far on the main.js file var application = require('app'), BrowserWindow = require('browser-window'), Menu = require('menu'), Tray = require('tray'); application.on('ready', function () { var mainWindow = new BrowserWindow({ width: 650, height: 450, 'min-width': 500,

Where to find ffmpegsumo libraries for nw.js 0.12.0? (Play audio files in Nodewebkit)

牧云@^-^@ 提交于 2019-12-01 06:28:26
问题 Hello I am working in an application using NW.js 0.12.0 (nodewebkit) and I need to find the ffmpegsumo.dll file of Google Chrome 41.0.2272.76 in order to be able to play audio files. See: NW.js Docs About it Also I found this Answer and the 32 bit works, but the 64 does not work for me. Where can I find? ffmpegsumo.dll (Win 32 bits) FOUND HERE! ffmpegsumo.dll (Win 64) ffmpegsumo.so (Mac OX) ffmpegsumo.so (Linux) I know that someone else will need this as well so I will update this and add

Create window-like menu on OS X

淺唱寂寞╮ 提交于 2019-11-30 09:41:45
I'd like to create a same sort of tray menu like this application . Because it is on the list of applications that use node-webkit/nw.js, I think it's possible. I have looked through all the documentation and couldn't find anything on how to achieve that. Searching Google also wasn't really fruitful. Maybe one of you guys has done this before and could send me in the right direction? First you need to prevent app appear in taskbar { "name": "My App", "version": "1.0.0", "main": "app.html", "window": { "show": false, "show_in_taskbar": false } } Then you need to create tray (top bar) menu: