Commit graph

25 commits

Author SHA1 Message Date
Christopher Willis-Ford
356b4475b6 Add icon 2018-12-13 12:01:08 -08:00
Christopher Willis-Ford
64a06d5b8f Obey scratch-gui's onbeforeunload result
The `scratch-gui` project saver uses `onbeforeunload` to request
confirmation before navigating away from an unsaved project.
Unfortunately Electron suppresses the confirmation dialog that browsers
would normally display. Instead, Electron offers a `will-prevent-unload`
event in the main process: this event fires when `onbeforeunload`
requests a confirmation dialog.

This change adds a handler for `will-prevent-unload` which displays a
quit confirmation dialog so that the overall behavior is similar to what
happens in a regular browser.
2018-12-12 17:10:43 -08:00
Christopher Willis-Ford
fcf629ba1c Let scratch-gui handle 'onbeforeunload' 2018-12-12 17:07:04 -08:00
Christopher Willis-Ford
046c6188f9 Don't import scratch-gui internals 2018-11-08 18:48:44 -08:00
Christopher Willis-Ford
4767897f4b only import electron-devtools-installer in dev mode 2018-10-31 15:57:04 -07:00
Christopher Willis-Ford
cb0852101e Load default project on startup 2018-10-24 15:00:03 -07:00
Christopher Willis-Ford
78e6831cbb Add ElectronStorageHelper to load bundled assets 2018-10-24 09:47:59 -07:00
Christopher Willis-Ford
071ba28fc8 Fix static assets path 2018-10-24 09:47:59 -07:00
Christopher Willis-Ford
914f883c65 Eliminate redundant index.js->index.jsx shim 2018-10-24 09:47:59 -07:00
Christopher Willis-Ford
53e8723086 Fix build with/without npm ln, match scratch-gui
Match the versions of Webpack, Babel, and related plugins as used in
scratch-gui. That plus a few other tweaks means that this repository
builds the same with or without `npm ln scratch-gui`, and also means
that all syntax used in scratch-gui should build the same here.
2018-10-24 09:47:52 -07:00
Christopher Willis-Ford
99b172d893 Add React dev tools 2018-10-13 01:26:58 -07:00
Christopher Willis-Ford
751406722d eslint: Switch src/ env from shared to node 2018-10-12 23:03:16 -07:00
Christopher Willis-Ford
97db496efc Fix lint rules for src/renderer/ 2018-09-27 14:35:04 -07:00
Christopher Willis-Ford
4a8bac49dd Copy static assets from GUI, load GUI from dist/ 2018-09-27 14:35:02 -07:00
Christopher Willis-Ford
3785f7070e Get scratch-gui working, kinda, sorta...
CSS isn't loaded and it takes a LONG time to compile, but it does load
the GUI. It also requires using `npm ln` for `scratch-gui`.
2018-09-27 14:32:22 -07:00
Christopher Willis-Ford
13391df515 Use eslint-config-scratch 2018-09-27 14:28:23 -07:00
Ryan
71215e3311 fix: imports for url & path which were breaking the app (#21) 2018-02-06 06:24:35 -08:00
hacker112
427ff959db fix: Make sure that index.html can be found in paths with hashtag (#20) 2018-02-05 02:13:41 -08:00
develar
2cc0d0c32f
fix: use ELECTRON_WEBPACK_WDS_PORT env instead of hardcoded webpack-dev-server port number
Focus main window if dev tool window opened on start
2017-10-06 09:39:00 +02:00
SimulatedGREG
87437f7c26 Merge branch 'master' of github.com:electron-userland/electron-webpack-quick-start 2017-10-02 17:09:47 -07:00
SimulatedGREG
10afade1bc update landingpage to remove extraneous logs, drop -- for yarn script 2017-10-02 17:09:37 -07:00
Vladimir Krivosheev
de40d4cafc chore: fix "Necessary" spelling 2017-09-04 17:15:40 +02:00
SimulatedGREG
a10c1752b7 new welcome page 2017-08-29 16:35:30 -05:00
SimulatedGREG
3a5914f703 update .gitignore, remove index.ejs, add code comments to main process 2017-08-27 14:50:22 -05:00
SimulatedGREG
4f2531e10c 🎉 initial commit 2017-08-27 14:15:38 -05:00