tangled
alpha
login
or
join now
futur.blue
/
pdsls
forked from
pds.ls/pdsls
0
fork
atom
this repo has no description
0
fork
atom
overview
issues
pulls
pipelines
fix lex descriptions
handle.invalid
4 months ago
4063d712
51c7342a
verified
This commit was signed with the committer's
known signature
.
handle.invalid
SSH Key Fingerprint:
SHA256:mBrT4x0JdzLpbVR95g1hjI1aaErfC02kmLRkPXwsYCk=
+5
-13
1 changed file
expand all
collapse all
unified
split
src
components
lexicon-schema.tsx
+5
-13
src/components/lexicon-schema.tsx
···
246
246
<Show when={props.property.items && hasConstraints(props.property.items)}>
247
247
<ConstraintsList property={props.property.items!} />
248
248
</Show>
249
249
-
<Show when={props.property.description}>
249
249
+
<Show when={props.property.description && !props.hideNameType}>
250
250
<p class="text-sm text-neutral-700 dark:text-neutral-300">{props.property.description}</p>
251
251
</Show>
252
252
</div>
···
278
278
props.def.minLength !== undefined ||
279
279
props.def.maxLength !== undefined ||
280
280
props.def.maxGraphemes !== undefined ||
281
281
+
props.def.minGraphemes !== undefined ||
281
282
props.def.minimum !== undefined ||
282
283
props.def.maximum !== undefined ||
283
284
props.def.maxSize !== undefined ||
···
286
287
props.def.const ||
287
288
props.def.default !== undefined ||
288
289
props.def.closed ||
289
289
-
props.def.items;
290
290
+
props.def.items ||
291
291
+
props.def.knownValues;
290
292
291
293
const handleHeaderClick = () => {
292
294
window.history.replaceState(null, "", `#schema:${props.name}`);
···
311
313
</span>
312
314
</div>
313
315
314
314
-
<Show
315
315
-
when={
316
316
-
props.def.description &&
317
317
-
(props.def.properties ||
318
318
-
props.def.parameters ||
319
319
-
props.def.input ||
320
320
-
props.def.output ||
321
321
-
props.def.errors ||
322
322
-
props.def.record)
323
323
-
}
324
324
-
>
316
316
+
<Show when={props.def.description}>
325
317
<p class="text-sm text-neutral-700 dark:text-neutral-300">{props.def.description}</p>
326
318
</Show>
327
319