3415 Commits

Author SHA1 Message Date
Juan Cruz Viotti
3a5310c317 Merge pull request #224 from resin-io/fix/step-bar-alignment
Fix step vertical bars slight misalignment
2016-03-31 09:27:25 -04:00
Juan Cruz Viotti
bac70c667f Fix step vertical bars slight misalignment 2016-03-31 08:52:57 -04:00
Juan Cruz Viotti
50e0fcb7e9 Merge pull request #223 from resin-io/refactor/merge-drives-and-drive-scanner
Merge src/drives.js with DriveScannerService
2016-03-31 08:49:36 -04:00
Juan Cruz Viotti
ef16f69df9 Merge pull request #222 from resin-io/fix/use-same-image
Fix "Use same image" not preserving the image selection
2016-03-31 08:49:18 -04:00
Juan Cruz Viotti
568781f8c6 Merge pull request #221 from resin-io/refactor/components
Style refactoring
2016-03-31 08:48:57 -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
e541357450 Fix "Use same image" not preserving the image selection 2016-03-30 16:28:22 -04:00
Juan Cruz Viotti
8b5c1a7c41 Remove unnecessary empty line in success partial 2016-03-30 16:11:13 -04:00
Juan Cruz Viotti
e3ed0af0f9 Move Boostrap style customisations to a boostrap.scss file 2016-03-30 16:11:08 -04:00
Juan Cruz Viotti
9bd0ccd550 Normalise step footers captions 2016-03-30 15:53:26 -04:00
Juan Cruz Viotti
79b16beaf0 Make caption's uppercase by default 2016-03-30 15:49:59 -04:00
Juan Cruz Viotti
6f7ea4e772 Convert hero-progress-button into an Angular directive 2016-03-30 15:46:48 -04:00
Juan Cruz Viotti
482b0a52ee Move title normalisation to desktop.css 2016-03-30 14:56:59 -04:00
Juan Cruz Viotti
abdee7fe10 Refactor tick as a scss component 2016-03-30 14:17:03 -04:00
Juan Cruz Viotti
5d52b19c2b Refactor hero-button as a scss component 2016-03-30 14:11:18 -04:00
Juan Cruz Viotti
01ec52f4d7 Refactor caption as a scss component 2016-03-30 14:02:03 -04:00
Juan Cruz Viotti
d47eaa8a2a Refactor badge as a scss component 2016-03-30 13:47:36 -04:00
Juan Cruz Viotti
a252b3a7e7 v1.0.0-beta.1 v1.0.0-beta.1 2016-03-28 13:26:24 -04:00
Juan Cruz Viotti
8187fdf4db Merge pull request #220 from resin-io/feat/win32-sign
Setup code-signing in Windows
2016-03-28 13:21:05 -04:00
Juan Cruz Viotti
05a5790400 Setup code-signing in Windows
Fixes: https://github.com/resin-io/etcher/issues/173
2016-03-28 13:06:13 -04:00
Juan Cruz Viotti
04f6217258 Merge pull request #219 from resin-io/misc/package-metadata
Add missing package metadata
2016-03-25 10:18:47 -04:00
Juan Cruz Viotti
5cf570fca8 Merge pull request #218 from resin-io/misc/rm-deploy-osx
Remove .travis.yml deploy section
2016-03-25 10:12:39 -04:00
Juan Cruz Viotti
5098a06c98 Merge pull request #217 from resin-io/fix/uncaught-exception-sudo-prompt
Return to avoid any further code execution after an elevation error
2016-03-25 10:12:20 -04:00
Juan Cruz Viotti
cb8da11b89 Add missing package metadata
- Legal copyright.
- Company name.
- File description.
- Original filename.
- Product name.
- Internal name.
2016-03-25 10:10:07 -04:00
Juan Cruz Viotti
eaa3782f06 Remove .travis.yml deploy section
Deploy will be done locally for now given security concerns with CI
servers and certificates.
2016-03-25 09:52:22 -04:00
Juan Cruz Viotti
f530dfcc3c Return to avoid any further code execution after an elevation error
Turns out that even by using `process.exit(1)`, the electron main
process doesn't exit instantly, but continues executing code.

This causes electron to throw on `electron.globalShortcut` because this
functionality is not available given that we didn't create a renderer
view.

Fixes: https://github.com/resin-io/etcher/issues/215
2016-03-25 09:41:30 -04:00
Juan Cruz Viotti
34147fb4cb Merge pull request #216 from resin-io/upgrade/drivelist
Upgrade drivelist to v2.0.9
2016-03-24 14:08:42 -04:00
Juan Cruz Viotti
53a026eee0 Upgrade drivelist to v2.0.9
This new version contains various fixes to better detect removable
drives.
2016-03-24 13:36:47 -04:00
Juan Cruz Viotti
84b5117a93 Merge pull request #214 from resin-io/fix/error-dialog-analytics
Throw error after displaying it with dialog
2016-03-21 10:42:08 -04:00
Juan Cruz Viotti
75bdc0e6d8 Merge pull request #213 from resin-io/misc/trackjs-user-id
Configure TrackJS with userId
2016-03-21 10:41:54 -04:00
Juan Cruz Viotti
3166dbe4a6 Throw error after displaying it with dialog
Currently, we "swallow" errors by only showing them with the "dialog"
module, causing them to not be logged to TrackJS.
2016-03-21 09:23:53 -04:00
Juan Cruz Viotti
ad082fc268 Configure TrackJS with userId
Otherwise, all we get in TrackJS are "anonymous" users, without a way to
link them to Mixpanel users.
2016-03-21 09:19:20 -04:00
Juan Cruz Viotti
dfcedffedd Merge pull request #211 from resin-io/fix/length-of-undefined
Fix Cannot read property 'length' of undefined
2016-03-17 10:09:15 -04:00
Juan Cruz Viotti
fda6f8a6a5 Fix Cannot read property 'length' of undefined
This error was reported by TrackJS various times:

