diff --git a/src/components/service-catalogs.ts b/src/components/service-catalogs.ts index 4f9eb07..fc3bca3 100644 --- a/src/components/service-catalogs.ts +++ b/src/components/service-catalogs.ts @@ -43,7 +43,7 @@ const ServiceCatalog = function (props: ICatalogProps) { } return ` -
  • +
  • ${catalog.category}

    ${Services({ services: catalog.services })}
  • diff --git a/src/components/services.ts b/src/components/services.ts index 00eff18..70c6ddb 100644 --- a/src/components/services.ts +++ b/src/components/services.ts @@ -25,29 +25,32 @@ interface IServiceProps { function Service(props: IServiceProps) { const { service, index } = props; - const { name, uri, description, icon, iconBG, iconBubble, iconColor, iconAspect, newWindow } = service; + const { name, uri, users, groups, description, icon, iconBG, iconBubble, iconColor, iconAspect, newWindow } = + service; return ` -
  • +
  • ${ - !is.null(icon) ? - ` + !is.null(icon) + ? ` ${Icon({ name, icon, uri, index, iconColor, iconBG, iconBubble, iconAspect, newWindow })} - ` : `` + ` + : `` }

    ${Anchor({ uri, newWindow, children: name })}

    ${ - !is.null(description) ? - ` + !is.null(description) + ? `

    ${Anchor({ uri, newWindow, children: description })}

    - ` : `` + ` + : `` }
  • diff --git a/src/shared/types.ts b/src/shared/types.ts index e433b0e..2f0b3af 100644 --- a/src/shared/types.ts +++ b/src/shared/types.ts @@ -8,6 +8,8 @@ export interface IService { name: string; uri: string; + users?: string; + groups?: string; description?: string; icon?: string; iconColor?: string;