434 Commits

Author SHA1 Message Date
Juan Cruz Viotti
408a3096fc Rename Herostratus to Resin Etcher 2016-01-01 18:07:45 -04:00
Juan Cruz Viotti
77c51fb63c Split footer caption anchor
Make "AN OPEN SOURCE PROJECT" link to the project's GitHub page and
"RESIN.IO" to the Resin.io website.
2016-01-01 17:42:30 -04:00
Juan Cruz Viotti
f888527e39 Merge branch 'master' into fix/29/windows-uac-three-instances 2016-01-01 15:11:59 -04:00
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
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
d784ed2ba8 Clarify that the drive was safely ejected 2015-12-01 11:09:00 -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
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
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
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
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
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
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
86d7424f90 Increase OS X parent kill time to 500ms 2015-11-17 15:38:36 -04:00
Juan Cruz Viotti
bbd03f590c Merge pull request #11 from resin-io/jviotti/feature/package-icons
Add application icon
2015-11-13 15:32:50 -04:00
Juan Cruz Viotti
f2213ddb21 Merge pull request #14 from resin-io/jviotti/fix/double-os-x-windows
Fire and forget OS X sudo prompt
2015-11-13 15:32:42 -04:00
Juan Cruz Viotti
f55400ec98 Use Bluebird instead of native promises
Native promises showed strange behaviour from time to time.
2015-11-13 14:43:42 -04:00
Juan Cruz Viotti
6e3c000576 Fire and forget OS X sudo prompt
Currently, the parent application will not be closed until the children
process is closed, leading to two Herostratus applications running at
the same time on OS X.
2015-11-13 13:53:58 -04:00
Juan Cruz Viotti
abcf142379 Add application icon 2015-11-12 14:33:54 -04:00
Juan Cruz Viotti
3f0abf1737 Disable icons when step is disabled 2015-10-30 17:03:35 -04:00
Juan Cruz Viotti
8589a368f8 Load svgs inline to be able to style their colours 2015-10-30 16:38:54 -04:00
Juan Cruz Viotti
4265359704 Fix step border alignment when on third step 2015-10-29 10:51:21 -04:00
Juan Cruz Viotti
18b0bb38e9 Fix EPERM issue when burning in Windows
The issue is fixed by stopping the drive scanner interval before
burning.
2015-10-29 10:29:50 -04:00
Juan Cruz Viotti
4bfb161e5c Initial commit 2015-10-29 09:36:21 -04:00