Release 202505311848
This commit is contained in:
@@ -102,7 +102,7 @@ const commentUrl = makeCommentUrl({ serviceSlug, commentId: comment.id, origin:
|
|||||||
{...htmlProps}
|
{...htmlProps}
|
||||||
id={`comment-${comment.id.toString()}`}
|
id={`comment-${comment.id.toString()}`}
|
||||||
class={cn([
|
class={cn([
|
||||||
'group',
|
'group bg-night-700',
|
||||||
depth > 0 && 'ml-3 border-b-0 border-l border-zinc-800 pt-2 pl-2 sm:ml-4',
|
depth > 0 && 'ml-3 border-b-0 border-l border-zinc-800 pt-2 pl-2 sm:ml-4',
|
||||||
comment.author.serviceAffiliations.some((affiliation) => affiliation.service.slug === serviceSlug) &&
|
comment.author.serviceAffiliations.some((affiliation) => affiliation.service.slug === serviceSlug) &&
|
||||||
'bg-[#182a1f]',
|
'bg-[#182a1f]',
|
||||||
@@ -270,12 +270,6 @@ const commentUrl = makeCommentUrl({ serviceSlug, commentId: comment.id, origin:
|
|||||||
|
|
||||||
{comment.suspicious && <BadgeSmall icon="ri:spam-2-fill" color="red" text="Potential SPAM" inlineIcon />}
|
{comment.suspicious && <BadgeSmall icon="ri:spam-2-fill" color="red" text="Potential SPAM" inlineIcon />}
|
||||||
|
|
||||||
{
|
|
||||||
comment.requiresAdminReview && isAuthorOrPrivileged && (
|
|
||||||
<BadgeSmall icon="ri:alert-fill" color="yellow" text="Reported" inlineIcon />
|
|
||||||
)
|
|
||||||
}
|
|
||||||
|
|
||||||
{
|
{
|
||||||
comment.rating !== null && !comment.parentId && (
|
comment.rating !== null && !comment.parentId && (
|
||||||
<Tooltip
|
<Tooltip
|
||||||
@@ -320,6 +314,19 @@ const commentUrl = makeCommentUrl({ serviceSlug, commentId: comment.id, origin:
|
|||||||
color={commentStatusById.REJECTED.color}
|
color={commentStatusById.REJECTED.color}
|
||||||
text={commentStatusById.REJECTED.label}
|
text={commentStatusById.REJECTED.label}
|
||||||
inlineIcon
|
inlineIcon
|
||||||
|
endIcon="ri:lock-line"
|
||||||
|
/>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
{
|
||||||
|
comment.requiresAdminReview && isAuthorOrPrivileged && (
|
||||||
|
<BadgeSmall
|
||||||
|
icon="ri:alert-fill"
|
||||||
|
color="yellow"
|
||||||
|
text="Needs admin review"
|
||||||
|
inlineIcon
|
||||||
|
endIcon="ri:lock-line"
|
||||||
/>
|
/>
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -89,7 +89,7 @@ if (!user || !user.admin || !user.moderator) return null
|
|||||||
data-comment-id={comment.id}
|
data-comment-id={comment.id}
|
||||||
data-user-id={user.id}
|
data-user-id={user.id}
|
||||||
>
|
>
|
||||||
{comment.requiresAdminReview ? 'No Admin Review' : 'Admin Review'}
|
{comment.requiresAdminReview ? 'No Admin Review' : 'Needs Admin Review'}
|
||||||
</button>
|
</button>
|
||||||
|
|
||||||
<button
|
<button
|
||||||
|
|||||||
@@ -92,7 +92,7 @@ const userCommentsDisabled = user ? user.karmaUnlocks.commentsDisabled : false
|
|||||||
<div class="flex flex-wrap gap-4">
|
<div class="flex flex-wrap gap-4">
|
||||||
<InputRating name="rating" label="Rating" />
|
<InputRating name="rating" label="Rating" />
|
||||||
|
|
||||||
<InputWrapper label="Tags" name="tags">
|
<InputWrapper label="I experienced..." name="tags">
|
||||||
<label class="flex cursor-pointer items-center gap-2">
|
<label class="flex cursor-pointer items-center gap-2">
|
||||||
<input type="checkbox" name="issueKycRequested" class="text-red-400" />
|
<input type="checkbox" name="issueKycRequested" class="text-red-400" />
|
||||||
<span class="flex items-center gap-1 text-xs text-red-400">
|
<span class="flex items-center gap-1 text-xs text-red-400">
|
||||||
|
|||||||
@@ -87,6 +87,25 @@ function makeLink(url: string, referral: string | null) {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
const bitcointalkMatch = /^(?:https?:\/\/)?(?:www\.)?bitcointalk\.org$/.exec(hostname)
|
||||||
|
if (bitcointalkMatch) {
|
||||||
|
return {
|
||||||
|
type: 'clearnet' as const,
|
||||||
|
url: urlWithReferral,
|
||||||
|
textBits: [
|
||||||
|
{
|
||||||
|
style: 'normal',
|
||||||
|
text: 'BitcoinTalk ',
|
||||||
|
},
|
||||||
|
{
|
||||||
|
style: 'irrelevant',
|
||||||
|
text: 'thread',
|
||||||
|
},
|
||||||
|
],
|
||||||
|
icon: networksBySlug.clearnet.icon,
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
type: 'clearnet' as const,
|
type: 'clearnet' as const,
|
||||||
url: urlWithReferral,
|
url: urlWithReferral,
|
||||||
|
|||||||
@@ -34,6 +34,7 @@ import {
|
|||||||
verificationStepStatuses,
|
verificationStepStatuses,
|
||||||
} from '../../../../constants/verificationStepStatus'
|
} from '../../../../constants/verificationStepStatus'
|
||||||
import BaseLayout from '../../../../layouts/BaseLayout.astro'
|
import BaseLayout from '../../../../layouts/BaseLayout.astro'
|
||||||
|
import { DEPLOYMENT_MODE } from '../../../../lib/envVariables'
|
||||||
import { makeAdminApiCallInfo } from '../../../../lib/makeAdminApiCallInfo'
|
import { makeAdminApiCallInfo } from '../../../../lib/makeAdminApiCallInfo'
|
||||||
import { pluralize } from '../../../../lib/pluralize'
|
import { pluralize } from '../../../../lib/pluralize'
|
||||||
import { prisma } from '../../../../lib/prisma'
|
import { prisma } from '../../../../lib/prisma'
|
||||||
@@ -1118,6 +1119,14 @@ const apiCalls = await Astro.locals.banners.try(
|
|||||||
</FormSection>
|
</FormSection>
|
||||||
|
|
||||||
<FormSection title="API">
|
<FormSection title="API">
|
||||||
|
{
|
||||||
|
DEPLOYMENT_MODE === 'staging' && (
|
||||||
|
<p class="rounded-lg bg-red-900/30 p-4 text-sm text-red-200">
|
||||||
|
<Icon name="ri:alert-line" class="inline-block size-4 align-[-0.2em] text-red-400" />
|
||||||
|
This endpoints section doesn't work in PRE. Use curl commands instead.
|
||||||
|
</p>
|
||||||
|
)
|
||||||
|
}
|
||||||
{
|
{
|
||||||
apiCalls.map((call) => (
|
apiCalls.map((call) => (
|
||||||
<FormSubSection title={`${call.method} ${call.path}`}>
|
<FormSubSection title={`${call.method} ${call.path}`}>
|
||||||
|
|||||||
Reference in New Issue
Block a user