rocketredis icon indicating copy to clipboard operation
rocketredis copied to clipboard

feat: add JSON viewer to KeyContent

Open lucasig11 opened this issue 3 years ago • 1 comments

This PR:

  • Adds the pink detail that provides visual feedback over the current working database;
  • Fixes the Button component which required a property that has a default value (color);
  • Adds a button which allows to toggle between the raw view of the key content and a JSON formatted one;

I implemented the JSON viewer using the 'react-json-view' library. I made it in a new component called 'ContentView', which I thought would make it easier to add other ways of formatting the output in the future.


Raw view JSON view

lucasig11 avatar May 09 '21 04:05 lucasig11

That's really nice

caiodomingues avatar Aug 18 '21 19:08 caiodomingues