1324 Commits

Author SHA1 Message Date
Juan Cruz Viotti
96e9fd23b7 Show size when there is a selected drive
It lets you be sure that the auto-selected drive is the one you intended
to write to.

Fixes: https://github.com/resin-io/etcher/issues/192
2016-03-10 09:04:27 -04:00
Juan Cruz Viotti
3af8c6dd49 Make use of package.json display name to reference the app
Our `package.json` contains a custom `displayName` property which equals
"Etcher" at the time of this writing.

This PR makes use of this property directly instead of hardcoding
"Etcher" in some places.
2016-03-09 09:25:25 -04:00
Juan Cruz Viotti
fdcc5d6b71 Stop scanner interval before starting a new one
This ensures there are no orphaned intervals running.
2016-03-08 16:19:48 -04:00
Juan Cruz Viotti
a5322950da Add support for zip images in select image dialog
The "Select Image" dialog now permits the user selecting zip files. Once
the zip file is selected, `resin-zip-image` scans the archive to ensure
its validity. If its not valid, an error alert is shown and nothing is
selected.
2016-03-07 12:14:05 -04:00
Juan Cruz Viotti
3e352d4224 Avoid analytics and logging if dialog resolves no file
This will be the case when the dialog accepts zip files. If the selected
zip image is invalid, the module will display an error and resolve
`undefined`.
2016-03-07 10:19:36 -04:00
Juan Cruz Viotti
e5ddb2f2cb Make writer.getImageStream() extract images from zip archives 2016-03-07 09:20:58 -04:00
Juan Cruz Viotti
67312af3d8 Add *.zip to supported files label 2016-03-07 08:45:21 -04:00
Juan Cruz Viotti
334eebe9c9 Implement "Need Help?" button
This button guides the user to publish a new issue in the GitHub
repository.

Fixes: https://github.com/resin-io/etcher/issues/177
2016-03-02 12:32:01 -04:00
Juan Cruz Viotti
bd009a75b0 Expose shell.openExternal in NavigationController
`.open()` was previously exposed in the `AppController`, however after
the router refactoring, this controller is no longer instantiated on the
footer, and therefore the links that live there stopped working.
2016-03-02 12:28:42 -04:00
Juan Cruz Viotti
9f4b793c8d Add a setting to disable auto-unmount on success 2016-03-02 12:06:33 -04:00
Juan Cruz Viotti
64c27235bf Make use of UI Router 2016-03-01 19:50:25 -04:00
Juan Cruz Viotti
f208d2e34d Make use of settings to prevent tracking in analytics module
`SettingsService` is injected manually using `$injector` to a void a
circular dependency over `$rootScope` by `$localStorage`.
2016-03-01 12:55:15 -04:00
Juan Cruz Viotti
61a1527c7e Implement settings screen 2016-03-01 12:22:03 -04:00
Juan Cruz Viotti
ff2a375179 Fix slighly checkbox vertical alignment issue 2016-03-01 11:33:21 -04:00
Juan Cruz Viotti
a871d19ef7 Only apply necessary margins in spacing module 2016-03-01 11:23:41 -04:00
Juan Cruz Viotti
75f22c0209 Implement AnalyticsService.logEvent() 2016-03-01 09:38:43 -04:00
Juan Cruz Viotti
1d75ec02aa Include TrackJS Angular module in Analytics module 2016-02-29 15:54:21 -04:00
Juan Cruz Viotti
1c6675ab4f Integrate Mixpanel 2016-02-29 15:52:00 -04:00
Juan Cruz Viotti
9aac1cd4be Show progress bar in dock/taskbar 2016-02-29 14:00:55 -04:00
Juan Cruz Viotti
8a88f27015 Configure TrackJS application property 2016-02-16 09:37:53 -04:00
Juan Cruz Viotti
c0e8618813 Upgrade sudo-prompt to v2.2.0
This version contains a fix to allow the module to run on `asar`
packages.
2016-02-09 08:55:16 -04:00
Juan Cruz Viotti
efb2c4c911 Merge pull request #150 from resin-io/refactor/unify-elevation-error-handling
Unify handling of elevation errors in etcher.js
2016-02-08 14:39:43 -04:00
Juan Cruz Viotti
611be46177 Unify handling of elevation errors in etcher.js 2016-02-08 14:31:45 -04:00
Juan Cruz Viotti
feb04f8773 Downgrade sudo-prompt to v1.1.8
Later versions make use of shell commands over the internal contents of
the module causing errors when the application is packaged as an
`asar`.

