From 925af1f26f93277765b87cffa0558884000220b1 Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Tue, 21 Feb 2023 13:05:51 +0530 Subject: [PATCH] feat: vars implementation in UI --- .../RequestPane/HttpRequestPane/index.js | 9 +- .../RequestPane/QueryParams/index.js | 2 +- .../RequestPane/RequestHeaders/index.js | 2 +- .../RequestPane/Script/StyledWrapper.js | 3 +- .../components/RequestPane/Script/index.js | 6 +- .../RequestPane/Vars/StyledWrapper.js | 9 ++ .../Vars/VarsTable/StyledWrapper.js | 56 ++++++++ .../RequestPane/Vars/VarsTable/index.js | 130 ++++++++++++++++++ .../src/components/RequestPane/Vars/index.js | 56 ++++++++ .../ReduxStore/slices/collections/index.js | 97 +++++++++++++ .../bruno-app/src/utils/collections/index.js | 1 + packages/bruno-electron/src/app/watcher.js | 4 + packages/bruno-electron/src/bru/index.js | 5 + .../bruno-schema/src/collections/index.js | 13 ++ 14 files changed, 385 insertions(+), 8 deletions(-) create mode 100644 packages/bruno-app/src/components/RequestPane/Vars/StyledWrapper.js create mode 100644 packages/bruno-app/src/components/RequestPane/Vars/VarsTable/StyledWrapper.js create mode 100644 packages/bruno-app/src/components/RequestPane/Vars/VarsTable/index.js create mode 100644 packages/bruno-app/src/components/RequestPane/Vars/index.js diff --git a/packages/bruno-app/src/components/RequestPane/HttpRequestPane/index.js b/packages/bruno-app/src/components/RequestPane/HttpRequestPane/index.js index 82c7d2d1..502a70e8 100644 --- a/packages/bruno-app/src/components/RequestPane/HttpRequestPane/index.js +++ b/packages/bruno-app/src/components/RequestPane/HttpRequestPane/index.js @@ -7,6 +7,7 @@ import QueryParams from 'components/RequestPane/QueryParams'; import RequestHeaders from 'components/RequestPane/RequestHeaders'; import RequestBody from 'components/RequestPane/RequestBody'; import RequestBodyMode from 'components/RequestPane/RequestBody/RequestBodyMode'; +import Vars from 'components/RequestPane/Vars'; import Script from 'components/RequestPane/Script'; import Tests from 'components/RequestPane/Tests'; import StyledWrapper from './StyledWrapper'; @@ -36,6 +37,9 @@ const HttpRequestPane = ({ item, collection, leftPaneWidth }) => { case 'headers': { return ; } + case 'vars': { + return ; + } case 'script': { return