From 333564f687b2e6f05dff90f5abe3184d850cd091 Mon Sep 17 00:00:00 2001 From: Anoop M D Date: Mon, 16 Oct 2023 02:07:15 +0530 Subject: [PATCH] feat(#275): polish client certificate support --- .../ClientCertSettings/StyledWrapper.js | 14 +++++++++- .../ClientCertSettings/index.js | 28 +++++++++++++------ .../components/CollectionSettings/index.js | 19 +++++++++---- 3 files changed, 45 insertions(+), 16 deletions(-) diff --git a/packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/StyledWrapper.js b/packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/StyledWrapper.js index bc5ad1565..625bc98e6 100644 --- a/packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/StyledWrapper.js +++ b/packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/StyledWrapper.js @@ -2,13 +2,25 @@ import styled from 'styled-components'; const StyledWrapper = styled.div` .settings-label { - width: 80px; + width: 90px; + } + + .certificate-icon { + color: ${(props) => props.theme.colors.text.yellow}; } input { width: 300px; } + .available-certificates { + background-color: ${(props) => props.theme.requestTabPanel.url.bg}; + + button.remove-certificate { + color: ${(props) => props.theme.colors.text.danger}; + } + } + .textbox { border: 1px solid #ccc; padding: 0.15rem 0.45rem; diff --git a/packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/index.js b/packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/index.js index 280e0f4bb..235e274f5 100644 --- a/packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/index.js +++ b/packages/bruno-app/src/components/CollectionSettings/ClientCertSettings/index.js @@ -1,5 +1,7 @@ -import React, { useEffect } from 'react'; +import React from 'react'; +import { IconCertificate, IconTrash, IconWorld } from '@tabler/icons'; import { useFormik } from 'formik'; +import { uuid } from 'utils/common'; import * as Yup from 'yup'; import StyledWrapper from './StyledWrapper'; @@ -29,20 +31,28 @@ const ClientCertSettings = ({ clientCertConfig, onUpdate, onRemove }) => { return ( -

Current client certificates

-