Support linkify-ing urls

Summary:
Changelog: The new logs plugin will linkify urls and pretty print json-like messages

This implements one of our top papercuts (see linked task), and the WP request over here: https://fb.workplace.com/groups/flipperfyi/permalink/902949260471370/. Partially addresses

https://github.com/facebook/flipper/issues/1162
https://github.com/facebook/flipper/issues/1010
https://github.com/facebook/flipper/issues/2029

Reviewed By: nikoant

Differential Revision: D26947007

fbshipit-source-id: be0fdb476765905ae6b63bd8799c9c6093014de3
This commit is contained in:
Michel Weststrate
2021-03-16 14:54:53 -07:00
committed by Facebook GitHub Bot
parent 66774c90c6
commit d73f6578a7
13 changed files with 337 additions and 43 deletions

View File

@@ -104,9 +104,7 @@ const App: () => React$Node = () => {
fetch(API, {headers: {accept: 'application/json'}})
.then((res) => res.json())
.then((data) => {
console.log(
'Got status: ' + JSON.stringify(data, null, 2),
);
console.log(data.status);
setNpmStatus(data.status.description);
})
.catch((e) => {