pixelkind / dalton Goto Github PK
View Code? Open in Web Editor NEWA simple JavaScript Playground based on electron and the Khan Academy Live Editor
A simple JavaScript Playground based on electron and the Khan Academy Live Editor
After cloning:
C:\Users\user\dalton> npm install
[...]
C:\Users\user\dalton> npm start
> [email protected] start C:\Users\user\dalton
> electron .
App threw an error during load
Error: Cannot find module 'electron-settings'
at Module._resolveFilename (module.js:455:15)
at Function.Module._resolveFilename (C:\Users\user\AppData\Roaming\npm\node_modules\electron\dist\resources\electron.asar\common\reset-search-paths.js:35:12)
at Function.Module._load (module.js:403:25)
at Module.require (module.js:483:17)
at require (internal/module.js:20:19)
at Object.<anonymous> (C:\Users\user\dalton\main.js:12:18)
at Module._compile (module.js:556:32)
at Object.Module._extensions..js (module.js:565:10)
at Module.load (module.js:473:32)
at tryModuleLoad (module.js:432:12)
I tried node main.js as well, but that is even missing electron itself. Any Ideas? Electron is present an on the path:
> where electron
C:\Users\user\AppData\Roaming\npm\electron
C:\Users\user\AppData\Roaming\npm\electron.cmd
>electron --version
v1.4.3
It looks like whatever you're using to resolve the current filepath isn't working on Windows and just results in undefined
. In the debug console, the image object always points to <daltonpath>/resources/app/demos/simple/undefined/imagename.png
. If I store images there it loads them correctly, but if I store them in the same location as the .js file it doesn't.
When closing the window of dalton or even quitting it, the user should be warned if the file hasn't been saved. Would be the best if the alert is not launching when the file has been saved.
Thanks ;)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.