From 3f351f51ddfc3baf595a53bcf49e48c53c5da10c Mon Sep 17 00:00:00 2001 From: Marco van Dijk Date: Sat, 12 Mar 2022 18:18:24 +0100 Subject: [PATCH] Slight Event Button style update --- README.md | 6 ++++-- src/components/eventButton.js | 24 ++++++++++++------------ src/components/filterComponent.js | 2 +- src/pages/livepeer.js | 4 +++- 4 files changed, 20 insertions(+), 16 deletions(-) diff --git a/README.md b/README.md index d07433f..b998b39 100644 --- a/README.md +++ b/README.md @@ -21,8 +21,8 @@ Orchestrators can be inspected by clicking on their address, showing all of thei - Returns a JSON object of top 200 coint data by coin symbol - https://nframe.nl/api/livepeer/getEvents - Returns a JSON object of the raw data of all events on the Livepeer BondingManager contract -- https://nframe.nl/api/livepeer/getEvents - - Returns a JSON object of the raw data of all events on the Livepeer BondingManager contract +- https://nframe.nl/api/livepeer/getTickets + - Returns a JSON object of the raw data of all events on the Livepeer TicketBroker contract - https://nframe.nl/api/livepeer/getOrchestrator - POST request with orchAddr in the body - https://www.nframe.nl/livepeer/getOrchestrator?orchAddr=0x847791cbf03be716a7fe9dc8c9affe17bd49ae5e @@ -33,6 +33,8 @@ Orchestrators can be inspected by clicking on their address, showing all of thei - https://www.nframe.nl/livepeer/prometheus/0x847791cbf03be716a7fe9dc8c9affe17bd49ae5e - Returns a Prometheus compatible output of all data except blockchain Events +See the wiki for examples of their raw output + # How ## Frontend diff --git a/src/components/eventButton.js b/src/components/eventButton.js index 4066e51..8beaf4f 100644 --- a/src/components/eventButton.js +++ b/src/components/eventButton.js @@ -77,19 +77,19 @@ const EventButton = (obj) => { blockNumber = } - return ( -
- {blockNumber} -
- {eventCaller} -

- 💬 {obj.eventObj.eventDescription} -

- {eventFrom} - {eventTo} -
+return ( +
+ {blockNumber} +
+ {eventCaller} +

+ 💬 {obj.eventObj.eventDescription} +

+ {eventFrom} + {eventTo}
- ) +
+) } export default EventButton; \ No newline at end of file diff --git a/src/components/filterComponent.js b/src/components/filterComponent.js index 273dcef..60b9a41 100644 --- a/src/components/filterComponent.js +++ b/src/components/filterComponent.js @@ -28,7 +28,7 @@ const Filter = (obj) => {

Clear

- obj.setSearchTerm(evt.target.value)} placeholder='Filter by Orchestrator address' diff --git a/src/pages/livepeer.js b/src/pages/livepeer.js index 2bc0249..4c02291 100644 --- a/src/pages/livepeer.js +++ b/src/pages/livepeer.js @@ -59,7 +59,9 @@ const Livepeer = (obj) => {
- +
+ +
}