mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-07 08:27:36 +00:00
Lint fix
This commit is contained in:
+1
-1
@@ -597,8 +597,8 @@ export const CertificateIssuanceModal = ({ popUp, handlePopUpToggle, profileId }
|
|||||||
>
|
>
|
||||||
<div className="space-y-2">
|
<div className="space-y-2">
|
||||||
{value.map((san, index) => (
|
{value.map((san, index) => (
|
||||||
// eslint-disable-next-line react/no-array-index-key
|
|
||||||
<div
|
<div
|
||||||
|
// eslint-disable-next-line react/no-array-index-key
|
||||||
key={`subject-alt-name-${index}`}
|
key={`subject-alt-name-${index}`}
|
||||||
className="flex items-center gap-2"
|
className="flex items-center gap-2"
|
||||||
>
|
>
|
||||||
|
|||||||
@@ -29,6 +29,7 @@ export const PoliciesPage = () => {
|
|||||||
</Helmet>
|
</Helmet>
|
||||||
<div className="mx-auto mb-6 w-full max-w-7xl">
|
<div className="mx-auto mb-6 w-full max-w-7xl">
|
||||||
<PageHeader
|
<PageHeader
|
||||||
|
scope="project"
|
||||||
title="Certificate Policies"
|
title="Certificate Policies"
|
||||||
description="Manage certificate templates and profiles for unified certificate issuance"
|
description="Manage certificate templates and profiles for unified certificate issuance"
|
||||||
/>
|
/>
|
||||||
|
|||||||
+1
-3
@@ -148,7 +148,6 @@ export const formatSanEffect = (effect: CertSanEffect): string => {
|
|||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
export const SAN_TYPE_OPTIONS = Object.values(CertSubjectAlternativeNameType);
|
export const SAN_TYPE_OPTIONS = Object.values(CertSubjectAlternativeNameType);
|
||||||
export const KEY_USAGE_OPTIONS = Object.values(CertKeyUsageType);
|
export const KEY_USAGE_OPTIONS = Object.values(CertKeyUsageType);
|
||||||
export const EXTENDED_KEY_USAGE_OPTIONS = Object.values(CertExtendedKeyUsageType);
|
export const EXTENDED_KEY_USAGE_OPTIONS = Object.values(CertExtendedKeyUsageType);
|
||||||
@@ -165,7 +164,7 @@ export const USAGE_STATES = {
|
|||||||
OPTIONAL: "optional"
|
OPTIONAL: "optional"
|
||||||
} as const;
|
} as const;
|
||||||
|
|
||||||
export type UsageState = typeof USAGE_STATES[keyof typeof USAGE_STATES] | undefined;
|
export type UsageState = (typeof USAGE_STATES)[keyof typeof USAGE_STATES] | undefined;
|
||||||
|
|
||||||
export const TEMPLATE_SIGNATURE_ALGORITHMS = [
|
export const TEMPLATE_SIGNATURE_ALGORITHMS = [
|
||||||
"SHA256-RSA",
|
"SHA256-RSA",
|
||||||
@@ -225,4 +224,3 @@ export const mapTemplateKeyAlgorithmToApi = (templateFormat: string): string =>
|
|||||||
};
|
};
|
||||||
return mapping[templateFormat] || templateFormat;
|
return mapping[templateFormat] || templateFormat;
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
+2
-2
@@ -6,8 +6,8 @@ import {
|
|||||||
CertKeyUsageType,
|
CertKeyUsageType,
|
||||||
CertSubjectAlternativeNameType,
|
CertSubjectAlternativeNameType,
|
||||||
CertSubjectAttributeType,
|
CertSubjectAttributeType,
|
||||||
SUBJECT_ATTRIBUTE_INCLUDE_OPTIONS,
|
SAN_INCLUDE_OPTIONS,
|
||||||
SAN_INCLUDE_OPTIONS
|
SUBJECT_ATTRIBUTE_INCLUDE_OPTIONS
|
||||||
} from "./certificate-constants";
|
} from "./certificate-constants";
|
||||||
|
|
||||||
export const uiAttributeSchema = z.object({
|
export const uiAttributeSchema = z.object({
|
||||||
|
|||||||
Reference in New Issue
Block a user