Commit Graph

4741 Commits

Author SHA1 Message Date
Jonathan Rainville f30803946c fix ENS API 2018-10-23 14:20:42 -04:00
Jonathan Rainville 2b75cfd089 remove checkDeps for scaffold 2018-10-23 12:33:43 -04:00
Anthony Laibe b1da43a684 Update package lock 2018-10-23 17:06:36 +01:00
Jonathan Rainville c201b6e491 fix ens with no registration 2018-10-23 11:59:43 -04:00
Jonathan Rainville f40cf609a8 fix embark ens and embark demo 2018-10-23 11:39:14 -04:00
Jonathan Rainville 74cca483b8 fix test app in develop (use WS instead of WEB3) 2018-10-23 11:23:42 -04:00
Jonathan Rainville 73668afd2e fix missing blockchainConfig pass to StorageLauncher in swarm index 2018-10-23 11:19:15 -04:00
Jonathan Rainville ccd064037f remove ens test as it is not applicable anymore 2018-10-23 11:13:50 -04:00
Jonathan Rainville 5eaaa63216 fix duplicated event for all contracts 2018-10-23 11:08:39 -04:00
Jonathan Rainville ccd7a7c3c7 fix reset 2018-10-23 11:01:07 -04:00
Jonathan Rainville e62a5503a9 fix undefined `connection` in provider 2018-10-23 10:42:14 -04:00
Anthony Laibe 81c62b1006 Fix provider connection check 2018-10-23 13:18:43 +01:00
Pascal Precht 853ab2d855
fix: make code compile again after rebase 2018-10-23 11:26:15 +02:00
Anthony Laibe aecc667a8c
Display a search for small screen 2018-10-23 11:13:22 +02:00
Anthony Laibe 6a97930ceb
Only fetch transactions from last 100th blocks 2018-10-23 11:13:21 +02:00
Anthony Laibe 4ed329c21d
Responsive Layout 2018-10-23 11:12:53 +02:00
Anthony Laibe 3bb696e4d3
Do not fetch processes/plugins/services at
each route change

Version is not fetched anymore, we cannot use them as an
anchore
2018-10-23 11:12:53 +02:00
Pascal Precht 892200a236
fix(cockpit/services/api): make sure query params are serialized correctly
In 9097f31c83 we ensured to send query parameters
along with GET requests done by our API service. This resulted in weird behaviour
where query parameters have been attached as `params` in a serialized format of our API requests.

So instead of sending sth. like:

```
/embark-api?token=foo-bar
```

Requests looked like:

```
/embark-api?params=...
```

This has even been patched accordingly on the server like here 043697bddc,
while still being unpatched in other places on the server.

It turns out however, that the reason this `params` parameter appears, is that all of our GET requests,
already send their payload as `params`.

This commit now ensures that GET parameters are sent in the correct format.
2018-10-23 11:12:53 +02:00
Pascal Precht 137fbf6b52
Revert "fix(modules/pipeline): ensure REST file API parses query parameters"
This reverts commit 043697bddccf2b5f47e649eb885b2ece53a1d825.
2018-10-23 11:12:53 +02:00
Jonathan Rainville fd67844235
review comments 2018-10-23 11:12:53 +02:00
Jonathan Rainville 2d66870773
fix dashboard broken 2018-10-23 11:12:53 +02:00
Jonathan Rainville e660eaea72
add tooltip on copy when there is no onCopy prop 2018-10-23 11:12:52 +02:00
Jonathan Rainville ab77cc012e
conflict in index.css 2018-10-23 11:12:52 +02:00
Jonathan Rainville 29fb9fbe80
add copyButton to abi and bytecode thing 2018-10-23 11:12:52 +02:00
Jonathan Rainville bd4f4726b3
create CopyButton component to wrap arround CopyToClipboard 2018-10-23 11:12:52 +02:00
Jonathan Rainville 261b4eddf3
linting 2018-10-23 11:12:52 +02:00
Jonathan Rainville 6150ce0b54
review comments 2018-10-23 11:12:51 +02:00
Jonathan Rainville 972e0aca40
remove leftover comment 2018-10-23 11:12:51 +02:00
Jonathan Rainville 423d8dcdf0
better style search bar with error and loading 2018-10-23 11:12:51 +02:00
Jonathan Rainville 47beac499f
enable searching contracts 2018-10-23 11:12:51 +02:00
Jonathan Rainville aa742e4a6e
conflict in Layout 2018-10-23 11:12:51 +02:00
Jonathan Rainville 203c4253d7
conflict in layout 2018-10-23 11:12:51 +02:00
Jonathan Rainville e683887ea4
fix bar's css 2018-10-23 11:12:50 +02:00
Anthony Laibe 02aea0506f
Add missing error on authentication 2018-10-23 11:12:50 +02:00
Anthony Laibe 4ca753f38f
Trim text on widget 2018-10-23 11:12:50 +02:00
Anthony Laibe cf460da277
Remove toggler 2018-10-23 11:12:50 +02:00
Anthony Laibe f9dd202713
Apply header and sidebar layout navigation 2018-10-23 11:12:50 +02:00
Pascal Precht c8bd4f19e3
cleanup(cockpit/TextEditorContractsToolbar): remove unused `Icon`
In https://github.com/status-im/embark-area-51/commit/c8339c074 we started using
Font Awesome Icons, so this is a leftover.
2018-10-23 11:12:50 +02:00
Pascal Precht e692e7b19e
fix(cockpit/sevices/api): properly send query parameters for get requests
Ever since we moved to using Axios in 20831179fc,
we haven't properly sent GET parameters along with the requests.

