Juan Cruz Viotti
832d6843df
Extract browser window progress into WindowProgressService
2016-04-01 10:08:14 -04:00
Juan Cruz Viotti
18a1606988
Implement a drive selector modal
...
This modal provides a more advanced way to select a drive. It prevents
certain issues the dropdown was having, like the contents overflowing
when there were many connected drives.
Fixes: https://github.com/resin-io/etcher/issues/202
2016-03-31 12:18:23 -04:00
Juan Cruz Viotti
34907765df
Merge src/drives.js with DriveScannerService
...
`src/drives.js` made little on its own, and only caused extra thinking
overhead due to indirection.
2016-03-30 16:51:39 -04:00
Juan Cruz Viotti
793001e133
Move burn state to ImageWriterService
...
Previously, the burn state lived in the controller, however if the user
moved to another page (the settings page for example) and then returned,
the progress state would be lost, leading to a broken progress bar.
Fixes: https://github.com/resin-io/etcher/issues/190
2016-03-10 12:01:22 -04:00
Juan Cruz Viotti
6367dd8a57
Implement NotifierService
...
This service provides an easy-to-use and safe (regarding to memory
leaks) way to emit data from services to controllers.
This component will be used in `ImageWriterService` to emit the progress
state instead of accepting an `onProgress` callback.
2016-03-10 12:01:22 -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
64c27235bf
Make use of UI Router
2016-03-01 19:50:25 -04:00
Juan Cruz Viotti
61a1527c7e
Implement settings screen
2016-03-01 12:22:03 -04:00
Juan Cruz Viotti
7949853086
Refer to Etcher instead of Resin Etcher
2016-02-08 13:04:54 -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
9de813f8cf
Remove unused variables caught by jshint
2016-01-24 19:26:32 -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
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
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
861ecdfeb7
Adapt JSCS for tests
2016-01-22 10:25:33 -04:00
Juan Cruz Viotti
efb055eb89
Upgrade Electron to v0.36.4
2016-01-22 09:37:57 -04:00
Federico Martín Alconada Verzini
6331ee4aa1
Add button to burn the same image again. Fixes #74
2016-01-20 12:28:15 -04:00
Juan Cruz Viotti
b3dde83083
Implement removeDrive and removeImage in selection service
2016-01-19 09:42:57 -04:00
Juan Cruz Viotti
cf41b6279d
Save burn progress speed in image writer state
2016-01-18 14:55:13 -04:00
Juan Cruz Viotti
d9641fc557
Rename setProgress to setProgressState
...
It shows the intention more clearly now that the function not only
accepts a plain percentage.
2016-01-18 14:55:13 -04:00
Juan Cruz Viotti
a46a716512
Make setProgress accept an options object
...
This allows us to pass more things than just the percentage to
`setProgress`.
2016-01-18 14:55:13 -04:00
Juan Cruz Viotti
e30de45707
Implement ImageWriterService.reset()
...
This function allows the client to easily reset the progress state
without breaking encapsulation.
2016-01-18 14:55:13 -04:00
Juan Cruz Viotti
3705d0fc3a
Namespace ImageWriter progress in state object
...
This change allows us to scale the state information to more properties
than just the percentage.
2016-01-18 14:55:13 -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
408a3096fc
Rename Herostratus to Resin Etcher
2016-01-01 18:07:45 -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
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
c5418e7cde
Remove window.mocha stub
...
The real issue was fixed in
https://github.com/jprichardson/electron-mocha/pull/20
2015-11-09 10:42:23 -04:00
Juan Cruz Viotti
4bfb161e5c
Initial commit
2015-10-29 09:36:21 -04:00