some reactive changes

This commit is contained in:
Ruben Fiszel
2022-08-07 10:02:00 +02:00
parent 18477d1477
commit e77104fcac
2 changed files with 15 additions and 9 deletions
@@ -188,8 +188,12 @@
<SchemaEditorProperty {property} />
</td>
<td>{property.description}</td>
<td>{JSON.stringify(property.default) ?? ''}</td>
<td>{schema.required.includes(name) ? 'Required' : 'Optional'}</td>
<td>{property.default ? JSON.stringify(property.default) : ''}</td>
<td
>{#if schema.required.includes(name)}
<span class="text-red-600 font-bold text-lg">*</span>
{/if}</td
>
<td class="justify-end flex">
<Button
color="red"
@@ -5,10 +5,12 @@
export let property: SchemaProperty
</script>
<Badge color="blue">{property.type?.toUpperCase() ?? 'ANY'}</Badge>
{#if property.format}
<Badge color="green">{property.format?.toUpperCase()}</Badge>
{/if}
{#if property.contentEncoding}
<Badge color="indigo">{property.contentEncoding?.toUpperCase()}</Badge>
{/if}
<div class="flex flex-row flex-wrap gap-1">
<Badge color="blue">{property.type?.toUpperCase() ?? 'ANY'}</Badge>
{#if property.format}
<Badge color="green">{property.format?.toUpperCase()}</Badge>
{/if}
{#if property.contentEncoding}
<Badge color="indigo">{property.contentEncoding?.toUpperCase()}</Badge>
{/if}
</div>