From 7aa5ef844cdb1207204c3df86fd1ecbcb567da0b Mon Sep 17 00:00:00 2001 From: Parth Patel Date: Mon, 8 May 2023 01:04:35 -0400 Subject: [PATCH 1/4] Update CLI usage docs to showcase the ability to inject environment variables in shell aliases --- docs/cli/usage.mdx | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/docs/cli/usage.mdx b/docs/cli/usage.mdx index 0e8c5fce9..b566e2c0b 100644 --- a/docs/cli/usage.mdx +++ b/docs/cli/usage.mdx @@ -39,6 +39,22 @@ infisical init infisical run -- [your application start command] ``` +## Injecting environment variables in custom aliases +Custom aliases can utilize secrets from Infisical. Suppose there is a custom alias `yd` in `custom.sh` that runs `yarn dev` and needs the secrets provided by Infisical. +```bash +#!/bin/sh + +yd() { + yarn dev +} +``` + +To make the secrets available from Infisical to `yd`, you can run the following command: + +```bash +infisical run --command="source custom.sh && yd" +``` + View all available options for `run` command [here](./commands/run) ## Examples: From 174e22a2bcda742c15f6aa26808077bb731de07e Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Sat, 13 May 2023 11:17:17 -0400 Subject: [PATCH 2/4] put aliases docs in Accordion --- docs/cli/usage.mdx | 28 +++++++++++++++------------- 1 file changed, 15 insertions(+), 13 deletions(-) diff --git a/docs/cli/usage.mdx b/docs/cli/usage.mdx index b566e2c0b..922c0f2d8 100644 --- a/docs/cli/usage.mdx +++ b/docs/cli/usage.mdx @@ -39,23 +39,25 @@ infisical init infisical run -- [your application start command] ``` -## Injecting environment variables in custom aliases -Custom aliases can utilize secrets from Infisical. Suppose there is a custom alias `yd` in `custom.sh` that runs `yarn dev` and needs the secrets provided by Infisical. -```bash -#!/bin/sh + + Custom aliases can utilize secrets from Infisical. Suppose there is a custom alias `yd` in `custom.sh` that runs `yarn dev` and needs the secrets provided by Infisical. + ```bash + #!/bin/sh -yd() { - yarn dev -} -``` + yd() { + yarn dev + } + ``` -To make the secrets available from Infisical to `yd`, you can run the following command: + To make the secrets available from Infisical to `yd`, you can run the following command: -```bash -infisical run --command="source custom.sh && yd" -``` + ```bash + infisical run --command="source custom.sh && yd" + ``` + + View all available options for `run` command [here](./commands/run) + -View all available options for `run` command [here](./commands/run) ## Examples: From 6d70dc437ee2cf9be496359b07a7ef68079ab598 Mon Sep 17 00:00:00 2001 From: Maidul Islam Date: Sat, 13 May 2023 11:22:38 -0400 Subject: [PATCH 3/4] update cli usage docs --- docs/cli/usage.mdx | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/docs/cli/usage.mdx b/docs/cli/usage.mdx index 922c0f2d8..f6e06c966 100644 --- a/docs/cli/usage.mdx +++ b/docs/cli/usage.mdx @@ -34,10 +34,12 @@ infisical init ## Inject environment variables -```bash -# inject environment variables into app -infisical run -- [your application start command] -``` + + ```bash + # inject environment variables into app + infisical run -- [your application start command] + ``` + Custom aliases can utilize secrets from Infisical. Suppose there is a custom alias `yd` in `custom.sh` that runs `yarn dev` and needs the secrets provided by Infisical. @@ -54,10 +56,9 @@ infisical run -- [your application start command] ```bash infisical run --command="source custom.sh && yd" ``` - - View all available options for `run` command [here](./commands/run) +View all available options for `run` command [here](./commands/run) ## Examples: From abbf1918dc791d6b5dd685b5c287a91435243324 Mon Sep 17 00:00:00 2001 From: Vladyslav Matsiiako Date: Sun, 14 May 2023 18:25:27 -0700 Subject: [PATCH 4/4] Added limits to the number of projects in an org --- frontend/public/locales/en/translations.json | 4 +-- frontend/src/components/billing/Plan.tsx | 10 +++--- frontend/src/components/v2/Button/Button.tsx | 8 ++--- .../v2/UpgradePlanModal/UpgradePlanModal.tsx | 6 ++-- frontend/src/layouts/AppLayout/AppLayout.tsx | 34 ++++++++++++++++--- frontend/src/pages/settings/billing/[id].tsx | 4 +-- .../ProjectIndexSecretsSection.tsx | 2 +- 7 files changed, 46 insertions(+), 22 deletions(-) diff --git a/frontend/public/locales/en/translations.json b/frontend/public/locales/en/translations.json index 63ccdb2fe..cb43bc1d4 100644 --- a/frontend/public/locales/en/translations.json +++ b/frontend/public/locales/en/translations.json @@ -17,8 +17,8 @@ "starter": { "name": "Starter", "price-explanation": "up to 5 team members", - "text": "Manage any project with 5 members for free!", - "subtext": "$5 per member/month afterwards." + "text": "Manage up to 3 project with up to 5 team members for free!", + "subtext": "" }, "professional": { "name": "Professional", diff --git a/frontend/src/components/billing/Plan.tsx b/frontend/src/components/billing/Plan.tsx index 692157923..2e8a47d2c 100644 --- a/frontend/src/components/billing/Plan.tsx +++ b/frontend/src/components/billing/Plan.tsx @@ -20,8 +20,8 @@ interface Props { export default function Plan({ plan }: Props) { return (
@@ -41,13 +41,13 @@ export default function Plan({ plan }: Props) { <> {plan.buttonTextMain === 'Schedule a Demo' ? ( -
+
{plan.buttonTextMain}
) : (

CURRENT PLAN

diff --git a/frontend/src/components/v2/Button/Button.tsx b/frontend/src/components/v2/Button/Button.tsx index 5edbbef4c..9635227bd 100644 --- a/frontend/src/components/v2/Button/Button.tsx +++ b/frontend/src/components/v2/Button/Button.tsx @@ -16,7 +16,7 @@ const buttonVariants = cva( 'button', 'transition-all', 'font-inter font-medium', - 'cursor-pointer', + 'cursor-default', 'inline-flex items-center justify-center', 'relative', 'whitespace-nowrap' @@ -24,7 +24,7 @@ const buttonVariants = cva( { variants: { colorSchema: { - primary: ['bg-primary', 'text-black', 'border-primary bg-opacity-80 hover:bg-opacity-100'], + primary: ['bg-primary', 'text-black', 'border-primary bg-opacity-90 hover:bg-opacity-100'], secondary: ['bg-mineshaft', 'text-gray-300', 'border-mineshaft hover:bg-opacity-80'], danger: ['bg-red', 'text-white', 'border-red hover:bg-opacity-90'], gray: ['bg-bunker-500', 'text-bunker-200'] @@ -40,7 +40,7 @@ const buttonVariants = cva( }, isDisabled: { true: 'bg-mineshaft-700 border border-mineshaft-600 text-white opacity-50 cursor-not-allowed', - false: 'border border-primary-400' + false: 'border' }, isFullWidth: { true: 'w-full', @@ -111,7 +111,7 @@ const buttonVariants = cva( { colorSchema: 'secondary', variant: 'plain', - className: 'text-mineshaft-300' + className: 'text-mineshaft-300 hover:text-mineshaft-200 border-none' }, { colorSchema: 'danger', diff --git a/frontend/src/components/v2/UpgradePlanModal/UpgradePlanModal.tsx b/frontend/src/components/v2/UpgradePlanModal/UpgradePlanModal.tsx index e991ca3a8..694d6d628 100644 --- a/frontend/src/components/v2/UpgradePlanModal/UpgradePlanModal.tsx +++ b/frontend/src/components/v2/UpgradePlanModal/UpgradePlanModal.tsx @@ -18,7 +18,7 @@ export const UpgradePlanModal = ({ text, isOpen, onOpenChange }: Props): JSX.Ele href={`/settings/billing/${localStorage.getItem('projectData.id') as string}`} key="upgrade-plan" > - + ,