Release 202505311149
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
import { Icon } from 'astro-icon/components'
|
||||
import { Markdown } from 'astro-remote'
|
||||
import { actions, isInputError } from 'astro:actions'
|
||||
import { Code } from 'astro:components'
|
||||
import { orderBy } from 'lodash-es'
|
||||
|
||||
import BadgeSmall from '../../../../components/BadgeSmall.astro'
|
||||
@@ -1121,16 +1122,10 @@ const apiCalls = await Astro.locals.banners.try(
|
||||
apiCalls.map((call) => (
|
||||
<FormSubSection title={`${call.method} ${call.path}`}>
|
||||
<p class="text-day-400 text-sm">Input:</p>
|
||||
<pre
|
||||
class="bg-night-800 border-night-500 text-day-300 overflow-x-auto rounded-md border p-3"
|
||||
set:text={JSON.stringify(call.input, null, 2)}
|
||||
/>
|
||||
<Code code={JSON.stringify(call.input, null, 2)} lang="json" class="rounded-lg p-4 text-xs" />
|
||||
|
||||
<p class="text-day-400 text-sm">Output:</p>
|
||||
<pre
|
||||
class="bg-night-800 border-night-500 text-day-300 overflow-x-auto rounded-md border p-3"
|
||||
set:text={JSON.stringify(call.output, null, 2)}
|
||||
/>
|
||||
<Code code={JSON.stringify(call.output, null, 2)} lang="json" class="rounded-lg p-4 text-xs" />
|
||||
</FormSubSection>
|
||||
))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user