972 Commits

Author SHA1 Message Date
Jonas Hermsmeier
b270d819a8 fix(store): Restore drive object validity check 2019-01-24 13:21:26 +01:00
Jonas Hermsmeier
4f7cc7dd6b fix(lib): Fix MIME type exclusion condition
As `mime.extension()` returns `false`, instead of `null` or `undefined`,
this condition simply needs to check for truthyness.

Change-type: patch
2019-01-24 13:21:26 +01:00
Jonas Hermsmeier
47f2336673 fix(lib): Fix use of non-existent dependency
Change-Type: patch
2019-01-24 13:21:26 +01:00
Alexis Svinartchouk
5ae93bf6d0 Update etcher-sdk and load DriverlessDeviceAdapter on windows 2019-01-24 13:21:26 +01:00
Alexis Svinartchouk
caf5f10326 lint 2019-01-24 13:21:26 +01:00
Alexis Svinartchouk
e68dbcf4ee Remove lib/sdk and its tests 2019-01-24 13:21:26 +01:00
Alexis Svinartchouk
a42e81cf8c Replace imageStream with etcher-sdk in the react file selector 2019-01-24 13:21:21 +01:00
Alexis Svinartchouk
98a8588c1b Update etcher-sdk and use it in the cli 2019-01-24 13:21:21 +01:00
Alexis Svinartchouk
8630af7646 Remove usage of old sdk in supported-formats 2019-01-24 13:21:21 +01:00
Alexis Svinartchouk
268c5302e8 Handle the last fail as an error if all devices failed 2019-01-24 13:21:21 +01:00
Alexis Svinartchouk
d07d535993 Show raspberry pi usbboot update progress in devices list 2019-01-24 13:21:21 +01:00
Alexis Svinartchouk
a8a75f22b2 Allow flashing from sources for which we don't know the compressed size
* don't show any percentage or eta, show the bytes written instead
2019-01-24 13:21:21 +01:00
Alexis Svinartchouk
6143023502 Integrate etcher-sdk 2019-01-24 13:21:21 +01:00
Lorenzo Alberto Maria Ambrosi
8c8a0bf8eb Fix linting error for winusb-driver-generator
Change-type: patch
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
2019-01-18 14:48:10 +01:00
Alexis Svinartchouk
e946f388c0 ProgressBar.disabled prop is a boolean
Change-type: patch
2019-01-08 12:42:39 +01:00
Alexis Svinartchouk
f2ca997195 Change "Drive Contains Image" label.
Use "Drive Mountpoint Contains Image" instead as the image may not be on
this drive but on a drive mounted in one of the mountpoins of this
drive.
We still don't want to allow flashing this drive in that situation.

Changelog-entry: Changed “Drive Contains Image” to “Drive Mountpoint Contains Image”
Change-type: patch
2019-01-07 15:35:21 +01:00
Lorenzo Alberto Maria Ambrosi
9b76abe2ed Restored offline success-banner style
Change-type: patch
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
2019-01-07 14:06:05 +01:00
Lorenzo Alberto Maria Ambrosi
ad4226ace7 Invert analytics event probability
Change-type: patch
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
2018-12-21 15:12:08 +01:00
Lorenzo Alberto Maria Ambrosi
64ec6d0e58
Convert flash results component to React
Change-type: minor
Changelog-entry: Added React component for the Flash Results button
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
2018-12-19 16:02:38 +01:00
Lorenzo Alberto Maria Ambrosi
cf722427ab Restyle success screen and enlarge UI elements
Change-type: patch
Changelog-entry: Added React component for the Flash Another button
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
2018-12-19 13:20:02 +01:00
Lorenzo Alberto Maria Ambrosi
87533f4417 Remove forwarding of SafeWebview console messages
Change-type: patch
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
2018-12-19 12:19:42 +01:00
Lorenzo Alberto Maria Ambrosi
22acc5ae96 Customize Mixpanel configs
Change-type: minor
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
2018-12-18 11:32:07 +01:00
Lorenzo Alberto Maria Ambrosi
7354fa3050 Use explicit names for safe-webview events
Change-type: patch
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
2018-11-28 15:57:58 +01:00
Chris Crocker-White
caf5a8917c
Merge branch 'master' into chrisys-patch 2018-11-27 08:22:15 -08:00
Otavio Salvador
7565e809b0 Add .wic image extension as supported format
The `.wic` is a widely used image format in the OpenEmbedded / Yocto
Project ecosystem and is straightforward to be supported.

Signed-off-by: Otavio Salvador <otavio@ossystems.com.br>
2018-11-27 10:01:05 -02:00
Chris Crocker-White
dd8ef288f7 Update URLs in GUI to balena
Change-type: patch
Signed-off-by: Chris Crocker-White <chriscw@balena.io>
2018-11-26 17:38:06 -08:00
Lorenzo Alberto Maria Ambrosi
6d0fea1983
fix(GUI): Fix update notification error
Remove "this" and use "exports" instead

