@backstage-community/plugin-cicd-statistics 0.1.40 → 0.1.41
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +6 -0
- package/alpha/package.json +1 -1
- package/dist/alpha/entityContent.esm.js.map +1 -1
- package/dist/alpha.d.ts +26 -16
- package/dist/alpha.esm.js +2 -2
- package/dist/alpha.esm.js.map +1 -1
- package/package.json +8 -7
package/CHANGELOG.md
CHANGED
package/alpha/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"entityContent.esm.js","sources":["../../src/alpha/entityContent.tsx"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"entityContent.esm.js","sources":["../../src/alpha/entityContent.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport React from 'react';\nimport { convertLegacyRouteRef } from '@backstage/core-compat-api';\nimport { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport { rootCatalogCicdStatsRouteRef } from '../plugin';\n\n/**\n * @alpha\n */\nexport const entityCicdChartsContent = EntityContentBlueprint.make({\n name: 'entity',\n params: {\n defaultPath: 'cicd-statistics',\n defaultTitle: 'CI/CD Statistics',\n filter: 'kind:component',\n routeRef: convertLegacyRouteRef(rootCatalogCicdStatsRouteRef),\n loader: async () => {\n const { EntityPageCicdCharts } = await import('../entity-page');\n return <EntityPageCicdCharts />;\n },\n },\n});\n"],"names":[],"mappings":";;;;;AAuBa,MAAA,uBAAA,GAA0B,uBAAuB,IAAK,CAAA;AAAA,EACjE,IAAM,EAAA,QAAA;AAAA,EACN,MAAQ,EAAA;AAAA,IACN,WAAa,EAAA,iBAAA;AAAA,IACb,YAAc,EAAA,kBAAA;AAAA,IACd,MAAQ,EAAA,gBAAA;AAAA,IACR,QAAA,EAAU,sBAAsB,4BAA4B,CAAA;AAAA,IAC5D,QAAQ,YAAY;AAClB,MAAA,MAAM,EAAE,oBAAA,EAAyB,GAAA,MAAM,OAAO,uBAAgB,CAAA,CAAA;AAC9D,MAAA,2CAAQ,oBAAqB,EAAA,IAAA,CAAA,CAAA;AAAA,KAC/B;AAAA,GACF;AACF,CAAC;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -6,27 +6,37 @@ import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api'
|
|
|
6
6
|
/**
|
|
7
7
|
* @alpha
|
|
8
8
|
*/
|
|
9
|
-
declare const _default: _backstage_frontend_plugin_api.
|
|
9
|
+
declare const _default: _backstage_frontend_plugin_api.FrontendPlugin<{
|
|
10
10
|
entityContent: _backstage_frontend_plugin_api.RouteRef<undefined>;
|
|
11
11
|
}, {}, {
|
|
12
12
|
"entity-content:cicd-statistics/entity": _backstage_frontend_plugin_api.ExtensionDefinition<{
|
|
13
|
-
path: string | undefined;
|
|
14
|
-
title: string | undefined;
|
|
15
|
-
filter: string | undefined;
|
|
16
|
-
}, {
|
|
17
|
-
filter?: string | undefined;
|
|
18
|
-
title?: string | undefined;
|
|
19
|
-
path?: string | undefined;
|
|
20
|
-
}, _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
21
|
-
optional: true;
|
|
22
|
-
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
23
|
-
optional: true;
|
|
24
|
-
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
25
|
-
optional: true;
|
|
26
|
-
}>, {}, {
|
|
27
13
|
kind: "entity-content";
|
|
28
|
-
namespace: undefined;
|
|
29
14
|
name: "entity";
|
|
15
|
+
config: {
|
|
16
|
+
path: string | undefined;
|
|
17
|
+
title: string | undefined;
|
|
18
|
+
filter: string | undefined;
|
|
19
|
+
};
|
|
20
|
+
configInput: {
|
|
21
|
+
filter?: string | undefined;
|
|
22
|
+
title?: string | undefined;
|
|
23
|
+
path?: string | undefined;
|
|
24
|
+
};
|
|
25
|
+
output: _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
26
|
+
optional: true;
|
|
27
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-content-title", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<(entity: _backstage_catalog_model.Entity) => boolean, "catalog.entity-filter-function", {
|
|
28
|
+
optional: true;
|
|
29
|
+
}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "catalog.entity-filter-expression", {
|
|
30
|
+
optional: true;
|
|
31
|
+
}>;
|
|
32
|
+
inputs: {};
|
|
33
|
+
params: {
|
|
34
|
+
loader: () => Promise<JSX.Element>;
|
|
35
|
+
defaultPath: string;
|
|
36
|
+
defaultTitle: string;
|
|
37
|
+
routeRef?: _backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams> | undefined;
|
|
38
|
+
filter?: string | ((entity: _backstage_catalog_model.Entity) => boolean) | undefined;
|
|
39
|
+
};
|
|
30
40
|
}>;
|
|
31
41
|
}>;
|
|
32
42
|
|
package/dist/alpha.esm.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
import { convertLegacyRouteRefs } from '@backstage/core-compat-api';
|
|
2
|
-
import {
|
|
2
|
+
import { createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
3
3
|
import { entityCicdChartsContent } from './alpha/entityContent.esm.js';
|
|
4
4
|
import { rootCatalogCicdStatsRouteRef } from './plugin.esm.js';
|
|
5
5
|
|
|
6
|
-
var alpha =
|
|
6
|
+
var alpha = createFrontendPlugin({
|
|
7
7
|
id: "cicd-statistics",
|
|
8
8
|
routes: convertLegacyRouteRefs({
|
|
9
9
|
entityContent: rootCatalogCicdStatsRouteRef
|
package/dist/alpha.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.ts"],"sourcesContent":["
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.ts"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport { convertLegacyRouteRefs } from '@backstage/core-compat-api';\nimport { createFrontendPlugin } from '@backstage/frontend-plugin-api';\nimport { entityCicdChartsContent } from './alpha/index';\nimport { rootCatalogCicdStatsRouteRef } from './plugin';\n\n/**\n * @alpha\n */\nexport default createFrontendPlugin({\n id: 'cicd-statistics',\n routes: convertLegacyRouteRefs({\n entityContent: rootCatalogCicdStatsRouteRef,\n }),\n extensions: [entityCicdChartsContent],\n});\n"],"names":[],"mappings":";;;;;AAuBA,YAAe,oBAAqB,CAAA;AAAA,EAClC,EAAI,EAAA,iBAAA;AAAA,EACJ,QAAQ,sBAAuB,CAAA;AAAA,IAC7B,aAAe,EAAA,4BAAA;AAAA,GAChB,CAAA;AAAA,EACD,UAAA,EAAY,CAAC,uBAAuB,CAAA;AACtC,CAAC,CAAA;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-cicd-statistics",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.41",
|
|
4
4
|
"description": "A frontend plugin visualizing CI/CD pipeline statistics (build time)",
|
|
5
5
|
"backstage": {
|
|
6
6
|
"role": "frontend-plugin",
|
|
@@ -19,6 +19,7 @@
|
|
|
19
19
|
"default": "./dist/index.esm.js"
|
|
20
20
|
},
|
|
21
21
|
"./alpha": {
|
|
22
|
+
"backstage": "@backstage/FrontendPlugin",
|
|
22
23
|
"import": "./dist/alpha.esm.js",
|
|
23
24
|
"types": "./dist/alpha.d.ts",
|
|
24
25
|
"default": "./dist/alpha.esm.js"
|
|
@@ -52,11 +53,11 @@
|
|
|
52
53
|
"test": "backstage-cli package test"
|
|
53
54
|
},
|
|
54
55
|
"dependencies": {
|
|
55
|
-
"@backstage/catalog-model": "^1.
|
|
56
|
-
"@backstage/core-compat-api": "^0.
|
|
57
|
-
"@backstage/core-plugin-api": "^1.
|
|
58
|
-
"@backstage/frontend-plugin-api": "^0.
|
|
59
|
-
"@backstage/plugin-catalog-react": "^1.
|
|
56
|
+
"@backstage/catalog-model": "^1.7.0",
|
|
57
|
+
"@backstage/core-compat-api": "^0.3.1",
|
|
58
|
+
"@backstage/core-plugin-api": "^1.10.0",
|
|
59
|
+
"@backstage/frontend-plugin-api": "^0.9.0",
|
|
60
|
+
"@backstage/plugin-catalog-react": "^1.14.0",
|
|
60
61
|
"@date-io/luxon": "^1.3.13",
|
|
61
62
|
"@material-ui/core": "^4.12.2",
|
|
62
63
|
"@material-ui/icons": "^4.9.1",
|
|
@@ -70,7 +71,7 @@
|
|
|
70
71
|
"recharts": "^2.5.0"
|
|
71
72
|
},
|
|
72
73
|
"devDependencies": {
|
|
73
|
-
"@backstage/cli": "^0.
|
|
74
|
+
"@backstage/cli": "^0.28.0",
|
|
74
75
|
"@testing-library/dom": "^10.0.0",
|
|
75
76
|
"@testing-library/jest-dom": "^6.0.0",
|
|
76
77
|
"@testing-library/react": "^15.0.0",
|