4147 Commits

Author SHA1 Message Date
emizzle
3898686c7b Handle use cases that were failing
1) hanlde case when temp.sol doesn’t exist
2) delete all code - shouldn’t return last fiddle
3) Switch to different tab (ie contracts) then back to fiddle - fiddle should now remain.
2018-09-30 12:08:53 -04:00
emizzle
c46f71e1ca change registerAPICall to hang off embark 2018-09-30 12:08:41 -04:00
emizzle
293fa89184 Fix bug with deleting all code 2018-09-30 12:08:41 -04:00
emizzle
7ac43b307c Hide deployment section in UI for fiddle contracts 2018-09-30 12:08:41 -04:00
emizzle
290cbfa32a Remove ‘async’ from function name and remove comments 2018-09-30 12:08:41 -04:00
emizzle
a9071f714c Fiddle file stored in filesystem
Fiddles are now stored in the filesystem so they can be preserved across page reloads, but also so that contracts deployed via fiddles can have their source code shown.

Fiddles deployed as contracts now fully work with existing contract list UI and functionality. Fiddle deployed contracts are listed in a separate section in the UI.

Current limitation is that only single contracts per file are supported. If the fiddle contains multiple contracts, it’s currently not supported.
2018-09-30 12:08:41 -04:00
emizzle
b0ba46a0a9 Fiddle deploy integration
Fiddle is properly deploying now, except the source code needs to be saved to the filesystem in order to be recalled later.

Fixes for handling errors on deploy and compilation.

Update contract state UI for determining state / interface / deployed.
2018-09-30 12:08:41 -04:00
emizzle
cc8d10cd68 Fix Tabler browser errors
Fixed browser errors caused by tabler (bodyItems and headerItems complaints) as well as staticContext issues caused by using withRoute(NavLink)

Also added a response to fiddler deployment.

Added loading states to fiddler results, that shows the errors/warnings as having a loading state when compiling/deploying
2018-09-30 12:07:57 -04:00
emizzle
a4c82e5e5d finish removing loading entities 2018-09-30 12:07:57 -04:00
emizzle
91a311196f Removed loadingEntities and added to FiddleContainer 2018-09-30 12:07:57 -04:00
emizzle
a3784cfca5 loading entity work 2018-09-30 12:07:57 -04:00
emizzle
e3a66228d8 Start with reducer/selector for loading entity 2018-09-30 12:07:57 -04:00
emizzle
838662f0a2 Added loading entities
Moved functionality out of FiddleDeployButton component

Added loading entities (WIP) to separate loading messages
2018-09-30 12:07:57 -04:00
emizzle
bb44ddc548 concat deployed fiddle contracts with existing contracts 2018-09-30 12:07:57 -04:00
emizzle
71fbc65928 Initial commit for deployment of fiddle
API call set up for contract deploy which deploys the contract(s) sent from the fiddle.

Frontend UI button calls API to deploy the fiddle code.
2018-09-30 12:07:57 -04:00
emizzle
937e41ecdf add contract class for assisted construction
# Conflicts:
#	package-lock.json
2018-09-30 12:05:59 -04:00
Jonathan Rainville
650a097ea8 add back return all errors 2018-09-30 11:48:39 -04:00
Jonathan Rainville
4beb492d70 fix most rebase issues 2018-09-30 11:48:39 -04:00
Iuri Matias
5f2c843068 rebase fixes 2018-09-30 11:40:59 -04:00
Iuri Matias
0c586a2b64 rebase fixes 2018-09-30 11:40:59 -04:00
Anthony Laibe
d3b1c74649 PR feedback: Use request 2018-09-30 11:36:59 -04:00
Anthony Laibe
3b3210baae Deploy contract 2018-09-30 11:36:59 -04:00
Anthony Laibe
2c757d9044 Show result 2018-09-30 11:36:59 -04:00
Anthony Laibe
e335132561 Make call successfully 2018-09-30 11:36:59 -04:00
Anthony Laibe
2f55e4868d Call Function API 2018-09-30 11:36:59 -04:00
Anthony Laibe
758b3caf38 Show functions 2018-09-30 11:36:59 -04:00
Anthony Laibe
bf77c2b010 Show sources 2018-09-30 11:36:59 -04:00
Anthony Laibe
d82c5f93fc Display error + lint 2018-09-30 11:36:59 -04:00
Anthony Laibe
f7bdbb68a2 Fix naming 2018-09-30 11:36:59 -04:00
Anthony Laibe
ec47f0e204 Client fixes 2018-09-30 11:36:59 -04:00
Anthony Laibe
83ed8b3ee5 Lookup/Resolver between EmbarkJS and Embark 2018-09-30 11:36:25 -04:00
Anthony Laibe
cd2a208099 Rever fiddle order 2018-09-30 11:34:15 -04:00
Anthony Laibe
1fc5dac03f Fix typo 2018-09-30 11:34:15 -04:00
Anthony Laibe
57b93692d6 Use subdomain 2018-09-30 11:34:15 -04:00
Anthony Laibe
f84f246580 Misc fixes after rebase 2018-09-30 11:34:15 -04:00
Anthony Laibe
a47a6a5fe0 Lint 2018-09-30 11:34:15 -04:00
Anthony Laibe
853a655a84 Register and resolve 2018-09-30 11:34:15 -04:00
Anthony Laibe
5edbe10ad3 Show ENS records 2018-09-30 11:34:15 -04:00
Anthony Laibe
9194bff673 Add actions/api/reducers/sagas 2018-09-30 11:34:15 -04:00
Anthony Laibe
3bd345e0ae Fix method call 2018-09-30 11:34:15 -04:00
Anthony Laibe
13e6980726 API for ens 2018-09-30 11:34:15 -04:00
Anthony Laibe
e6dc284211 Add plugins and versions to backend tab 2018-09-30 11:34:15 -04:00
emizzle
b4580c364c Fix react ‘key’ error 2018-09-30 11:34:15 -04:00
emizzle
e61449bc4e Make linter happy 2018-09-30 11:34:15 -04:00
emizzle
ac2ce45f3b Removed the contract compile event
(really did it this time)
2018-09-30 11:34:15 -04:00
emizzle
9b22c79701 Addressed PR comments
Changed `fiddle` to an entity and removed unneeded fiddle reducer.

Added a selector for getting the entity.

Changed fiddle saga to `doRequest`.

Changed fiddle api call to the `post` method (did not see beofre the rebase).

Added `CompilerError` presentation component to handle displaying compiler errors and warnings.

Added spaces to css (as requested).

Removed extra space after function in solidity compiler (as requested).

Removed the compile contract event from the solidity compiler (as requested).

Handling of fatal api error in the UI.

Changed fiddle action to the one created with `createRequestTypes`.

Moved `Fiddle` nav tab before `Documentation`.

Changed `FiddleResults` DOM manipulation to be controlled via React state instead.
2018-09-30 11:34:15 -04:00
emizzle
08006a2aea add page title class 2018-09-30 11:33:14 -04:00
emizzle
3643fab359 Remove comments and spaces 2018-09-30 11:33:14 -04:00
emizzle
17a86ac51a Fix rebase 2018-09-30 11:33:14 -04:00
emizzle
607392ae6d Annotations, click to error, UI improvements
Compiler annotations added to editor gutter for errors and warnings

Clicking an error now scrolls editor to offending line and scrolls page to the top of the editor

Added Compiling… loader.
2018-09-30 11:33:14 -04:00