This issue is being fixed here: https://github.com/jorangreef/sudo-prompt/issues/10
2016-02-08 14:28:49 -04:00
Juan Cruz Viotti
7949853086 Refer to Etcher instead of Resin Etcher 2016-02-08 13:04:54 -04:00
Juan Cruz Viotti
e91db955b5 Show error dialogs on elevation errors
Printing to `stderr` makes no sense since the process is detached from
the shell when packaged.
2016-02-08 09:53:49 -04:00
Juan Cruz Viotti
ac2fb8b0a9 Merge pull request #143 from resin-io/feat/74/burn-another-design
Improve "Burn another" screen design
2016-02-05 12:57:49 -04:00
Juan Cruz Viotti
3caf9859b0 Improve "Burn another" screen design
Fixes: https://github.com/resin-io/etcher/issues/74
2016-02-05 12:48:42 -04:00
Juan Cruz Viotti
e0f3fb6373 Merge pull request #142 from resin-io/fix/top-down-content-spacing
Set content spacing to 40px
2016-02-04 16:56:59 -04:00
Juan Cruz Viotti
46307adef3 Set content spacing to 40px 2016-02-04 16:51:46 -04:00
Juan Cruz Viotti
66a8970b00 Fix flash of white at startup
Fixes: https://github.com/resin-io/etcher/issues/122
2016-02-04 16:06:13 -04:00
Juan Cruz Viotti
edbde47900 Set titleBarStyle to 'hidden-inset'
This only affects OS X.
2016-02-04 15:58:30 -04:00
Juan Cruz Viotti
bad9500bc6 Add missin param annotation caught by JSCS 2016-01-31 21:15:40 -04:00
Juan Cruz Viotti
826710950d Merge pull request #134 from resin-io/refactor/track
Move TrackJS integration to a separate Angular module
2016-01-26 12:04:13 -04:00
Juan Cruz Viotti
bf63f1ac26 Merge pull request #135 from resin-io/refactor/drive-scanner-every
Inline DriveScannerRefreshService in DriveScannerService
2016-01-26 12:04:05 -04:00
Juan Cruz Viotti
4cf9ea70a5 Inline DriveScannerRefreshService in DriveScannerService
No need for this extra level of abstraction.
2016-01-26 10:27:29 -04:00
Juan Cruz Viotti
fd86807f86 Move TrackJS integration to a separate Angular module 2016-01-26 10:21:47 -04:00
Juan Cruz Viotti
cc5d6456b8 Prevent click events on disable buttons
For some reasons, despite being disabled, buttons still call the action
defined as `ngClick`. In the case of the burn progress button, this
results in:

```sh
TypeError: Cannot read property 'device' of undefined
```

Fixes: https://github.com/resin-io/etcher/issues/132
2016-01-26 08:40:43 -04:00
Juan Cruz Viotti
9de813f8cf Remove unused variables caught by jshint 2016-01-24 19:26:32 -04:00
Juan Cruz Viotti
f88bb3a31a Rename project to Etcher 2016-01-24 17:40:45 -04:00
Juan Cruz Viotti
03e9b977cb Prevent pointer events in hero-progress-button if active is true
Fixes: https://github.com/resin-io/resin-etcher/issues/121
2016-01-22 13:10:21 -04:00
Juan Cruz Viotti
111529ee71 Fix sporadic Cannot read property 'then' of undefined
This error happened when trying to burn an image when there is already a
burn in progress.

Fixes: https://github.com/resin-io/resin-etcher/issues/96
2016-01-22 13:10:13 -04:00
Juan Cruz Viotti
9d68199ecd Merge pull request #119 from resin-io/refactor/state-log-app
Move burn state log to app controller
2016-01-22 12:48:31 -04:00
Juan Cruz Viotti
84d87e5a10 Move burn state log to app controller
This change required re-architecting the way we store the burn state.
2016-01-22 12:30:42 -04:00
Juan Cruz Viotti
1faa631f89 Use Bluebird's filter to simplify listRemovable() 2016-01-22 11:55:01 -04:00
Juan Cruz Viotti
9026e6ce2d Merge pull request #117 from resin-io/refactor/es6
Make use of ES6 in Etcher
2016-01-22 11:52:52 -04:00
Juan Cruz Viotti
30fc989c86 Merge pull request #116 from resin-io/feat/trackjs-npm
Install TrackJS from NPM
2016-01-22 11:40:02 -04:00
Juan Cruz Viotti
122f136ff8 Refactor Etcher using ES6 features 2016-01-22 11:38:46 -04:00
Juan Cruz Viotti
f7ddce3000 Enable ES6 in JSHint
- Also rename `Promise` to `Bluebird` since now JSHint complains that
`Promise` is already defined.
2016-01-22 10:53:16 -04:00
Juan Cruz Viotti
d2e3c3106e Install TrackJS from NPM
See https://www.npmjs.com/package/trackjs
2016-01-22 10:48:02 -04:00