@techdocs/cli
Version:
Utility CLI for managing TechDocs sites in Backstage.
4 lines (3 loc) • 5.19 kB
JavaScript
;(()=>{(self.webpackChunktechdocs_cli_embedded_app=self.webpackChunktechdocs_cli_embedded_app||[]).push([[1297],{90759:(m,o,e)=>{e.d(o,{W:()=>l});var t=e(93184);const l=(0,t.h)({id:"catalog",messages:{indexPage:{title:"{{orgName}} Catalog",createButtonTitle:"Create",supportButtonContent:"All your software catalog entities"},aboutCard:{title:"About",refreshButtonTitle:"Schedule entity refresh",editButtonTitle:"Edit Metadata",createSimilarButtonTitle:"Create something similar",refreshScheduledMessage:"Refresh scheduled",launchTemplate:"Launch Template",viewTechdocs:"View TechDocs",viewSource:"View Source",descriptionField:{label:"Description",value:"No description"},ownerField:{label:"Owner",value:"No Owner"},domainField:{label:"Domain",value:"No Domain"},systemField:{label:"System",value:"No System"},parentComponentField:{label:"Parent Component",value:"No Parent Component"},typeField:{label:"Type"},lifecycleField:{label:"Lifecycle"},tagsField:{label:"Tags",value:"No Tags"},targetsField:{label:"Targets"}},searchResultItem:{lifecycle:"Lifecycle",Owner:"Owner"},catalogTable:{warningPanelTitle:"Could not fetch catalog entities.",viewActionTitle:"View",editActionTitle:"Edit",starActionTitle:"Add to favorites",unStarActionTitle:"Remove from favorites"},dependencyOfComponentsCard:{title:"Dependency of components",emptyMessage:"No component depends on this component"},dependsOnComponentsCard:{title:"Depends on components",emptyMessage:"No component is a dependency of this component"},dependsOnResourcesCard:{title:"Depends on resources",emptyMessage:"No resource is a dependency of this component"},entityContextMenu:{copiedMessage:"Copied!",moreButtonTitle:"More",inspectMenuTitle:"Inspect entity",copyURLMenuTitle:"Copy entity URL",unregisterMenuTitle:"Unregister entity"},entityLabelsCard:{title:"Labels",emptyDescription:"No labels defined for this entity. You can add labels to your entity YAML as shown in the highlighted example below:",readMoreButtonTitle:"Read more"},entityLabels:{warningPanelTitle:"Entity not found",ownerLabel:"Owner",lifecycleLabel:"Lifecycle"},entityLinksCard:{title:"Links",emptyDescription:"No links defined for this entity. You can add links to your entity YAML as shown in the highlighted example below:",readMoreButtonTitle:"Read more"},entityNotFound:{title:"Entity was not found",description:"Want to help us build this? Check out our Getting Started documentation.",docButtonTitle:"DOCS"},deleteEntity:{dialogTitle:"Are you sure you want to delete this entity?",deleteButtonTitle:"Delete",cancelButtonTitle:"Cancel",description:"This entity is not referenced by any location and is therefore not receiving updates. Click here to delete."},entityProcessingErrorsDescription:"The error below originates from",entityRelationWarningDescription:`This entity has relations to other entities, which can't be found in the catalog.
Entities not found are: `,hasComponentsCard:{title:"Has components",emptyMessage:"No component is part of this system"},hasResourcesCard:{title:"Has resources",emptyMessage:"No resource is part of this system"},hasSubcomponentsCard:{title:"Has subcomponents",emptyMessage:"No subcomponent is part of this component"},hasSubdomainsCard:{title:"Has subdomains",emptyMessage:"No subdomain is part of this domain"},hasSystemsCard:{title:"Has systems",emptyMessage:"No system is part of this domain"},relatedEntitiesCard:{emptyHelpLinkTitle:"Learn how to change this"},systemDiagramCard:{title:"System Diagram",description:"Use pinch & zoom to move around the diagram.",edgeLabels:{partOf:"part of",provides:"provides",dependsOn:"depends on"}}}})},61297:(m,o,e)=>{e.r(o),e.d(o,{CatalogSearchResultListItem:()=>b});var t=e(31085),l=e(10394),a=e(67720),p=e(68804),h=e(5951),y=e(72501),u=e(58837),g=e(72072),d=e(70734),f=e(90759),T=e(87849);const C=(0,u.A)({item:{display:"flex"},flexContainer:{flexWrap:"wrap"},itemText:{width:"100%",wordBreak:"break-all",marginBottom:"1rem"}},{name:"CatalogSearchResultListItem"});function b(s){const i=s.result,n=s.highlight,r=C(),{t:c}=(0,T.i)(f.W);return i?(0,t.jsxs)("div",{className:r.item,children:[s.icon&&(0,t.jsx)(p.A,{children:typeof s.icon=="function"?s.icon(i):s.icon}),(0,t.jsxs)("div",{className:r.flexContainer,children:[(0,t.jsx)(h.A,{className:r.itemText,primaryTypographyProps:{variant:"h6"},primary:(0,t.jsx)(g.N_,{noTrack:!0,to:i.location,children:n?.fields.title?(0,t.jsx)(d.e,{text:n.fields.title,preTag:n.preTag,postTag:n.postTag}):i.title}),secondary:(0,t.jsx)(y.A,{component:"span",style:{display:"-webkit-box",WebkitBoxOrient:"vertical",WebkitLineClamp:s.lineClamp,overflow:"hidden"},color:"textSecondary",variant:"body2",children:n?.fields.text?(0,t.jsx)(d.e,{text:n.fields.text,preTag:n.preTag,postTag:n.postTag}):i.text})}),(0,t.jsxs)(l.A,{children:[i.kind&&(0,t.jsx)(a.A,{label:`Kind: ${i.kind}`,size:"small"}),i.type&&(0,t.jsx)(a.A,{label:`Type: ${i.type}`,size:"small"}),i.lifecycle&&(0,t.jsx)(a.A,{label:`${c("searchResultItem.lifecycle")}: ${i.lifecycle}`,size:"small"}),i.owner&&(0,t.jsx)(a.A,{label:`${c("searchResultItem.Owner")}: ${i.owner}`,size:"small"})]})]})]}):null}}}]);})();
//# sourceMappingURL=1297.171aeb8c.chunk.js.map