```
TypeError: Cannot read property 'length' of undefined
  at EventEmitter.<anonymous> (file:///Users/jviotti/Projects/resin/etcher/lib/browser/app.js:104:15)
  at emitOne (events.js:77:13)
  at EventEmitter.emit (events.js:169:7)
  at /Users/jviotti/Projects/resin/etcher/lib/browser/modules/drive-scanner.js:131:17
  at processQueue (/Users/jviotti/Projects/resin/etcher/node_modules/angular/angular.js:15616:28)
  at /Users/jviotti/Projects/resin/etcher/node_modules/angular/angular.js:15632:27
  at Scope.$eval (/Users/jviotti/Projects/resin/etcher/node_modules/angular/angular.js:16884:28)
  at Scope.$digest (/Users/jviotti/Projects/resin/etcher/node_modules/angular/angular.js:16700:31)
  at /Users/jviotti/Projects/resin/etcher/node_modules/angular/angular.js:16923:26
  at completeOutstandingRequest (/Users/jviotti/Projects/resin/etcher/node_modules/angular/angular.js:5825:10),
```

The error refers to the following line in `app.js`:

```js
if (drives.length === 1 && self.selection.hasImage()) {
```

Which indicates that the array of detected drives returned to the main
controller is `undefined` for some reason.

The problem resides in the `.scan()` method of `DriveScannerService`:

```js
this.scan = function() {
  return $q.when(drives.listRemovable()).catch(dialog.showError);
};
```

When an error is thrown when scanning the drives, the `.catch()` block
is called. This means that the error is not propagated to the outer code
and the promise resolves with `undefined`.

The solution is to move `.catch()` to the place `.scan()` is called,
instead of making use of it in the low-level parts of the process.
2016-03-17 09:36:43 -04:00
Juan Cruz Viotti
4fba9d532c Merge pull request #209 from resin-io/misc/osx-travis
Enable OS X in Travis CI
2016-03-16 13:34:00 -04:00
Juan Cruz Viotti
05e8cb06fc Enable OS X in Travis CI 2016-03-16 13:06:22 -04:00
Juan Cruz Viotti
78bb151387 Merge pull request #208 from resin-io/feat/window-drag
Allow window to be dragged from anywhere
2016-03-13 15:52:55 -04:00
Juan Cruz Viotti
a40ad6fd54 Allow window to be dragged from anywhere
Fixes: https://github.com/resin-io/etcher/issues/191
2016-03-13 15:10:16 -04:00
Juan Cruz Viotti
3ef3567d89 Merge pull request #206 from resin-io/misc/makefile-npm-force
Wipe-out node_modules/ and force-install npm dependencies
2016-03-11 13:22:52 -04:00
Juan Cruz Viotti
8a9abc2c97 Wipe-out node_modules/ and force-install npm dependencies 2016-03-11 08:30:28 -04:00
Juan Cruz Viotti
e0861b25da Merge pull request #204 from resin-io/fix/finish-settings
Fix broken state when going to settings in the success screen
2016-03-10 17:43:05 -04:00
Juan Cruz Viotti
162f48ab3a Merge pull request #205 from resin-io/doc/readme-headline
Change README headline to match landing page
2016-03-10 17:42:56 -04:00
Juan Cruz Viotti
27b7f5eed5 Change README headline to match landing page 2016-03-10 17:18:06 -04:00
Juan Cruz Viotti
dcdc7a18e2 Fix broken state when going to settings in the success screen 2016-03-10 17:15:57 -04:00
Juan Cruz Viotti
61b88c95e0 Merge pull request #203 from resin-io/refactor/controllers
Split controllers into separate files
2016-03-10 17:15:33 -04:00
Juan Cruz Viotti
cb43ec19dd Move NavigationController to a separate file 2016-03-10 15:44:33 -04:00
Juan Cruz Viotti
04120931e0 Merge pull request #200 from resin-io/doc/getting-help
Add "Getting Help" guide
2016-03-10 15:40:44 -04:00
Juan Cruz Viotti
caea581589 Move SettingsController to settings module 2016-03-10 14:57:55 -04:00
Juan Cruz Viotti
673e82e530 Reuse SettingsController in success screen 2016-03-10 14:56:07 -04:00
Juan Cruz Viotti
3149f5af6d Move FinishController to a separate file 2016-03-10 14:52:08 -04:00