Change-type: patch
Changelog-entry: Fix update notifier error popping up on v1.4.1->1.4.8
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
2018-11-26 15:53:55 +01:00
Lorenzo Alberto Maria Ambrosi
afd888e14d
fix(GUI): Fix styling issues with buttons
Change-type: patch
Changelog-entry: Moved back the write cancel button
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
2018-11-23 16:28:06 +01:00
Lorenzo Alberto Maria Ambrosi
76af6e975e Add flashing info while showing webview
Change-type: patch
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
2018-11-23 13:19:47 +01:00
Lorenzo Alberto Maria Ambrosi
2017df9ec6 feat(GUI): Add featured-project component
Change-type: patch
Changelog-entry: Added featured-project while flashing
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
2018-11-22 22:05:11 +01:00
Lorenzo Alberto Maria Ambrosi
20996b153d fix(GUI): Reject drives with null size
Change-type: patch
Changelog-entry: Reject drives with null size (fixes pretty-bytes error)
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@balena.io>
2018-11-22 19:57:45 +01:00
Alexis Svinartchouk
7fb382bee0 fix(usbboot): Limit usbboot transfers to 1MiB
Change-type: patch
2018-11-13 14:57:42 +01:00
amdomanska
2907cd173b refactor(GUI): Convert Select Image button to Rendition
Convert Select Image button to Rendition component

Change-type: minor
Signed-off-by: amdomanska <aga@resin.io>
2018-11-01 19:21:39 +01:00
Lorenzo Alberto Maria Ambrosi
c366fbde22 Put flash cancel button in foreground
Change-type: patch
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzothunder.ambrosi@gmail.com>
2018-10-28 21:15:30 +01:00
Lorenzo Alberto Maria Ambrosi
8eb11a8957 Change resin.io to balena.io
Change-type: patch
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzothunder.ambrosi@gmail.com>
2018-10-25 17:32:37 +02:00
Lorenzo Alberto Maria Ambrosi
9cc65a386b Add new logos
Change-type: patch
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzothunder.ambrosi@gmail.com>
2018-10-25 15:57:44 +02:00
amdomanska
b3aab5116a refactor(GUI): Convert Progress Button to Rendition
Convert progress-button component to Rendition

Change-type: minor
Signed-off-by: amdomanska <aga@resin.io>
2018-10-24 02:07:49 +02:00
Lorenzo Alberto Maria Ambrosi
407325b8ce Fix incorrect file constraint path
Change-type: patch
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzothunder.ambrosi@gmail.com>
2018-10-17 15:20:08 +02:00
Alexis Svinartchouk
fd5385b127 fix: Fix 64 bit detection on arm
Signed-off-by: Alexis Svinartchouk <alexis@resin.io>
2018-10-12 16:11:13 +02:00
Alexis Svinartchouk
ac068f353a fix: Provide a Buffer to xxhash.Stream
This fixes the digest being a number instead of a buffer.

Signed-off-by: Alexis Svinartchouk <alexis@resin.io>
2018-10-12 15:24:00 +02:00
Lorenzo Alberto Maria Ambrosi
207c0d612d Add 'debug' in place of 'logException'
Change-type: patch
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@resin.io>
2018-10-04 21:20:39 +02:00
Alexis Svinartchouk
b9f9968f84 fix(GUI): Warn when requiring usb fails
Change-type: patch
Signed-off-by: Alexis Svinartchouk <alexis@resin.io>
2018-10-02 16:17:58 +02:00
Alexis Svinartchouk
31cd33f86c fix(GUI): Add missing 'store' require
Change-type: patch
Signed-off-by: Alexis Svinartchouk <alexis@resin.io>
2018-09-27 12:51:32 +02:00
Jonas Hermsmeier
0d80957639 gui: Also blacklist match against device & raw path
This fixes device blacklist handling to also match against
`drive.device` and `drive.raw`, in order to be able to specify devices
lacking a `devicePath`.

Change-type: patch
Signed-off-by: Jonas Hermsmeier <jhermsmeier@gmail.com>
2018-09-25 23:59:55 +02:00
Lorenzo Alberto Maria Ambrosi
0cabac1eed fix(GUI): Remove results data from cancel event
Change-type: patch
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@resin.io>
2018-08-14 21:20:00 +02:00
Lorenzo Alberto Maria Ambrosi
c0ec74bbb7 fix(webpack): Add etcher.js to webpack build
Change-type: patch
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzoa@resin.io>
2018-08-14 19:04:13 +02:00
Lorenzo Alberto Maria Ambrosi
2271f32140 fix(GUI): Add data on events
Application session UUID for global app events
Flashing workflow UUID for every flashing session
Flash instance UUID for every flashing session

Change-type: patch
Signed-off-by: Lorenzo Alberto Maria Ambrosi <lorenzothunder.ambrosi@gmail.com>
2018-08-07 18:56:14 +02:00
Jonas Hermsmeier
40d84b7a82 fix(cli): Don't use electron to get USER_DATA_DIR in CLI
A previous change erronously relied solely on `electron` to determine
the user's data directory, which of course, isn't available when
running in the CLI. So this adds a fallback to the same mechanic
for CLI should this code not be loaded in Electron.

Change-type: patch
Signed-off-by: Jonas Hermsmeier <jhermsmeier@gmail.com>
2018-08-07 17:14:53 +02:00
Alexis Svinartchouk
26779ef1fb fix(sdk): Load usbboot adapter on start
Change-type: patch
Changelog-entry: Load usbboot adapter on start on GNU/Linux if running as root.
Signed-off-by: Alexis Svinartchouk <alexis@resin.io>
2018-08-07 04:01:13 +02:00
Jonas Hermsmeier
9eb3eea3f1
fix(writer): Set EVALIDATION on blockmap checksum errors
This patches validation errors coming form the `blockmap` module to have
the `EVALIDATION` error code, in order to trigger the appropriate code
paths and analytics.

Change-type: patch
Signed-off-by: Jonas Hermsmeier <jhermsmeier@gmail.com>
2018-08-01 20:54:08 +02:00