@red-hat-developer-hub/backstage-plugin-openshift-image-registry 1.9.6

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.
Files changed (32) hide show
  1. package/CHANGELOG.md +521 -0
  2. package/README.md +99 -0
  3. package/app-config.yaml +20 -0
  4. package/config.d.ts +26 -0
  5. package/dist/api/index.esm.js +77 -0
  6. package/dist/api/index.esm.js.map +1 -0
  7. package/dist/components/OcirImages/OcirImageSearchBar.esm.js +62 -0
  8. package/dist/components/OcirImages/OcirImageSearchBar.esm.js.map +1 -0
  9. package/dist/components/OcirImages/OcirImageSidebar.esm.js +107 -0
  10. package/dist/components/OcirImages/OcirImageSidebar.esm.js.map +1 -0
  11. package/dist/components/OcirImages/OcirImagesCard.esm.js +64 -0
  12. package/dist/components/OcirImages/OcirImagesCard.esm.js.map +1 -0
  13. package/dist/components/OcirImages/OcirImagesCards.esm.js +44 -0
  14. package/dist/components/OcirImages/OcirImagesCards.esm.js.map +1 -0
  15. package/dist/components/OcirImages/OcirImagesView.esm.js +17 -0
  16. package/dist/components/OcirImages/OcirImagesView.esm.js.map +1 -0
  17. package/dist/components/OcirPage/OcirPage.esm.js +8 -0
  18. package/dist/components/OcirPage/OcirPage.esm.js.map +1 -0
  19. package/dist/components/OcirPage/index.esm.js +2 -0
  20. package/dist/components/OcirPage/index.esm.js.map +1 -0
  21. package/dist/hooks/useAllNsImageStreams.esm.js +31 -0
  22. package/dist/hooks/useAllNsImageStreams.esm.js.map +1 -0
  23. package/dist/hooks/useImageStreamsMetadataFromTag.esm.js +36 -0
  24. package/dist/hooks/useImageStreamsMetadataFromTag.esm.js.map +1 -0
  25. package/dist/index.d.ts +10 -0
  26. package/dist/index.esm.js +2 -0
  27. package/dist/index.esm.js.map +1 -0
  28. package/dist/plugin.esm.js +35 -0
  29. package/dist/plugin.esm.js.map +1 -0
  30. package/dist/routes.esm.js +8 -0
  31. package/dist/routes.esm.js.map +1 -0
  32. package/package.json +94 -0
