3030 Commits

Author SHA1 Message Date
Juan Cruz Viotti
95d94d36d4 Show drive letter on selection on Windows
Showing `\\.\PhysicalDriveN` makes no sense for a Windows user after
selecting based on drive letters on the dropdown.
2015-12-31 22:04:42 -04:00
Juan Cruz Viotti
328adfe60b Replace windosu with elevator
For some reason, when using `windosu`, the app is elevated three times.
However this only happens when the application is packaged for
distribution.

After a couple of days debugging this issue, we have no clue about
what's going on, but `elevator` seems to work fine.

Fixes: https://github.com/resin-io/herostratus/issues/29
2015-12-17 14:12:59 -04:00
Juan Cruz Viotti
255309aa76 Merge pull request #63 from resin-io/fix/unstyled-flash
Prevent flash of unstyled content at startup
2015-12-15 10:36:40 -04:00
Juan Cruz Viotti
69935b4ca7 Merge branch 'master' into fix/unstyled-flash 2015-12-15 10:00:45 -04:00
Juan Cruz Viotti
186d3847fe Prevent white flash when running application
We accomplish this by setting the background color of the `html` element
to match the greyish background color of the application.
2015-12-15 09:57:44 -04:00
Juan Cruz Viotti
2cb79090d1 Implement poor man's ngCloak based on app controller
ngCloak is removed by angular when parsing the template, however this
doesn't seem to be enough to keep the content hidden until the
application is completely ready.

We accomplish this by setting `display: none` to the `body` element and
maing it display again when our main controller starts, at which point
we know everything is up and running.
2015-12-15 09:54:24 -04:00
Juan Cruz Viotti
e01e3591e9 Use ngBind instead of curly braces interpolation 2015-12-15 09:43:03 -04:00
Juan Cruz Viotti
fae1876a1a Merge pull request #60 from resin-io/upgrade/electron
Package application with electron v0.36.0
2015-12-15 08:11:08 -04:00
Juan Cruz Viotti
2f914d283e Package application with electron v0.36.0 2015-12-14 16:44:50 -04:00
Juan Cruz Viotti
8644358bbe Merge pull request #51 from resin-io/jviotti/fix/asar-drivelist
Fix drivelist spawn issues inside asar package
2015-12-14 16:43:37 -04:00
Juan Cruz Viotti
fce58a3ad0 Fix drivelist spawn issues inside asar package
The following libraries were upgraded to versions that include this fix:

- electron-prebuilt
- drivelist

Fixes: https://github.com/resin-io/herostratus/issues/35
Fixes: https://github.com/resin-io/herostratus/issues/18
2015-12-14 16:29:08 -04:00
Juan Cruz Viotti
36cf378095 Merge pull request #59 from resin-io/fix/20/windows-package-elevation
Fix Windows not asking for elevation when packaged
2015-12-14 15:04:45 -04:00
Juan Cruz Viotti
c4a446cb6a Fix Windows not asking for elevation when packaged
The issue is that the `windosu-elevate.cmd` script that `windosu`
internally calls to perform the elevation.

After some investigation this is due one of our ignore regular
expressions used to filter out unnecessary files from the production
package:

```
(.*).md
```

The period matches anything but a space, causing file ending in `cmd` to
be matched, and therefore excluded from the package.

Since the intention of this regex was to match a literal period,
escaping does the trick.

