@backstage-community/plugin-tekton 3.22.2 → 3.25.0
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 +23 -0
- package/dist/components/Charts/PipelineBars.esm.js +33 -29
- package/dist/components/Charts/PipelineBars.esm.js.map +1 -1
- package/dist/components/Icons/CriticalRiskIcon.esm.js +8 -6
- package/dist/components/Icons/CriticalRiskIcon.esm.js.map +1 -1
- package/dist/components/Icons/EqualsIcon.esm.js +8 -6
- package/dist/components/Icons/EqualsIcon.esm.js.map +1 -1
- package/dist/components/Icons/LinkToSbomIcon.esm.js +5 -5
- package/dist/components/Icons/LinkToSbomIcon.esm.js.map +1 -1
- package/dist/components/Icons/OutputIcon.esm.js +6 -8
- package/dist/components/Icons/OutputIcon.esm.js.map +1 -1
- package/dist/components/Icons/SignedBadge.esm.js +3 -3
- package/dist/components/Icons/SignedBadge.esm.js.map +1 -1
- package/dist/components/Icons/ViewLogsIcon.esm.js +6 -8
- package/dist/components/Icons/ViewLogsIcon.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunColumnHeader.esm.js +43 -41
- package/dist/components/PipelineRunList/PipelineRunColumnHeader.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunList.esm.js +92 -68
- package/dist/components/PipelineRunList/PipelineRunList.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunListSearchBar.esm.js +13 -10
- package/dist/components/PipelineRunList/PipelineRunListSearchBar.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunOutput.esm.js +17 -11
- package/dist/components/PipelineRunList/PipelineRunOutput.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunRow.esm.js +39 -24
- package/dist/components/PipelineRunList/PipelineRunRow.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunRowActions.esm.js +88 -76
- package/dist/components/PipelineRunList/PipelineRunRowActions.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunSBOMLink.esm.js +4 -4
- package/dist/components/PipelineRunList/PipelineRunSBOMLink.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunTableBody.esm.js +9 -8
- package/dist/components/PipelineRunList/PipelineRunTableBody.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunTaskStatus.esm.js +2 -2
- package/dist/components/PipelineRunList/PipelineRunTaskStatus.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunVulnerabilities.esm.js +90 -20
- package/dist/components/PipelineRunList/PipelineRunVulnerabilities.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineTableHeader.esm.js +26 -19
- package/dist/components/PipelineRunList/PipelineTableHeader.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PlrStatus.esm.js +2 -2
- package/dist/components/PipelineRunList/PlrStatus.esm.js.map +1 -1
- package/dist/components/PipelineRunList/ResourceBadge.esm.js +6 -2
- package/dist/components/PipelineRunList/ResourceBadge.esm.js.map +1 -1
- package/dist/components/PipelineRunLogs/PipelineRunLogDialog.esm.js +52 -40
- package/dist/components/PipelineRunLogs/PipelineRunLogDialog.esm.js.map +1 -1
- package/dist/components/PipelineRunLogs/PipelineRunLogDownloader.esm.js +31 -23
- package/dist/components/PipelineRunLogs/PipelineRunLogDownloader.esm.js.map +1 -1
- package/dist/components/PipelineRunLogs/PipelineRunLogViewer.esm.js +46 -24
- package/dist/components/PipelineRunLogs/PipelineRunLogViewer.esm.js.map +1 -1
- package/dist/components/PipelineRunLogs/PipelineRunLogs.esm.js +30 -20
- package/dist/components/PipelineRunLogs/PipelineRunLogs.esm.js.map +1 -1
- package/dist/components/PipelineRunLogs/PodLogsDownloadLink.esm.js +15 -9
- package/dist/components/PipelineRunLogs/PodLogsDownloadLink.esm.js.map +1 -1
- package/dist/components/PipelineRunLogs/TaskStatusStepper.esm.js +43 -36
- package/dist/components/PipelineRunLogs/TaskStatusStepper.esm.js.map +1 -1
- package/dist/components/PipelineRunOutput/PipelineRunOutputDialog.esm.js +32 -22
- package/dist/components/PipelineRunOutput/PipelineRunOutputDialog.esm.js.map +1 -1
- package/dist/components/Router.esm.js +2 -2
- package/dist/components/Router.esm.js.map +1 -1
- package/dist/components/Tekton/TektonCIComponent.esm.js +5 -4
- package/dist/components/Tekton/TektonCIComponent.esm.js.map +1 -1
- package/dist/components/common/ClusterSelector.esm.js +17 -13
- package/dist/components/common/ClusterSelector.esm.js.map +1 -1
- package/dist/components/common/ErrorPanel.esm.js +25 -17
- package/dist/components/common/ErrorPanel.esm.js.map +1 -1
- package/dist/components/common/PermissionAlert.esm.js +8 -2
- package/dist/components/common/PermissionAlert.esm.js.map +1 -1
- package/dist/components/common/StatusSelector.esm.js +19 -12
- package/dist/components/common/StatusSelector.esm.js.map +1 -1
- package/dist/components/common/TableExpandCollapse.esm.js +26 -21
- package/dist/components/common/TableExpandCollapse.esm.js.map +1 -1
- package/dist/components/pipeline-topology/PipelineLayout.esm.js +14 -13
- package/dist/components/pipeline-topology/PipelineLayout.esm.js.map +1 -1
- package/dist/components/pipeline-topology/PipelineRunVisualization.esm.js +2 -2
- package/dist/components/pipeline-topology/PipelineRunVisualization.esm.js.map +1 -1
- package/dist/components/pipeline-topology/PipelineTaskNode.esm.js +63 -59
- package/dist/components/pipeline-topology/PipelineTaskNode.esm.js.map +1 -1
- package/dist/components/pipeline-topology/PipelineVisualization.esm.js +9 -6
- package/dist/components/pipeline-topology/PipelineVisualization.esm.js.map +1 -1
- package/dist/components/pipeline-topology/PipelineVisualizationStepList.esm.js +28 -19
- package/dist/components/pipeline-topology/PipelineVisualizationStepList.esm.js.map +1 -1
- package/dist/components/pipeline-topology/PipelineVisualizationView.esm.js +11 -7
- package/dist/components/pipeline-topology/PipelineVisualizationView.esm.js.map +1 -1
- package/dist/components/pipeline-topology/TaskGroupEdge.esm.js +2 -2
- package/dist/components/pipeline-topology/TaskGroupEdge.esm.js.map +1 -1
- package/dist/components/pipeline-topology/pipelineComponentFactory.esm.js.map +1 -1
- package/dist/hooks/TektonResourcesContext.esm.js +12 -10
- package/dist/hooks/TektonResourcesContext.esm.js.map +1 -1
- package/dist/hooks/useDarkTheme.esm.js +2 -2
- package/dist/hooks/useDarkTheme.esm.js.map +1 -1
- package/dist/hooks/usePipelineRunScanResults.esm.js +2 -2
- package/dist/hooks/usePipelineRunScanResults.esm.js.map +1 -1
- package/dist/hooks/usePodLogsOfPipelineRun.esm.js +31 -50
- package/dist/hooks/usePodLogsOfPipelineRun.esm.js.map +1 -1
- package/dist/hooks/useTektonObjectsResponse.esm.js +11 -11
- package/dist/hooks/useTektonObjectsResponse.esm.js.map +1 -1
- package/dist/index.d.ts +50 -4
- package/dist/index.esm.js +1 -0
- package/dist/index.esm.js.map +1 -1
- package/dist/translation.esm.js +81 -0
- package/dist/translation.esm.js.map +1 -0
- package/package.json +19 -18
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import
|
|
1
|
+
import { useState, useRef, useEffect, useCallback } from 'react';
|
|
2
2
|
import { useEntity } from '@backstage/plugin-catalog-react';
|
|
3
3
|
import { isEqual } from 'lodash';
|
|
4
4
|
import { useKubernetesObjects, useDebounceCallback, useDeepCompareMemoize } from '@janus-idp/shared-react';
|
|
@@ -13,16 +13,16 @@ const useTektonObjectsResponse = (watchedResource) => {
|
|
|
13
13
|
kubernetesApiRef,
|
|
14
14
|
kubernetesAuthProvidersApiRef
|
|
15
15
|
);
|
|
16
|
-
const [selectedCluster, setSelectedCluster] =
|
|
17
|
-
const [selectedStatus, setSelectedStatus] =
|
|
16
|
+
const [selectedCluster, setSelectedCluster] = useState(0);
|
|
17
|
+
const [selectedStatus, setSelectedStatus] = useState(
|
|
18
18
|
"All"
|
|
19
19
|
);
|
|
20
|
-
const [isExpanded, setIsExpanded] =
|
|
21
|
-
const [loaded, setLoaded] =
|
|
22
|
-
const [errorState, setErrorState] =
|
|
23
|
-
const [pipelinesData, setPipelinesData] =
|
|
24
|
-
const mounted =
|
|
25
|
-
|
|
20
|
+
const [isExpanded, setIsExpanded] = useState(false);
|
|
21
|
+
const [loaded, setLoaded] = useState(false);
|
|
22
|
+
const [errorState, setErrorState] = useState();
|
|
23
|
+
const [pipelinesData, setPipelinesData] = useState();
|
|
24
|
+
const mounted = useRef(false);
|
|
25
|
+
useEffect(() => {
|
|
26
26
|
mounted.current = true;
|
|
27
27
|
return () => {
|
|
28
28
|
mounted.current = false;
|
|
@@ -38,7 +38,7 @@ const useTektonObjectsResponse = (watchedResource) => {
|
|
|
38
38
|
loading,
|
|
39
39
|
error
|
|
40
40
|
});
|
|
41
|
-
const updateResults =
|
|
41
|
+
const updateResults = useCallback(
|
|
42
42
|
(resData, isLoading, errorData) => {
|
|
43
43
|
if (!isLoading && !errorData && mounted.current) {
|
|
44
44
|
setLoaded(true);
|
|
@@ -56,7 +56,7 @@ const useTektonObjectsResponse = (watchedResource) => {
|
|
|
56
56
|
[setLoaded, setPipelinesData, setErrorState]
|
|
57
57
|
);
|
|
58
58
|
const debouncedUpdateResources = useDebounceCallback(updateResults, 250);
|
|
59
|
-
|
|
59
|
+
useEffect(() => {
|
|
60
60
|
debouncedUpdateResources?.(watchResourcesData, loading, error);
|
|
61
61
|
}, [debouncedUpdateResources, watchResourcesData, loading, error]);
|
|
62
62
|
return useDeepCompareMemoize({
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"useTektonObjectsResponse.esm.js","sources":["../../src/hooks/useTektonObjectsResponse.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
|
|
1
|
+
{"version":3,"file":"useTektonObjectsResponse.esm.js","sources":["../../src/hooks/useTektonObjectsResponse.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 { useState, useRef, useEffect, useCallback } from 'react';\n\nimport { useEntity } from '@backstage/plugin-catalog-react';\n\nimport { isEqual } from 'lodash';\n\nimport {\n ComputedStatus,\n useDebounceCallback,\n useDeepCompareMemoize,\n useKubernetesObjects,\n} from '@janus-idp/shared-react';\n\nimport {\n kubernetesApiRef,\n kubernetesAuthProvidersApiRef,\n TektonResourcesContextData,\n TektonResponseData,\n} from '../types/types';\nimport { useAllWatchResources } from './useAllWatchResources';\nimport { useResourcesClusters } from './useResourcesClusters';\n\nexport const useTektonObjectsResponse = (\n watchedResource: string[],\n): TektonResourcesContextData => {\n const { entity } = useEntity();\n const { kubernetesObjects, loading, error } = useKubernetesObjects(\n entity,\n kubernetesApiRef,\n kubernetesAuthProvidersApiRef,\n );\n const [selectedCluster, setSelectedCluster] = useState<number>(0);\n const [selectedStatus, setSelectedStatus] = useState<ComputedStatus>(\n 'All' as ComputedStatus,\n );\n const [isExpanded, setIsExpanded] = useState<boolean>(false);\n const [loaded, setLoaded] = useState<boolean>(false);\n const [errorState, setErrorState] = useState<string>();\n const [pipelinesData, setPipelinesData] = useState<\n TektonResponseData | undefined\n >();\n\n const mounted = useRef(false);\n\n useEffect(() => {\n mounted.current = true;\n return () => {\n mounted.current = false;\n };\n }, []);\n\n const watchResourcesData = useAllWatchResources(\n { kubernetesObjects, loading, error },\n selectedCluster,\n watchedResource,\n );\n\n const resourcesClusters = useResourcesClusters({\n kubernetesObjects,\n loading,\n error,\n });\n\n const updateResults = useCallback(\n (\n resData: TektonResponseData,\n isLoading: boolean,\n errorData: string | undefined,\n ) => {\n if (!isLoading && !errorData && mounted.current) {\n setLoaded(true);\n setPipelinesData(prevPipelinesData => {\n if (isEqual(prevPipelinesData, resData)) {\n return prevPipelinesData;\n }\n return resData;\n });\n } else if (errorData && mounted.current) {\n setLoaded(true);\n setErrorState(errorData);\n }\n },\n [setLoaded, setPipelinesData, setErrorState],\n );\n\n const debouncedUpdateResources = useDebounceCallback(updateResults, 250);\n\n useEffect(() => {\n debouncedUpdateResources?.(watchResourcesData, loading, error);\n }, [debouncedUpdateResources, watchResourcesData, loading, error]);\n\n return useDeepCompareMemoize({\n watchResourcesData: pipelinesData,\n loaded,\n responseError: errorState,\n selectedClusterErrors: resourcesClusters?.errors?.[selectedCluster] ?? [],\n clusters: resourcesClusters?.clusters || [],\n selectedCluster,\n setSelectedCluster,\n selectedStatus,\n setSelectedStatus,\n isExpanded,\n setIsExpanded,\n });\n};\n"],"names":[],"mappings":"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"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
import * as react from 'react';
|
|
1
|
+
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
3
2
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
4
3
|
import { Entity } from '@backstage/catalog-model';
|
|
4
|
+
import * as _backstage_core_plugin_api_alpha from '@backstage/core-plugin-api/alpha';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* A Tekton plugin.
|
|
@@ -14,7 +14,7 @@ declare const tektonPlugin: _backstage_core_plugin_api.BackstagePlugin<{}, {}, {
|
|
|
14
14
|
*
|
|
15
15
|
* @public
|
|
16
16
|
*/
|
|
17
|
-
declare const TektonCI: () =>
|
|
17
|
+
declare const TektonCI: () => react_jsx_runtime.JSX.Element | null;
|
|
18
18
|
|
|
19
19
|
/**
|
|
20
20
|
* Returns true if the entity supports the Tekton CI/CD feature and
|
|
@@ -29,4 +29,50 @@ declare const TektonCI: () => react.JSX.Element | null;
|
|
|
29
29
|
*/
|
|
30
30
|
declare const isTektonCIAvailable: (entity: Entity) => boolean;
|
|
31
31
|
|
|
32
|
-
|
|
32
|
+
/**
|
|
33
|
+
* Tekton translation reference.
|
|
34
|
+
* @public
|
|
35
|
+
*/
|
|
36
|
+
declare const tektonTranslationRef: _backstage_core_plugin_api_alpha.TranslationRef<"tekton", {
|
|
37
|
+
readonly "errorPanel.title": "There was a problem retrieving Kubernetes objects";
|
|
38
|
+
readonly "errorPanel.description": "There was a problem retrieving some Kubernetes resources for the entity: {{entityName}}. This could mean that the Error Reporting card is not completely accurate.";
|
|
39
|
+
readonly "permissionAlert.title": "Permission required";
|
|
40
|
+
readonly "permissionAlert.description": "To view Tekton Pipeline Runs, contact your administrator to give you the following permission(s): {{permissions}}.";
|
|
41
|
+
readonly "statusSelector.label": "Status";
|
|
42
|
+
readonly "tableExpandCollapse.collapseAll": "Collapse all";
|
|
43
|
+
readonly "tableExpandCollapse.expandAll": "Expand all";
|
|
44
|
+
readonly "pipelineVisualization.noTasksDescription": "This Pipeline Run has no tasks to visualize";
|
|
45
|
+
readonly "pipelineVisualization.emptyState.description": "No Pipeline Run to visualize";
|
|
46
|
+
readonly "pipelineVisualization.stepList.finallyTaskTitle": "Finally Task";
|
|
47
|
+
readonly "pipelineRunList.title": "Pipeline Runs";
|
|
48
|
+
readonly "pipelineRunList.noPipelineRuns": "No Pipeline Runs found";
|
|
49
|
+
readonly "pipelineRunList.searchBarPlaceholder": "Search";
|
|
50
|
+
readonly "pipelineRunList.rowActions.viewLogs": "View logs";
|
|
51
|
+
readonly "pipelineRunList.rowActions.unauthorizedViewLogs": "Unauthorized to view logs";
|
|
52
|
+
readonly "pipelineRunList.rowActions.viewSBOM": "View SBOM";
|
|
53
|
+
readonly "pipelineRunList.rowActions.SBOMNotApplicable": "View SBOM is not applicable for this PipelineRun";
|
|
54
|
+
readonly "pipelineRunList.rowActions.viewOutput": "View output";
|
|
55
|
+
readonly "pipelineRunList.rowActions.outputNotApplicable": "View Output is not applicable for this PipelineRun";
|
|
56
|
+
readonly "pipelineRunList.vulnerabilitySeverityTitle.critical": "Critical";
|
|
57
|
+
readonly "pipelineRunList.vulnerabilitySeverityTitle.high": "High";
|
|
58
|
+
readonly "pipelineRunList.vulnerabilitySeverityTitle.medium": "Medium";
|
|
59
|
+
readonly "pipelineRunList.vulnerabilitySeverityTitle.low": "Low";
|
|
60
|
+
readonly "pipelineRunList.tableHeaderTitle.status": "STATUS";
|
|
61
|
+
readonly "pipelineRunList.tableHeaderTitle.startTime": "STARTED";
|
|
62
|
+
readonly "pipelineRunList.tableHeaderTitle.name": "NAME";
|
|
63
|
+
readonly "pipelineRunList.tableHeaderTitle.duration": "DURATION";
|
|
64
|
+
readonly "pipelineRunList.tableHeaderTitle.vulnerabilities": "VULNERABILITIES";
|
|
65
|
+
readonly "pipelineRunList.tableHeaderTitle.taskStatus": "TASK STATUS";
|
|
66
|
+
readonly "pipelineRunList.tableHeaderTitle.actions": "ACTIONS";
|
|
67
|
+
readonly "pipelineRunLogs.title": "PipelineRun Logs";
|
|
68
|
+
readonly "pipelineRunLogs.noLogs": "No logs found";
|
|
69
|
+
readonly "pipelineRunLogs.downloader.downloadTaskLogs": "Download";
|
|
70
|
+
readonly "pipelineRunLogs.downloader.downloadPipelineRunLogs": "Download all tasks logs";
|
|
71
|
+
readonly "pipelineRunLogs.podLogsDownloadLink.title": "Download";
|
|
72
|
+
readonly "pipelineRunLogs.podLogsDownloadLink.downloading": "downloading logs";
|
|
73
|
+
readonly "pipelineRunLogs.taskStatusStepper.skipped": "Skipped";
|
|
74
|
+
readonly "pipelineRunOutput.title": "PipelineRun Output";
|
|
75
|
+
readonly "pipelineRunOutput.noOutput": "No output";
|
|
76
|
+
}>;
|
|
77
|
+
|
|
78
|
+
export { TektonCI, isTektonCIAvailable, tektonPlugin, tektonTranslationRef };
|
package/dist/index.esm.js
CHANGED
package/dist/index.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
import { createTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
2
|
+
|
|
3
|
+
const tektonTranslationRef = createTranslationRef({
|
|
4
|
+
id: "tekton",
|
|
5
|
+
messages: {
|
|
6
|
+
errorPanel: {
|
|
7
|
+
title: "There was a problem retrieving Kubernetes objects",
|
|
8
|
+
description: "There was a problem retrieving some Kubernetes resources for the entity: {{entityName}}. This could mean that the Error Reporting card is not completely accurate."
|
|
9
|
+
},
|
|
10
|
+
permissionAlert: {
|
|
11
|
+
title: "Permission required",
|
|
12
|
+
description: "To view Tekton Pipeline Runs, contact your administrator to give you the following permission(s): {{permissions}}."
|
|
13
|
+
},
|
|
14
|
+
statusSelector: {
|
|
15
|
+
label: "Status"
|
|
16
|
+
},
|
|
17
|
+
tableExpandCollapse: {
|
|
18
|
+
collapseAll: "Collapse all",
|
|
19
|
+
expandAll: "Expand all"
|
|
20
|
+
},
|
|
21
|
+
pipelineVisualization: {
|
|
22
|
+
emptyState: {
|
|
23
|
+
description: "No Pipeline Run to visualize"
|
|
24
|
+
},
|
|
25
|
+
noTasksDescription: "This Pipeline Run has no tasks to visualize",
|
|
26
|
+
stepList: {
|
|
27
|
+
finallyTaskTitle: "Finally Task"
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
pipelineRunList: {
|
|
31
|
+
title: "Pipeline Runs",
|
|
32
|
+
noPipelineRuns: "No Pipeline Runs found",
|
|
33
|
+
searchBarPlaceholder: "Search",
|
|
34
|
+
rowActions: {
|
|
35
|
+
viewLogs: "View logs",
|
|
36
|
+
unauthorizedViewLogs: "Unauthorized to view logs",
|
|
37
|
+
viewSBOM: "View SBOM",
|
|
38
|
+
SBOMNotApplicable: "View SBOM is not applicable for this PipelineRun",
|
|
39
|
+
viewOutput: "View output",
|
|
40
|
+
outputNotApplicable: "View Output is not applicable for this PipelineRun"
|
|
41
|
+
},
|
|
42
|
+
vulnerabilitySeverityTitle: {
|
|
43
|
+
critical: "Critical",
|
|
44
|
+
high: "High",
|
|
45
|
+
medium: "Medium",
|
|
46
|
+
low: "Low"
|
|
47
|
+
},
|
|
48
|
+
tableHeaderTitle: {
|
|
49
|
+
name: "NAME",
|
|
50
|
+
vulnerabilities: "VULNERABILITIES",
|
|
51
|
+
status: "STATUS",
|
|
52
|
+
taskStatus: "TASK STATUS",
|
|
53
|
+
startTime: "STARTED",
|
|
54
|
+
duration: "DURATION",
|
|
55
|
+
actions: "ACTIONS"
|
|
56
|
+
}
|
|
57
|
+
},
|
|
58
|
+
pipelineRunLogs: {
|
|
59
|
+
title: "PipelineRun Logs",
|
|
60
|
+
noLogs: "No logs found",
|
|
61
|
+
downloader: {
|
|
62
|
+
downloadTaskLogs: "Download",
|
|
63
|
+
downloadPipelineRunLogs: "Download all tasks logs"
|
|
64
|
+
},
|
|
65
|
+
podLogsDownloadLink: {
|
|
66
|
+
title: "Download",
|
|
67
|
+
downloading: "downloading logs"
|
|
68
|
+
},
|
|
69
|
+
taskStatusStepper: {
|
|
70
|
+
skipped: "Skipped"
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
pipelineRunOutput: {
|
|
74
|
+
title: "PipelineRun Output",
|
|
75
|
+
noOutput: "No output"
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
});
|
|
79
|
+
|
|
80
|
+
export { tektonTranslationRef };
|
|
81
|
+
//# sourceMappingURL=translation.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translation.esm.js","sources":["../src/translation.ts"],"sourcesContent":["/*\n * Copyright 2025 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 */\n\nimport { createTranslationRef } from '@backstage/core-plugin-api/alpha';\n\n/**\n * Tekton translation reference.\n * @public\n */\nexport const tektonTranslationRef = createTranslationRef({\n id: 'tekton',\n messages: {\n errorPanel: {\n title: 'There was a problem retrieving Kubernetes objects',\n description:\n 'There was a problem retrieving some Kubernetes resources for the entity: {{entityName}}. This could mean that the Error Reporting card is not completely accurate.',\n },\n permissionAlert: {\n title: 'Permission required',\n description:\n 'To view Tekton Pipeline Runs, contact your administrator to give you the following permission(s): {{permissions}}.',\n },\n statusSelector: {\n label: 'Status',\n },\n tableExpandCollapse: {\n collapseAll: 'Collapse all',\n expandAll: 'Expand all',\n },\n pipelineVisualization: {\n emptyState: {\n description: 'No Pipeline Run to visualize',\n },\n noTasksDescription: 'This Pipeline Run has no tasks to visualize',\n stepList: {\n finallyTaskTitle: 'Finally Task',\n },\n },\n pipelineRunList: {\n title: 'Pipeline Runs',\n noPipelineRuns: 'No Pipeline Runs found',\n searchBarPlaceholder: 'Search',\n rowActions: {\n viewLogs: 'View logs',\n unauthorizedViewLogs: 'Unauthorized to view logs',\n viewSBOM: 'View SBOM',\n SBOMNotApplicable: 'View SBOM is not applicable for this PipelineRun',\n viewOutput: 'View output',\n outputNotApplicable:\n 'View Output is not applicable for this PipelineRun',\n },\n vulnerabilitySeverityTitle: {\n critical: 'Critical',\n high: 'High',\n medium: 'Medium',\n low: 'Low',\n },\n tableHeaderTitle: {\n name: 'NAME',\n vulnerabilities: 'VULNERABILITIES',\n status: 'STATUS',\n taskStatus: 'TASK STATUS',\n startTime: 'STARTED',\n duration: 'DURATION',\n actions: 'ACTIONS',\n },\n },\n pipelineRunLogs: {\n title: 'PipelineRun Logs',\n noLogs: 'No logs found',\n downloader: {\n downloadTaskLogs: 'Download',\n downloadPipelineRunLogs: 'Download all tasks logs',\n },\n podLogsDownloadLink: {\n title: 'Download',\n downloading: 'downloading logs',\n },\n taskStatusStepper: {\n skipped: 'Skipped',\n },\n },\n pipelineRunOutput: {\n title: 'PipelineRun Output',\n noOutput: 'No output',\n },\n },\n});\n"],"names":[],"mappings":";;AAsBO,MAAM,uBAAuB,oBAAqB,CAAA;AAAA,EACvD,EAAI,EAAA,QAAA;AAAA,EACJ,QAAU,EAAA;AAAA,IACR,UAAY,EAAA;AAAA,MACV,KAAO,EAAA,mDAAA;AAAA,MACP,WACE,EAAA;AAAA,KACJ;AAAA,IACA,eAAiB,EAAA;AAAA,MACf,KAAO,EAAA,qBAAA;AAAA,MACP,WACE,EAAA;AAAA,KACJ;AAAA,IACA,cAAgB,EAAA;AAAA,MACd,KAAO,EAAA;AAAA,KACT;AAAA,IACA,mBAAqB,EAAA;AAAA,MACnB,WAAa,EAAA,cAAA;AAAA,MACb,SAAW,EAAA;AAAA,KACb;AAAA,IACA,qBAAuB,EAAA;AAAA,MACrB,UAAY,EAAA;AAAA,QACV,WAAa,EAAA;AAAA,OACf;AAAA,MACA,kBAAoB,EAAA,6CAAA;AAAA,MACpB,QAAU,EAAA;AAAA,QACR,gBAAkB,EAAA;AAAA;AACpB,KACF;AAAA,IACA,eAAiB,EAAA;AAAA,MACf,KAAO,EAAA,eAAA;AAAA,MACP,cAAgB,EAAA,wBAAA;AAAA,MAChB,oBAAsB,EAAA,QAAA;AAAA,MACtB,UAAY,EAAA;AAAA,QACV,QAAU,EAAA,WAAA;AAAA,QACV,oBAAsB,EAAA,2BAAA;AAAA,QACtB,QAAU,EAAA,WAAA;AAAA,QACV,iBAAmB,EAAA,kDAAA;AAAA,QACnB,UAAY,EAAA,aAAA;AAAA,QACZ,mBACE,EAAA;AAAA,OACJ;AAAA,MACA,0BAA4B,EAAA;AAAA,QAC1B,QAAU,EAAA,UAAA;AAAA,QACV,IAAM,EAAA,MAAA;AAAA,QACN,MAAQ,EAAA,QAAA;AAAA,QACR,GAAK,EAAA;AAAA,OACP;AAAA,MACA,gBAAkB,EAAA;AAAA,QAChB,IAAM,EAAA,MAAA;AAAA,QACN,eAAiB,EAAA,iBAAA;AAAA,QACjB,MAAQ,EAAA,QAAA;AAAA,QACR,UAAY,EAAA,aAAA;AAAA,QACZ,SAAW,EAAA,SAAA;AAAA,QACX,QAAU,EAAA,UAAA;AAAA,QACV,OAAS,EAAA;AAAA;AACX,KACF;AAAA,IACA,eAAiB,EAAA;AAAA,MACf,KAAO,EAAA,kBAAA;AAAA,MACP,MAAQ,EAAA,eAAA;AAAA,MACR,UAAY,EAAA;AAAA,QACV,gBAAkB,EAAA,UAAA;AAAA,QAClB,uBAAyB,EAAA;AAAA,OAC3B;AAAA,MACA,mBAAqB,EAAA;AAAA,QACnB,KAAO,EAAA,UAAA;AAAA,QACP,WAAa,EAAA;AAAA,OACf;AAAA,MACA,iBAAmB,EAAA;AAAA,QACjB,OAAS,EAAA;AAAA;AACX,KACF;AAAA,IACA,iBAAmB,EAAA;AAAA,MACjB,KAAO,EAAA,oBAAA;AAAA,MACP,QAAU,EAAA;AAAA;AACZ;AAEJ,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-tekton",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.25.0",
|
|
4
4
|
"main": "dist/index.esm.js",
|
|
5
5
|
"types": "dist/index.d.ts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -35,16 +35,16 @@
|
|
|
35
35
|
},
|
|
36
36
|
"dependencies": {
|
|
37
37
|
"@aonic-ui/pipelines": "^3.1.0",
|
|
38
|
-
"@backstage-community/plugin-tekton-common": "^1.
|
|
38
|
+
"@backstage-community/plugin-tekton-common": "^1.9.0",
|
|
39
39
|
"@backstage/catalog-model": "^1.7.3",
|
|
40
|
-
"@backstage/core-components": "^0.
|
|
41
|
-
"@backstage/core-plugin-api": "^1.10.
|
|
42
|
-
"@backstage/plugin-catalog-react": "^1.
|
|
43
|
-
"@backstage/plugin-kubernetes": "^0.12.
|
|
44
|
-
"@backstage/plugin-kubernetes-common": "^0.9.
|
|
45
|
-
"@backstage/plugin-kubernetes-react": "^0.5.
|
|
46
|
-
"@backstage/plugin-permission-react": "^0.4.
|
|
47
|
-
"@backstage/theme": "^0.6.
|
|
40
|
+
"@backstage/core-components": "^0.17.1",
|
|
41
|
+
"@backstage/core-plugin-api": "^1.10.6",
|
|
42
|
+
"@backstage/plugin-catalog-react": "^1.17.0",
|
|
43
|
+
"@backstage/plugin-kubernetes": "^0.12.6",
|
|
44
|
+
"@backstage/plugin-kubernetes-common": "^0.9.4",
|
|
45
|
+
"@backstage/plugin-kubernetes-react": "^0.5.6",
|
|
46
|
+
"@backstage/plugin-permission-react": "^0.4.33",
|
|
47
|
+
"@backstage/theme": "^0.6.5",
|
|
48
48
|
"@janus-idp/shared-react": "^2.16.0",
|
|
49
49
|
"@kubernetes/client-node": "1.0.0-rc7",
|
|
50
50
|
"@material-ui/core": "^4.9.13",
|
|
@@ -56,6 +56,7 @@
|
|
|
56
56
|
"@patternfly/react-core": "^6.0.0",
|
|
57
57
|
"@patternfly/react-tokens": "^6.0.0",
|
|
58
58
|
"@patternfly/react-topology": "^6.0.0",
|
|
59
|
+
"@tanstack/react-query": "^5.62.7",
|
|
59
60
|
"classnames": "^2.3.2",
|
|
60
61
|
"dagre": "^0.8.5",
|
|
61
62
|
"lodash": "^4.17.21",
|
|
@@ -63,15 +64,15 @@
|
|
|
63
64
|
"react-use": "^17.4.0"
|
|
64
65
|
},
|
|
65
66
|
"peerDependencies": {
|
|
66
|
-
"react": "^
|
|
67
|
-
"react-dom": "^
|
|
67
|
+
"react": "^17.0.0 || ^18.0.0",
|
|
68
|
+
"react-dom": "^17.0.0 || ^18.0.0",
|
|
68
69
|
"react-router-dom": "^6.0.0"
|
|
69
70
|
},
|
|
70
71
|
"devDependencies": {
|
|
71
|
-
"@backstage/cli": "^0.
|
|
72
|
-
"@backstage/core-app-api": "^1.
|
|
73
|
-
"@backstage/dev-utils": "^1.1.
|
|
74
|
-
"@backstage/test-utils": "^1.7.
|
|
72
|
+
"@backstage/cli": "^0.32.0",
|
|
73
|
+
"@backstage/core-app-api": "^1.16.1",
|
|
74
|
+
"@backstage/dev-utils": "^1.1.9",
|
|
75
|
+
"@backstage/test-utils": "^1.7.7",
|
|
75
76
|
"@playwright/test": "1.51.1",
|
|
76
77
|
"@redhat-developer/red-hat-developer-hub-theme": "0.4.0",
|
|
77
78
|
"@testing-library/jest-dom": "6.6.3",
|
|
@@ -110,8 +111,8 @@
|
|
|
110
111
|
"author": "Red Hat",
|
|
111
112
|
"typesVersions": {
|
|
112
113
|
"*": {
|
|
113
|
-
"
|
|
114
|
-
"
|
|
114
|
+
"package.json": [
|
|
115
|
+
"package.json"
|
|
115
116
|
]
|
|
116
117
|
}
|
|
117
118
|
},
|