upgrade: etcher-image-stream to v2.3.0 (#551)

* upgrade: etcher-image-stream to v2.3.0

This version contains support for `hddimg` files.

Changelog-Entry: Add support for `hddimg` images.
Change-Type: minor
Fixes: https://github.com/resin-io/etcher/issues/549
Link: https://github.com/resin-io-modules/etcher-image-stream/blob/master/CHANGELOG.md#v230---2016-07-01
Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>

* minifix(GUI): add a "many more" tooltip in the first step

The amount of image types we support is growing exponentially. Adding
the uncompressed extensions and the compressed ones in a tooltip gave us
room the breathe in the past, but its not enough anymore.

The current approach allows us to scale forever: we list the first three
extensions, and add a "many more" tooltip that shows all the rest.

Change-Type: patch
Signed-off-by: Juan Cruz Viotti <jviottidc@gmail.com>
This commit is contained in:
Juan Cruz Viotti 2016-07-01 11:05:57 -04:00 committed by GitHub
parent c425632e27
commit eb3ffbfd30
5 changed files with 7 additions and 8 deletions

View File

@ -10,10 +10,9 @@
<button class="btn btn-primary btn-brick" ng-click="app.openImageSelector()">Select image</button>
<p class="step-footer">
{{ ::app.formats.getNonCompressedExtensions().join(', ') }},
{{ ::app.formats.getArchiveExtensions().join(', ') }}, or
{{ ::app.formats.getAllExtensions().slice(0, 3).join(', ') }}, and
<span class="step-footer-underline"
uib-tooltip="{{ app.formats.getCompressedExtensions().join(', ') }}">compressed images</span>
uib-tooltip="{{ app.formats.getAllExtensions().slice(3).join(', ') }}">many more</span>
</p>
</div>
<div ng-if="app.selection.hasImage()">

6
npm-shrinkwrap.json generated
View File

@ -1542,9 +1542,9 @@
"resolved": "https://registry.npmjs.org/esutils/-/esutils-2.0.2.tgz"
},
"etcher-image-stream": {
"version": "2.2.0",
"from": "etcher-image-stream@>=2.2.0 <3.0.0",
"resolved": "https://registry.npmjs.org/etcher-image-stream/-/etcher-image-stream-2.2.0.tgz"
"version": "2.3.0",
"from": "etcher-image-stream@>=2.3.0 <3.0.0",
"resolved": "https://registry.npmjs.org/etcher-image-stream/-/etcher-image-stream-2.3.0.tgz"
},
"etcher-image-write": {
"version": "5.0.2",

View File

@ -67,7 +67,7 @@
"chalk": "^1.1.3",
"drivelist": "^3.2.0",
"electron-is-running-in-asar": "^1.0.0",
"etcher-image-stream": "^2.2.0",
"etcher-image-stream": "^2.3.0",
"etcher-image-write": "^5.0.2",
"etcher-latest-version": "^1.0.0",
"file-tail": "^0.3.0",

Binary file not shown.

Before

Width:  |  Height:  |  Size: 126 KiB

After

Width:  |  Height:  |  Size: 125 KiB

View File

@ -32,7 +32,7 @@ describe('Browser: SupportedFormats', function() {
it('should return the supported non compressed extensions', function() {
const extensions = SupportedFormatsModel.getNonCompressedExtensions();
m.chai.expect(extensions).to.deep.equal([ 'img', 'iso', 'dsk' ]);
m.chai.expect(extensions).to.deep.equal([ 'img', 'iso', 'dsk', 'hddimg' ]);
});
});