Commit Graph

4719 Commits

Author SHA1 Message Date
Michael Bradley, Jr 59326e6500 embark-ui pkg lock -- http:// -> https:// 2018-10-28 13:16:20 +01:00
Michael Bradley, Jr 3ba00c488b bump shrinkwrap re: web3@1.0.0-beta.34 2018-10-28 13:16:20 +01:00
Michael Bradley, Jr 7b241743aa rev embark-ui .npmignore 2018-10-28 13:16:20 +01:00
Michael Bradley, Jr 8b98a79468 rev .npmignore 2018-10-28 13:16:20 +01:00
Michael Bradley, Jr eeeb74602b cleanup, consolidate .gitignore files 2018-10-28 13:16:20 +01:00
Iuri Matias 1576db38d5 Merge branch 'develop_51' of github.com:status-im/embark-area-51 into develop_51 2018-10-28 12:10:28 +01:00
Iuri Matias d1d5450747 decrease file size in 'show hidden files' text 2018-10-28 12:10:15 +01:00
Iuri Matias 6f626179ac
Merge pull request #173 from status-im/chores/linter
Add linter to embark-ui
2018-10-28 11:31:20 +01:00
Iuri Matias 3c93151750
Merge pull request #174 from status-im/feature/tabs-colored
Color tabs for text editor
2018-10-28 11:29:38 +01:00
Iuri Matias 1a60f0f718
Merge pull request #175 from status-im/bugfix/close-content-when-no-file
Reset content if empty
2018-10-28 11:28:42 +01:00
Anthony Laibe d1170d3cef Reset content if empty 2018-10-28 11:21:05 +01:00
Anthony Laibe f1e1c4a143 Color tabs for text editor 2018-10-28 10:39:40 +01:00
Anthony Laibe 5c19dcf672 Add linter to embark-ui 2018-10-28 10:13:09 +01:00
Iuri Matias eb8759083c
Merge pull request #172 from status-im/minor_style_improvements
fix button text colors and table background colors in the dark theme
2018-10-28 09:42:45 +01:00
Iuri Matias b20b872256 fix button text colors and table background colors in the dark theme 2018-10-28 09:34:04 +01:00
Iuri Matias 3007c109e7
Merge pull request #170 from status-im/bugfix/send-gas-with-function
bug: send gas when calling a function via API
2018-10-27 21:38:13 +02:00
Iuri Matias 3487265100
Merge pull request #169 from status-im/feature/do-not-close-expanded-folder
Do not close expanded node
2018-10-27 21:36:04 +02:00
Iuri Matias 9f6f7af3f7
Merge pull request #171 from status-im/global_vars
display globals in the debugger; display vars found in failing line
2018-10-27 21:33:00 +02:00
Iuri Matias 40ed7b960f display globals in the debugger; display vars found in failing line 2018-10-27 21:31:13 +02:00
Jonathan Rainville e77e08c84e Merge branch 'features/improve-gas-estimator' into develop_51 2018-10-27 06:06:14 -04:00
Anthony Laibe d6f7c652f9 bug: send gas when calling a function via API 2018-10-27 11:51:03 +02:00
Anthony Laibe 40cab4a06a Do not close expanded node 2018-10-26 17:06:14 +02:00
Iuri Matias b02cafe672
Merge pull request #133 from status-im/bug_fix/double-auth
Don't authenticate twice
2018-10-26 16:58:08 +02:00
Iuri Matias 908db2d923
Merge pull request #168 from status-im/feature/add-tooltip-to-header-link
Add tooltip to header external link
2018-10-26 16:57:02 +02:00
Anthony Laibe ed9a910f4a Add tooltip to header external link 2018-10-26 16:40:34 +02:00
Iuri Matias 2490c76242
Merge pull request #167 from status-im/more-style-fixes
More style fixes
2018-10-25 15:43:49 -04:00
Iuri Matias 87dfffef4d
Merge pull request #166 from status-im/features/improve-gas-estimator
Add gas estimator to the functions that need it
2018-10-25 15:43:39 -04:00
Iuri Matias e25a5ad020
Merge pull request #165 from status-im/bug-fix/full-height-file-tree
Fix file-tree height
2018-10-25 15:43:14 -04:00
Jonathan Rainville ef2b4ea570 fix error message that print undefined 2018-10-25 15:20:29 -04:00
Jonathan Rainville b85f8aff8c fix margins by using a padding on the container instead 2018-10-25 14:34:54 -04:00
Jonathan Rainville 79cb60f164 style improvments to functions, explorer and icon 2018-10-25 14:16:45 -04:00
Jonathan Rainville 22f94563fe add a title to the auto-set button to explain 2018-10-25 12:04:25 -04:00
Jonathan Rainville 8886f6b0f2 add gas price estimator is functions as well as a button to auto-set 2018-10-25 11:59:25 -04:00
Jonathan Rainville 92d433ff9a impore contract overview style 2018-10-25 10:23:47 -04:00
Jonathan Rainville 8ec1199074 fix file-tree height 2018-10-25 09:51:54 -04:00
Iuri Matias 7df05fdce3
Merge pull request #164 from status-im/feature/light-theme-editor
Add light theme to editor
2018-10-25 07:50:15 -04:00
Iuri Matias 7461d0b4a8
Merge pull request #143 from status-im/bug_fix/backend_tab/logs-blockchain-broken
Embark blockchain logs when running standalone
2018-10-25 07:49:56 -04:00
Pascal Precht 6dccbd8902
fix: Ensure Embark process live updates are being retrieved by Cockpit 2018-10-25 13:04:33 +02:00
emizzle efa21a1915
Fix process logs not returning
The API endpoint listening for a dump of process logs was not returning logs properly for two reasons:
1. The `id` field was being appended to each log. This had been moved to the `handleLog` function of the `LogHandler`.
2. The slice needed to grab logs from the end, so the `limit` was made negative on the `.slice()`.
2018-10-25 13:04:33 +02:00
emizzle dcdcfb5b32
Minor fixes for rebase 2018-10-25 13:04:33 +02:00
emizzle 9a830c3423
Remove default behavior of logging to file
Default behavior of logging to file is no longer needed now that Embark log history can be properly served using the `ProcessLogsApi` and `LogHandler` classes.

