TexteaInc / json-viewer

not only a JSON viewer
https://viewer.textea.io
MIT License
439 stars 34 forks source link

feat: support add and delete feature #438

Closed pionxzh closed 8 months ago

pionxzh commented 8 months ago

closes #437

This PR adds the functionality to add and delete values. These features are not designed to work out of the box. You will have to implement the behavior manually. The library will expose the necessary helpers for you to achieve that, and this kind of low-level API can also be used for advanced use cases.

image

netlify[bot] commented 8 months ago

Deploy Preview for any-viewer ready!

Name Link
Latest commit 5474c8756c599fa97c1546cfdd1a60b81cc8cb1e
Latest deploy log https://app.netlify.com/sites/any-viewer/deploys/65a5e8feb609b000081e5caa
Deploy Preview https://deploy-preview-438--any-viewer.netlify.app
Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

codecov[bot] commented 8 months ago

Codecov Report

Attention: 53 lines in your changes are missing coverage. Please review.

Comparison is base (6efeac6) 87.95% compared to head (5474c87) 86.81%. Report is 9 commits behind head on main.

Files Patch % Lines
src/components/DataKeyPair.tsx 33.33% 48 Missing :warning:
src/components/Icons.tsx 60.00% 4 Missing :warning:
src/stores/JsonViewerStore.ts 97.29% 1 Missing :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## main #438 +/- ## ========================================== - Coverage 87.95% 86.81% -1.15% ========================================== Files 25 25 Lines 2391 2563 +172 Branches 382 405 +23 ========================================== + Hits 2103 2225 +122 - Misses 287 337 +50 Partials 1 1 ```

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.