Release 2025-05-21-AQ5C
This commit is contained in:
@@ -180,7 +180,8 @@ const makeSortUrl = (slug: NonNullable<(typeof filters)['sort-by']>) => {
|
||||
required
|
||||
rows="3"
|
||||
class="mt-1 w-full rounded-md border border-zinc-700 bg-zinc-900 px-3 py-2 text-sm text-zinc-200 placeholder-zinc-500 focus:border-green-500 focus:ring-green-500 focus:outline-none"
|
||||
></textarea>
|
||||
set:text=""
|
||||
/>
|
||||
{
|
||||
createInputErrors.description && (
|
||||
<p class="mt-1 text-sm text-red-400">{createInputErrors.description.join(', ')}</p>
|
||||
@@ -593,9 +594,8 @@ const makeSortUrl = (slug: NonNullable<(typeof filters)['sort-by']>) => {
|
||||
required
|
||||
rows="3"
|
||||
class="mt-1 w-full rounded-md border border-zinc-600 bg-zinc-800 px-3 py-2 text-sm text-zinc-200 placeholder-zinc-500 focus:border-blue-500 focus:ring-blue-500 focus:outline-none"
|
||||
>
|
||||
{attribute.description}
|
||||
</textarea>
|
||||
set:text={attribute.description}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<div class="grid grid-cols-2 gap-4 sm:grid-cols-4">
|
||||
|
||||
@@ -127,7 +127,7 @@ const statusInfo = getServiceSuggestionStatusInfo(serviceSuggestion.status)
|
||||
|
||||
<span class="font-title text-gray-400">Submitted by:</span>
|
||||
<span class="text-gray-300">
|
||||
<a href={`/admin/users?name=${serviceSuggestion.user.name}`} class="hover:text-green-500">
|
||||
<a href={`/admin/users/${serviceSuggestion.user.name}`} class="hover:text-green-500">
|
||||
{serviceSuggestion.user.name}
|
||||
</a>
|
||||
</span>
|
||||
@@ -148,9 +148,10 @@ const statusInfo = getServiceSuggestionStatusInfo(serviceSuggestion.status)
|
||||
serviceSuggestion.notes && (
|
||||
<div class="mb-4">
|
||||
<h3 class="font-title mb-1 text-sm text-gray-400">Notes from user:</h3>
|
||||
<div class="rounded-md border border-gray-700 bg-black/50 p-3 text-sm whitespace-pre-wrap text-gray-300">
|
||||
{serviceSuggestion.notes}
|
||||
</div>
|
||||
<div
|
||||
class="rounded-md border border-gray-700 bg-black/50 p-3 text-sm wrap-anywhere whitespace-pre-wrap text-gray-300"
|
||||
set:text={serviceSuggestion.notes}
|
||||
/>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
|
||||
@@ -293,7 +293,7 @@ const makeSortUrl = (slug: string) => {
|
||||
</div>
|
||||
</td>
|
||||
<td class="px-4 py-3">
|
||||
<a href={`/admin/users?name=${suggestion.user.name}`} class="hover:text-green-500">
|
||||
<a href={`/admin/users/${suggestion.user.name}`} class="hover:text-green-500">
|
||||
{suggestion.user.name}
|
||||
</a>
|
||||
</td>
|
||||
|
||||
@@ -211,8 +211,9 @@ const buttonSmallWarningClasses = cn(
|
||||
id="description"
|
||||
required
|
||||
rows={4}
|
||||
class={inputBaseClasses}>{service.description}</textarea
|
||||
>
|
||||
class={inputBaseClasses}
|
||||
set:text={service.description}
|
||||
/>
|
||||
{
|
||||
serviceInputErrors.description && (
|
||||
<p class={errorTextClasses}>{serviceInputErrors.description.join(', ')}</p>
|
||||
@@ -243,8 +244,8 @@ const buttonSmallWarningClasses = cn(
|
||||
id="serviceUrls"
|
||||
rows={3}
|
||||
placeholder="https://example1.com\nhttps://example2.com"
|
||||
>{service.serviceUrls.join('\n')}</textarea
|
||||
>
|
||||
set:text={service.serviceUrls.join('\n')}
|
||||
/>
|
||||
{
|
||||
serviceInputErrors.serviceUrls && (
|
||||
<p class={errorTextClasses}>{serviceInputErrors.serviceUrls.join(', ')}</p>
|
||||
@@ -260,8 +261,8 @@ const buttonSmallWarningClasses = cn(
|
||||
id="tosUrls"
|
||||
rows={3}
|
||||
placeholder="https://example1.com/tos\nhttps://example2.com/tos"
|
||||
>{service.tosUrls.join('\n')}</textarea
|
||||
>
|
||||
set:text={service.tosUrls.join('\n')}
|
||||
/>
|
||||
{
|
||||
serviceInputErrors.tosUrls && (
|
||||
<p class={errorTextClasses}>{serviceInputErrors.tosUrls.join(', ')}</p>
|
||||
@@ -277,8 +278,8 @@ const buttonSmallWarningClasses = cn(
|
||||
id="onionUrls"
|
||||
rows={3}
|
||||
placeholder="http://example1.onion\nhttp://example2.onion"
|
||||
>{service.onionUrls.join('\n')}</textarea
|
||||
>
|
||||
set:text={service.onionUrls.join('\n')}
|
||||
/>
|
||||
{
|
||||
serviceInputErrors.onionUrls && (
|
||||
<p class={errorTextClasses}>{serviceInputErrors.onionUrls.join(', ')}</p>
|
||||
@@ -294,8 +295,8 @@ const buttonSmallWarningClasses = cn(
|
||||
id="i2pUrls"
|
||||
rows={3}
|
||||
placeholder="http://example1.b32.i2p\nhttp://example2.b32.i2p"
|
||||
>{service.i2pUrls.join('\n')}</textarea
|
||||
>
|
||||
set:text={service.i2pUrls.join('\n')}
|
||||
/>
|
||||
{/* Assuming i2pUrls might have errors, add error display if schema supports it */}
|
||||
{
|
||||
/* serviceInputErrors.i2pUrls && (
|
||||
@@ -515,8 +516,9 @@ const buttonSmallWarningClasses = cn(
|
||||
class={inputBaseClasses}
|
||||
name="verificationSummary"
|
||||
id="verificationSummary"
|
||||
rows={4}>{service.verificationSummary}</textarea
|
||||
>
|
||||
rows={4}
|
||||
set:text={service.verificationSummary}
|
||||
/>
|
||||
{
|
||||
serviceInputErrors.verificationSummary && (
|
||||
<p class={errorTextClasses}>{serviceInputErrors.verificationSummary.join(', ')}</p>
|
||||
@@ -531,8 +533,9 @@ const buttonSmallWarningClasses = cn(
|
||||
class={inputBaseClasses}
|
||||
name="verificationProofMd"
|
||||
id="verificationProofMd"
|
||||
rows={8}>{service.verificationProofMd}</textarea
|
||||
>
|
||||
rows={8}
|
||||
set:text={service.verificationProofMd}
|
||||
/>
|
||||
{
|
||||
serviceInputErrors.verificationProofMd && (
|
||||
<p class={errorTextClasses}>{serviceInputErrors.verificationProofMd.join(', ')}</p>
|
||||
@@ -731,9 +734,8 @@ const buttonSmallWarningClasses = cn(
|
||||
required
|
||||
rows={3}
|
||||
class={inputBaseClasses}
|
||||
>
|
||||
{event.content}
|
||||
</textarea>
|
||||
set:text={event.content}
|
||||
/>
|
||||
{eventUpdateInputErrors.content && (
|
||||
<p class={errorTextClasses}>{eventUpdateInputErrors.content.join(', ')}</p>
|
||||
)}
|
||||
@@ -847,8 +849,14 @@ const buttonSmallWarningClasses = cn(
|
||||
</div>
|
||||
<div>
|
||||
<label for="newEventContent" class={labelBaseClasses}>Content</label>
|
||||
<textarea name="content" id="newEventContent" required rows={3} class={inputBaseClasses}
|
||||
></textarea>
|
||||
<textarea
|
||||
name="content"
|
||||
id="newEventContent"
|
||||
required
|
||||
rows={3}
|
||||
class={inputBaseClasses}
|
||||
set:text=""
|
||||
/>
|
||||
{
|
||||
eventInputErrors.content && (
|
||||
<p class={errorTextClasses}>{eventInputErrors.content.join(', ')}</p>
|
||||
@@ -1014,9 +1022,8 @@ const buttonSmallWarningClasses = cn(
|
||||
id={`stepDescriptionEdit-${step.id}`}
|
||||
rows={2}
|
||||
class={inputBaseClasses}
|
||||
>
|
||||
{step.description}
|
||||
</textarea>
|
||||
set:text={step.description}
|
||||
/>
|
||||
{verificationStepUpdateInputErrors.description && (
|
||||
<p class={errorTextClasses}>
|
||||
{verificationStepUpdateInputErrors.description.join(', ')}
|
||||
@@ -1032,9 +1039,8 @@ const buttonSmallWarningClasses = cn(
|
||||
id={`stepEvidenceMdEdit-${step.id}`}
|
||||
rows={4}
|
||||
class={inputBaseClasses}
|
||||
>
|
||||
{step.evidenceMd}
|
||||
</textarea>
|
||||
set:text={step.evidenceMd}
|
||||
/>
|
||||
{verificationStepUpdateInputErrors.evidenceMd && (
|
||||
<p class={errorTextClasses}>
|
||||
{verificationStepUpdateInputErrors.evidenceMd.join(', ')}
|
||||
@@ -1104,8 +1110,14 @@ const buttonSmallWarningClasses = cn(
|
||||
</div>
|
||||
<div>
|
||||
<label for="newStepDescription" class={labelBaseClasses}>Description (Max 200 chars)</label>
|
||||
<textarea name="description" id="newStepDescription" required rows={3} class={inputBaseClasses}
|
||||
></textarea>
|
||||
<textarea
|
||||
name="description"
|
||||
id="newStepDescription"
|
||||
required
|
||||
rows={3}
|
||||
class={inputBaseClasses}
|
||||
set:text=""
|
||||
/>
|
||||
{
|
||||
verificationStepInputErrors.description && (
|
||||
<p class={errorTextClasses}>{verificationStepInputErrors.description.join(', ')}</p>
|
||||
@@ -1114,7 +1126,13 @@ const buttonSmallWarningClasses = cn(
|
||||
</div>
|
||||
<div>
|
||||
<label for="newStepEvidenceMd" class={labelBaseClasses}>Evidence (Markdown)</label>
|
||||
<textarea name="evidenceMd" id="newStepEvidenceMd" rows={5} class={inputBaseClasses}></textarea>
|
||||
<textarea
|
||||
name="evidenceMd"
|
||||
id="newStepEvidenceMd"
|
||||
rows={5}
|
||||
class={inputBaseClasses}
|
||||
set:text=""
|
||||
/>
|
||||
{
|
||||
verificationStepInputErrors.evidenceMd && (
|
||||
<p class={errorTextClasses}>{verificationStepInputErrors.evidenceMd.join(', ')}</p>
|
||||
|
||||
@@ -64,7 +64,8 @@ const inputErrors = isInputError(result?.error) ? result.error.fields : {}
|
||||
id="description"
|
||||
required
|
||||
class="font-title w-full rounded-md border border-green-500/30 bg-black/50 p-2 text-gray-300 placeholder-gray-500 focus:border-green-500 focus:ring-green-500"
|
||||
></textarea>
|
||||
set:text=""
|
||||
/>
|
||||
{
|
||||
inputErrors.description && (
|
||||
<p class="font-title mt-1 text-sm text-red-500">{inputErrors.description.join(', ')}</p>
|
||||
@@ -80,7 +81,9 @@ const inputErrors = isInputError(result?.error) ? result.error.fields : {}
|
||||
name="serviceUrls"
|
||||
id="serviceUrls"
|
||||
rows={3}
|
||||
placeholder="https://example1.com https://example2.com"></textarea>
|
||||
placeholder="https://example1.com https://example2.com"
|
||||
set:text=""
|
||||
/>
|
||||
{
|
||||
inputErrors.serviceUrls && (
|
||||
<p class="font-title mt-1 text-sm text-red-500">{inputErrors.serviceUrls.join(', ')}</p>
|
||||
@@ -96,7 +99,9 @@ const inputErrors = isInputError(result?.error) ? result.error.fields : {}
|
||||
name="tosUrls"
|
||||
id="tosUrls"
|
||||
rows={3}
|
||||
placeholder="https://example1.com/tos https://example2.com/tos"></textarea>
|
||||
placeholder="https://example1.com/tos https://example2.com/tos"
|
||||
set:text=""
|
||||
/>
|
||||
{
|
||||
inputErrors.tosUrls && (
|
||||
<p class="font-title mt-1 text-sm text-red-500">{inputErrors.tosUrls.join(', ')}</p>
|
||||
@@ -112,7 +117,9 @@ const inputErrors = isInputError(result?.error) ? result.error.fields : {}
|
||||
name="onionUrls"
|
||||
id="onionUrls"
|
||||
rows={3}
|
||||
placeholder="http://example.onion"></textarea>
|
||||
placeholder="http://example.onion"
|
||||
set:text=""
|
||||
/>
|
||||
{
|
||||
inputErrors.onionUrls && (
|
||||
<p class="font-title mt-1 text-sm text-red-500">{inputErrors.onionUrls.join(', ')}</p>
|
||||
@@ -266,7 +273,9 @@ const inputErrors = isInputError(result?.error) ? result.error.fields : {}
|
||||
class="font-title w-full rounded-md border border-green-500/30 bg-black/50 p-2 text-gray-300 placeholder-gray-500 focus:border-green-500 focus:ring-green-500"
|
||||
name="verificationSummary"
|
||||
id="verificationSummary"
|
||||
rows={3}></textarea>
|
||||
rows={3}
|
||||
set:text=""
|
||||
/>
|
||||
{
|
||||
inputErrors.verificationSummary && (
|
||||
<p class="font-title mt-1 text-sm text-red-500">{inputErrors.verificationSummary.join(', ')}</p>
|
||||
@@ -283,7 +292,9 @@ const inputErrors = isInputError(result?.error) ? result.error.fields : {}
|
||||
class="font-title w-full rounded-md border border-green-500/30 bg-black/50 p-2 text-gray-300 placeholder-gray-500 focus:border-green-500 focus:ring-green-500"
|
||||
name="verificationProofMd"
|
||||
id="verificationProofMd"
|
||||
rows={10}></textarea>
|
||||
rows={10}
|
||||
set:text=""
|
||||
/>
|
||||
{
|
||||
inputErrors.verificationProofMd && (
|
||||
<p class="font-title mt-1 text-sm text-red-500">{inputErrors.verificationProofMd.join(', ')}</p>
|
||||
|
||||
@@ -306,7 +306,7 @@ if (!user) return Astro.rewrite('/404')
|
||||
</div>
|
||||
|
||||
<div data-note-content>
|
||||
<p class="text-day-200 whitespace-pre-wrap">{note.content}</p>
|
||||
<p class="text-day-200 wrap-anywhere whitespace-pre-wrap" set:text={note.content} />
|
||||
</div>
|
||||
|
||||
<form
|
||||
|
||||
Reference in New Issue
Block a user