@backstage-community/plugin-tekton 3.40.1 → 3.41.1
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 +13 -0
- package/dist/alpha.esm.js +2 -0
- package/dist/alpha.esm.js.map +1 -1
- package/dist/components/PipelineRunList/PipelineRunList.esm.js +1 -1
- package/dist/components/PipelineRunList/PipelineRunListSearchBar.esm.js +1 -1
- package/dist/components/PipelineRunList/PipelineRunOutput.esm.js +1 -1
- package/dist/components/PipelineRunList/PipelineRunRow.esm.js +1 -1
- package/dist/components/PipelineRunList/PipelineRunRowActions.esm.js +1 -1
- package/dist/components/PipelineRunList/PipelineRunVulnerabilities.esm.js +1 -1
- package/dist/components/PipelineRunList/PipelineTableHeader.esm.js +1 -1
- package/dist/components/PipelineRunList/PlrStatus.esm.js +1 -1
- package/dist/components/PipelineRunLogs/PipelineRunLogDialog.esm.js +1 -1
- package/dist/components/PipelineRunLogs/PipelineRunLogDownloader.esm.js +4 -1
- package/dist/components/PipelineRunLogs/PipelineRunLogDownloader.esm.js.map +1 -1
- package/dist/components/PipelineRunLogs/PipelineRunLogViewer.esm.js +1 -1
- package/dist/components/PipelineRunLogs/PipelineRunLogs.esm.js +4 -4
- package/dist/components/PipelineRunLogs/PipelineRunLogs.esm.js.map +1 -1
- package/dist/components/PipelineRunLogs/PodLogsDownloadLink.esm.js +1 -1
- package/dist/components/PipelineRunLogs/TaskStatusStepper.esm.js +1 -1
- package/dist/components/PipelineRunOutput/PipelineRunOutputDialog.esm.js +1 -1
- package/dist/components/PipelineRunParamsAndResults/Output.esm.js +1 -1
- package/dist/components/PipelineRunParamsAndResults/PipelineRunParams.esm.js +1 -1
- package/dist/components/PipelineRunParamsAndResults/PipelineRunParamsAndResults.esm.js +1 -1
- package/dist/components/PipelineRunParamsAndResults/PipelineRunParamsAndResultsDialog.esm.js +1 -1
- package/dist/components/PipelineRunParamsAndResults/PipelineRunResults.esm.js +1 -1
- package/dist/components/common/ClusterSelector.esm.js +1 -1
- package/dist/components/common/ErrorPanel.esm.js +1 -1
- package/dist/components/common/PermissionAlert.esm.js +1 -1
- package/dist/components/common/StatusSelector.esm.js +1 -1
- package/dist/components/common/TableExpandCollapse.esm.js +1 -1
- package/dist/components/pipeline-topology/PipelineTaskNode.esm.js +1 -1
- package/dist/components/pipeline-topology/PipelineVisualization.esm.js +1 -1
- package/dist/components/pipeline-topology/PipelineVisualizationStepList.esm.js +1 -1
- package/dist/components/pipeline-topology/PipelineVisualizationView.esm.js +1 -1
- package/dist/hooks/usePodLogsOfPipelineRun.esm.js +2 -2
- package/dist/hooks/usePodLogsOfPipelineRun.esm.js.map +1 -1
- package/dist/index.d.ts +3 -85
- package/dist/index.esm.js +1 -1
- package/dist/translations.d.ts +92 -0
- package/dist/translations.esm.js +29 -0
- package/dist/translations.esm.js.map +1 -0
- package/package.json +13 -2
- package/dist/translations/index.esm.js +0 -16
- package/dist/translations/index.esm.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,18 @@
|
|
|
1
1
|
# @backstage-community/plugin-tekton
|
|
2
2
|
|
|
3
|
+
## 3.41.1
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- f805ea0: Added spacing to the pipeline run log viewer dialog between the task sidebar and log content area
|
|
8
|
+
- 4b8f04b: Hide the CI/CD tab on entity pages when the tekton annotation is not present
|
|
9
|
+
|
|
10
|
+
## 3.41.0
|
|
11
|
+
|
|
12
|
+
### Minor Changes
|
|
13
|
+
|
|
14
|
+
- 087a229: Add NFS translations module with default export for `packages: all` discovery
|
|
15
|
+
|
|
3
16
|
## 3.40.1
|
|
4
17
|
|
|
5
18
|
### Patch Changes
|
package/dist/alpha.esm.js
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
3
3
|
import { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';
|
|
4
|
+
import { isTektonCIAvailable } from './utils/isTektonCIAvailable.esm.js';
|
|
4
5
|
|
|
5
6
|
const tektonEntityContent = EntityContentBlueprint.make({
|
|
6
7
|
name: "tektonEntityContent",
|
|
7
8
|
params: {
|
|
8
9
|
path: "/tekton",
|
|
9
10
|
title: "Tekton",
|
|
11
|
+
filter: isTektonCIAvailable,
|
|
10
12
|
loader: () => import('./components/Router.esm.js').then((m) => /* @__PURE__ */ jsx(m.Router, {}))
|
|
11
13
|
}
|
|
12
14
|
});
|
package/dist/alpha.esm.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.tsx"],"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 */\nimport { createFrontendPlugin } from '@backstage/frontend-plugin-api';\nimport { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';\n\nconst tektonEntityContent = EntityContentBlueprint.make({\n name: 'tektonEntityContent',\n params: {\n path: '/tekton',\n title: 'Tekton',\n loader: () => import('./components/Router').then(m => <m.Router />),\n },\n});\n\n/**\n * The Tekton backstage NFS plugin.\n * @alpha\n */\nexport default createFrontendPlugin({\n pluginId: 'tekton',\n extensions: [tektonEntityContent],\n});\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"alpha.esm.js","sources":["../src/alpha.tsx"],"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 */\nimport { createFrontendPlugin } from '@backstage/frontend-plugin-api';\nimport { EntityContentBlueprint } from '@backstage/plugin-catalog-react/alpha';\nimport { isTektonCIAvailable } from './utils/isTektonCIAvailable';\n\nconst tektonEntityContent = EntityContentBlueprint.make({\n name: 'tektonEntityContent',\n params: {\n path: '/tekton',\n title: 'Tekton',\n filter: isTektonCIAvailable,\n loader: () => import('./components/Router').then(m => <m.Router />),\n },\n});\n\n/**\n * The Tekton backstage NFS plugin.\n * @alpha\n */\nexport default createFrontendPlugin({\n pluginId: 'tekton',\n extensions: [tektonEntityContent],\n});\n"],"names":[],"mappings":";;;;;AAmBA,MAAM,mBAAA,GAAsB,uBAAuB,IAAA,CAAK;AAAA,EACtD,IAAA,EAAM,qBAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,SAAA;AAAA,IACN,KAAA,EAAO,QAAA;AAAA,IACP,MAAA,EAAQ,mBAAA;AAAA,IACR,MAAA,EAAQ,MAAM,OAAO,4BAAqB,CAAA,CAAE,IAAA,CAAK,CAAA,CAAA,qBAAK,GAAA,CAAC,CAAA,CAAE,MAAA,EAAF,EAAS,CAAE;AAAA;AAEtE,CAAC,CAAA;AAMD,YAAe,oBAAA,CAAqB;AAAA,EAClC,QAAA,EAAU,QAAA;AAAA,EACV,UAAA,EAAY,CAAC,mBAAmB;AAClC,CAAC,CAAA;;;;"}
|
|
@@ -26,7 +26,7 @@ import { PipelineRunTableBody } from './PipelineRunTableBody.esm.js';
|
|
|
26
26
|
import { EnhancedTableHead } from './PipelineTableHeader.esm.js';
|
|
27
27
|
import { pipelineRunTableSx } from './pipelineRunTableColumns.esm.js';
|
|
28
28
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
29
|
-
import '../../translations
|
|
29
|
+
import '../../translations.esm.js';
|
|
30
30
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
31
31
|
|
|
32
32
|
const titleSx = {
|
|
@@ -6,7 +6,7 @@ import InputAdornment from '@mui/material/InputAdornment';
|
|
|
6
6
|
import Clear from '@mui/icons-material/Clear';
|
|
7
7
|
import Search from '@mui/icons-material/Search';
|
|
8
8
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
9
|
-
import '../../translations
|
|
9
|
+
import '../../translations.esm.js';
|
|
10
10
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
11
11
|
|
|
12
12
|
const PipelineRunListSearchBar = ({
|
|
@@ -8,7 +8,7 @@ import Paper from '@mui/material/Paper';
|
|
|
8
8
|
import Typography from '@mui/material/Typography';
|
|
9
9
|
import { kubernetesProxyApiRef } from '@backstage/plugin-kubernetes-react';
|
|
10
10
|
import { TektonResourcesContext } from '../../hooks/TektonResourcesContext.esm.js';
|
|
11
|
-
import '../../translations
|
|
11
|
+
import '../../translations.esm.js';
|
|
12
12
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
13
13
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
14
14
|
|
|
@@ -20,7 +20,7 @@ import '../pipeline-topology/PipelineTaskNode.esm.js';
|
|
|
20
20
|
import '../pipeline-topology/TaskGroupEdge.esm.js';
|
|
21
21
|
import '../pipeline-topology/PipelineVisualization.css.esm.js';
|
|
22
22
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
23
|
-
import '../../translations
|
|
23
|
+
import '../../translations.esm.js';
|
|
24
24
|
import { PipelineRunVisualization } from '../pipeline-topology/PipelineRunVisualization.esm.js';
|
|
25
25
|
import PipelineRunRowActions from './PipelineRunRowActions.esm.js';
|
|
26
26
|
import PipelineRunTaskStatus from './PipelineRunTaskStatus.esm.js';
|
|
@@ -16,7 +16,7 @@ import PipelineRunLogDialog from '../PipelineRunLogs/PipelineRunLogDialog.esm.js
|
|
|
16
16
|
import PipelineRunOutputDialog from '../PipelineRunOutput/PipelineRunOutputDialog.esm.js';
|
|
17
17
|
import PipelineRunSBOMLink from './PipelineRunSBOMLink.esm.js';
|
|
18
18
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
19
|
-
import '../../translations
|
|
19
|
+
import '../../translations.esm.js';
|
|
20
20
|
import { PipelineRunParamsAndResultsDialog } from '../PipelineRunParamsAndResults/PipelineRunParamsAndResultsDialog.esm.js';
|
|
21
21
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
22
22
|
|
|
@@ -8,7 +8,7 @@ import classNames from 'classnames';
|
|
|
8
8
|
import { usePipelineRunScanResults } from '../../hooks/usePipelineRunScanResults.esm.js';
|
|
9
9
|
import CriticalRiskIcon from '../Icons/CriticalRiskIcon.esm.js';
|
|
10
10
|
import EqualsIcon from '../Icons/EqualsIcon.esm.js';
|
|
11
|
-
import '../../translations
|
|
11
|
+
import '../../translations.esm.js';
|
|
12
12
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
13
13
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
14
14
|
|
|
@@ -6,7 +6,7 @@ import TableSortLabel from '@mui/material/TableSortLabel';
|
|
|
6
6
|
import { getPipelineRunColumnHeader } from './PipelineRunColumnHeader.esm.js';
|
|
7
7
|
import { getMergedPipelineRunTableHeaderCellSx } from './pipelineRunTableColumns.esm.js';
|
|
8
8
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
9
|
-
import '../../translations
|
|
9
|
+
import '../../translations.esm.js';
|
|
10
10
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
11
11
|
|
|
12
12
|
const EnhancedTableHead = ({
|
|
@@ -3,7 +3,7 @@ import { pipelineRunFilterReducer } from '@backstage-community/plugin-tekton-rea
|
|
|
3
3
|
import { Status } from '../common/Status.esm.js';
|
|
4
4
|
import './PlrStatus.css.esm.js';
|
|
5
5
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
6
|
-
import '../../translations
|
|
6
|
+
import '../../translations.esm.js';
|
|
7
7
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
8
8
|
|
|
9
9
|
const PlrStatus = ({ obj }) => {
|
|
@@ -12,7 +12,7 @@ import ResourceBadge from '../PipelineRunList/ResourceBadge.esm.js';
|
|
|
12
12
|
import PipelineRunLogDownloader from './PipelineRunLogDownloader.esm.js';
|
|
13
13
|
import { PipelineRunLogs } from './PipelineRunLogs.esm.js';
|
|
14
14
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
15
|
-
import '../../translations
|
|
15
|
+
import '../../translations.esm.js';
|
|
16
16
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
17
17
|
|
|
18
18
|
const titleContainerSx = {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useMemo } from 'react';
|
|
3
|
+
import { useTheme } from '@mui/material/styles';
|
|
3
4
|
import { Flex, FlexItem } from '@patternfly/react-core';
|
|
4
5
|
import { TEKTON_PIPELINE_RUN, TEKTON_PIPELINE_TASKRUN, TEKTON_PIPELINE_TASK } from '../../consts/tekton-const.esm.js';
|
|
5
6
|
import PodLogsDownloadLink from './PodLogsDownloadLink.esm.js';
|
|
6
7
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
7
|
-
import '../../translations
|
|
8
|
+
import '../../translations.esm.js';
|
|
8
9
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
9
10
|
|
|
10
11
|
const PipelineRunLogDownloader = ({ pods, pipelineRun, activeTask }) => {
|
|
@@ -17,6 +18,7 @@ const PipelineRunLogDownloader = ({ pods, pipelineRun, activeTask }) => {
|
|
|
17
18
|
),
|
|
18
19
|
[filteredPods]
|
|
19
20
|
);
|
|
21
|
+
const theme = useTheme();
|
|
20
22
|
const { t } = useTranslationRef(tektonTranslationRef);
|
|
21
23
|
const activeTaskPod = sortedPods.find(
|
|
22
24
|
(sp) => sp.metadata?.labels?.[TEKTON_PIPELINE_TASKRUN] === activeTask
|
|
@@ -26,6 +28,7 @@ const PipelineRunLogDownloader = ({ pods, pipelineRun, activeTask }) => {
|
|
|
26
28
|
{
|
|
27
29
|
"data-testid": "pipelinerun-logs-downloader",
|
|
28
30
|
justifyContent: { default: "justifyContentFlexEnd" },
|
|
31
|
+
style: { marginBottom: theme.spacing(2) },
|
|
29
32
|
children: [
|
|
30
33
|
/* @__PURE__ */ jsx(FlexItem, { children: /* @__PURE__ */ jsx(
|
|
31
34
|
PodLogsDownloadLink,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PipelineRunLogDownloader.esm.js","sources":["../../../src/components/PipelineRunLogs/PipelineRunLogDownloader.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 type { FC } from 'react';\n\nimport { useMemo } from 'react';\n\nimport { V1Pod } from '@kubernetes/client-node';\nimport { Flex, FlexItem } from '@patternfly/react-core';\n\nimport { PipelineRunKind } from '@backstage-community/plugin-tekton-react';\n\nimport {\n TEKTON_PIPELINE_RUN,\n TEKTON_PIPELINE_TASK,\n TEKTON_PIPELINE_TASKRUN,\n} from '../../consts/tekton-const';\nimport PodLogsDownloadLink from './PodLogsDownloadLink';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { tektonTranslationRef } from '../../translations/index.ts';\n\nconst PipelineRunLogDownloader: FC<{\n pods: V1Pod[];\n pipelineRun: PipelineRunKind;\n activeTask: string | undefined;\n}> = ({ pods, pipelineRun, activeTask }) => {\n const filteredPods: V1Pod[] = pods?.filter(\n (p: V1Pod) =>\n p?.metadata?.labels?.[TEKTON_PIPELINE_RUN] ===\n pipelineRun?.metadata?.name,\n );\n\n const sortedPods: V1Pod[] = useMemo(\n () =>\n Array.from(filteredPods)?.sort(\n (a: V1Pod, b: V1Pod) =>\n new Date(a?.status?.startTime as Date).getTime() -\n new Date(b?.status?.startTime as Date).getTime(),\n ),\n [filteredPods],\n );\n const { t } = useTranslationRef(tektonTranslationRef);\n\n const activeTaskPod: V1Pod =\n sortedPods.find(\n (sp: V1Pod) =>\n sp.metadata?.labels?.[TEKTON_PIPELINE_TASKRUN] === activeTask,\n ) ?? sortedPods[sortedPods.length - 1];\n\n return sortedPods.length > 0 ? (\n <Flex\n data-testid=\"pipelinerun-logs-downloader\"\n justifyContent={{ default: 'justifyContentFlexEnd' }}\n >\n <FlexItem>\n <PodLogsDownloadLink\n data-testid=\"download-task-logs\"\n pods={activeTaskPod ? [activeTaskPod] : []}\n fileName={`${\n activeTaskPod?.metadata?.labels?.[TEKTON_PIPELINE_TASK] ?? 'task'\n }.log`}\n downloadTitle={t('pipelineRunLogs.downloader.downloadTaskLogs')}\n />\n </FlexItem>\n <FlexItem>\n <PodLogsDownloadLink\n data-testid=\"download-pipelinerun-logs\"\n pods={sortedPods}\n fileName={`${pipelineRun?.metadata?.name ?? 'pipelinerun'}.log`}\n downloadTitle={t(\n 'pipelineRunLogs.downloader.downloadPipelineRunLogs',\n )}\n />\n </FlexItem>\n </Flex>\n ) : null;\n};\nexport default PipelineRunLogDownloader;\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"PipelineRunLogDownloader.esm.js","sources":["../../../src/components/PipelineRunLogs/PipelineRunLogDownloader.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 type { FC } from 'react';\n\nimport { useMemo } from 'react';\n\nimport { V1Pod } from '@kubernetes/client-node';\nimport { useTheme } from '@mui/material/styles';\nimport { Flex, FlexItem } from '@patternfly/react-core';\n\nimport { PipelineRunKind } from '@backstage-community/plugin-tekton-react';\n\nimport {\n TEKTON_PIPELINE_RUN,\n TEKTON_PIPELINE_TASK,\n TEKTON_PIPELINE_TASKRUN,\n} from '../../consts/tekton-const';\nimport PodLogsDownloadLink from './PodLogsDownloadLink';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { tektonTranslationRef } from '../../translations/index.ts';\n\nconst PipelineRunLogDownloader: FC<{\n pods: V1Pod[];\n pipelineRun: PipelineRunKind;\n activeTask: string | undefined;\n}> = ({ pods, pipelineRun, activeTask }) => {\n const filteredPods: V1Pod[] = pods?.filter(\n (p: V1Pod) =>\n p?.metadata?.labels?.[TEKTON_PIPELINE_RUN] ===\n pipelineRun?.metadata?.name,\n );\n\n const sortedPods: V1Pod[] = useMemo(\n () =>\n Array.from(filteredPods)?.sort(\n (a: V1Pod, b: V1Pod) =>\n new Date(a?.status?.startTime as Date).getTime() -\n new Date(b?.status?.startTime as Date).getTime(),\n ),\n [filteredPods],\n );\n const theme = useTheme();\n const { t } = useTranslationRef(tektonTranslationRef);\n\n const activeTaskPod: V1Pod =\n sortedPods.find(\n (sp: V1Pod) =>\n sp.metadata?.labels?.[TEKTON_PIPELINE_TASKRUN] === activeTask,\n ) ?? sortedPods[sortedPods.length - 1];\n\n return sortedPods.length > 0 ? (\n <Flex\n data-testid=\"pipelinerun-logs-downloader\"\n justifyContent={{ default: 'justifyContentFlexEnd' }}\n style={{ marginBottom: theme.spacing(2) }}\n >\n <FlexItem>\n <PodLogsDownloadLink\n data-testid=\"download-task-logs\"\n pods={activeTaskPod ? [activeTaskPod] : []}\n fileName={`${\n activeTaskPod?.metadata?.labels?.[TEKTON_PIPELINE_TASK] ?? 'task'\n }.log`}\n downloadTitle={t('pipelineRunLogs.downloader.downloadTaskLogs')}\n />\n </FlexItem>\n <FlexItem>\n <PodLogsDownloadLink\n data-testid=\"download-pipelinerun-logs\"\n pods={sortedPods}\n fileName={`${pipelineRun?.metadata?.name ?? 'pipelinerun'}.log`}\n downloadTitle={t(\n 'pipelineRunLogs.downloader.downloadPipelineRunLogs',\n )}\n />\n </FlexItem>\n </Flex>\n ) : null;\n};\nexport default PipelineRunLogDownloader;\n"],"names":[],"mappings":";;;;;;;;;;AAkCA,MAAM,2BAID,CAAC,EAAE,IAAA,EAAM,WAAA,EAAa,YAAW,KAAM;AAC1C,EAAA,MAAM,eAAwB,IAAA,EAAM,MAAA;AAAA,IAClC,CAAC,MACC,CAAA,EAAG,QAAA,EAAU,SAAS,mBAAmB,CAAA,KACzC,aAAa,QAAA,EAAU;AAAA,GAC3B;AAEA,EAAA,MAAM,UAAA,GAAsB,OAAA;AAAA,IAC1B,MACE,KAAA,CAAM,IAAA,CAAK,YAAY,CAAA,EAAG,IAAA;AAAA,MACxB,CAAC,CAAA,EAAU,CAAA,KACT,IAAI,IAAA,CAAK,GAAG,MAAA,EAAQ,SAAiB,CAAA,CAAE,OAAA,KACvC,IAAI,IAAA,CAAK,GAAG,MAAA,EAAQ,SAAiB,EAAE,OAAA;AAAQ,KACnD;AAAA,IACF,CAAC,YAAY;AAAA,GACf;AACA,EAAA,MAAM,QAAQ,QAAA,EAAS;AACvB,EAAA,MAAM,EAAE,CAAA,EAAE,GAAI,iBAAA,CAAkB,oBAAoB,CAAA;AAEpD,EAAA,MAAM,gBACJ,UAAA,CAAW,IAAA;AAAA,IACT,CAAC,EAAA,KACC,EAAA,CAAG,QAAA,EAAU,MAAA,GAAS,uBAAuB,CAAA,KAAM;AAAA,GACvD,IAAK,UAAA,CAAW,UAAA,CAAW,MAAA,GAAS,CAAC,CAAA;AAEvC,EAAA,OAAO,UAAA,CAAW,SAAS,CAAA,mBACzB,IAAA;AAAA,IAAC,IAAA;AAAA,IAAA;AAAA,MACC,aAAA,EAAY,6BAAA;AAAA,MACZ,cAAA,EAAgB,EAAE,OAAA,EAAS,uBAAA,EAAwB;AAAA,MACnD,OAAO,EAAE,YAAA,EAAc,KAAA,CAAM,OAAA,CAAQ,CAAC,CAAA,EAAE;AAAA,MAExC,QAAA,EAAA;AAAA,wBAAA,GAAA,CAAC,QAAA,EAAA,EACC,QAAA,kBAAA,GAAA;AAAA,UAAC,mBAAA;AAAA,UAAA;AAAA,YACC,aAAA,EAAY,oBAAA;AAAA,YACZ,IAAA,EAAM,aAAA,GAAgB,CAAC,aAAa,IAAI,EAAC;AAAA,YACzC,UAAU,CAAA,EACR,aAAA,EAAe,UAAU,MAAA,GAAS,oBAAoB,KAAK,MAC7D,CAAA,IAAA,CAAA;AAAA,YACA,aAAA,EAAe,EAAE,6CAA6C;AAAA;AAAA,SAChE,EACF,CAAA;AAAA,4BACC,QAAA,EAAA,EACC,QAAA,kBAAA,GAAA;AAAA,UAAC,mBAAA;AAAA,UAAA;AAAA,YACC,aAAA,EAAY,2BAAA;AAAA,YACZ,IAAA,EAAM,UAAA;AAAA,YACN,QAAA,EAAU,CAAA,EAAG,WAAA,EAAa,QAAA,EAAU,QAAQ,aAAa,CAAA,IAAA,CAAA;AAAA,YACzD,aAAA,EAAe,CAAA;AAAA,cACb;AAAA;AACF;AAAA,SACF,EACF;AAAA;AAAA;AAAA,GACF,GACE,IAAA;AACN;;;;"}
|
|
@@ -5,7 +5,7 @@ import Skeleton from '@mui/material/Skeleton';
|
|
|
5
5
|
import { QueryClientProvider, QueryClient } from '@tanstack/react-query';
|
|
6
6
|
import { usePodLogsOfPipelineRun } from '../../hooks/usePodLogsOfPipelineRun.esm.js';
|
|
7
7
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
8
|
-
import '../../translations
|
|
8
|
+
import '../../translations.esm.js';
|
|
9
9
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
10
10
|
|
|
11
11
|
const PipelineRunLogViewer = ({ pod }) => {
|
|
@@ -8,7 +8,7 @@ import { getSortedTaskRuns, getActiveTaskRun } from '../../utils/taskRun-utils.e
|
|
|
8
8
|
import { PipelineRunLogViewer as PipelineRunLogViewerWithQueryClient } from './PipelineRunLogViewer.esm.js';
|
|
9
9
|
import { TaskStatusStepper } from './TaskStatusStepper.esm.js';
|
|
10
10
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
11
|
-
import '../../translations
|
|
11
|
+
import '../../translations.esm.js';
|
|
12
12
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
13
13
|
|
|
14
14
|
const PipelineRunLogs = ({
|
|
@@ -53,8 +53,8 @@ const PipelineRunLogs = ({
|
|
|
53
53
|
}),
|
|
54
54
|
[pods, podName]
|
|
55
55
|
);
|
|
56
|
-
return /* @__PURE__ */ jsxs(Grid, { container: true, children: [
|
|
57
|
-
/* @__PURE__ */ jsx(Grid, { item: true, xs: 3, children: /* @__PURE__ */ jsx(Paper, { children: /* @__PURE__ */ jsx(
|
|
56
|
+
return /* @__PURE__ */ jsxs(Grid, { container: true, sx: { gap: 2 }, children: [
|
|
57
|
+
/* @__PURE__ */ jsx(Grid, { item: true, xs: 3, children: /* @__PURE__ */ jsx(Paper, { sx: { paddingX: 2 }, children: /* @__PURE__ */ jsx(
|
|
58
58
|
TaskStatusStepper,
|
|
59
59
|
{
|
|
60
60
|
steps: sortedTaskRuns,
|
|
@@ -62,7 +62,7 @@ const PipelineRunLogs = ({
|
|
|
62
62
|
onUserStepChange: setActiveTask
|
|
63
63
|
}
|
|
64
64
|
) }) }),
|
|
65
|
-
/* @__PURE__ */ jsxs(Grid, { item: true, xs:
|
|
65
|
+
/* @__PURE__ */ jsxs(Grid, { item: true, xs: true, children: [
|
|
66
66
|
!currentStepId && /* @__PURE__ */ jsx(Progress, {}),
|
|
67
67
|
/* @__PURE__ */ jsx("div", { style: { height: "80vh" }, children: !podData ? /* @__PURE__ */ jsx(
|
|
68
68
|
Paper,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PipelineRunLogs.esm.js","sources":["../../../src/components/PipelineRunLogs/PipelineRunLogs.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 { useState, useEffect, useMemo } from 'react';\n\nimport { LogViewer, Progress } from '@backstage/core-components';\n\nimport { V1Pod } from '@kubernetes/client-node';\nimport Grid from '@mui/material/Grid';\nimport Paper from '@mui/material/Paper';\n\nimport {\n getTaskRunsForPipelineRun,\n pipelineRunFilterReducer,\n PipelineRunKind,\n TaskRunKind,\n} from '@backstage-community/plugin-tekton-react';\n\nimport { getActiveTaskRun, getSortedTaskRuns } from '../../utils/taskRun-utils';\nimport { PipelineRunLogViewer } from './PipelineRunLogViewer';\nimport { TaskStatusStepper } from './TaskStatusStepper';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { tektonTranslationRef } from '../../translations/index.ts';\n\ntype PipelineRunLogsProps = {\n pipelineRun: PipelineRunKind;\n taskRuns: TaskRunKind[];\n pods: V1Pod[];\n activeTask?: string;\n setActiveTask: (t: string) => void;\n};\nexport const PipelineRunLogs = ({\n pipelineRun,\n taskRuns,\n pods,\n activeTask,\n setActiveTask,\n}: PipelineRunLogsProps) => {\n const PLRTaskRuns = getTaskRunsForPipelineRun(pipelineRun, taskRuns);\n const sortedTaskRuns = getSortedTaskRuns(PLRTaskRuns);\n const taskRunFromYaml = PLRTaskRuns?.reduce(\n (acc: { [value: string]: TaskRunKind }, value) => {\n if (value?.metadata?.name) {\n acc[value.metadata.name] = value;\n }\n return acc;\n },\n {},\n );\n\n const completed = pipelineRunFilterReducer(pipelineRun);\n const [lastActiveStepId, setLastActiveStepId] = useState<string>('');\n const { t } = useTranslationRef(tektonTranslationRef);\n\n useEffect(() => {\n const mostRecentFailedOrActiveStep = sortedTaskRuns.find(tr =>\n ['Failed', 'Running'].includes(tr.status),\n );\n\n if (completed && !mostRecentFailedOrActiveStep && !activeTask) {\n setLastActiveStepId(sortedTaskRuns[sortedTaskRuns.length - 1]?.id);\n return;\n }\n\n setLastActiveStepId(\n !activeTask ? (mostRecentFailedOrActiveStep?.id as string) : '',\n );\n }, [sortedTaskRuns, completed, activeTask]);\n\n const currentStepId = activeTask || lastActiveStepId;\n const activeItem = getActiveTaskRun(sortedTaskRuns, currentStepId);\n const podName =\n activeItem && taskRunFromYaml?.[currentStepId]?.status?.podName;\n const podData = useMemo(\n () =>\n pods.find(pod => {\n return pod?.metadata?.name === podName;\n }),\n [pods, podName],\n );\n\n return (\n <Grid container>\n <Grid item xs={3}>\n <Paper>\n <TaskStatusStepper\n steps={sortedTaskRuns}\n currentStepId={currentStepId}\n onUserStepChange={setActiveTask}\n />\n </Paper>\n </Grid>\n <Grid item xs
|
|
1
|
+
{"version":3,"file":"PipelineRunLogs.esm.js","sources":["../../../src/components/PipelineRunLogs/PipelineRunLogs.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 { useState, useEffect, useMemo } from 'react';\n\nimport { LogViewer, Progress } from '@backstage/core-components';\n\nimport { V1Pod } from '@kubernetes/client-node';\nimport Grid from '@mui/material/Grid';\nimport Paper from '@mui/material/Paper';\n\nimport {\n getTaskRunsForPipelineRun,\n pipelineRunFilterReducer,\n PipelineRunKind,\n TaskRunKind,\n} from '@backstage-community/plugin-tekton-react';\n\nimport { getActiveTaskRun, getSortedTaskRuns } from '../../utils/taskRun-utils';\nimport { PipelineRunLogViewer } from './PipelineRunLogViewer';\nimport { TaskStatusStepper } from './TaskStatusStepper';\nimport { useTranslationRef } from '@backstage/core-plugin-api/alpha';\nimport { tektonTranslationRef } from '../../translations/index.ts';\n\ntype PipelineRunLogsProps = {\n pipelineRun: PipelineRunKind;\n taskRuns: TaskRunKind[];\n pods: V1Pod[];\n activeTask?: string;\n setActiveTask: (t: string) => void;\n};\nexport const PipelineRunLogs = ({\n pipelineRun,\n taskRuns,\n pods,\n activeTask,\n setActiveTask,\n}: PipelineRunLogsProps) => {\n const PLRTaskRuns = getTaskRunsForPipelineRun(pipelineRun, taskRuns);\n const sortedTaskRuns = getSortedTaskRuns(PLRTaskRuns);\n const taskRunFromYaml = PLRTaskRuns?.reduce(\n (acc: { [value: string]: TaskRunKind }, value) => {\n if (value?.metadata?.name) {\n acc[value.metadata.name] = value;\n }\n return acc;\n },\n {},\n );\n\n const completed = pipelineRunFilterReducer(pipelineRun);\n const [lastActiveStepId, setLastActiveStepId] = useState<string>('');\n const { t } = useTranslationRef(tektonTranslationRef);\n\n useEffect(() => {\n const mostRecentFailedOrActiveStep = sortedTaskRuns.find(tr =>\n ['Failed', 'Running'].includes(tr.status),\n );\n\n if (completed && !mostRecentFailedOrActiveStep && !activeTask) {\n setLastActiveStepId(sortedTaskRuns[sortedTaskRuns.length - 1]?.id);\n return;\n }\n\n setLastActiveStepId(\n !activeTask ? (mostRecentFailedOrActiveStep?.id as string) : '',\n );\n }, [sortedTaskRuns, completed, activeTask]);\n\n const currentStepId = activeTask || lastActiveStepId;\n const activeItem = getActiveTaskRun(sortedTaskRuns, currentStepId);\n const podName =\n activeItem && taskRunFromYaml?.[currentStepId]?.status?.podName;\n const podData = useMemo(\n () =>\n pods.find(pod => {\n return pod?.metadata?.name === podName;\n }),\n [pods, podName],\n );\n\n return (\n <Grid container sx={{ gap: 2 }}>\n <Grid item xs={3}>\n <Paper sx={{ paddingX: 2 }}>\n <TaskStatusStepper\n steps={sortedTaskRuns}\n currentStepId={currentStepId}\n onUserStepChange={setActiveTask}\n />\n </Paper>\n </Grid>\n <Grid item xs>\n {!currentStepId && <Progress />}\n <div style={{ height: '80vh' }}>\n {!podData ? (\n <Paper\n elevation={1}\n style={{ height: '100%', width: '100%', minHeight: '30rem' }}\n >\n <LogViewer text={t('pipelineRunLogs.noLogs')} />\n </Paper>\n ) : (\n <PipelineRunLogViewer pod={podData} />\n )}\n </div>\n </Grid>\n </Grid>\n );\n};\n\nexport default PipelineRunLogs;\n"],"names":["PipelineRunLogViewer"],"mappings":";;;;;;;;;;;;;AA2CO,MAAM,kBAAkB,CAAC;AAAA,EAC9B,WAAA;AAAA,EACA,QAAA;AAAA,EACA,IAAA;AAAA,EACA,UAAA;AAAA,EACA;AACF,CAAA,KAA4B;AAC1B,EAAA,MAAM,WAAA,GAAc,yBAAA,CAA0B,WAAA,EAAa,QAAQ,CAAA;AACnE,EAAA,MAAM,cAAA,GAAiB,kBAAkB,WAAW,CAAA;AACpD,EAAA,MAAM,kBAAkB,WAAA,EAAa,MAAA;AAAA,IACnC,CAAC,KAAuC,KAAA,KAAU;AAChD,MAAA,IAAI,KAAA,EAAO,UAAU,IAAA,EAAM;AACzB,QAAA,GAAA,CAAI,KAAA,CAAM,QAAA,CAAS,IAAI,CAAA,GAAI,KAAA;AAAA,MAC7B;AACA,MAAA,OAAO,GAAA;AAAA,IACT,CAAA;AAAA,IACA;AAAC,GACH;AAEA,EAAA,MAAM,SAAA,GAAY,yBAAyB,WAAW,CAAA;AACtD,EAAA,MAAM,CAAC,gBAAA,EAAkB,mBAAmB,CAAA,GAAI,SAAiB,EAAE,CAAA;AACnE,EAAA,MAAM,EAAE,CAAA,EAAE,GAAI,iBAAA,CAAkB,oBAAoB,CAAA;AAEpD,EAAA,SAAA,CAAU,MAAM;AACd,IAAA,MAAM,+BAA+B,cAAA,CAAe,IAAA;AAAA,MAAK,QACvD,CAAC,QAAA,EAAU,SAAS,CAAA,CAAE,QAAA,CAAS,GAAG,MAAM;AAAA,KAC1C;AAEA,IAAA,IAAI,SAAA,IAAa,CAAC,4BAAA,IAAgC,CAAC,UAAA,EAAY;AAC7D,MAAA,mBAAA,CAAoB,cAAA,CAAe,cAAA,CAAe,MAAA,GAAS,CAAC,GAAG,EAAE,CAAA;AACjE,MAAA;AAAA,IACF;AAEA,IAAA,mBAAA;AAAA,MACE,CAAC,UAAA,GAAc,4BAAA,EAA8B,EAAA,GAAgB;AAAA,KAC/D;AAAA,EACF,CAAA,EAAG,CAAC,cAAA,EAAgB,SAAA,EAAW,UAAU,CAAC,CAAA;AAE1C,EAAA,MAAM,gBAAgB,UAAA,IAAc,gBAAA;AACpC,EAAA,MAAM,UAAA,GAAa,gBAAA,CAAiB,cAAA,EAAgB,aAAa,CAAA;AACjE,EAAA,MAAM,OAAA,GACJ,UAAA,IAAc,eAAA,GAAkB,aAAa,GAAG,MAAA,EAAQ,OAAA;AAC1D,EAAA,MAAM,OAAA,GAAU,OAAA;AAAA,IACd,MACE,IAAA,CAAK,IAAA,CAAK,CAAA,GAAA,KAAO;AACf,MAAA,OAAO,GAAA,EAAK,UAAU,IAAA,KAAS,OAAA;AAAA,IACjC,CAAC,CAAA;AAAA,IACH,CAAC,MAAM,OAAO;AAAA,GAChB;AAEA,EAAA,uBACE,IAAA,CAAC,QAAK,SAAA,EAAS,IAAA,EAAC,IAAI,EAAE,GAAA,EAAK,GAAE,EAC3B,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,IAAA,EAAA,EAAK,IAAA,EAAI,IAAA,EAAC,EAAA,EAAI,CAAA,EACb,QAAA,kBAAA,GAAA,CAAC,KAAA,EAAA,EAAM,EAAA,EAAI,EAAE,QAAA,EAAU,CAAA,EAAE,EACvB,QAAA,kBAAA,GAAA;AAAA,MAAC,iBAAA;AAAA,MAAA;AAAA,QACC,KAAA,EAAO,cAAA;AAAA,QACP,aAAA;AAAA,QACA,gBAAA,EAAkB;AAAA;AAAA,OAEtB,CAAA,EACF,CAAA;AAAA,oBACA,IAAA,CAAC,IAAA,EAAA,EAAK,IAAA,EAAI,IAAA,EAAC,IAAE,IAAA,EACV,QAAA,EAAA;AAAA,MAAA,CAAC,aAAA,wBAAkB,QAAA,EAAA,EAAS,CAAA;AAAA,sBAC7B,GAAA,CAAC,SAAI,KAAA,EAAO,EAAE,QAAQ,MAAA,EAAO,EAC1B,WAAC,OAAA,mBACA,GAAA;AAAA,QAAC,KAAA;AAAA,QAAA;AAAA,UACC,SAAA,EAAW,CAAA;AAAA,UACX,OAAO,EAAE,MAAA,EAAQ,QAAQ,KAAA,EAAO,MAAA,EAAQ,WAAW,OAAA,EAAQ;AAAA,UAE3D,QAAA,kBAAA,GAAA,CAAC,SAAA,EAAA,EAAU,IAAA,EAAM,CAAA,CAAE,wBAAwB,CAAA,EAAG;AAAA;AAAA,OAChD,mBAEA,GAAA,CAACA,mCAAA,EAAA,EAAqB,GAAA,EAAK,SAAS,CAAA,EAExC;AAAA,KAAA,EACF;AAAA,GAAA,EACF,CAAA;AAEJ;;;;"}
|
|
@@ -7,7 +7,7 @@ import DownloadIcon from '@mui/icons-material/FileDownloadOutlined';
|
|
|
7
7
|
import { TektonResourcesContext } from '../../hooks/TektonResourcesContext.esm.js';
|
|
8
8
|
import { getPodLogs } from '../../utils/log-downloader-utils.esm.js';
|
|
9
9
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
10
|
-
import '../../translations
|
|
10
|
+
import '../../translations.esm.js';
|
|
11
11
|
import { downloadLogFile } from '../../utils/download-log-file-utils.esm.js';
|
|
12
12
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
13
13
|
|
|
@@ -15,7 +15,7 @@ import classNames from 'classnames';
|
|
|
15
15
|
import { ComputedStatus } from '@backstage-community/plugin-tekton-react';
|
|
16
16
|
import { calculateDuration } from '../../utils/tekton-utils.esm.js';
|
|
17
17
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
18
|
-
import '../../translations
|
|
18
|
+
import '../../translations.esm.js';
|
|
19
19
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
20
20
|
|
|
21
21
|
const StepTimeTicker = ({ step }) => {
|
|
@@ -11,7 +11,7 @@ import { tektonGroupColor } from '../../types/types.esm.js';
|
|
|
11
11
|
import PipelineRunOutput from '../PipelineRunList/PipelineRunOutput.esm.js';
|
|
12
12
|
import ResourceBadge from '../PipelineRunList/ResourceBadge.esm.js';
|
|
13
13
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
14
|
-
import '../../translations
|
|
14
|
+
import '../../translations.esm.js';
|
|
15
15
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
16
16
|
|
|
17
17
|
const titleContainerSx = {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
3
3
|
import { Table, Thead, Tr, Th, Tbody, Td } from '@patternfly/react-table';
|
|
4
|
-
import '../../translations
|
|
4
|
+
import '../../translations.esm.js';
|
|
5
5
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
6
6
|
|
|
7
7
|
const Output = ({ results }) => {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
3
3
|
import Typography from '@mui/material/Typography';
|
|
4
|
-
import '../../translations
|
|
4
|
+
import '../../translations.esm.js';
|
|
5
5
|
import { Output } from './Output.esm.js';
|
|
6
6
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
7
7
|
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
3
|
-
import '../../translations
|
|
3
|
+
import '../../translations.esm.js';
|
|
4
4
|
import Typography from '@mui/material/Typography';
|
|
5
5
|
import { PipelineRunParams } from './PipelineRunParams.esm.js';
|
|
6
6
|
import { PipelineRunResults } from './PipelineRunResults.esm.js';
|
package/dist/components/PipelineRunParamsAndResults/PipelineRunParamsAndResultsDialog.esm.js
CHANGED
|
@@ -9,7 +9,7 @@ import CloseIcon from '@mui/icons-material/Close';
|
|
|
9
9
|
import { tektonGroupColor } from '../../types/types.esm.js';
|
|
10
10
|
import ResourceBadge from '../PipelineRunList/ResourceBadge.esm.js';
|
|
11
11
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
12
|
-
import '../../translations
|
|
12
|
+
import '../../translations.esm.js';
|
|
13
13
|
import { PipelineRunParamsAndResults } from './PipelineRunParamsAndResults.esm.js';
|
|
14
14
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
15
15
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
2
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
3
3
|
import Typography from '@mui/material/Typography';
|
|
4
|
-
import '../../translations
|
|
4
|
+
import '../../translations.esm.js';
|
|
5
5
|
import { Output } from './Output.esm.js';
|
|
6
6
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
7
7
|
|
|
@@ -5,7 +5,7 @@ import Typography from '@mui/material/Typography';
|
|
|
5
5
|
import { TektonResourcesContext } from '../../hooks/TektonResourcesContext.esm.js';
|
|
6
6
|
import './ClusterSelector.css.esm.js';
|
|
7
7
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
8
|
-
import '../../translations
|
|
8
|
+
import '../../translations.esm.js';
|
|
9
9
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
10
10
|
|
|
11
11
|
const labelSx = {
|
|
@@ -3,7 +3,7 @@ import { WarningPanel } from '@backstage/core-components';
|
|
|
3
3
|
import { useEntity } from '@backstage/plugin-catalog-react';
|
|
4
4
|
import Typography from '@mui/material/Typography';
|
|
5
5
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
6
|
-
import '../../translations
|
|
6
|
+
import '../../translations.esm.js';
|
|
7
7
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
8
8
|
|
|
9
9
|
const ErrorPanel = ({ allErrors }) => {
|
|
@@ -3,7 +3,7 @@ import Alert from '@mui/material/Alert';
|
|
|
3
3
|
import AlertTitle from '@mui/material/AlertTitle';
|
|
4
4
|
import { kubernetesClustersReadPermission, kubernetesResourcesReadPermission } from '@backstage/plugin-kubernetes-common';
|
|
5
5
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
6
|
-
import '../../translations
|
|
6
|
+
import '../../translations.esm.js';
|
|
7
7
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
8
8
|
|
|
9
9
|
const permissions = [
|
|
@@ -6,7 +6,7 @@ import './StatusSelector.css.esm.js';
|
|
|
6
6
|
import { ComputedStatus } from '@backstage-community/plugin-tekton-react';
|
|
7
7
|
import { TektonResourcesContext } from '../../hooks/TektonResourcesContext.esm.js';
|
|
8
8
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
9
|
-
import '../../translations
|
|
9
|
+
import '../../translations.esm.js';
|
|
10
10
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
11
11
|
|
|
12
12
|
const labelSx = {
|
|
@@ -7,7 +7,7 @@ import Collapse from '@mui/icons-material/UnfoldLess';
|
|
|
7
7
|
import Expand from '@mui/icons-material/UnfoldMore';
|
|
8
8
|
import { TektonResourcesContext } from '../../hooks/TektonResourcesContext.esm.js';
|
|
9
9
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
10
|
-
import '../../translations
|
|
10
|
+
import '../../translations.esm.js';
|
|
11
11
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
12
12
|
|
|
13
13
|
const TableExpandCollapse = () => {
|
|
@@ -12,7 +12,7 @@ import PipelineRunLogDialog from '../PipelineRunLogs/PipelineRunLogDialog.esm.js
|
|
|
12
12
|
import { PipelineVisualizationStepList } from './PipelineVisualizationStepList.esm.js';
|
|
13
13
|
import './PipelineTaskNode.css.esm.js';
|
|
14
14
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
15
|
-
import '../../translations
|
|
15
|
+
import '../../translations.esm.js';
|
|
16
16
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
17
17
|
|
|
18
18
|
const PipelineTaskNode$1 = ({
|
|
@@ -4,7 +4,7 @@ import { getGraphDataModel } from '../../utils/pipeline-topology-utils.esm.js';
|
|
|
4
4
|
import { PipelineLayout } from './PipelineLayout.esm.js';
|
|
5
5
|
import './PipelineVisualization.css.esm.js';
|
|
6
6
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
7
|
-
import '../../translations
|
|
7
|
+
import '../../translations.esm.js';
|
|
8
8
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
9
9
|
|
|
10
10
|
const PipelineVisualization = ({
|
|
@@ -11,7 +11,7 @@ import ReportProblemOutlined from '@mui/icons-material/ReportProblemOutlined';
|
|
|
11
11
|
import classNames from 'classnames';
|
|
12
12
|
import './PipelineVisualizationStepList.css.esm.js';
|
|
13
13
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
14
|
-
import '../../translations
|
|
14
|
+
import '../../translations.esm.js';
|
|
15
15
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
16
16
|
|
|
17
17
|
const tooltipStatusIconSx = {
|
|
@@ -7,7 +7,7 @@ import { getPipelineRun } from '../../utils/pipelineRun-utils.esm.js';
|
|
|
7
7
|
import { PipelineVisualization } from './PipelineVisualization.esm.js';
|
|
8
8
|
import './PipelineVisualization.css.esm.js';
|
|
9
9
|
import { useTranslationRef } from '@backstage/core-plugin-api/alpha';
|
|
10
|
-
import '../../translations
|
|
10
|
+
import '../../translations.esm.js';
|
|
11
11
|
import { tektonTranslationRef } from '../../translations/ref.esm.js';
|
|
12
12
|
|
|
13
13
|
const PipelineVisualizationView = ({
|
|
@@ -16,7 +16,7 @@ const usePodLogsOfPipelineRun = ({
|
|
|
16
16
|
const containersList = pod?.spec?.containers || [];
|
|
17
17
|
const podKey = pod?.metadata?.name;
|
|
18
18
|
const stopPolling = pod?.status?.phase === "Succeeded" || pod?.status?.phase === "Failed";
|
|
19
|
-
const { data, error, isLoading
|
|
19
|
+
const { data, error, isLoading } = useQuery({
|
|
20
20
|
queryKey: ["podLogs", podKey, currCluster],
|
|
21
21
|
queryFn: async () => {
|
|
22
22
|
const requests = containersList.map((container) => {
|
|
@@ -40,7 +40,7 @@ const usePodLogsOfPipelineRun = ({
|
|
|
40
40
|
return {
|
|
41
41
|
value: data,
|
|
42
42
|
error,
|
|
43
|
-
loading: isLoading
|
|
43
|
+
loading: isLoading
|
|
44
44
|
};
|
|
45
45
|
};
|
|
46
46
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"usePodLogsOfPipelineRun.esm.js","sources":["../../src/hooks/usePodLogsOfPipelineRun.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 { useContext } from 'react';\nimport { useQuery } from '@tanstack/react-query';\nimport { kubernetesProxyApiRef } from '@backstage/plugin-kubernetes-react';\nimport { useApi } from '@backstage/core-plugin-api';\nimport { V1Container, V1Pod } from '@kubernetes/client-node';\n\nimport { TektonResourcesContextData } from '../types/types';\nimport { TektonResourcesContext } from './TektonResourcesContext';\n\nexport interface ContainerScope {\n podName: string;\n podNamespace: string;\n clusterName: string;\n containerName: string;\n}\n\ninterface PodLogsOptions {\n pod: V1Pod;\n intervalMs?: number;\n}\n\nexport const usePodLogsOfPipelineRun = ({\n pod,\n intervalMs = 5000,\n}: PodLogsOptions) => {\n const kubernetesProxyApi = useApi(kubernetesProxyApiRef);\n const { clusters, selectedCluster } = useContext<TektonResourcesContextData>(\n TektonResourcesContext,\n );\n const currCluster =\n (clusters.length > 0 && clusters[selectedCluster || 0]) || '';\n const containersList = pod?.spec?.containers || [];\n\n const podKey = pod?.metadata?.name;\n const stopPolling =\n pod?.status?.phase === 'Succeeded' || pod?.status?.phase === 'Failed';\n\n const { data, error, isLoading
|
|
1
|
+
{"version":3,"file":"usePodLogsOfPipelineRun.esm.js","sources":["../../src/hooks/usePodLogsOfPipelineRun.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 { useContext } from 'react';\nimport { useQuery } from '@tanstack/react-query';\nimport { kubernetesProxyApiRef } from '@backstage/plugin-kubernetes-react';\nimport { useApi } from '@backstage/core-plugin-api';\nimport { V1Container, V1Pod } from '@kubernetes/client-node';\n\nimport { TektonResourcesContextData } from '../types/types';\nimport { TektonResourcesContext } from './TektonResourcesContext';\n\nexport interface ContainerScope {\n podName: string;\n podNamespace: string;\n clusterName: string;\n containerName: string;\n}\n\ninterface PodLogsOptions {\n pod: V1Pod;\n intervalMs?: number;\n}\n\nexport const usePodLogsOfPipelineRun = ({\n pod,\n intervalMs = 5000,\n}: PodLogsOptions) => {\n const kubernetesProxyApi = useApi(kubernetesProxyApiRef);\n const { clusters, selectedCluster } = useContext<TektonResourcesContextData>(\n TektonResourcesContext,\n );\n const currCluster =\n (clusters.length > 0 && clusters[selectedCluster || 0]) || '';\n const containersList = pod?.spec?.containers || [];\n\n const podKey = pod?.metadata?.name;\n const stopPolling =\n pod?.status?.phase === 'Succeeded' || pod?.status?.phase === 'Failed';\n\n const { data, error, isLoading } = useQuery({\n queryKey: ['podLogs', podKey, currCluster],\n queryFn: async () => {\n const requests = containersList\n .map((container: V1Container) => {\n if (pod?.metadata?.name && pod?.metadata?.namespace && container) {\n return kubernetesProxyApi.getPodLogs({\n podName: pod.metadata.name,\n namespace: pod.metadata.namespace,\n containerName: container.name,\n clusterName: currCluster,\n });\n }\n\n return Promise.resolve({ text: '' });\n })\n .filter(Boolean);\n\n return Promise.all(requests);\n },\n enabled: !!pod?.metadata?.name && containersList.length > 0,\n refetchInterval: stopPolling ? false : intervalMs,\n staleTime: 60000, // Keep the data fresh for 1 minute instead of constantly refetching.\n });\n\n return {\n value: data,\n error,\n loading: isLoading,\n };\n};\n"],"names":[],"mappings":";;;;;;AAoCO,MAAM,0BAA0B,CAAC;AAAA,EACtC,GAAA;AAAA,EACA,UAAA,GAAa;AACf,CAAA,KAAsB;AACpB,EAAA,MAAM,kBAAA,GAAqB,OAAO,qBAAqB,CAAA;AACvD,EAAA,MAAM,EAAE,QAAA,EAAU,eAAA,EAAgB,GAAI,UAAA;AAAA,IACpC;AAAA,GACF;AACA,EAAA,MAAM,cACH,QAAA,CAAS,MAAA,GAAS,KAAK,QAAA,CAAS,eAAA,IAAmB,CAAC,CAAA,IAAM,EAAA;AAC7D,EAAA,MAAM,cAAA,GAAiB,GAAA,EAAK,IAAA,EAAM,UAAA,IAAc,EAAC;AAEjD,EAAA,MAAM,MAAA,GAAS,KAAK,QAAA,EAAU,IAAA;AAC9B,EAAA,MAAM,cACJ,GAAA,EAAK,MAAA,EAAQ,UAAU,WAAA,IAAe,GAAA,EAAK,QAAQ,KAAA,KAAU,QAAA;AAE/D,EAAA,MAAM,EAAE,IAAA,EAAM,KAAA,EAAO,SAAA,KAAc,QAAA,CAAS;AAAA,IAC1C,QAAA,EAAU,CAAC,SAAA,EAAW,MAAA,EAAQ,WAAW,CAAA;AAAA,IACzC,SAAS,YAAY;AACnB,MAAA,MAAM,QAAA,GAAW,cAAA,CACd,GAAA,CAAI,CAAC,SAAA,KAA2B;AAC/B,QAAA,IAAI,KAAK,QAAA,EAAU,IAAA,IAAQ,GAAA,EAAK,QAAA,EAAU,aAAa,SAAA,EAAW;AAChE,UAAA,OAAO,mBAAmB,UAAA,CAAW;AAAA,YACnC,OAAA,EAAS,IAAI,QAAA,CAAS,IAAA;AAAA,YACtB,SAAA,EAAW,IAAI,QAAA,CAAS,SAAA;AAAA,YACxB,eAAe,SAAA,CAAU,IAAA;AAAA,YACzB,WAAA,EAAa;AAAA,WACd,CAAA;AAAA,QACH;AAEA,QAAA,OAAO,OAAA,CAAQ,OAAA,CAAQ,EAAE,IAAA,EAAM,IAAI,CAAA;AAAA,MACrC,CAAC,CAAA,CACA,MAAA,CAAO,OAAO,CAAA;AAEjB,MAAA,OAAO,OAAA,CAAQ,IAAI,QAAQ,CAAA;AAAA,IAC7B,CAAA;AAAA,IACA,SAAS,CAAC,CAAC,KAAK,QAAA,EAAU,IAAA,IAAQ,eAAe,MAAA,GAAS,CAAA;AAAA,IAC1D,eAAA,EAAiB,cAAc,KAAA,GAAQ,UAAA;AAAA,IACvC,SAAA,EAAW;AAAA;AAAA,GACZ,CAAA;AAED,EAAA,OAAO;AAAA,IACL,KAAA,EAAO,IAAA;AAAA,IACP,KAAA;AAAA,IACA,OAAA,EAAS;AAAA,GACX;AACF;;;;"}
|
package/dist/index.d.ts
CHANGED
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as react_jsx_runtime from 'react/jsx-runtime';
|
|
2
2
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
3
3
|
import { Entity } from '@backstage/catalog-model';
|
|
4
|
-
|
|
4
|
+
export { tektonTranslationRef, tektonTranslations, default as tektonTranslationsModule } from './translations.js';
|
|
5
|
+
import '@backstage/frontend-plugin-api';
|
|
5
6
|
|
|
6
7
|
/**
|
|
7
8
|
* A Tekton plugin.
|
|
@@ -29,87 +30,4 @@ declare const TektonCI: () => react_jsx_runtime.JSX.Element | null;
|
|
|
29
30
|
*/
|
|
30
31
|
declare const isTektonCIAvailable: (entity: Entity) => boolean;
|
|
31
32
|
|
|
32
|
-
|
|
33
|
-
* Tekton translation reference.
|
|
34
|
-
* @public
|
|
35
|
-
*/
|
|
36
|
-
declare const tektonTranslationRef: _backstage_frontend_plugin_api.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 "clusterSelector.label": "Cluster";
|
|
43
|
-
readonly "tableExpandCollapse.collapseAll": "Collapse all";
|
|
44
|
-
readonly "tableExpandCollapse.expandAll": "Expand all";
|
|
45
|
-
readonly "pipelineVisualization.emptyState.description": "No Pipeline Run to visualize";
|
|
46
|
-
readonly "pipelineVisualization.noTasksDescription": "This Pipeline Run has no tasks to visualize";
|
|
47
|
-
readonly "pipelineVisualization.stepList.finallyTaskTitle": "Finally Task";
|
|
48
|
-
readonly "pipelineRunList.title": "Pipeline Runs";
|
|
49
|
-
readonly "pipelineRunList.noPipelineRuns": "No Pipeline Runs found";
|
|
50
|
-
readonly "pipelineRunList.searchBarPlaceholder": "Search";
|
|
51
|
-
readonly "pipelineRunList.rowActions.viewParamsAndResults": "View Parameters and Results";
|
|
52
|
-
readonly "pipelineRunList.rowActions.viewLogs": "View logs";
|
|
53
|
-
readonly "pipelineRunList.rowActions.unauthorizedViewLogs": "Unauthorized to view logs";
|
|
54
|
-
readonly "pipelineRunList.rowActions.viewSBOM": "View SBOM";
|
|
55
|
-
readonly "pipelineRunList.rowActions.SBOMNotApplicable": "View SBOM is not applicable for this PipelineRun";
|
|
56
|
-
readonly "pipelineRunList.rowActions.viewOutput": "View output";
|
|
57
|
-
readonly "pipelineRunList.rowActions.outputNotApplicable": "View Output is not applicable for this PipelineRun";
|
|
58
|
-
readonly "pipelineRunList.vulnerabilitySeverityTitle.medium": "Medium";
|
|
59
|
-
readonly "pipelineRunList.vulnerabilitySeverityTitle.critical": "Critical";
|
|
60
|
-
readonly "pipelineRunList.vulnerabilitySeverityTitle.high": "High";
|
|
61
|
-
readonly "pipelineRunList.vulnerabilitySeverityTitle.low": "Low";
|
|
62
|
-
readonly "pipelineRunList.tableHeaderTitle.name": "NAME";
|
|
63
|
-
readonly "pipelineRunList.tableHeaderTitle.startTime": "STARTED";
|
|
64
|
-
readonly "pipelineRunList.tableHeaderTitle.status": "STATUS";
|
|
65
|
-
readonly "pipelineRunList.tableHeaderTitle.taskStatus": "TASK STATUS";
|
|
66
|
-
readonly "pipelineRunList.tableHeaderTitle.vulnerabilities": "VULNERABILITIES";
|
|
67
|
-
readonly "pipelineRunList.tableHeaderTitle.duration": "DURATION";
|
|
68
|
-
readonly "pipelineRunList.tableHeaderTitle.actions": "ACTIONS";
|
|
69
|
-
readonly "pipelineRunList.tablePagination.rowsPerPage": "Rows per page";
|
|
70
|
-
readonly "pipelineRunList.tablePagination.rowsPerPageOptionLabel": "{{num}} rows";
|
|
71
|
-
readonly "pipelineRunLogs.title": "PipelineRun Logs";
|
|
72
|
-
readonly "pipelineRunLogs.noLogs": "No logs found";
|
|
73
|
-
readonly "pipelineRunLogs.downloader.downloadTaskLogs": "Download";
|
|
74
|
-
readonly "pipelineRunLogs.downloader.downloadPipelineRunLogs": "Download all tasks logs";
|
|
75
|
-
readonly "pipelineRunLogs.podLogsDownloadLink.title": "Download";
|
|
76
|
-
readonly "pipelineRunLogs.podLogsDownloadLink.downloading": "downloading logs";
|
|
77
|
-
readonly "pipelineRunLogs.taskStatusStepper.skipped": "Skipped";
|
|
78
|
-
readonly "pipelineRunOutput.title": "PipelineRun Output";
|
|
79
|
-
readonly "pipelineRunOutput.noOutput": "No output";
|
|
80
|
-
readonly "pipelineRunStatus.All": "All";
|
|
81
|
-
readonly "pipelineRunStatus.Cancelling": "Cancelling";
|
|
82
|
-
readonly "pipelineRunStatus.Succeeded": "Succeeded";
|
|
83
|
-
readonly "pipelineRunStatus.Failed": "Failed";
|
|
84
|
-
readonly "pipelineRunStatus.Running": "Running";
|
|
85
|
-
readonly "pipelineRunStatus.In Progress": "In Progress";
|
|
86
|
-
readonly "pipelineRunStatus.FailedToStart": "FailedToStart";
|
|
87
|
-
readonly "pipelineRunStatus.PipelineNotStarted": "PipelineNotStarted";
|
|
88
|
-
readonly "pipelineRunStatus.Skipped": "Skipped";
|
|
89
|
-
readonly "pipelineRunStatus.Cancelled": "Cancelled";
|
|
90
|
-
readonly "pipelineRunStatus.Pending": "Pending";
|
|
91
|
-
readonly "pipelineRunStatus.Idle": "Idle";
|
|
92
|
-
readonly "pipelineRunStatus.Other": "Other";
|
|
93
|
-
readonly "pipelineRunDuration.lessThanSec": "less than a sec";
|
|
94
|
-
readonly "pipelineRunDuration.hour_one": "{{count}} hour";
|
|
95
|
-
readonly "pipelineRunDuration.hour_other": "{{count}} hours";
|
|
96
|
-
readonly "pipelineRunDuration.minute_one": "{{count}} minute";
|
|
97
|
-
readonly "pipelineRunDuration.minute_other": "{{count}} minutes";
|
|
98
|
-
readonly "pipelineRunDuration.second_one": "{{count}} second";
|
|
99
|
-
readonly "pipelineRunDuration.second_other": "{{count}} seconds";
|
|
100
|
-
readonly "pipelineRunParamsAndResults.title": "PipelineRun Parameters and Results";
|
|
101
|
-
readonly "pipelineRunParamsAndResults.results": "Results";
|
|
102
|
-
readonly "pipelineRunParamsAndResults.noParams": "No parameters found";
|
|
103
|
-
readonly "pipelineRunParamsAndResults.noResults": "No results found";
|
|
104
|
-
readonly "pipelineRunParamsAndResults.params": "Parameters";
|
|
105
|
-
readonly "pipelineRunParamsAndResults.outputTableColumn.name": "Name";
|
|
106
|
-
readonly "pipelineRunParamsAndResults.outputTableColumn.value": "Value";
|
|
107
|
-
}>;
|
|
108
|
-
|
|
109
|
-
/**
|
|
110
|
-
* The translation resource for the Tekton plugin
|
|
111
|
-
* @public
|
|
112
|
-
*/
|
|
113
|
-
declare const tektonTranslations: _backstage_frontend_plugin_api.TranslationResource<"tekton">;
|
|
114
|
-
|
|
115
|
-
export { TektonCI, isTektonCIAvailable, tektonPlugin, tektonTranslationRef, tektonTranslations };
|
|
33
|
+
export { TektonCI, isTektonCIAvailable, tektonPlugin };
|
package/dist/index.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { TektonCI, tektonPlugin } from './plugin.esm.js';
|
|
2
2
|
export { isTektonCIAvailable } from './utils/isTektonCIAvailable.esm.js';
|
|
3
|
-
export { tektonTranslations } from './translations
|
|
3
|
+
export { tektonTranslations, default as tektonTranslationsModule } from './translations.esm.js';
|
|
4
4
|
export { tektonTranslationRef } from './translations/ref.esm.js';
|
|
5
5
|
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Tekton translation reference.
|
|
5
|
+
* @public
|
|
6
|
+
*/
|
|
7
|
+
declare const tektonTranslationRef: _backstage_frontend_plugin_api.TranslationRef<"tekton", {
|
|
8
|
+
readonly "errorPanel.title": "There was a problem retrieving Kubernetes objects";
|
|
9
|
+
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.";
|
|
10
|
+
readonly "permissionAlert.title": "Permission required";
|
|
11
|
+
readonly "permissionAlert.description": "To view Tekton Pipeline Runs, contact your administrator to give you the following permission(s): {{permissions}}.";
|
|
12
|
+
readonly "statusSelector.label": "Status";
|
|
13
|
+
readonly "clusterSelector.label": "Cluster";
|
|
14
|
+
readonly "tableExpandCollapse.collapseAll": "Collapse all";
|
|
15
|
+
readonly "tableExpandCollapse.expandAll": "Expand all";
|
|
16
|
+
readonly "pipelineVisualization.emptyState.description": "No Pipeline Run to visualize";
|
|
17
|
+
readonly "pipelineVisualization.noTasksDescription": "This Pipeline Run has no tasks to visualize";
|
|
18
|
+
readonly "pipelineVisualization.stepList.finallyTaskTitle": "Finally Task";
|
|
19
|
+
readonly "pipelineRunList.title": "Pipeline Runs";
|
|
20
|
+
readonly "pipelineRunList.noPipelineRuns": "No Pipeline Runs found";
|
|
21
|
+
readonly "pipelineRunList.searchBarPlaceholder": "Search";
|
|
22
|
+
readonly "pipelineRunList.rowActions.viewParamsAndResults": "View Parameters and Results";
|
|
23
|
+
readonly "pipelineRunList.rowActions.viewLogs": "View logs";
|
|
24
|
+
readonly "pipelineRunList.rowActions.unauthorizedViewLogs": "Unauthorized to view logs";
|
|
25
|
+
readonly "pipelineRunList.rowActions.viewSBOM": "View SBOM";
|
|
26
|
+
readonly "pipelineRunList.rowActions.SBOMNotApplicable": "View SBOM is not applicable for this PipelineRun";
|
|
27
|
+
readonly "pipelineRunList.rowActions.viewOutput": "View output";
|
|
28
|
+
readonly "pipelineRunList.rowActions.outputNotApplicable": "View Output is not applicable for this PipelineRun";
|
|
29
|
+
readonly "pipelineRunList.vulnerabilitySeverityTitle.medium": "Medium";
|
|
30
|
+
readonly "pipelineRunList.vulnerabilitySeverityTitle.critical": "Critical";
|
|
31
|
+
readonly "pipelineRunList.vulnerabilitySeverityTitle.high": "High";
|
|
32
|
+
readonly "pipelineRunList.vulnerabilitySeverityTitle.low": "Low";
|
|
33
|
+
readonly "pipelineRunList.tableHeaderTitle.name": "NAME";
|
|
34
|
+
readonly "pipelineRunList.tableHeaderTitle.startTime": "STARTED";
|
|
35
|
+
readonly "pipelineRunList.tableHeaderTitle.status": "STATUS";
|
|
36
|
+
readonly "pipelineRunList.tableHeaderTitle.taskStatus": "TASK STATUS";
|
|
37
|
+
readonly "pipelineRunList.tableHeaderTitle.vulnerabilities": "VULNERABILITIES";
|
|
38
|
+
readonly "pipelineRunList.tableHeaderTitle.duration": "DURATION";
|
|
39
|
+
readonly "pipelineRunList.tableHeaderTitle.actions": "ACTIONS";
|
|
40
|
+
readonly "pipelineRunList.tablePagination.rowsPerPage": "Rows per page";
|
|
41
|
+
readonly "pipelineRunList.tablePagination.rowsPerPageOptionLabel": "{{num}} rows";
|
|
42
|
+
readonly "pipelineRunLogs.title": "PipelineRun Logs";
|
|
43
|
+
readonly "pipelineRunLogs.noLogs": "No logs found";
|
|
44
|
+
readonly "pipelineRunLogs.downloader.downloadTaskLogs": "Download";
|
|
45
|
+
readonly "pipelineRunLogs.downloader.downloadPipelineRunLogs": "Download all tasks logs";
|
|
46
|
+
readonly "pipelineRunLogs.podLogsDownloadLink.title": "Download";
|
|
47
|
+
readonly "pipelineRunLogs.podLogsDownloadLink.downloading": "downloading logs";
|
|
48
|
+
readonly "pipelineRunLogs.taskStatusStepper.skipped": "Skipped";
|
|
49
|
+
readonly "pipelineRunOutput.title": "PipelineRun Output";
|
|
50
|
+
readonly "pipelineRunOutput.noOutput": "No output";
|
|
51
|
+
readonly "pipelineRunStatus.All": "All";
|
|
52
|
+
readonly "pipelineRunStatus.Cancelling": "Cancelling";
|
|
53
|
+
readonly "pipelineRunStatus.Succeeded": "Succeeded";
|
|
54
|
+
readonly "pipelineRunStatus.Failed": "Failed";
|
|
55
|
+
readonly "pipelineRunStatus.Running": "Running";
|
|
56
|
+
readonly "pipelineRunStatus.In Progress": "In Progress";
|
|
57
|
+
readonly "pipelineRunStatus.FailedToStart": "FailedToStart";
|
|
58
|
+
readonly "pipelineRunStatus.PipelineNotStarted": "PipelineNotStarted";
|
|
59
|
+
readonly "pipelineRunStatus.Skipped": "Skipped";
|
|
60
|
+
readonly "pipelineRunStatus.Cancelled": "Cancelled";
|
|
61
|
+
readonly "pipelineRunStatus.Pending": "Pending";
|
|
62
|
+
readonly "pipelineRunStatus.Idle": "Idle";
|
|
63
|
+
readonly "pipelineRunStatus.Other": "Other";
|
|
64
|
+
readonly "pipelineRunDuration.lessThanSec": "less than a sec";
|
|
65
|
+
readonly "pipelineRunDuration.hour_one": "{{count}} hour";
|
|
66
|
+
readonly "pipelineRunDuration.hour_other": "{{count}} hours";
|
|
67
|
+
readonly "pipelineRunDuration.minute_one": "{{count}} minute";
|
|
68
|
+
readonly "pipelineRunDuration.minute_other": "{{count}} minutes";
|
|
69
|
+
readonly "pipelineRunDuration.second_one": "{{count}} second";
|
|
70
|
+
readonly "pipelineRunDuration.second_other": "{{count}} seconds";
|
|
71
|
+
readonly "pipelineRunParamsAndResults.title": "PipelineRun Parameters and Results";
|
|
72
|
+
readonly "pipelineRunParamsAndResults.results": "Results";
|
|
73
|
+
readonly "pipelineRunParamsAndResults.noParams": "No parameters found";
|
|
74
|
+
readonly "pipelineRunParamsAndResults.noResults": "No results found";
|
|
75
|
+
readonly "pipelineRunParamsAndResults.params": "Parameters";
|
|
76
|
+
readonly "pipelineRunParamsAndResults.outputTableColumn.name": "Name";
|
|
77
|
+
readonly "pipelineRunParamsAndResults.outputTableColumn.value": "Value";
|
|
78
|
+
}>;
|
|
79
|
+
|
|
80
|
+
/**
|
|
81
|
+
* The translation resource for the Tekton plugin
|
|
82
|
+
* @public
|
|
83
|
+
*/
|
|
84
|
+
declare const tektonTranslations: _backstage_frontend_plugin_api.TranslationResource<"tekton">;
|
|
85
|
+
|
|
86
|
+
/**
|
|
87
|
+
* Translation module for the Tekton plugin.
|
|
88
|
+
* @public
|
|
89
|
+
*/
|
|
90
|
+
declare const tektonTranslationsModule: _backstage_frontend_plugin_api.FrontendModule;
|
|
91
|
+
|
|
92
|
+
export { tektonTranslationsModule as default, tektonTranslationRef, tektonTranslations };
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { createTranslationResource } from '@backstage/core-plugin-api/alpha';
|
|
2
|
+
import { createFrontendModule } from '@backstage/frontend-plugin-api';
|
|
3
|
+
import { TranslationBlueprint } from '@backstage/plugin-app-react';
|
|
4
|
+
import { tektonTranslationRef } from './translations/ref.esm.js';
|
|
5
|
+
|
|
6
|
+
const tektonTranslations = createTranslationResource({
|
|
7
|
+
ref: tektonTranslationRef,
|
|
8
|
+
translations: {
|
|
9
|
+
de: () => import('./translations/de.esm.js'),
|
|
10
|
+
es: () => import('./translations/es.esm.js'),
|
|
11
|
+
fr: () => import('./translations/fr.esm.js'),
|
|
12
|
+
it: () => import('./translations/it.esm.js'),
|
|
13
|
+
ja: () => import('./translations/ja.esm.js')
|
|
14
|
+
}
|
|
15
|
+
});
|
|
16
|
+
const tektonTranslationsModule = createFrontendModule({
|
|
17
|
+
pluginId: "app",
|
|
18
|
+
extensions: [
|
|
19
|
+
TranslationBlueprint.make({
|
|
20
|
+
name: "tekton-translations",
|
|
21
|
+
params: {
|
|
22
|
+
resource: tektonTranslations
|
|
23
|
+
}
|
|
24
|
+
})
|
|
25
|
+
]
|
|
26
|
+
});
|
|
27
|
+
|
|
28
|
+
export { tektonTranslationsModule as default, tektonTranslationRef, tektonTranslations };
|
|
29
|
+
//# sourceMappingURL=translations.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"translations.esm.js","sources":["../src/translations/index.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 { createTranslationResource } from '@backstage/core-plugin-api/alpha';\nimport { createFrontendModule } from '@backstage/frontend-plugin-api';\nimport { TranslationBlueprint } from '@backstage/plugin-app-react';\nimport { tektonTranslationRef } from './ref';\n\n/**\n * The translation resource for the Tekton plugin\n * @public\n */\nexport const tektonTranslations = createTranslationResource({\n ref: tektonTranslationRef,\n translations: {\n de: () => import('./de'),\n es: () => import('./es'),\n fr: () => import('./fr'),\n it: () => import('./it'),\n ja: () => import('./ja'),\n },\n});\n\nexport { tektonTranslationRef };\n\n/**\n * Translation module for the Tekton plugin.\n * @public\n */\nconst tektonTranslationsModule = createFrontendModule({\n pluginId: 'app',\n extensions: [\n TranslationBlueprint.make({\n name: 'tekton-translations',\n params: {\n resource: tektonTranslations,\n },\n }),\n ],\n});\n\nexport default tektonTranslationsModule;\n"],"names":[],"mappings":";;;;;AAyBO,MAAM,qBAAqB,yBAAA,CAA0B;AAAA,EAC1D,GAAA,EAAK,oBAAA;AAAA,EACL,YAAA,EAAc;AAAA,IACZ,EAAA,EAAI,MAAM,OAAO,0BAAM,CAAA;AAAA,IACvB,EAAA,EAAI,MAAM,OAAO,0BAAM,CAAA;AAAA,IACvB,EAAA,EAAI,MAAM,OAAO,0BAAM,CAAA;AAAA,IACvB,EAAA,EAAI,MAAM,OAAO,0BAAM,CAAA;AAAA,IACvB,EAAA,EAAI,MAAM,OAAO,0BAAM;AAAA;AAE3B,CAAC;AAQD,MAAM,2BAA2B,oBAAA,CAAqB;AAAA,EACpD,QAAA,EAAU,KAAA;AAAA,EACV,UAAA,EAAY;AAAA,IACV,qBAAqB,IAAA,CAAK;AAAA,MACxB,IAAA,EAAM,qBAAA;AAAA,MACN,MAAA,EAAQ;AAAA,QACN,QAAA,EAAU;AAAA;AACZ,KACD;AAAA;AAEL,CAAC;;;;"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-tekton",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.41.1",
|
|
4
4
|
"main": "./dist/index.esm.js",
|
|
5
5
|
"types": "./dist/index.d.ts",
|
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -19,6 +19,12 @@
|
|
|
19
19
|
"types": "./dist/alpha.d.ts",
|
|
20
20
|
"default": "./dist/alpha.esm.js"
|
|
21
21
|
},
|
|
22
|
+
"./translations": {
|
|
23
|
+
"backstage": "@backstage/FrontendModule",
|
|
24
|
+
"import": "./dist/translations.esm.js",
|
|
25
|
+
"types": "./dist/translations.d.ts",
|
|
26
|
+
"default": "./dist/translations.esm.js"
|
|
27
|
+
},
|
|
22
28
|
"./package.json": "./package.json"
|
|
23
29
|
},
|
|
24
30
|
"typesVersions": {
|
|
@@ -26,6 +32,9 @@
|
|
|
26
32
|
"alpha": [
|
|
27
33
|
"dist/alpha.d.ts"
|
|
28
34
|
],
|
|
35
|
+
"translations": [
|
|
36
|
+
"dist/translations.d.ts"
|
|
37
|
+
],
|
|
29
38
|
"package.json": [
|
|
30
39
|
"package.json"
|
|
31
40
|
]
|
|
@@ -41,7 +50,8 @@
|
|
|
41
50
|
"@backstage-community/plugin-tekton-react"
|
|
42
51
|
],
|
|
43
52
|
"features": {
|
|
44
|
-
"./alpha": "@backstage/FrontendPlugin"
|
|
53
|
+
"./alpha": "@backstage/FrontendPlugin",
|
|
54
|
+
"./translations": "@backstage/FrontendModule"
|
|
45
55
|
}
|
|
46
56
|
},
|
|
47
57
|
"sideEffects": [
|
|
@@ -66,6 +76,7 @@
|
|
|
66
76
|
"@backstage/core-components": "^0.18.11",
|
|
67
77
|
"@backstage/core-plugin-api": "^1.12.7",
|
|
68
78
|
"@backstage/frontend-plugin-api": "^0.17.2",
|
|
79
|
+
"@backstage/plugin-app-react": "^0.2.4",
|
|
69
80
|
"@backstage/plugin-catalog-react": "^3.1.0",
|
|
70
81
|
"@backstage/plugin-kubernetes-common": "^0.9.12",
|
|
71
82
|
"@backstage/plugin-kubernetes-react": "^0.5.20",
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import { createTranslationResource } from '@backstage/core-plugin-api/alpha';
|
|
2
|
-
import { tektonTranslationRef } from './ref.esm.js';
|
|
3
|
-
|
|
4
|
-
const tektonTranslations = createTranslationResource({
|
|
5
|
-
ref: tektonTranslationRef,
|
|
6
|
-
translations: {
|
|
7
|
-
de: () => import('./de.esm.js'),
|
|
8
|
-
es: () => import('./es.esm.js'),
|
|
9
|
-
fr: () => import('./fr.esm.js'),
|
|
10
|
-
it: () => import('./it.esm.js'),
|
|
11
|
-
ja: () => import('./ja.esm.js')
|
|
12
|
-
}
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
export { tektonTranslationRef, tektonTranslations };
|
|
16
|
-
//# sourceMappingURL=index.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"index.esm.js","sources":["../../src/translations/index.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 { createTranslationResource } from '@backstage/core-plugin-api/alpha';\nimport { tektonTranslationRef } from './ref';\n\n/**\n * The translation resource for the Tekton plugin\n * @public\n */\nexport const tektonTranslations = createTranslationResource({\n ref: tektonTranslationRef,\n translations: {\n de: () => import('./de'),\n es: () => import('./es'),\n fr: () => import('./fr'),\n it: () => import('./it'),\n ja: () => import('./ja'),\n },\n});\n\nexport { tektonTranslationRef };\n"],"names":[],"mappings":";;;AAuBO,MAAM,qBAAqB,yBAAA,CAA0B;AAAA,EAC1D,GAAA,EAAK,oBAAA;AAAA,EACL,YAAA,EAAc;AAAA,IACZ,EAAA,EAAI,MAAM,OAAO,aAAM,CAAA;AAAA,IACvB,EAAA,EAAI,MAAM,OAAO,aAAM,CAAA;AAAA,IACvB,EAAA,EAAI,MAAM,OAAO,aAAM,CAAA;AAAA,IACvB,EAAA,EAAI,MAAM,OAAO,aAAM,CAAA;AAAA,IACvB,EAAA,EAAI,MAAM,OAAO,aAAM;AAAA;AAE3B,CAAC;;;;"}
|