Partly-Fixes: https://github.com/resin-io/herostratus/issues/20
2015-12-14 14:48:00 -04:00
Juan Cruz Viotti
f1bd700507 Merge pull request #57 from resin-io/jviotti/feat/41/burn-again
Implement burn complete screen
2015-12-01 14:40:38 -04:00
Juan Cruz Viotti
5601bc7e44 Merge branch 'master' into jviotti/feat/41/burn-again 2015-12-01 12:22:10 -04:00
Juan Cruz Viotti
f5e63b5441 Merge pull request #58 from resin-io/jviotti/hound/disable-scss
Do not lint scss in Hound
2015-12-01 12:21:57 -04:00
Juan Cruz Viotti
d784ed2ba8 Clarify that the drive was safely ejected 2015-12-01 11:09:00 -04:00
Juan Cruz Viotti
e2bbcdb0c9 Do not lint scss in Hound 2015-12-01 10:43:10 -04:00
Juan Cruz Viotti
739a191e66 Merge branch 'master' into jviotti/feat/41/burn-again 2015-12-01 10:41:12 -04:00
Juan Cruz Viotti
c63755205b Implement burn complete screen
This screen informs the user that the burn has completed and that the
drive can be ejected directly.

It also provides a button to burn another image without exitting the
application.

Fixes: https://github.com/resin-io/herostratus/issues/41
2015-12-01 08:21:17 -04:00
Juan Cruz Viotti
1f8aeac59c Merge pull request #56 from resin-io/jviotti/feat/50/error-dialogs
Show error dialogs on JavaScript exceptions
2015-11-30 15:10:36 -04:00
Juan Cruz Viotti
133f927234 Show error dialogs on JavaScript exceptions
Fixes: https://github.com/resin-io/herostratus/issues/50
2015-11-30 11:51:51 -04:00
Juan Cruz Viotti
a0057b35ae Merge pull request #53 from resin-io/jviotti/misc/disable-travis-emails
Disable Travis CI emails
2015-11-30 09:33:57 -04:00
Juan Cruz Viotti
e4dc8ca9ca Disable Travis CI emails 2015-11-30 00:54:17 -04:00
Juan Cruz Viotti
b59a2eb67f Merge pull request #49 from resin-io/jviotti/fix/39/consoles-windows
Upgrade windosu to v0.2.0
2015-11-29 21:28:47 -04:00
Juan Cruz Viotti
c166ff2bb8 Upgrade windosu to v0.2.0
This version contains a fix for a cmd.exe window popping in for a
fraction of a second when elevating Herostratus on Windows.

Fixes: https://github.com/resin-io/herostratus/issues/39
2015-11-29 20:23:55 -04:00
Juan Cruz Viotti
515da3b560 Merge pull request #48 from resin-io/jviotti/feature/33/devtools
Add a global shortcut to open DevTools
2015-11-25 23:06:45 -04:00
Juan Cruz Viotti
b4c1ee8d3d Add a global shortcut to open DevTools
Fixes: https://github.com/resin-io/herostratus/issues/33
2015-11-25 22:23:50 -04:00
Juan Cruz Viotti
0c76a882e6 Merge pull request #47 from resin-io/jviotti/feature/finished-state
Add finished state before done
2015-11-24 01:00:30 -04:00
Juan Cruz Viotti
f6f63bdf48 Add finished state before done
Currently we say "done" as soon as the progress is equal to 100, however
we don't wait for the drive to be ejected/unmounted.

This commit introduces a new state, called "Finishing..." which is shown
when the progress is 100, but the drive has not been unmounted.
2015-11-23 23:30:39 -04:00
Juan Cruz Viotti
915646d706 Merge pull request #46 from resin-io/jviotti/fix/40/windows-eject
Eject Windows drives after successful burning
2015-11-23 23:30:03 -04:00
Juan Cruz Viotti
da279820dc Eject Windows drives after successful burning
Use the `removedrive` for this task:

https://github.com/jviotti/removedrive

