From 2f932ad103c4aab5ff34c87379132fc0d4bc8ef1 Mon Sep 17 00:00:00 2001 From: Salman Date: Thu, 14 Mar 2024 05:55:23 +0530 Subject: [PATCH 01/36] feat: add basic ui and icons --- .../components/v2/SecretInput/SecretInput.tsx | 62 +++++++++++++++++++ 1 file changed, 62 insertions(+) diff --git a/frontend/src/components/v2/SecretInput/SecretInput.tsx b/frontend/src/components/v2/SecretInput/SecretInput.tsx index 2dfafca741..64f6820bb6 100644 --- a/frontend/src/components/v2/SecretInput/SecretInput.tsx +++ b/frontend/src/components/v2/SecretInput/SecretInput.tsx @@ -1,5 +1,7 @@ /* eslint-disable react/no-danger */ import { forwardRef, TextareaHTMLAttributes } from "react"; +import { faChevronRight, faFolder, faKey, faRecycle } from "@fortawesome/free-solid-svg-icons"; +import { FontAwesomeIcon } from "@fortawesome/react-fontawesome"; import { twMerge } from "tailwind-merge"; import { useToggle } from "@app/hooks"; @@ -19,6 +21,10 @@ const syntaxHighlight = (content?: string | null, isVisible?: boolean) => { if (!content) return "EMPTY"; if (!isVisible) return replaceContentWithDot(content); + // List all the all the variable and the enviroments + // On Environment select list all the secret name and folder + // + let skipNext = false; const formatedContent = content.split(REGEX).flatMap((el, i) => { const isInterpolationSyntax = el.startsWith("${") && el.endsWith("}"); @@ -61,6 +67,7 @@ export const SecretInput = forwardRef( const [isSecretFocused, setIsSecretFocused] = useToggle(); return ( + // <>
( +