@backstage/plugin-catalog-unprocessed-entities 0.2.27-next.1 → 0.2.27
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 +15 -0
- package/README.md +20 -39
- package/dist/alpha/devToolsContent.esm.js +10 -10
- package/dist/alpha/devToolsContent.esm.js.map +1 -1
- package/dist/alpha/plugin.esm.js +2 -2
- package/dist/alpha/plugin.esm.js.map +1 -1
- package/dist/alpha.d.ts +12 -5
- package/dist/components/UnprocessedEntities.esm.js +9 -2
- package/dist/components/UnprocessedEntities.esm.js.map +1 -1
- package/dist/package.json.esm.js +2 -2
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,20 @@
|
|
|
1
1
|
# @backstage/plugin-catalog-unprocessed-entities
|
|
2
2
|
|
|
3
|
+
## 0.2.27
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- 538c985: Updated installation documentation to use feature discovery as the default.
|
|
8
|
+
- aa29b50: New frontend system pages now use the default plugin header together with `HeaderPage` instead of the legacy core page header pattern.
|
|
9
|
+
- 3f36ce1: Updated alpha plugin icons to follow the new frontend icon sizing rules when rendered in plugin and navigation surfaces.
|
|
10
|
+
- f4a1edd: Removed the deprecated `DevToolsContentBlueprint` from `@backstage/plugin-devtools-react`. DevTools pages in the new frontend system now use `SubPageBlueprint` tabs instead, and the catalog unprocessed entities alpha extension now attaches to DevTools as a subpage.
|
|
11
|
+
- Updated dependencies
|
|
12
|
+
- @backstage/ui@0.13.0
|
|
13
|
+
- @backstage/core-compat-api@0.5.9
|
|
14
|
+
- @backstage/core-plugin-api@1.12.4
|
|
15
|
+
- @backstage/core-components@0.18.8
|
|
16
|
+
- @backstage/frontend-plugin-api@0.15.0
|
|
17
|
+
|
|
3
18
|
## 0.2.27-next.1
|
|
4
19
|
|
|
5
20
|
### Patch Changes
|
package/README.md
CHANGED
|
@@ -32,46 +32,9 @@ Requires the `@backstage/plugin-catalog-backend-module-unprocessed` module to be
|
|
|
32
32
|
yarn --cwd packages/app add @backstage/plugin-catalog-unprocessed-entities
|
|
33
33
|
```
|
|
34
34
|
|
|
35
|
-
|
|
35
|
+
Once installed, the plugin is automatically available in your app through the default feature discovery. For more details and alternative installation methods, see [installing plugins](https://backstage.io/docs/frontend-system/building-apps/installing-plugins).
|
|
36
36
|
|
|
37
|
-
|
|
38
|
-
import { CatalogUnprocessedEntitiesPage } from '@backstage/plugin-catalog-unprocessed-entities';
|
|
39
|
-
//...
|
|
40
|
-
|
|
41
|
-
<Route
|
|
42
|
-
path="/catalog-unprocessed-entities"
|
|
43
|
-
element={<CatalogUnprocessedEntitiesPage />}
|
|
44
|
-
/>;
|
|
45
|
-
```
|
|
46
|
-
|
|
47
|
-
### Integrating with the New Frontend System
|
|
48
|
-
|
|
49
|
-
Follow this section if you are using Backstage's [new frontend system](https://backstage.io/docs/frontend-system/).
|
|
50
|
-
|
|
51
|
-
Import `catalogUnprocessedEntitiesPlugin` in your `App.tsx` and add it to your app's `features` array:
|
|
52
|
-
|
|
53
|
-
```typescript
|
|
54
|
-
import catalogUnprocessedEntitiesPlugin from '@backstage/plugin-catalog-unprocessed-entities';
|
|
55
|
-
import { unprocessedEntitiesDevToolsContent } from '@backstage/plugin-catalog-unprocessed-entities/alpha';
|
|
56
|
-
|
|
57
|
-
// Optionally add unprocessed entities route to devtools
|
|
58
|
-
const devtoolsPluginUnprocessed = createFrontendModule({
|
|
59
|
-
pluginId: 'catalog-unprocessed-entities',
|
|
60
|
-
extensions: [unprocessedEntitiesDevToolsContent],
|
|
61
|
-
});
|
|
62
|
-
|
|
63
|
-
export const app = createApp({
|
|
64
|
-
features: [
|
|
65
|
-
// ...
|
|
66
|
-
catalogUnprocessedEntitiesPlugin,
|
|
67
|
-
|
|
68
|
-
// Optionally add unprocessed entities route to devtools
|
|
69
|
-
devtoolsPluginUnprocessed,
|
|
70
|
-
devtoolsPlugin, // devtools plugin needs to be added too, if autodiscover is disabled
|
|
71
|
-
// ...
|
|
72
|
-
],
|
|
73
|
-
});
|
|
74
|
-
```
|
|
37
|
+
You can optionally add unprocessed entities as a tab in DevTools through configuration:
|
|
75
38
|
|
|
76
39
|
```yaml
|
|
77
40
|
app:
|
|
@@ -82,6 +45,24 @@ app:
|
|
|
82
45
|
- page:catalog-unprocessed-entities: false
|
|
83
46
|
```
|
|
84
47
|
|
|
48
|
+
## Old Frontend System
|
|
49
|
+
|
|
50
|
+
If your Backstage app uses the old frontend system, you need to manually wire the
|
|
51
|
+
plugin into your app as outlined in this section. If you are on the new frontend
|
|
52
|
+
system, you can skip this.
|
|
53
|
+
|
|
54
|
+
Import it into your `App.tsx` and include it in the `<FlatRoutes>` component:
|
|
55
|
+
|
|
56
|
+
```tsx title="packages/app/src/App.tsx"
|
|
57
|
+
import { CatalogUnprocessedEntitiesPage } from '@backstage/plugin-catalog-unprocessed-entities';
|
|
58
|
+
//...
|
|
59
|
+
|
|
60
|
+
<Route
|
|
61
|
+
path="/catalog-unprocessed-entities"
|
|
62
|
+
element={<CatalogUnprocessedEntitiesPage />}
|
|
63
|
+
/>;
|
|
64
|
+
```
|
|
65
|
+
|
|
85
66
|
## Customization
|
|
86
67
|
|
|
87
68
|
If you want to use the provided endpoints in a different way, you can use the ApiRef doing the following:
|
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import {
|
|
2
|
+
import { SubPageBlueprint } from '@backstage/frontend-plugin-api';
|
|
3
|
+
import { Content } from '@backstage/core-components';
|
|
3
4
|
|
|
4
|
-
const unprocessedEntitiesDevToolsContent =
|
|
5
|
-
{
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
5
|
+
const unprocessedEntitiesDevToolsContent = SubPageBlueprint.make({
|
|
6
|
+
attachTo: { id: "page:devtools", input: "pages" },
|
|
7
|
+
name: "unprocessed-entities",
|
|
8
|
+
params: {
|
|
9
|
+
path: "unprocessed-entities",
|
|
10
|
+
title: "Unprocessed Entities",
|
|
11
|
+
loader: () => import('../components/UnprocessedEntities.esm.js').then((m) => /* @__PURE__ */ jsx(Content, { children: /* @__PURE__ */ jsx(m.UnprocessedEntitiesContent, {}) }))
|
|
12
12
|
}
|
|
13
|
-
);
|
|
13
|
+
});
|
|
14
14
|
|
|
15
15
|
export { unprocessedEntitiesDevToolsContent };
|
|
16
16
|
//# sourceMappingURL=devToolsContent.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"devToolsContent.esm.js","sources":["../../src/alpha/devToolsContent.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 */\n\nimport {
|
|
1
|
+
{"version":3,"file":"devToolsContent.esm.js","sources":["../../src/alpha/devToolsContent.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 */\n\nimport { SubPageBlueprint } from '@backstage/frontend-plugin-api';\nimport { Content } from '@backstage/core-components';\n\n/**\n * DevTools content for catalog unprocessed entities.\n *\n * @alpha\n */\nexport const unprocessedEntitiesDevToolsContent = SubPageBlueprint.make({\n attachTo: { id: 'page:devtools', input: 'pages' },\n name: 'unprocessed-entities',\n params: {\n path: 'unprocessed-entities',\n title: 'Unprocessed Entities',\n loader: () =>\n import('../components/UnprocessedEntities').then(m => (\n <Content>\n <m.UnprocessedEntitiesContent />\n </Content>\n )),\n },\n});\n"],"names":[],"mappings":";;;;AAwBO,MAAM,kCAAA,GAAqC,iBAAiB,IAAA,CAAK;AAAA,EACtE,QAAA,EAAU,EAAE,EAAA,EAAI,eAAA,EAAiB,OAAO,OAAA,EAAQ;AAAA,EAChD,IAAA,EAAM,sBAAA;AAAA,EACN,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM,sBAAA;AAAA,IACN,KAAA,EAAO,sBAAA;AAAA,IACP,MAAA,EAAQ,MACN,OAAO,0CAAmC,EAAE,IAAA,CAAK,CAAA,CAAA,qBAC/C,GAAA,CAAC,OAAA,EAAA,EACC,QAAA,kBAAA,GAAA,CAAC,CAAA,CAAE,0BAAA,EAAF,EAA6B,GAChC,CACD;AAAA;AAEP,CAAC;;;;"}
|
package/dist/alpha/plugin.esm.js
CHANGED
|
@@ -18,7 +18,7 @@ const catalogUnprocessedEntitiesPage = PageBlueprint.make({
|
|
|
18
18
|
params: {
|
|
19
19
|
path: "/catalog-unprocessed-entities",
|
|
20
20
|
routeRef: rootRouteRef,
|
|
21
|
-
loader: () => import('../components/UnprocessedEntities.esm.js').then((m) => /* @__PURE__ */ jsx(m.
|
|
21
|
+
loader: () => import('../components/UnprocessedEntities.esm.js').then((m) => /* @__PURE__ */ jsx(m.NfsUnprocessedEntities, {}))
|
|
22
22
|
}
|
|
23
23
|
});
|
|
24
24
|
const catalogUnprocessedEntitiesNavItem = NavItemBlueprint.make({
|
|
@@ -31,7 +31,7 @@ const catalogUnprocessedEntitiesNavItem = NavItemBlueprint.make({
|
|
|
31
31
|
var plugin = createFrontendPlugin({
|
|
32
32
|
pluginId: "catalog-unprocessed-entities",
|
|
33
33
|
title: "Unprocessed Entities",
|
|
34
|
-
icon: /* @__PURE__ */ jsx(QueueIcon, {}),
|
|
34
|
+
icon: /* @__PURE__ */ jsx(QueueIcon, { fontSize: "inherit" }),
|
|
35
35
|
info: { packageJson: () => import('../package.json.esm.js') },
|
|
36
36
|
routes: {
|
|
37
37
|
root: rootRouteRef
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.tsx"],"sourcesContent":["/*\n * Copyright 2023 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 createFrontendPlugin,\n discoveryApiRef,\n fetchApiRef,\n ApiBlueprint,\n PageBlueprint,\n NavItemBlueprint,\n} from '@backstage/frontend-plugin-api';\n\nimport {\n catalogUnprocessedEntitiesApiRef,\n CatalogUnprocessedEntitiesClient,\n} from '../api';\nimport QueueIcon from '@material-ui/icons/Queue';\nimport { rootRouteRef } from '../routes';\n\n/** @alpha */\nexport const catalogUnprocessedEntitiesApi = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: catalogUnprocessedEntitiesApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) =>\n new CatalogUnprocessedEntitiesClient(discoveryApi, fetchApi),\n }),\n});\n\n/** @alpha */\nexport const catalogUnprocessedEntitiesPage = PageBlueprint.make({\n params: {\n path: '/catalog-unprocessed-entities',\n routeRef: rootRouteRef,\n loader: () =>\n import('../components/UnprocessedEntities').then(m => (\n <m.
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../../src/alpha/plugin.tsx"],"sourcesContent":["/*\n * Copyright 2023 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 createFrontendPlugin,\n discoveryApiRef,\n fetchApiRef,\n ApiBlueprint,\n PageBlueprint,\n NavItemBlueprint,\n} from '@backstage/frontend-plugin-api';\n\nimport {\n catalogUnprocessedEntitiesApiRef,\n CatalogUnprocessedEntitiesClient,\n} from '../api';\nimport QueueIcon from '@material-ui/icons/Queue';\nimport { rootRouteRef } from '../routes';\n\n/** @alpha */\nexport const catalogUnprocessedEntitiesApi = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: catalogUnprocessedEntitiesApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) =>\n new CatalogUnprocessedEntitiesClient(discoveryApi, fetchApi),\n }),\n});\n\n/** @alpha */\nexport const catalogUnprocessedEntitiesPage = PageBlueprint.make({\n params: {\n path: '/catalog-unprocessed-entities',\n routeRef: rootRouteRef,\n loader: () =>\n import('../components/UnprocessedEntities').then(m => (\n <m.NfsUnprocessedEntities />\n )),\n },\n});\n\n/** @alpha */\nexport const catalogUnprocessedEntitiesNavItem = NavItemBlueprint.make({\n params: {\n title: 'Unprocessed Entities',\n routeRef: rootRouteRef,\n icon: QueueIcon,\n },\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n pluginId: 'catalog-unprocessed-entities',\n title: 'Unprocessed Entities',\n icon: <QueueIcon fontSize=\"inherit\" />,\n info: { packageJson: () => import('../../package.json') },\n routes: {\n root: rootRouteRef,\n },\n extensions: [\n catalogUnprocessedEntitiesApi,\n catalogUnprocess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A;AAEJ,CAAC,CAAA;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import * as _backstage_core_plugin_api from '@backstage/core-plugin-api';
|
|
2
2
|
import * as react from 'react';
|
|
3
3
|
import * as _backstage_frontend_plugin_api from '@backstage/frontend-plugin-api';
|
|
4
|
-
import * as _backstage_plugin_devtools_react from '@backstage/plugin-devtools-react';
|
|
5
4
|
|
|
6
5
|
/** @alpha */
|
|
7
6
|
declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin<{
|
|
@@ -81,8 +80,8 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
81
80
|
* @alpha
|
|
82
81
|
*/
|
|
83
82
|
declare const unprocessedEntitiesDevToolsContent: _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
84
|
-
kind: "
|
|
85
|
-
name:
|
|
83
|
+
kind: "sub-page";
|
|
84
|
+
name: "unprocessed-entities";
|
|
86
85
|
config: {
|
|
87
86
|
path: string | undefined;
|
|
88
87
|
title: string | undefined;
|
|
@@ -93,9 +92,17 @@ declare const unprocessedEntitiesDevToolsContent: _backstage_frontend_plugin_api
|
|
|
93
92
|
};
|
|
94
93
|
output: _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
95
94
|
optional: true;
|
|
96
|
-
}> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.title", {}
|
|
95
|
+
}> | _backstage_frontend_plugin_api.ExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<string, "core.title", {}> | _backstage_frontend_plugin_api.ExtensionDataRef<_backstage_frontend_plugin_api.IconElement, "core.icon", {
|
|
96
|
+
optional: true;
|
|
97
|
+
}>;
|
|
97
98
|
inputs: {};
|
|
98
|
-
params:
|
|
99
|
+
params: {
|
|
100
|
+
path: string;
|
|
101
|
+
title: string;
|
|
102
|
+
icon?: _backstage_frontend_plugin_api.IconElement;
|
|
103
|
+
loader: () => Promise<JSX.Element>;
|
|
104
|
+
routeRef?: _backstage_frontend_plugin_api.RouteRef;
|
|
105
|
+
};
|
|
99
106
|
}>;
|
|
100
107
|
|
|
101
108
|
export { _default as default, unprocessedEntitiesDevToolsContent };
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import { jsxs, jsx } from 'react/jsx-runtime';
|
|
1
|
+
import { jsxs, jsx, Fragment } from 'react/jsx-runtime';
|
|
2
2
|
import { useState } from 'react';
|
|
3
3
|
import { Page, Header, Content } from '@backstage/core-components';
|
|
4
|
+
import { HeaderPage } from '@backstage/ui';
|
|
4
5
|
import Tab from '@material-ui/core/Tab';
|
|
5
6
|
import { makeStyles } from '@material-ui/core/styles';
|
|
6
7
|
import TabContext from '@material-ui/lab/TabContext';
|
|
@@ -36,6 +37,12 @@ const UnprocessedEntities = () => {
|
|
|
36
37
|
/* @__PURE__ */ jsx(Content, { children: /* @__PURE__ */ jsx(UnprocessedEntitiesContent, {}) })
|
|
37
38
|
] });
|
|
38
39
|
};
|
|
40
|
+
const NfsUnprocessedEntities = () => {
|
|
41
|
+
return /* @__PURE__ */ jsxs(Fragment, { children: [
|
|
42
|
+
/* @__PURE__ */ jsx(HeaderPage, { title: "Unprocessed Entities" }),
|
|
43
|
+
/* @__PURE__ */ jsx(Content, { children: /* @__PURE__ */ jsx(UnprocessedEntitiesContent, {}) })
|
|
44
|
+
] });
|
|
45
|
+
};
|
|
39
46
|
|
|
40
|
-
export { UnprocessedEntities, UnprocessedEntitiesContent };
|
|
47
|
+
export { NfsUnprocessedEntities, UnprocessedEntities, UnprocessedEntitiesContent };
|
|
41
48
|
//# sourceMappingURL=UnprocessedEntities.esm.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"UnprocessedEntities.esm.js","sources":["../../src/components/UnprocessedEntities.tsx"],"sourcesContent":["/*\n * Copyright 2023 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 { ChangeEvent, useState } from 'react';\n\nimport { Page, Header, Content } from '@backstage/core-components';\nimport Tab from '@material-ui/core/Tab';\nimport { makeStyles } from '@material-ui/core/styles';\nimport TabContext from '@material-ui/lab/TabContext';\nimport TabList from '@material-ui/lab/TabList';\nimport TabPanel from '@material-ui/lab/TabPanel';\n\nimport { FailedEntities } from './FailedEntities';\nimport { PendingEntities } from './PendingEntities';\n\nconst useStyles = makeStyles(() => ({\n tabPanel: {\n paddingLeft: '0px',\n paddingRight: '0px',\n },\n}));\n\n/** @public */\nexport const UnprocessedEntitiesContent = () => {\n const classes = useStyles();\n const [tab, setTab] = useState('failed');\n const handleChange = (_event: ChangeEvent<{}>, tabValue: string) => {\n setTab(tabValue);\n };\n\n return (\n <TabContext value={tab}>\n <TabList onChange={handleChange}>\n <Tab label=\"Failed\" value=\"failed\" />\n <Tab label=\"Pending\" value=\"pending\" />\n </TabList>\n <TabPanel value=\"failed\" className={classes.tabPanel}>\n <FailedEntities />\n </TabPanel>\n <TabPanel value=\"pending\" className={classes.tabPanel}>\n <PendingEntities />\n </TabPanel>\n </TabContext>\n );\n};\n\nexport const UnprocessedEntities = () => {\n return (\n <Page themeId=\"tool\">\n <Header title=\"Unprocessed Entities\" />\n <Content>\n <UnprocessedEntitiesContent />\n </Content>\n </Page>\n );\n};\n"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"UnprocessedEntities.esm.js","sources":["../../src/components/UnprocessedEntities.tsx"],"sourcesContent":["/*\n * Copyright 2023 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 { ChangeEvent, useState } from 'react';\n\nimport { Page, Header, Content } from '@backstage/core-components';\nimport { HeaderPage } from '@backstage/ui';\nimport Tab from '@material-ui/core/Tab';\nimport { makeStyles } from '@material-ui/core/styles';\nimport TabContext from '@material-ui/lab/TabContext';\nimport TabList from '@material-ui/lab/TabList';\nimport TabPanel from '@material-ui/lab/TabPanel';\n\nimport { FailedEntities } from './FailedEntities';\nimport { PendingEntities } from './PendingEntities';\n\nconst useStyles = makeStyles(() => ({\n tabPanel: {\n paddingLeft: '0px',\n paddingRight: '0px',\n },\n}));\n\n/** @public */\nexport const UnprocessedEntitiesContent = () => {\n const classes = useStyles();\n const [tab, setTab] = useState('failed');\n const handleChange = (_event: ChangeEvent<{}>, tabValue: string) => {\n setTab(tabValue);\n };\n\n return (\n <TabContext value={tab}>\n <TabList onChange={handleChange}>\n <Tab label=\"Failed\" value=\"failed\" />\n <Tab label=\"Pending\" value=\"pending\" />\n </TabList>\n <TabPanel value=\"failed\" className={classes.tabPanel}>\n <FailedEntities />\n </TabPanel>\n <TabPanel value=\"pending\" className={classes.tabPanel}>\n <PendingEntities />\n </TabPanel>\n </TabContext>\n );\n};\n\nexport const UnprocessedEntities = () => {\n return (\n <Page themeId=\"tool\">\n <Header title=\"Unprocessed Entities\" />\n <Content>\n <UnprocessedEntitiesContent />\n </Content>\n </Page>\n );\n};\n\nexport const NfsUnprocessedEntities = () => {\n return (\n <>\n <He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,IAAA,CAAC,IAAA,EAAA,EAAK,OAAA,EAAQ,MAAA,EACZ,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,MAAA,EAAA,EAAO,OAAM,sBAAA,EAAuB,CAAA;AAAA,oBACrC,GAAA,CAAC,OAAA,EAAA,EACC,QAAA,kBAAA,GAAA,CAAC,0BAAA,EAAA,EAA2B,CAAA,EAC9B;AAAA,GAAA,EACF,CAAA;AAEJ;AAEO,MAAM,yBAAyB,MAAM;AAC1C,EAAA,uBACE,IAAA,CAAA,QAAA,EAAA,EACE,QAAA,EAAA;AAAA,oBAAA,GAAA,CAAC,UAAA,EAAA,EAAW,OAAM,sBAAA,EAAuB,CAAA;AAAA,oBACzC,GAAA,CAAC,OAAA,EAAA,EACC,QAAA,kBAAA,GAAA,CAAC,0BAAA,EAAA,EAA2B,CAAA,EAC9B;AAAA,GAAA,EACF,CAAA;AAEJ;;;;"}
|
package/dist/package.json.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var name = "@backstage/plugin-catalog-unprocessed-entities";
|
|
2
|
-
var version = "0.2.27
|
|
2
|
+
var version = "0.2.27";
|
|
3
3
|
var backstage = {
|
|
4
4
|
role: "frontend-plugin",
|
|
5
5
|
pluginId: "catalog-unprocessed-entities",
|
|
@@ -55,7 +55,7 @@ var dependencies = {
|
|
|
55
55
|
"@backstage/errors": "workspace:^",
|
|
56
56
|
"@backstage/frontend-plugin-api": "workspace:^",
|
|
57
57
|
"@backstage/plugin-catalog-unprocessed-entities-common": "workspace:^",
|
|
58
|
-
"@backstage/
|
|
58
|
+
"@backstage/ui": "workspace:^",
|
|
59
59
|
"@material-ui/core": "^4.9.13",
|
|
60
60
|
"@material-ui/icons": "^4.9.1",
|
|
61
61
|
"@material-ui/lab": "^4.0.0-alpha.60",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-catalog-unprocessed-entities",
|
|
3
|
-
"version": "0.2.27
|
|
3
|
+
"version": "0.2.27",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "frontend-plugin",
|
|
6
6
|
"pluginId": "catalog-unprocessed-entities",
|
|
@@ -62,13 +62,13 @@
|
|
|
62
62
|
"test": "backstage-cli package test"
|
|
63
63
|
},
|
|
64
64
|
"dependencies": {
|
|
65
|
-
"@backstage/core-compat-api": "0.5.9
|
|
66
|
-
"@backstage/core-components": "0.18.8
|
|
67
|
-
"@backstage/core-plugin-api": "1.12.4
|
|
68
|
-
"@backstage/errors": "1.2.7",
|
|
69
|
-
"@backstage/frontend-plugin-api": "0.15.0
|
|
70
|
-
"@backstage/plugin-catalog-unprocessed-entities-common": "0.0.13",
|
|
71
|
-
"@backstage/
|
|
65
|
+
"@backstage/core-compat-api": "^0.5.9",
|
|
66
|
+
"@backstage/core-components": "^0.18.8",
|
|
67
|
+
"@backstage/core-plugin-api": "^1.12.4",
|
|
68
|
+
"@backstage/errors": "^1.2.7",
|
|
69
|
+
"@backstage/frontend-plugin-api": "^0.15.0",
|
|
70
|
+
"@backstage/plugin-catalog-unprocessed-entities-common": "^0.0.13",
|
|
71
|
+
"@backstage/ui": "^0.13.0",
|
|
72
72
|
"@material-ui/core": "^4.9.13",
|
|
73
73
|
"@material-ui/icons": "^4.9.1",
|
|
74
74
|
"@material-ui/lab": "^4.0.0-alpha.60",
|
|
@@ -76,8 +76,8 @@
|
|
|
76
76
|
"react-use": "^17.2.4"
|
|
77
77
|
},
|
|
78
78
|
"devDependencies": {
|
|
79
|
-
"@backstage/cli": "0.36.0
|
|
80
|
-
"@backstage/dev-utils": "1.1.21
|
|
79
|
+
"@backstage/cli": "^0.36.0",
|
|
80
|
+
"@backstage/dev-utils": "^1.1.21",
|
|
81
81
|
"@testing-library/jest-dom": "^6.0.0",
|
|
82
82
|
"@testing-library/react": "^16.0.0",
|
|
83
83
|
"@types/react": "^18.0.0",
|