@backstage-community/plugin-quay 1.19.0 → 1.19.2
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
CHANGED
|
@@ -1,5 +1,25 @@
|
|
|
1
1
|
### Dependencies
|
|
2
2
|
|
|
3
|
+
## 1.19.2
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 16c57cc: chore: Remove usage of @spotify/prettier-config
|
|
8
|
+
- Updated dependencies [16c57cc]
|
|
9
|
+
- @backstage-community/plugin-quay-common@1.7.2
|
|
10
|
+
|
|
11
|
+
## 1.19.1
|
|
12
|
+
|
|
13
|
+
### Patch Changes
|
|
14
|
+
|
|
15
|
+
- f84ad73: chore: remove homepage field from package.json
|
|
16
|
+
- 3bd5e99: remove unused dependencies: @types/node
|
|
17
|
+
- c31699d: Updated dependency `@playwright/test` to `1.51.1`.
|
|
18
|
+
- f16f56e: Updated dependency `start-server-and-test` to `2.0.11`.
|
|
19
|
+
- 61cf479: Fixed a bug where link to Quay repository was not displayed when `@backstage-community/plugin-quay-backend` was used with key `quay.apiUrl`
|
|
20
|
+
- Updated dependencies [f84ad73]
|
|
21
|
+
- @backstage-community/plugin-quay-common@1.7.1
|
|
22
|
+
|
|
3
23
|
## 1.19.0
|
|
4
24
|
|
|
5
25
|
### Minor Changes
|
|
@@ -10,7 +10,7 @@ function QuayRepository(_props) {
|
|
|
10
10
|
const { repository, organization } = useRepository();
|
|
11
11
|
const classes = useStyles();
|
|
12
12
|
const configApi = useApi(configApiRef);
|
|
13
|
-
const quayUiUrl = configApi.getOptionalString("quay.uiUrl");
|
|
13
|
+
const quayUiUrl = configApi.getOptionalString("quay.apiUrl") ?? configApi.getOptionalString("quay.uiUrl");
|
|
14
14
|
const hasViewPermission = useQuayViewPermission();
|
|
15
15
|
const title = quayUiUrl ? /* @__PURE__ */ React.createElement(React.Fragment, null, `Quay repository: `, /* @__PURE__ */ React.createElement(
|
|
16
16
|
Link,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"QuayRepository.esm.js","sources":["../../../src/components/QuayRepository/QuayRepository.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport React from 'react';\n\nimport { Link, Progress, Table } from '@backstage/core-components';\nimport { configApiRef, useApi } from '@backstage/core-plugin-api';\n\nimport { useRepository, useTags } from '../../hooks';\nimport { useQuayViewPermission } from '../../hooks/useQuayViewPermission';\nimport PermissionAlert from '../PermissionAlert/PermissionAlert';\nimport { columns, useStyles } from './tableHeading';\n\ntype QuayRepositoryProps = Record<never, any>;\n\nexport function QuayRepository(_props: QuayRepositoryProps) {\n const { repository, organization } = useRepository();\n const classes = useStyles();\n const configApi = useApi(configApiRef);\n const quayUiUrl
|
|
1
|
+
{"version":3,"file":"QuayRepository.esm.js","sources":["../../../src/components/QuayRepository/QuayRepository.tsx"],"sourcesContent":["/*\n * Copyright 2024 The Backstage Authors\n *\n * Licensed under the Apache License, Version 2.0 (the \"License\");\n * you may not use this file except in compliance with the License.\n * You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\nimport React from 'react';\n\nimport { Link, Progress, Table } from '@backstage/core-components';\nimport { configApiRef, useApi } from '@backstage/core-plugin-api';\n\nimport { useRepository, useTags } from '../../hooks';\nimport { useQuayViewPermission } from '../../hooks/useQuayViewPermission';\nimport PermissionAlert from '../PermissionAlert/PermissionAlert';\nimport { columns, useStyles } from './tableHeading';\n\ntype QuayRepositoryProps = Record<never, any>;\n\nexport function QuayRepository(_props: QuayRepositoryProps) {\n const { repository, organization } = useRepository();\n const classes = useStyles();\n const configApi = useApi(configApiRef);\n const quayUiUrl =\n configApi.getOptionalString('quay.apiUrl') ??\n configApi.getOptionalString('quay.uiUrl');\n\n const hasViewPermission = useQuayViewPermission();\n\n const title = quayUiUrl ? (\n <>\n {`Quay repository: `}\n <Link\n to={`${quayUiUrl}/repository/${organization}/${repository}`}\n >{`${organization}/${repository}`}</Link>\n </>\n ) : (\n `Quay repository: ${organization}/${repository}`\n );\n const { loading, data } = useTags(organization, repository);\n\n if (!hasViewPermission) {\n return <PermissionAlert />;\n }\n\n if (loading) {\n return (\n <div data-testid=\"quay-repo-progress\">\n <Progress />\n </div>\n );\n }\n\n return (\n <div data-testid=\"quay-repo-table\">\n <Table\n title={title}\n options={{ sorting: true, paging: true, padding: 'dense' }}\n data={data}\n columns={columns}\n emptyContent={\n <div data-testid=\"quay-repo-table-empty\" className={classes.empty}>\n There are no images available.\n </div>\n }\n />\n </div>\n );\n}\n"],"names":[],"mappings":";;;;;;;;AA2BO,SAAS,eAAe,MAA6B,EAAA;AAC1D,EAAA,MAAM,EAAE,UAAA,EAAY,YAAa,EAAA,GAAI,aAAc,EAAA;AACnD,EAAA,MAAM,UAAU,SAAU,EAAA;AAC1B,EAAM,MAAA,SAAA,GAAY,OAAO,YAAY,CAAA;AACrC,EAAA,MAAM,YACJ,SAAU,CAAA,iBAAA,CAAkB,aAAa,CACzC,IAAA,SAAA,CAAU,kBAAkB,YAAY,CAAA;AAE1C,EAAA,MAAM,oBAAoB,qBAAsB,EAAA;AAEhD,EAAM,MAAA,KAAA,GAAQ,SACZ,mBAAA,KAAA,CAAA,aAAA,CAAA,KAAA,CAAA,QAAA,EAAA,IAAA,EACG,CACD,i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
|
6
6
|
"license": "Apache-2.0",
|
|
@@ -37,7 +37,7 @@
|
|
|
37
37
|
"ui-test": "start-server-and-test start localhost:3000 'playwright test'"
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
|
-
"@backstage-community/plugin-quay-common": "^1.7.
|
|
40
|
+
"@backstage-community/plugin-quay-common": "^1.7.2",
|
|
41
41
|
"@backstage/catalog-model": "^1.7.3",
|
|
42
42
|
"@backstage/core-components": "^0.16.4",
|
|
43
43
|
"@backstage/core-plugin-api": "^1.10.4",
|
|
@@ -61,12 +61,10 @@
|
|
|
61
61
|
"@backstage/core-app-api": "^1.15.5",
|
|
62
62
|
"@backstage/dev-utils": "^1.1.7",
|
|
63
63
|
"@backstage/test-utils": "^1.7.5",
|
|
64
|
-
"@playwright/test": "1.51.
|
|
64
|
+
"@playwright/test": "1.51.1",
|
|
65
65
|
"@redhat-developer/red-hat-developer-hub-theme": "0.4.0",
|
|
66
|
-
"@spotify/prettier-config": "^15.0.0",
|
|
67
66
|
"@testing-library/jest-dom": "^6.0.0",
|
|
68
67
|
"@testing-library/react": "^15.0.0",
|
|
69
|
-
"@types/node": "18.19.68",
|
|
70
68
|
"@types/react": "^18.2.58",
|
|
71
69
|
"@types/react-dom": "^18.2.19",
|
|
72
70
|
"cross-fetch": "4.0.0",
|
|
@@ -74,7 +72,7 @@
|
|
|
74
72
|
"react": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
|
75
73
|
"react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0",
|
|
76
74
|
"react-router-dom": "^6.0.0",
|
|
77
|
-
"start-server-and-test": "2.0.
|
|
75
|
+
"start-server-and-test": "2.0.11"
|
|
78
76
|
},
|
|
79
77
|
"files": [
|
|
80
78
|
"app-config.dynamic.yaml",
|
|
@@ -93,7 +91,6 @@
|
|
|
93
91
|
"backstage",
|
|
94
92
|
"plugin"
|
|
95
93
|
],
|
|
96
|
-
"homepage": "https://red.ht/rhdh",
|
|
97
94
|
"bugs": "https://github.com/backstage/community-plugins/issues",
|
|
98
95
|
"maintainers": [
|
|
99
96
|
"@karthikjeeyar"
|