UNPKG

@backstage-community/plugin-gitops-profiles

Version:

A Backstage plugin that helps you manage GitOps profiles

37 lines (34 loc) 1.21 kB
import { jsx, Fragment } from 'react/jsx-runtime'; import { transformStatus } from '../ProfileCatalog/ProfileCatalog.esm.js'; import { Table, Link } from '@backstage/core-components'; const columns = [ { title: "Cluster Name", field: "name", highlight: true, render: (componentData) => /* @__PURE__ */ jsx(Link, { to: `/gitops-cluster/${encodeURIComponent(componentData.name)}`, children: componentData.name }) }, { title: "Status", field: "status", render: (componentData) => /* @__PURE__ */ jsx(Fragment, { children: transformStatus({ status: componentData.status, conclusion: componentData.conclusion, message: componentData.status }) }) }, { title: "Conclusion", field: "Conclusion", render: (componentData) => /* @__PURE__ */ jsx(Fragment, { children: transformStatus({ status: componentData.status, conclusion: componentData.conclusion, message: componentData.conclusion }) }) } ]; const ClusterTable = ({ components }) => { return /* @__PURE__ */ jsx(Table, { columns, options: { paging: false }, data: components }); }; export { ClusterTable as default }; //# sourceMappingURL=ClusterTable.esm.js.map