mirror of
https://github.com/awatertrevi/infisical.git
synced 2026-10-06 09:26:47 +00:00
fix tw lint error
This commit is contained in:
@@ -28,26 +28,26 @@ export const PamSessionLogsSection = ({ session }: Props) => {
|
|||||||
const hasLogs = session.logs.length > 0;
|
const hasLogs = session.logs.length > 0;
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="border-mineshaft-600 bg-mineshaft-900 flex h-full w-full flex-col gap-4 rounded-lg border p-4">
|
<div className="flex h-full w-full flex-col gap-4 rounded-lg border border-mineshaft-600 bg-mineshaft-900 p-4">
|
||||||
<div className="border-mineshaft-400 flex items-center border-b pb-4">
|
<div className="flex items-center border-b border-mineshaft-400 pb-4">
|
||||||
<h3 className="text-mineshaft-100 text-lg font-medium">Session Logs</h3>
|
<h3 className="text-lg font-medium text-mineshaft-100">Session Logs</h3>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
{isDatabaseSession && hasLogs && <CommandLogView logs={session.logs as TPamCommandLog[]} />}
|
{isDatabaseSession && hasLogs && <CommandLogView logs={session.logs as TPamCommandLog[]} />}
|
||||||
{isSSHSession && hasLogs && <TerminalEventView events={session.logs as TTerminalEvent[]} />}
|
{isSSHSession && hasLogs && <TerminalEventView events={session.logs as TTerminalEvent[]} />}
|
||||||
{isHttpSession && hasLogs && <HttpEventView events={session.logs as THttpEvent[]} />}
|
{isHttpSession && hasLogs && <HttpEventView events={session.logs as THttpEvent[]} />}
|
||||||
{isAwsIamSession && (
|
{isAwsIamSession && (
|
||||||
<div className="text-bunker-300 flex grow items-center justify-center">
|
<div className="flex grow items-center justify-center text-bunker-300">
|
||||||
<div className="text-center">
|
<div className="text-center">
|
||||||
<div className="mb-2">AWS Console session activity is logged in AWS CloudTrail</div>
|
<div className="mb-2">AWS Console session activity is logged in AWS CloudTrail</div>
|
||||||
<div className="text-bunker-400 text-xs">
|
<div className="text-xs text-bunker-400">
|
||||||
View detailed activity logs for this session in your AWS CloudTrail console.
|
View detailed activity logs for this session in your AWS CloudTrail console.
|
||||||
<br />
|
<br />
|
||||||
<a
|
<a
|
||||||
href="https://console.aws.amazon.com/cloudtrail"
|
href="https://console.aws.amazon.com/cloudtrail"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
rel="noopener noreferrer"
|
rel="noopener noreferrer"
|
||||||
className="text-primary-400 hover:text-primary-300 mt-2 inline-flex items-center gap-1"
|
className="mt-2 inline-flex items-center gap-1 text-primary-400 hover:text-primary-300"
|
||||||
>
|
>
|
||||||
Open AWS CloudTrail
|
Open AWS CloudTrail
|
||||||
<FontAwesomeIcon icon={faUpRightFromSquare} className="size-3" />
|
<FontAwesomeIcon icon={faUpRightFromSquare} className="size-3" />
|
||||||
@@ -57,10 +57,10 @@ export const PamSessionLogsSection = ({ session }: Props) => {
|
|||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{!hasLogs && !isAwsIamSession && (
|
{!hasLogs && !isAwsIamSession && (
|
||||||
<div className="text-bunker-300 flex grow items-center justify-center">
|
<div className="flex grow items-center justify-center text-bunker-300">
|
||||||
<div className="text-center">
|
<div className="text-center">
|
||||||
<div className="mb-2">Session logs are not yet available</div>
|
<div className="mb-2">Session logs are not yet available</div>
|
||||||
<div className="text-bunker-400 text-xs">
|
<div className="text-xs text-bunker-400">
|
||||||
Logs will be uploaded after the session duration has elapsed.
|
Logs will be uploaded after the session duration has elapsed.
|
||||||
<br />
|
<br />
|
||||||
If logs do not appear after some time, please contact your Gateway administrators.
|
If logs do not appear after some time, please contact your Gateway administrators.
|
||||||
|
|||||||
Reference in New Issue
Block a user