mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-05 13:26:31 +00:00
greptile review fixes
This commit is contained in:
+1
-1
@@ -301,7 +301,7 @@ export const GatewayCliDeploymentMethod = () => {
|
|||||||
<>
|
<>
|
||||||
<FormLabel
|
<FormLabel
|
||||||
label="Identity Token"
|
label="Identity Token"
|
||||||
tooltipText="The identity token that your relay will use for authentication."
|
tooltipText="The identity token that your gateway will use for authentication."
|
||||||
className="mt-4"
|
className="mt-4"
|
||||||
/>
|
/>
|
||||||
<Input
|
<Input
|
||||||
|
|||||||
+1
-1
@@ -323,7 +323,7 @@ export const GatewayCliSystemdDeploymentMethod = () => {
|
|||||||
<>
|
<>
|
||||||
<FormLabel
|
<FormLabel
|
||||||
label="Identity Token"
|
label="Identity Token"
|
||||||
tooltipText="The identity token that your relay will use for authentication."
|
tooltipText="The identity token that your gateway will use for authentication."
|
||||||
className="mt-4"
|
className="mt-4"
|
||||||
/>
|
/>
|
||||||
<Input
|
<Input
|
||||||
|
|||||||
+1
-10
@@ -156,15 +156,6 @@ export const RelayCliDeploymentMethod = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleIdentityChange = (
|
|
||||||
selectedIdentity: SingleValue<{
|
|
||||||
id: string;
|
|
||||||
name: string;
|
|
||||||
}>
|
|
||||||
) => {
|
|
||||||
setIdentity(selectedIdentity);
|
|
||||||
};
|
|
||||||
|
|
||||||
const command = useMemo(() => {
|
const command = useMemo(() => {
|
||||||
return `infisical relay start --name=${name} --domain=${siteURL} --host=${host} --token=${identityToken}`;
|
return `infisical relay start --name=${name} --domain=${siteURL} --host=${host} --token=${identityToken}`;
|
||||||
}, [name, siteURL, host, identityToken]);
|
}, [name, siteURL, host, identityToken]);
|
||||||
@@ -245,7 +236,7 @@ export const RelayCliDeploymentMethod = () => {
|
|||||||
<FilterableSelect
|
<FilterableSelect
|
||||||
value={identity}
|
value={identity}
|
||||||
onChange={(e) =>
|
onChange={(e) =>
|
||||||
handleIdentityChange(
|
setIdentity(
|
||||||
e as SingleValue<{
|
e as SingleValue<{
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
|||||||
+1
-10
@@ -156,15 +156,6 @@ export const RelayCliSystemdDeploymentMethod = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleIdentityChange = (
|
|
||||||
selectedIdentity: SingleValue<{
|
|
||||||
id: string;
|
|
||||||
name: string;
|
|
||||||
}>
|
|
||||||
) => {
|
|
||||||
setIdentity(selectedIdentity);
|
|
||||||
};
|
|
||||||
|
|
||||||
const installCommand = useMemo(() => {
|
const installCommand = useMemo(() => {
|
||||||
return `sudo infisical relay systemd install --name=${name} --domain=${siteURL} --host=${host} --token=${identityToken}`;
|
return `sudo infisical relay systemd install --name=${name} --domain=${siteURL} --host=${host} --token=${identityToken}`;
|
||||||
}, [name, siteURL, host, identityToken]);
|
}, [name, siteURL, host, identityToken]);
|
||||||
@@ -286,7 +277,7 @@ export const RelayCliSystemdDeploymentMethod = () => {
|
|||||||
<FilterableSelect
|
<FilterableSelect
|
||||||
value={identity}
|
value={identity}
|
||||||
onChange={(e) =>
|
onChange={(e) =>
|
||||||
handleIdentityChange(
|
setIdentity(
|
||||||
e as SingleValue<{
|
e as SingleValue<{
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
|||||||
+1
-10
@@ -190,15 +190,6 @@ export const RelayTerraformDeploymentMethod = () => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleIdentityChange = (
|
|
||||||
selectedIdentity: SingleValue<{
|
|
||||||
id: string;
|
|
||||||
name: string;
|
|
||||||
}>
|
|
||||||
) => {
|
|
||||||
setIdentity(selectedIdentity);
|
|
||||||
};
|
|
||||||
|
|
||||||
const terraformCommand = useMemo(() => {
|
const terraformCommand = useMemo(() => {
|
||||||
return `terraform {
|
return `terraform {
|
||||||
required_providers {
|
required_providers {
|
||||||
@@ -365,7 +356,7 @@ resource "aws_eip_association" "eip_assoc" {
|
|||||||
<FilterableSelect
|
<FilterableSelect
|
||||||
value={identity}
|
value={identity}
|
||||||
onChange={(e) =>
|
onChange={(e) =>
|
||||||
handleIdentityChange(
|
setIdentity(
|
||||||
e as SingleValue<{
|
e as SingleValue<{
|
||||||
id: string;
|
id: string;
|
||||||
name: string;
|
name: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user