# Conflicts:
#	lib/core/logger.js
#	lib/modules/blockchain_process/blockchain.js
2018-10-25 13:04:33 +02:00
emizzle f5c77b1416
Process logs API refactor
There are three separate instances of process log APIs: embark logs, blockchain logs (when in standalone mode), and child process logs (storage, communication, blockchain, etc). Each one was repeating the implementation of creating a process log API endpoint. This commit centralises the API declaration by using the class `ProcessLogsApi`.

`ProcessLogsApi` is started for all three components mentioned above: blockchain (in standalone) in the `BlockchainListener` module, embark in the `EmbarkListener` module, and for all child processes in the `ProcessLauncher`.

These listeners have two functions:
1. Create the process logs API endpoints for `get` and `ws`, and
2. Ensure that all logs are logged through the `LogHandler`, which normalises the output of the log and ensures each log has a timestamp and id (used in the cockpit for log ordering).

Also, this commit moved the pipeline in to a module, so that the `embark` object could be passed to the `ProcessLogsApi` (to be used for registering API endpoints).
2018-10-25 13:04:28 +02:00
Anthony Laibe 079a2dbba4 Add light theme to editor 2018-10-25 12:02:13 +01:00
emizzle 3246b62151
Revert changes to `scaffold` function in `cmd_controller.js` 2018-10-25 12:51:48 +02:00
emizzle 728713a183
Embark blockchain logs when running standalone
When running `embark blockchain` followed by `embark run` previously, logs generated in the standalone `embark blockchain` process were black boxed and not accessible to the main Embark process.

This is fixed by creating a client IPC connection in the `embark blockchain` process that connects to the IPC server connection running in `embark run`. The connection is made by way of polling `ipc.connect` and continues polling even after a connection is made in case `embark run` is killed and restarted without restarting `embark blockchain`.

`LogHandler` was introduced to extrapolate functionality used in `ProcessLauncher` that needed to also be used in the standalone blockchain process. It also caps the number of logs that are stored in memory per process by a constant value defined in `constants.json`.

A `blockchain_listener` was module was created (and run inside of `embark run`) that listens for logs emitted by the `embark blockchain` client IPC and runs them through the `LogHandler`. Additionally, this module registers the API endpoints needed to handle requests for blockchain process logs in the cockpit (which were 404’ing before).

# Conflicts:
#	lib/modules/blockchain_process/blockchain.js
2018-10-25 12:51:43 +02:00
Michael Bradley, Jr 8a9b8f25ab separate "should authenticate" logic from "do authenticate" logic
but don't maintain separate methods for query string vs. props
2018-10-25 05:50:59 -05:00
Michael Bradley, Jr a5c972903b formatting 2018-10-25 05:50:58 -05:00
Michael Bradley, Jr 10fa3fec9f consolidate DEFAULT_HOST logic 2018-10-25 05:50:58 -05:00
Michael Bradley, Jr 9533b57627 formatting 2018-10-25 05:50:58 -05:00
Michael Bradley, Jr d861b0b1af prefer an empty React Fragment to an empty div 2018-10-25 05:50:58 -05:00