This is because Axios exposes two different properties to send params
along different http verb methods.
2018-10-23 11:12:49 +02:00
Pascal Precht 064b2da5a4
fix(modules/pipeline): ensure REST file API parses query parameters
Data send from the client with GET parameters are serialized in the
request body's `params` property. As express doesn't seem to parse
those, we have to do it manually to perform object property traversals.
2018-10-23 11:12:49 +02:00
Pascal Precht b654fdecd8
fix(modules/authenticator): ensure request hash doesn't include query params
The authenticators request hash algorithm produced different hashes than
on the client, because client-side hash-request don't include the query
parameters of a URL.

This causes authentication issues when sending any requests with query
parameters. This commit ensures we ignore them on the server as well.
2018-10-23 11:12:49 +02:00
Jonathan Rainville 479b79eeaf
add better message at the end 2018-10-23 11:12:49 +02:00
Jonathan Rainville 551d1e209b
fix array display and setting 2018-10-23 11:12:49 +02:00
Anthony Laibe a1c33a23a2
Remove tabler-react 2018-10-23 11:12:49 +02:00
Anthony Laibe 627fec5b49
Use cards in contract deployment 2018-10-23 11:12:48 +02:00
Pascal Precht 8740c8c0c9
fix(cockpit/Layout): ensure Layout render doesn't throw
In https://github.com/status-im/embark-area-51/commit/62964c8ce we've introduced a
regression where are two errors are thrown when `Layout` component is rendered:

- one for NavItem not having a key property
- one for margin-top not being a supported style property on Container

This commits fixes both.
2018-10-23 11:12:48 +02:00
Anthony Laibe ba5e479ae8
PR feedback 2018-10-23 11:12:48 +02:00
Anthony Laibe 2c74c2aa30
Add identicon 2018-10-23 11:12:48 +02:00
Pascal Precht 98fc1ab51e
fix(cockpit/AppContainer): allow bootstrap with query params
Cockpit allows for authentication via a `token` query parameter a la

```
http://localhost:8000/embark?token=xxxx-xxxx-xxxx-xxxx
```

So far, this was the only query parameter cockpit knew about, which is
why the algorithm during bootstrap always assumed that, if we have
query parameters, there has to be a `token` query parameter.

However, since 20831179fc, this turns out to be a problem. The hashing algorithm
for the request headers will throw, when `token` is not defined, which
can be possible with future features that add new query parameters.

This can be easily reproduced by bootstrapping/refreshing Cockpit using
any arbitrary query string parameter that is not `token`.

With this commit we ensure that we only perform query string authentication
when a `token` parameter is available.
2018-10-23 11:12:48 +02:00
Pascal Precht 8562a3f6c8
feat(cockpit): enable query param authentication in development mode
Prior to this commit it wasn't possible to authenticate using the
`token` query param as the `host` used for authentication doesn't
match the one of the Embark host.
2018-10-23 11:12:47 +02:00