Commit graph

84 commits

Author SHA1 Message Date
Christopher Willis-Ford
34d96bf49c Add onProjectTelemetryEvent handler for GUI 2018-12-21 11:31:02 -08:00
Christopher Willis-Ford
77b8a13d64 Populate telemetry events 2018-12-21 11:31:02 -08:00
Christopher Willis-Ford
6486201bf9 Improve appWillClose() reliability 2018-12-21 11:31:02 -08:00
Christopher Willis-Ford
64da5dff27 Hook up telemetry opt-in/out modal 2018-12-21 11:31:02 -08:00
Christopher Willis-Ford
30cafbf508 Enable telemetry persistence 2018-12-21 11:31:02 -08:00
Christopher Willis-Ford
64c2755c70 First draft telemetry client
To do: queue and client ID persistence
2018-12-21 11:31:00 -08:00
Christopher Willis-Ford
5517f9a184 Set isScratchDesktop 2018-12-21 10:26:54 -08:00
Christopher Willis-Ford
c8f6b38df2 Add last-resort hook to stop link navigation
Links which cause the browser to navigate to another page should be
removed or disabled in Scratch Desktop to prevent Electron from
navigating away from the editor. If we miss disabling or removing such a
link, this last-resort hook will disable navigation after the user
clicks a link.
2018-12-14 14:57:55 -08:00
Christopher Willis-Ford
6bf5d4a41a Improve main window behavior and code readability
- Closing behavior on Mac is now consistent with other platforms
- The main window is not shown until ready
- Minor code reorg to separate concerns and improve readability
2018-12-14 13:07:24 -08:00
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