feat(nx-dev): mark internal properties (#19659)

This commit is contained in:
Isaac Mann 2023-10-18 16:52:40 -04:00 committed by GitHub
parent 4ee29167a2
commit d551351c51
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -39,6 +39,14 @@ export const ParameterView = (props: {
Deprecated Deprecated
</span> </span>
)} )}
{props.schema['x-priority'] === 'internal' && (
<span
data-tooltip="Intended for use by other generators"
className="relative -top-0.5 inline-flex rounded-md bg-yellow-300 px-2 text-xs font-semibold uppercase leading-5 text-yellow-800 dark:bg-yellow-800 dark:text-yellow-100"
>
Internal
</span>
)}
{((props.schema as any)['hidden'] as boolean) && ( {((props.schema as any)['hidden'] as boolean) && (
<span className="relative -top-0.5 inline-flex rounded-md bg-yellow-300 px-2 text-xs font-semibold uppercase leading-5 text-yellow-800 dark:bg-yellow-800 dark:text-yellow-100"> <span className="relative -top-0.5 inline-flex rounded-md bg-yellow-300 px-2 text-xs font-semibold uppercase leading-5 text-yellow-800 dark:bg-yellow-800 dark:text-yellow-100">
Hidden Hidden