3015 Commits

Author SHA1 Message Date
Juan Cruz Viotti
568cae7ded Only target v4 in CI servers
We're only targetting Electron, which uses only modern versions of
NodeJS.
2016-01-18 14:05:28 -04:00
Juan Cruz Viotti
cdb863c7cf Set an explicit maxlen
Hound CI uses it's default otherwise, which is too short.
2016-01-18 14:03:50 -04:00
Juan Cruz Viotti
9ffc642784 Autoselect a single drive by using DriveScanner scan event
- The autoselection only happens once the user has selected an image to
prevent weird behaviour.

- The autoselection happens only if the current selected drive is
different from the new drive in order to avoid selecting the same driver
over and over again if it still is the only one.
2016-01-18 13:46:52 -04:00
Juan Cruz Viotti
f218cc1b59 Make DriveScanner.start() return an EventEmitter instance 2016-01-18 13:46:51 -04:00
Juan Cruz Viotti
491a0ae9c9 Trigger drive scans after slight delays
This allows unit tests to easily capture the first run, as otherwise
happens too fast.
2016-01-18 13:46:51 -04:00
Juan Cruz Viotti
b7da4dfeda Autoselect the drive if only one drive is present 2016-01-18 13:46:29 -04:00
Juan Cruz Viotti
79ebe75472 Merge pull request #85 from resin-io/style/68/footer-logo
Implement new footer with the Resin.io logo
2016-01-18 11:26:53 -04:00
Juan Cruz Viotti
da4748a1a1 Implement new footer with the Resin.io logo
Fixes: https://github.com/resin-io/resin-etcher/issues/68
2016-01-18 10:36:39 -04:00
Juan Cruz Viotti
0a8e89c782 Only append label if this exists in hero-icon
Currently, an empty element was appended to hero-icon template to hold
the label even if this didn't exist, causing some vertical bottom
spacing.

We use Polymer's `dom-if` to conditional show this element. The label
was changed to be passed as an HTML property since it seems to be really
difficult to access the inner HTML of a polymer element programatically.
2016-01-18 10:32:27 -04:00
Juan Cruz Viotti
79b33cea1c Allow customising hero-icon size using HTML attributes 2016-01-18 10:05:13 -04:00
Juan Cruz Viotti
d759fecf3e Merge pull request #83 from resin-io/doc/cli
Reference the experimental Etcher CLI
2016-01-18 09:19:53 -04:00
Juan Cruz Viotti
98c45556a4 Reference the experimental Etcher CLI 2016-01-17 23:51:29 -04:00
Juan Cruz Viotti
9a63b62cf4 Merge pull request #82 from resin-io/ci/notifications
Improve Travis CI and Appveyor notifications
2016-01-15 10:04:00 -04:00
Juan Cruz Viotti
f56ffebfdc Merge pull request #81 from resin-io/doc/contributing-guidelines-pr
Improve pull request contributing guidelines
2016-01-14 10:50:04 -04:00
Juan Cruz Viotti
e696b01fb6 Improve Travis CI and Appveyor notifications 2016-01-14 10:48:08 -04:00
Juan Cruz Viotti
bf17b09fff Improve pull request contributing guidelines 2016-01-14 10:22:46 -04:00
Juan Cruz Viotti
c6cbd1da59 Merge pull request #78 from resin-io/feat/badge-waffle
Add Waffle badge
2016-01-12 14:26:16 -04:00
Juan Cruz Viotti
f46d6e24d2 Add Waffle badge 2016-01-12 08:15:16 -04:00
Juan Cruz Viotti
672a9f18b4 Merge pull request #76 from resin-io/feat/gitter
Add Gitter badge
2016-01-11 13:19:45 -04:00
Juan Cruz Viotti
c509e50ced Add Gitter badge 2016-01-11 11:29:04 -04:00
Juan Cruz Viotti
8303064e86 Merge pull request #73 from resin-io/refactor/drive-name
Simplify drive letter / device conditional
2016-01-11 09:04:47 -04:00
Juan Cruz Viotti
5af3cf3fb9 Simplify drive letter / device conditional
The `drivelist` module includes a new property called `name` in `2.0.7`
that resolves to the drive letter (mount point) on Windows, and to the
drive otherwise.
2016-01-11 01:24:52 -04:00
Juan Cruz Viotti
c589165e40 Merge pull request #72 from resin-io/fix/windows-backslash-drive-letter
Do not append a backslash after drive letter in Windows
2016-01-11 01:23:03 -04:00
Juan Cruz Viotti
13bb330298 Merge pull request #75 from resin-io/fix/appveyor
Update Appveyor badge
2016-01-11 01:22:37 -04:00
Juan Cruz Viotti
42457b5f0e Merge pull request #71 from resin-io/doc/change-license-to-apache-2
Change license to Apache 2.0
2016-01-11 01:22:24 -04:00
Juan Cruz Viotti
30988d6893 Update Appveyor badge
An update was needed after renaming the project to `resin-etcher`.
2016-01-11 00:45:35 -04:00
Juan Cruz Viotti
07ca592cab Do not append a backslash after drive letter in Windows
After checking Windows file manager and some other programs that display
drive letters, we can see that a backslash at the end is not mandatory.
2016-01-04 00:14:32 -04:00
Juan Cruz Viotti
35c3351533 Change license to Apache 2.0 2016-01-03 22:42:44 -04:00
Juan Cruz Viotti
4bf3c03374 Merge pull request #69 from resin-io/feat/rename-etcher
Rename Herostratus to Resin Etcher
2016-01-03 22:30:40 -04:00
Juan Cruz Viotti
408a3096fc Rename Herostratus to Resin Etcher 2016-01-01 18:07:45 -04:00
Juan Cruz Viotti
f7d4a39da5 Merge pull request #67 from resin-io/feat/split-footer-anchor
Split footer caption anchor
2016-01-01 17:59:08 -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
85712fabe6 Merge pull request #64 from resin-io/fix/29/windows-uac-three-instances
Replace windosu with elevator
2016-01-01 15:38:41 -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
a26ba942d3 Merge pull request #65 from resin-io/feat/win-mountpoint-selection
Show drive letter on selection on Windows
2016-01-01 15:10:53 -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
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