@@ -0,0 +1,35 @@
1
+ import { createPlugin, createApiFactory, discoveryApiRef, configApiRef, identityApiRef, createRoutableExtension } from '@backstage/core-plugin-api';
2
+ import { openshiftImageRegistryApiRef, OpenshiftImageRegistryApiClient } from './api/index.esm.js';
3
+ import { rootRouteRef } from './routes.esm.js';
4
+
5
+ const openshiftImageRegistryPlugin = createPlugin({
6
+ id: "openshift-image-registry",
7
+ routes: {
8
+ root: rootRouteRef
9
+ },
10
+ apis: [
11
+ createApiFactory({
12
+ api: openshiftImageRegistryApiRef,
13
+ deps: {
14
+ discoveryApi: discoveryApiRef,
15
+ configApi: configApiRef,
16
+ identityApi: identityApiRef
17
+ },
18
+ factory: ({ discoveryApi, configApi, identityApi }) => new OpenshiftImageRegistryApiClient({
19
+ discoveryApi,
20
+ configApi,
21
+ identityApi
22
+ })
23
+ })
24
+ ]
25
+ });
26
+ const OpenshiftImageRegistryPage = openshiftImageRegistryPlugin.provide(
27
+ createRoutableExtension({
28
+ name: "OpenshiftImageRegistryPage",
29
+ component: () => import('./components/OcirPage/index.esm.js').then((m) => m.OcirPage),
30
+ mountPoint: rootRouteRef
31
+ })
32
+ );
33
+
34
+ export { OpenshiftImageRegistryPage, openshiftImageRegistryPlugin };
35
+ //# sourceMappingURL=plugin.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.esm.js","sources":["../src/plugin.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 */\n\nimport {\n configApiRef,\n createApiFactory,\n createPlugin,\n createRoutableExtension,\n discoveryApiRef,\n identityApiRef,\n} from '@backstage/core-plugin-api';\n\nimport {\n OpenshiftImageRegistryApiClient,\n openshiftImageRegistryApiRef,\n} from './api';\nimport { rootRouteRef } from './routes';\n\nexport const openshiftImageRegistryPlugin = createPlugin({\n id: 'openshift-image-registry',\n routes: {\n root: rootRouteRef,\n },\n apis: [\n createApiFactory({\n api: openshiftImageRegistryApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n configApi: configApiRef,\n identityApi: identityApiRef,\n },\n factory: ({ discoveryApi, configApi, identityApi }) =>\n new OpenshiftImageRegistryApiClient({\n discoveryApi,\n configApi,\n identityApi,\n }),\n }),\n ],\n});\n\nexport const OpenshiftImageRegistryPage = openshiftImageRegistryPlugin.provide(\n createRoutableExtension({\n name: 'OpenshiftImageRegistryPage',\n component: () => import('./components/OcirPage').then(m => m.OcirPage),\n mountPoint: rootRouteRef,\n }),\n);\n"],"names":[],"mappings":";;;;AA+BO,MAAM,+BAA+B,YAAa,CAAA;AAAA,EACvD,EAAI,EAAA,0BAAA;AAAA,EACJ,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,YAAA;AAAA,GACR;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,gBAAiB,CAAA;AAAA,MACf,GAAK,EAAA,4BAAA;AAAA,MACL,IAAM,EAAA;AAAA,QACJ,YAAc,EAAA,eAAA;AAAA,QACd,SAAW,EAAA,YAAA;AAAA,QACX,WAAa,EAAA,cAAA;AAAA,OACf;AAAA,MACA,OAAA,EAAS,CAAC,EAAE,YAAA,EAAc,WAAW,WAAY,EAAA,KAC/C,IAAI,+BAAgC,CAAA;AAAA,QAClC,YAAA;AAAA,QACA,SAAA;AAAA,QACA,WAAA;AAAA,OACD,CAAA;AAAA,KACJ,CAAA;AAAA,GACH;AACF,CAAC,EAAA;AAEM,MAAM,6BAA6B,4BAA6B,CAAA,OAAA;AAAA,EACrE,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,4BAAA;AAAA,IACN,SAAA,EAAW,MAAM,OAAO,oCAAuB,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,QAAQ,CAAA;AAAA,IACrE,UAAY,EAAA,YAAA;AAAA,GACb,CAAA;AACH;;;;"}
@@ -0,0 +1,8 @@
1
+ import { createRouteRef } from '@backstage/core-plugin-api';
2
+
3
+ const rootRouteRef = createRouteRef({
4
+ id: "openshift-image-registry"
5
+ });
6
+
7
+ export { rootRouteRef };
8
+ //# sourceMappingURL=routes.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routes.esm.js","sources":["../src/routes.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 */\n\nimport { createRouteRef } from '@backstage/core-plugin-api';\n\nexport const rootRouteRef = createRouteRef({\n id: 'openshift-image-registry',\n});\n"],"names":[],"mappings":";;AAkBO,MAAM,eAAe,cAAe,CAAA;AAAA,EACzC,EAAI,EAAA,0BAAA;AACN,CAAC;;;;"}
package/package.json ADDED
@@ -0,0 +1,94 @@
1
+ {
2
+ "name": "@red-hat-developer-hub/backstage-plugin-openshift-image-registry",
3
+ "version": "1.9.6",
4
+ "main": "dist/index.esm.js",
5
+ "types": "dist/index.d.ts",
6
+ "license": "Apache-2.0",
7
+ "publishConfig": {
8
+ "access": "public",
9
+ "main": "dist/index.esm.js",
10
+ "types": "dist/index.d.ts"
11
+ },
12
+ "backstage": {
13
+ "role": "frontend-plugin",
14
+ "supported-versions": "1.28.4",
15
+ "pluginId": "openshift-image-registry",
16
+ "pluginPackage": "@red-hat-developer-hub/backstage-plugin-openshift-image-registry",
17
+ "pluginPackages": [
18
+ "@red-hat-developer-hub/backstage-plugin-openshift-image-registry"
19
+ ]
20
+ },
21
+ "sideEffects": false,
22
+ "scripts": {
23
+ "build": "backstage-cli package build",
24
+ "clean": "backstage-cli package clean",
25
+ "export-dynamic": "janus-cli package export-dynamic-plugin --in-place",
26
+ "lint:check": "backstage-cli package lint",
27
+ "lint:fix": "backstage-cli package lint --fix",
28
+ "postpack": "backstage-cli package postpack",
29
+ "postversion": "yarn run export-dynamic",
30
+ "prepack": "backstage-cli package prepack",
31
+ "start": "backstage-cli package start",
32
+ "test": "backstage-cli package test --passWithNoTests --coverage",
33
+ "tsc": "tsc",
34
+ "prettier:check": "prettier --ignore-unknown --check .",
35
+ "prettier:fix": "prettier --ignore-unknown --write ."
36
+ },
37
+ "dependencies": {
38
+ "@backstage/core-components": "^0.14.9",
39
+ "@backstage/core-plugin-api": "^1.9.3",
40
+ "@backstage/theme": "^0.5.6",
41
+ "@ianvs/prettier-plugin-sort-imports": "^4.3.1",
42
+ "@janus-idp/shared-react": "2.11.1",
43
+ "@material-ui/core": "^4.9.13",
44
+ "@material-ui/icons": "^4.11.3",
45
+ "@material-ui/lab": "^4.0.0-alpha.45",
46
+ "react-use": "^17.4.0"
47
+ },
48
+ "peerDependencies": {
49
+ "react": "^16.13.1 || ^17.0.0 || ^18.0.0",
50
+ "react-dom": "^16.13.1 || ^17.0.0 || ^18.0.0"
51
+ },
52
+ "devDependencies": {
53
+ "@backstage/cli": "0.26.11",
54
+ "@backstage/core-app-api": "1.14.1",
55
+ "@backstage/dev-utils": "1.0.36",
56
+ "@backstage/test-utils": "1.5.9",
57
+ "@janus-idp/cli": "1.15.2",
58
+ "@redhat-developer/red-hat-developer-hub-theme": "0.4.0",
59
+ "@spotify/prettier-config": "^15.0.0",
60
+ "@testing-library/jest-dom": "6.4.8",
61
+ "@testing-library/react": "14.3.1",
62
+ "@testing-library/user-event": "14.5.2",
63
+ "@types/node": "18.19.33",
64
+ "cross-fetch": "4.0.0",
65
+ "msw": "1.3.3",
66
+ "prettier": "3.3.3",
67
+ "react": "^18.3.1",
68
+ "react-dom": "^18.3.1",
69
+ "react-router-dom": "^6.26.2"
70
+ },
71
+ "files": [
72
+ "dist",
73
+ "dist-scalprum",
74
+ "config.d.ts",
75
+ "app-config.yaml"
76
+ ],
77
+ "configSchema": "config.d.ts",
78
+ "repository": {
79
+ "type": "git",
80
+ "url": "https://github.com/redhat-developer/rhdh-plugins",
81
+ "directory": "workspaces/openshift-image-registry/plugins/openshift-image-registry"
82
+ },
83
+ "maintainers": [
84
+ "@divyanshiGupta"
85
+ ],
86
+ "author": "Red Hat",
87
+ "homepage": "https://red.ht/rhdh",
88
+ "bugs": "https://github.com/redhat-developer/rhdh-plugins/issues",
89
+ "keywords": [
90
+ "support:tech-preview",
91
+ "lifecycle:active"
92
+ ],
93
+ "module": "./dist/index.esm.js"
94
+ }