170 Commits

Author SHA1 Message Date
Iuri Matias
8e6272d75f fix merge conflict 2018-10-24 14:11:24 -04:00
Anthony Laibe
f0eb03bf05 Add editor tabs 2018-10-24 14:02:31 -04:00
Iuri Matias
5efda2c428 move debugger to sidebar; fix config issue 2018-10-24 13:10:31 -04:00
Iuri Matias
1d6da99e8f display last error found
display last line on tx

fix debugger call

listen to source event only after jumping to the end

keep track of last tx; add minimal debug feature; fix ast issue

initial debugger apis & ui integration

prevent crash when step is out of bounds; send all all available data in websocket

add debugger commands

fix line number tracking in editor; toggle breakpoints

replace timeouts with callbacks

add debugger manager & refactor

refactor debugger api

refactor cmd line debugger

reduce debugger decoupling

reduce debugger decoupling

fix debug buttons

trigger source update so api triggers ws event to update source location

move locals and contracts vars to a json view

improve debugger icons

simplify debugger data

update debug package

add command handler to get a contract given a tx; update debugger so it can get a contract by its tx instead of tracking latest txs only

update debugger package
2018-10-23 18:27:40 -04:00
Anthony Laibe
00a8d9baea Add toolbar to editor
Rename overview to detail

React to save file for local storage

Add switch for hidden files

move units to ether instead of wei

separate description from link itself which makes UI cleaner

remove unneded explorer header

switch nav menu color to white

replace contract address table with simple paragraph instead

improve contract functions page

improve contract functions view

style/fix functions tab

fix rebase issue

re-style contracts sidebar

improve contract detail sidebar
2018-10-23 16:13:19 -04: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
Jonathan Rainville
47beac499f
enable searching contracts 2018-10-23 11:12:51 +02:00
Anthony Laibe
02aea0506f
Add missing error on authentication 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
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
Anthony Laibe
a4d4278dc9
Adding option to switch deployment pipeline 2018-10-23 11:12:47 +02:00
Pascal Precht
923bacf22f
feat(cockpit): introduce transaction decoder component
This commit adds a new component to decode and analyze transactions.
It's similar to the transaction component that's already available,
with the difference that it takes advantage of the ReactJson tree
view for better analysis experience.
2018-10-23 11:12:00 +02:00
Anthony Laibe
fb29e5a7c8
Add/remove breakpoints 2018-10-23 11:12:00 +02:00
Iuri Matias
d1cb157da1
remove unsued variables 2018-10-23 11:11:59 +02:00
Iuri Matias
b86761e83d
restrict logs; switch order in dashboard; don't limit height in contracts box 2018-10-23 11:11:58 +02:00
Iuri Matias
b06d224883
fix services & processes; improve UI 2018-10-23 11:11:58 +02:00
Iuri Matias
167cf50db5
move console to embark tab; add search box to top bar 2018-10-23 11:11:57 +02:00
Iuri Matias
6fd6988b0f
ui fixes 2018-10-23 11:11:14 +02:00
Pascal Precht
eb412c026b
feat(cockpit/utils): introduce components to sign and verify messages 2018-10-23 11:11:14 +02:00
Anthony Laibe
6e24b0eb85
Remove uneeded handler 2018-10-23 11:04:00 +02:00
Anthony Laibe
96c3575e75
Add Contract Events to UI 2018-10-23 11:03:59 +02:00
Anthony Laibe
5fa118ae2e
Event function filt 2018-10-23 11:02:54 +02:00
Jonathan Rainville
639ede7b77
conflict in package json 2018-10-23 11:02:52 +02:00
Jonathan Rainville
2edbef81e4
conflict in constants 2018-10-23 11:02:09 +02:00
Jonathan Rainville
c833f9b3bf
store theme in localstorage 2018-10-23 11:02:08 +02:00
Jonathan Rainville
be0129fea9
use redux to store the theme 2018-10-23 11:02:08 +02:00
Jonathan Rainville
7c910a571d
add base theme switcher that uses the component state 2018-10-23 11:02:08 +02:00
Iuri Matias
70b62bdc16
rename command_suggestions to commandSuggestions 2018-10-23 11:00:28 +02:00
Iuri Matias
ce19fd96c4
intiial code to get suggestions from embark 2018-10-23 11:00:26 +02:00
Anthony Laibe
b423e87e49
Replace tabler react by new theme 2018-10-23 10:59:18 +02:00
emizzle
145f376000
Add LOG_LIMIT to limit max log response size
Re-adds the log limit feature that limits the log size coming back from embark

Also adds the log limit to other process logs (ie blockchain).
2018-10-23 10:59:18 +02:00
Iuri Matias
deeeb985ad
fix rebase issues 2018-10-23 10:59:18 +02:00
Pascal Precht
588641222b
feat(contrainers/HomeContainer): introduce contracts list in dashboard 2018-10-23 10:59:17 +02:00
Anthony Laibe
812a9d0dfa
Remove Dead Code 2018-10-23 10:59:15 +02:00
Anthony Laibe
4b2715421d
Adding tab to contract view 2018-10-23 10:59:15 +02:00
Pascal Precht
df3bce145d
refactor(components/Ens): move ENS components to Utilities 2018-10-23 10:58:35 +02:00
Pascal Precht
0e4cb11ab6
refactor(components/Communications): move component to Utilities 2018-10-23 10:58:34 +02:00
Anthony Laibe
9aac039e7e
Adding selector 2018-10-23 10:58:34 +02:00
Anthony Laibe
a61f499abb
Fix embark logs guard 2018-10-23 10:58:34 +02:00
Anthony Laibe
de009db74f
Use process log ids 2018-10-23 10:57:05 +02:00
emizzle
46511bcfe8
Rebase updates
After the code was rebased, there were some additional changes for getting websockets logs that needed to be catered for.

When there is a call to get all logs for a process, the state entity is updated with a new array item containing all the logs (this is then reduced and selected for rendering). In the case of a websocket log that simply returns only one log item, the latest full log for the process is found in the state entities, and it’s logs are appending to with the data from the websocket.

Additionally, log limits were updated to be passed in as a parameter to the API calls from the frontend. Parameter validation (for `limit`) was also added in this commit.
2018-10-23 10:57:04 +02:00
Anthony Laibe
41eb23df82
Adding file contracts 2018-10-23 10:51:24 +02:00
Anthony Laibe
ea9939c03a
WIP: style fiddle 2018-10-23 10:51:24 +02:00
Pascal Precht
daf1d7269d
refactor: rename Unauthenticated to Login
This also removes the previously introduced `LoginLayout` component as
chances are very low that we'll need the layout for anything else then the
login.
2018-10-23 10:50:41 +02:00
Pascal Precht
0baf0526b1
feat(containers/AppContainers): make use of new LoginLayout 2018-10-23 10:50:40 +02:00
Anthony Laibe
f5ac131d93
Add new theme to utils 2018-10-23 10:50:40 +02:00
Anthony Laibe
5967aa3dc5
Initial version of deployment manager 2018-10-23 10:50:39 +02:00
Anthony Laibe
0e872c99e6
Update layout with new theme 2018-10-23 10:50:38 +02:00
Anthony Laibe
0e4248cca8
Stop and limit fetch process logs 2018-10-23 10:50:38 +02:00