UNPKG

@tduniec/backstage-plugin-time-saver

Version:

This plugin provides an implementation of charts and statistics related to your time savings that are coming from usage of your templates. Plugins is built from frontend and backend part. This part of plugin `frontend` is responsible of providing views wi

54 lines (51 loc) 1.58 kB
import { jsx } from 'react/jsx-runtime'; import { PageBlueprint, SubPageBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api'; import TimeLapseIcon from '@material-ui/icons/Timelapse'; import { rootRouteRef } from './routes.esm.js'; const timeSaverPage = PageBlueprint.make({ params: { path: "/time-saver", title: "Template Metrics", routeRef: rootRouteRef } }); const allStatsSubPage = SubPageBlueprint.make({ name: "all-stats", params: { path: "all-stats", title: "All Stats", loader: () => import('./components/AllStatsSubPage/AllStatsSubPage.esm.js').then((m) => /* @__PURE__ */ jsx(m.AllStatsSubPage, {})) } }); const byTeamSubPage = SubPageBlueprint.make({ name: "by-team", params: { path: "by-team", title: "By Team", loader: () => import('./components/ByTeamSubPage/ByTeamSubPage.esm.js').then((m) => /* @__PURE__ */ jsx(m.ByTeamSubPage, {})) } }); const byTemplateSubPage = SubPageBlueprint.make({ name: "by-template", params: { path: "by-template", title: "By Template", loader: () => import('./components/ByTemplateSubPage/ByTemplateSubPage.esm.js').then((m) => /* @__PURE__ */ jsx(m.ByTemplateSubPage, {})) } }); var alpha = createFrontendPlugin({ pluginId: "time-saver", title: "Time Saver", icon: /* @__PURE__ */ jsx(TimeLapseIcon, { fontSize: "inherit" }), extensions: [ timeSaverPage, allStatsSubPage, byTeamSubPage, byTemplateSubPage ], routes: { root: rootRouteRef } }); export { alpha as default }; //# sourceMappingURL=alpha.esm.js.map