From 6b1ca1dce111b426aa39b045b3d0869b567d6598 Mon Sep 17 00:00:00 2001 From: Nivedin <53208152+nivedin@users.noreply.github.com> Date: Fri, 10 Jun 2022 18:12:40 +0530 Subject: [PATCH] feat: filter json body response (#2404) --- .../hoppscotch-app/assets/icons/filter.svg | 13 ++ .../hoppscotch-app/assets/scss/themes.scss | 3 + .../lenses/renderers/JSONLensRenderer.vue | 134 +++++++++++++++++- packages/hoppscotch-app/locales/en.json | 4 + packages/hoppscotch-app/package.json | 1 + .../hoppscotch-app/types/jsonpath-plus.d.ts | 6 + packages/hoppscotch-app/windi.config.js | 1 + pnpm-lock.yaml | 25 ++-- 8 files changed, 174 insertions(+), 13 deletions(-) create mode 100644 packages/hoppscotch-app/assets/icons/filter.svg create mode 100644 packages/hoppscotch-app/types/jsonpath-plus.d.ts diff --git a/packages/hoppscotch-app/assets/icons/filter.svg b/packages/hoppscotch-app/assets/icons/filter.svg new file mode 100644 index 000000000..7a4f7d09c --- /dev/null +++ b/packages/hoppscotch-app/assets/icons/filter.svg @@ -0,0 +1,13 @@ + + + diff --git a/packages/hoppscotch-app/assets/scss/themes.scss b/packages/hoppscotch-app/assets/scss/themes.scss index a1b025231..f641e8fcb 100644 --- a/packages/hoppscotch-app/assets/scss/themes.scss +++ b/packages/hoppscotch-app/assets/scss/themes.scss @@ -255,6 +255,7 @@ --upper-mobile-raw-tertiary-sticky-fold: 8.188rem; --lower-primary-sticky-fold: 3rem; --lower-secondary-sticky-fold: 5rem; + --lower-tertiary-sticky-fold: 7.05rem; --sidebar-primary-sticky-fold: 2rem; } @@ -270,6 +271,7 @@ --upper-mobile-raw-tertiary-sticky-fold: 8.938rem; --lower-primary-sticky-fold: 3.25rem; --lower-secondary-sticky-fold: 5.5rem; + --lower-tertiary-sticky-fold: 7.8rem; --sidebar-primary-sticky-fold: 2.25rem; } @@ -285,6 +287,7 @@ --upper-mobile-raw-tertiary-sticky-fold: 9.688rem; --lower-primary-sticky-fold: 3.5rem; --lower-secondary-sticky-fold: 6rem; + --lower-tertiary-sticky-fold: 8.55rem; --sidebar-primary-sticky-fold: 2.5rem; } diff --git a/packages/hoppscotch-app/components/lenses/renderers/JSONLensRenderer.vue b/packages/hoppscotch-app/components/lenses/renderers/JSONLensRenderer.vue index 1bf8e9c0c..ffbca8951 100644 --- a/packages/hoppscotch-app/components/lenses/renderers/JSONLensRenderer.vue +++ b/packages/hoppscotch-app/components/lenses/renderers/JSONLensRenderer.vue @@ -1,12 +1,15 @@