Release 2025-05-22-5X5Q
This commit is contained in:
@@ -38,8 +38,12 @@ const {
|
|||||||
const hasScams =
|
const hasScams =
|
||||||
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
// eslint-disable-next-line @typescript-eslint/prefer-nullish-coalescing
|
||||||
filters.verification.includes('VERIFICATION_FAILED') || includeScams
|
filters.verification.includes('VERIFICATION_FAILED') || includeScams
|
||||||
|
const hasSomeScam = !!services?.some((service) => service.verificationStatus.includes('VERIFICATION_FAILED'))
|
||||||
|
|
||||||
const hasCommunityContributed = filters.verification.includes('COMMUNITY_CONTRIBUTED')
|
const hasCommunityContributed = filters.verification.includes('COMMUNITY_CONTRIBUTED')
|
||||||
|
const hasSomeCommunityContributed = !!services?.some((service) =>
|
||||||
|
service.verificationStatus.includes('COMMUNITY_CONTRIBUTED')
|
||||||
|
)
|
||||||
|
|
||||||
const totalPages = Math.ceil(total / pageSize) || 1
|
const totalPages = Math.ceil(total / pageSize) || 1
|
||||||
---
|
---
|
||||||
@@ -63,29 +67,36 @@ const totalPages = Math.ceil(total / pageSize) || 1
|
|||||||
|
|
||||||
{
|
{
|
||||||
hasScams && hasCommunityContributed && (
|
hasScams && hasCommunityContributed && (
|
||||||
<div class="font-title mb-6 rounded-lg border border-red-500/30 bg-red-950 p-4 text-sm text-red-500">
|
<div class="font-title mb-6 rounded-lg border border-red-500/30 bg-red-950 px-3 py-2 text-sm text-pretty text-red-500">
|
||||||
<Icon name="ri:alert-fill" class="-mr-1 inline-block size-4 text-red-500" />
|
<Icon name="ri:alert-fill" class="inline-block size-4 shrink-0 align-[-0.2em] text-red-500" />
|
||||||
<Icon name="ri:question-line" class="mr-2 inline-block size-4 text-yellow-500" />
|
<Icon
|
||||||
Showing SCAM and unverified community-contributed services.
|
name="ri:question-line"
|
||||||
{includeScams && 'Because there is a text query.'}
|
class="mr-1 inline-block size-4 shrink-0 align-[-0.2em] text-yellow-500"
|
||||||
|
/>
|
||||||
|
Results {hasSomeScam || hasSomeCommunityContributed ? 'include' : 'may include'} SCAMS or
|
||||||
|
community-contributed services.
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
hasScams && !hasCommunityContributed && (
|
hasScams && !hasCommunityContributed && (
|
||||||
<div class="font-title mb-6 rounded-lg border border-red-500/30 bg-red-950 p-4 text-sm text-red-500">
|
<div class="font-title mb-6 rounded-lg border border-red-500/30 bg-red-950 px-3 py-2 text-sm text-pretty text-red-500">
|
||||||
<Icon name="ri:alert-fill" class="mr-2 inline-block size-4 text-red-500" />
|
<Icon name="ri:alert-fill" class="mr-1 inline-block size-4 shrink-0 align-[-0.2em] text-red-500" />
|
||||||
{includeScams ? 'Showing SCAM services because there is a text query.' : 'Showing SCAM services!'}
|
Results {hasSomeScam ? 'include' : 'may include'} SCAM services
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|
||||||
{
|
{
|
||||||
!hasScams && hasCommunityContributed && (
|
!hasScams && hasCommunityContributed && (
|
||||||
<div class="font-title mb-6 rounded-lg border border-yellow-500/30 bg-yellow-950 p-4 text-sm text-yellow-500">
|
<div class="font-title mb-6 rounded-lg border border-yellow-500/30 bg-yellow-950 px-3 py-2 text-sm text-pretty text-yellow-500">
|
||||||
<Icon name="ri:question-line" class="mr-2 inline-block size-4" />
|
<Icon
|
||||||
Showing unverified community-contributed services, some might be scams.
|
name="ri:question-line"
|
||||||
|
class="mr-1 inline-block size-4 shrink-0 align-[-0.2em] text-yellow-500"
|
||||||
|
/>
|
||||||
|
Results {hasSomeCommunityContributed ? 'include' : 'may include'} unverified community-contributed
|
||||||
|
services, some might be scams.
|
||||||
</div>
|
</div>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user