Fixes: https://github.com/resin-io/herostratus/issues/40
2015-11-23 13:40:32 -04:00
Juan Cruz Viotti
a6ec66d0b3 Pass the whole drive object to the writer
Currently we only pass the drive device. By passing all the object
(containing the mountpoint, size, etc) we allow more control to the
writer in how to treat the device before/during/after the burning
process.
2015-11-23 13:28:15 -04:00
Juan Cruz Viotti
d0d384fb6f Merge pull request #43 from resin-io/jviotti/readme/menu
Add table of contents to README.md
2015-11-20 11:21:31 -04:00
Juan Cruz Viotti
15fc311712 Add table of contents to README.md 2015-11-20 11:20:54 -04:00
Juan Cruz Viotti
e158de0396 Merge pull request #42 from resin-io/jviotti/doc/contributing
Add CONTRIBUTING guide
2015-11-20 11:20:20 -04:00
Juan Cruz Viotti
e6dda1fbe5 Add CONTRIBUTING guide 2015-11-20 11:15:38 -04:00
Juan Cruz Viotti
ee457805e6 Merge pull request #38 from resin-io/jviotti/23/fix/windows-drive-overflow
win32: Show drive letter instead of device in dropdown
2015-11-19 16:03:20 -04:00
Juan Cruz Viotti
b3f297911b Merge pull request #36 from resin-io/jviotti/fix/31/first-time-elevation-osx
osx: Fix first time elevation failure
2015-11-19 14:26:06 -04:00
Juan Cruz Viotti
32a00a0d9a win32: Show drive letter instead of device in dropdown
Physical drive names are long and cause the dropdowns to overflow.

Fixes: https://github.com/resin-io/herostratus/issues/23
2015-11-19 14:22:50 -04:00
Juan Cruz Viotti
ff10d8a70e Merge pull request #37 from resin-io/jviotti/fix/24/button-outline
all: Fix button outline on focus
2015-11-19 14:16:28 -04:00
Juan Cruz Viotti
56248efbce Merge pull request #32 from resin-io/jviotti/25/footer-text
Change footer text
2015-11-19 13:56:54 -04:00
Juan Cruz Viotti
65fa720666 all: Fix button outline on focus
Fixes: https://github.com/resin-io/herostratus/issues/24
2015-11-19 13:52:32 -04:00
Juan Cruz Viotti
479205c2c6 osx: Fix first time elevation failure
Currently we fire and forget `sudoPrompt.exec()` and run a timeout for
`process.exit(0)` right away, however this means that the timeout will
start as soon as the elevation dialog is shown when no sudo cache exists
and therefore the timeout will finish before the user can type his
password and submit.

The fix is to keep the parent alive until the children dies, but call
`app.dock.hide()` to make the parent completely invisible to the
operating system.

Fixes: https://github.com/resin-io/herostratus/issues/31
2015-11-19 13:31:45 -04:00
Juan Cruz Viotti
f7c0a229a5 Change footer text
Change "POWERED BY RESIN.IO" to "AN OPEN SOURCE PROJECT BY RESIN.IO".

Fixes: https://github.com/resin-io/herostratus/issues/25
2015-11-19 13:16:28 -04:00
Juan Cruz Viotti
146256be28 Merge pull request #27 from resin-io/jviotti/docs/npm-force
Document the need of npm install --force
2015-11-18 15:39:28 -04:00
Juan Cruz Viotti
dc9f9ebcc9 Document the need of npm install --force
This is needed to avoid optional dependencies not being installed.

Fixes: https://github.com/resin-io/herostratus/issues/22
2015-11-18 15:39:01 -04:00
Juan Cruz Viotti
2dd39c25e8 Merge pull request #19 from resin-io/jviotti/osx/asar-remove
osx(package) Build without --asar
2015-11-18 14:22:01 -04:00
Juan Cruz Viotti
fef79c6143 osx(package) Build without --asar
This change fixes the following issues:

- https://github.com/resin-io/herostratus/issues/17
- https://github.com/resin-io/herostratus/issues/18
2015-11-18 14:20:18 -04:00
Juan Cruz Viotti
1b04b56d85 Merge pull request #16 from resin-io/jviotti/fix/increase-osx-killtime
Increase OS X parent kill time to 500ms
2015-11-18 13:58:25 -04:00