Skip to content

Commit

Permalink
prettier
Browse files Browse the repository at this point in the history
  • Loading branch information
Linko91 committed Aug 27, 2024
1 parent c71c340 commit 3b3e79b
Show file tree
Hide file tree
Showing 11 changed files with 31 additions and 31 deletions.
2 changes: 1 addition & 1 deletion frontend/src/api/endpoints/soc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ export default {
time_unit: payload?.unit || "days"
}
/*eslint no-mixed-spaces-and-tabs: "off"*/
}
}
: undefined
)
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@
<div class="grid gap-2 grid-auto-fit-200 p-7 pt-4" v-if="properties">
<KVCard v-for="(value, key) of properties" :key="key">
<template #key>{{ key }}</template>
<template #value>{{ value === "" ? "-" : value ?? "-" }}</template>
<template #value>{{ value === "" ? "-" : (value ?? "-") }}</template>
</KVCard>
</div>
</n-tab-pane>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/agents/sca/ScaResultItemDetails.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
data.result === 'failed'
? 'text-error-color'
: data.result === 'not applicable'
? 'text-warning-color'
: 'text-success-color'
? 'text-warning-color'
: 'text-success-color'
"
>
{{ data.result }}
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/auth/AuthForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@ const title = computed<string>(() =>
typeRef.value === "signin"
? "SOCFortress CoPilot"
: typeRef.value === "signup"
? "SOCFortress CoPilot"
: "Forgot Password"
? "SOCFortress CoPilot"
: "Forgot Password"
)
function gotoSignIn() {
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/components/cards/CardActions.vue
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ const menuOptions = computed(() =>
key: "reload",
icon: renderIcon(ReloadIcon)
}
]
]
: [
{
label: "Collapse",
Expand All @@ -83,7 +83,7 @@ const menuOptions = computed(() =>
key: "reload",
icon: renderIcon(ReloadIcon)
}
]
]
)
function menuSelect(key: string) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
<Icon :name="ViewIcon" :size="14" class="top-0.5 relative" />
</code>
</div>
<div v-else>{{ value === "" ? "-" : value ?? "-" }}</div>
<div v-else>{{ value === "" ? "-" : (value ?? "-") }}</div>
</template>
</KVCard>
</div>
Expand Down Expand Up @@ -61,7 +61,7 @@
<Icon :name="LinkIcon" :size="14" class="top-0.5 relative" />
</code>
</div>
<div v-else>{{ value === "" ? "-" : value ?? "-" }}</div>
<div v-else>{{ value === "" ? "-" : (value ?? "-") }}</div>
</template>
</KVCard>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@
<Icon :name="LinkIcon" :size="14" class="top-0.5 relative" />
</code>
</div>
<div v-else>{{ value === "" ? "-" : value ?? "-" }}</div>
<div v-else>{{ value === "" ? "-" : (value ?? "-") }}</div>
</template>
</KVCard>
</div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@
alert.status === 'OPEN'
? 'danger'
: alert.status === 'IN_PROGRESS'
? 'warning'
: 'success'
? 'warning'
: 'success'
"
>
<template #iconLeft>
Expand Down Expand Up @@ -96,8 +96,8 @@
alert.status === 'OPEN'
? 'danger'
: alert.status === 'IN_PROGRESS'
? 'warning'
: 'success'
? 'warning'
: 'success'
"
>
<template #iconLeft>
Expand Down
16 changes: 8 additions & 8 deletions frontend/src/components/incidentManagement/cases/CaseItem.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,10 @@
caseEntity.case_status === 'OPEN'
? 'danger'
: caseEntity.case_status === 'IN_PROGRESS'
? 'warning'
: caseEntity.case_status === 'CLOSED'
? 'success'
: undefined
? 'warning'
: caseEntity.case_status === 'CLOSED'
? 'success'
: undefined
"
>
<template #iconLeft>
Expand Down Expand Up @@ -80,10 +80,10 @@
caseEntity.case_status === 'OPEN'
? 'danger'
: caseEntity.case_status === 'IN_PROGRESS'
? 'warning'
: caseEntity.case_status === 'CLOSED'
? 'success'
: undefined
? 'warning'
: caseEntity.case_status === 'CLOSED'
? 'success'
: undefined
"
>
<template #iconLeft>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
caseData.case_status === 'OPEN'
? 'danger'
: caseData.case_status === 'IN_PROGRESS'
? 'warning'
: caseData.case_status === 'CLOSED'
? 'success'
: undefined
? 'warning'
: caseData.case_status === 'CLOSED'
? 'success'
: undefined
"
size="lg"
class="grow w-full"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@
status === 'OPEN'
? WarningIcon
: status === 'IN_PROGRESS'
? ProgressIcon
: status === 'CLOSED'
? CheckIcon
: UnknownIcon
? ProgressIcon
: status === 'CLOSED'
? CheckIcon
: UnknownIcon
"
:size="size || 16"
/>
Expand Down

0 comments on commit 3b3e79b

Please sign in to comment.