@backstage/plugin-devtools 0.0.0-nightly-20260316031711 → 0.0.0-nightly-20260319031605
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 +25 -10
- package/README.md +39 -37
- package/dist/alpha/plugin.esm.js +60 -27
- package/dist/alpha/plugin.esm.js.map +1 -1
- package/dist/alpha.d.ts +75 -7
- package/dist/components/Content/index.esm.js +6 -0
- package/dist/components/Content/index.esm.js.map +1 -0
- package/dist/components/DefaultDevToolsPage/DefaultDevToolsPage.esm.js.map +1 -1
- package/dist/package.json.esm.js +2 -2
- package/package.json +10 -10
package/CHANGELOG.md
CHANGED
|
@@ -1,20 +1,35 @@
|
|
|
1
1
|
# @backstage/plugin-devtools
|
|
2
2
|
|
|
3
|
-
## 0.0.0-nightly-
|
|
3
|
+
## 0.0.0-nightly-20260319031605
|
|
4
|
+
|
|
5
|
+
### Patch Changes
|
|
6
|
+
|
|
7
|
+
- Updated dependencies
|
|
8
|
+
- @backstage/ui@0.0.0-nightly-20260319031605
|
|
9
|
+
- @backstage/core-compat-api@0.0.0-nightly-20260319031605
|
|
10
|
+
- @backstage/core-components@0.18.8
|
|
11
|
+
- @backstage/core-plugin-api@1.12.4
|
|
12
|
+
- @backstage/frontend-plugin-api@0.15.0
|
|
13
|
+
- @backstage/plugin-permission-react@0.4.41
|
|
14
|
+
|
|
15
|
+
## 0.1.37
|
|
4
16
|
|
|
5
17
|
### Patch Changes
|
|
6
18
|
|
|
7
19
|
- afabb37: Fixed URL encoding of task IDs for the trigger feature (tasks that contained a "/" in their ID were not triggered)
|
|
8
20
|
- f80195e: Added `cancelScheduledTask` to the DevTools API and a cancel button to the scheduled tasks UI.
|
|
9
|
-
- Updated
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
- @backstage/
|
|
15
|
-
- @backstage/
|
|
16
|
-
- @backstage/plugin-
|
|
17
|
-
- @backstage/
|
|
21
|
+
- 538c985: Updated installation documentation to use feature discovery as the default.
|
|
22
|
+
- aa29b50: New frontend system pages now use the default plugin header together with `HeaderPage` instead of the legacy core page header pattern.
|
|
23
|
+
- 3f36ce1: Updated alpha plugin icons to follow the new frontend icon sizing rules when rendered in plugin and navigation surfaces.
|
|
24
|
+
- 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.
|
|
25
|
+
- Updated dependencies
|
|
26
|
+
- @backstage/ui@0.13.0
|
|
27
|
+
- @backstage/core-compat-api@0.5.9
|
|
28
|
+
- @backstage/core-plugin-api@1.12.4
|
|
29
|
+
- @backstage/core-components@0.18.8
|
|
30
|
+
- @backstage/frontend-plugin-api@0.15.0
|
|
31
|
+
- @backstage/plugin-devtools-common@0.1.23
|
|
32
|
+
- @backstage/plugin-permission-react@0.4.41
|
|
18
33
|
|
|
19
34
|
## 0.1.37-next.2
|
|
20
35
|
|
package/README.md
CHANGED
|
@@ -66,42 +66,14 @@ You need to setup the [DevTools backend plugin](../devtools-backend/README.md) b
|
|
|
66
66
|
|
|
67
67
|
### Frontend
|
|
68
68
|
|
|
69
|
-
|
|
69
|
+
Install the `@backstage/plugin-devtools` package in your frontend app:
|
|
70
70
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
yarn --cwd packages/app add @backstage/plugin-devtools
|
|
76
|
-
```
|
|
77
|
-
|
|
78
|
-
2. Now open the `packages/app/src/App.tsx` file
|
|
79
|
-
3. Then after all the import statements add the following line:
|
|
80
|
-
|
|
81
|
-
```ts
|
|
82
|
-
import { DevToolsPage } from '@backstage/plugin-devtools';
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
4. In this same file just before the closing `</ FlatRoutes>`, this will be near the bottom of the file, add this line:
|
|
86
|
-
|
|
87
|
-
```ts
|
|
88
|
-
<Route path="/devtools" element={<DevToolsPage />} />
|
|
89
|
-
```
|
|
90
|
-
|
|
91
|
-
5. Next open the `packages/app/src/components/Root/Root.tsx` file
|
|
92
|
-
6. We want to add this icon import after all the existing import statements:
|
|
93
|
-
|
|
94
|
-
```ts
|
|
95
|
-
import BuildIcon from '@material-ui/icons/Build';
|
|
96
|
-
```
|
|
97
|
-
|
|
98
|
-
7. Then add this line just after the `<SidebarSettings />` line:
|
|
99
|
-
|
|
100
|
-
```ts
|
|
101
|
-
<SidebarItem icon={BuildIcon} to="devtools" text="DevTools" />
|
|
102
|
-
```
|
|
71
|
+
```sh
|
|
72
|
+
# From your Backstage root directory
|
|
73
|
+
yarn --cwd packages/app add @backstage/plugin-devtools
|
|
74
|
+
```
|
|
103
75
|
|
|
104
|
-
|
|
76
|
+
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).
|
|
105
77
|
|
|
106
78
|
## Customizing
|
|
107
79
|
|
|
@@ -166,8 +138,6 @@ You can also add tabs to show content from other plugins that fit well with the
|
|
|
166
138
|
|
|
167
139
|
#### Catalog Unprocessed Entities Tab
|
|
168
140
|
|
|
169
|
-
##### New Frontend System
|
|
170
|
-
|
|
171
141
|
Create an extension and/or load a 3rd party extension to add additional tabs.
|
|
172
142
|
|
|
173
143
|
```shell
|
|
@@ -197,7 +167,7 @@ const appFeature = createFrontendModule({
|
|
|
197
167
|
});
|
|
198
168
|
```
|
|
199
169
|
|
|
200
|
-
##### Old System
|
|
170
|
+
##### Old Frontend System
|
|
201
171
|
|
|
202
172
|
Here's how to add the Catalog Unprocessed Entities tab:
|
|
203
173
|
|
|
@@ -230,6 +200,38 @@ Here's how to add the Catalog Unprocessed Entities tab:
|
|
|
230
200
|
|
|
231
201
|
4. Now run `yarn start` and navigate to the DevTools you'll see a new tab for Unprocessed Entities
|
|
232
202
|
|
|
203
|
+
## Old Frontend System
|
|
204
|
+
|
|
205
|
+
If your Backstage app uses the old frontend system, you need to manually wire the plugin into your app as outlined in this section. If you are on the new frontend system, you can skip this.
|
|
206
|
+
|
|
207
|
+
1. Open the `packages/app/src/App.tsx` file
|
|
208
|
+
2. Then after all the import statements add the following line:
|
|
209
|
+
|
|
210
|
+
```ts
|
|
211
|
+
import { DevToolsPage } from '@backstage/plugin-devtools';
|
|
212
|
+
```
|
|
213
|
+
|
|
214
|
+
3. In this same file just before the closing `</FlatRoutes>`, this will be near the bottom of the file, add this line:
|
|
215
|
+
|
|
216
|
+
```ts
|
|
217
|
+
<Route path="/devtools" element={<DevToolsPage />} />
|
|
218
|
+
```
|
|
219
|
+
|
|
220
|
+
4. Next open the `packages/app/src/components/Root/Root.tsx` file
|
|
221
|
+
5. We want to add this icon import after all the existing import statements:
|
|
222
|
+
|
|
223
|
+
```ts
|
|
224
|
+
import BuildIcon from '@material-ui/icons/Build';
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
6. Then add this line just after the `<SidebarSettings />` line:
|
|
228
|
+
|
|
229
|
+
```ts
|
|
230
|
+
<SidebarItem icon={BuildIcon} to="devtools" text="DevTools" />
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
7. Now run `yarn start` from the root of your project and you should see the DevTools option show up just below Settings in your sidebar and clicking on it will get you to the [Info tab](#info)
|
|
234
|
+
|
|
233
235
|
## Permissions
|
|
234
236
|
|
|
235
237
|
The DevTools plugin supports the [permissions framework](https://backstage.io/docs/permissions/overview), the following sections outline how you can use them with the assumption that you have the permissions framework setup and working.
|
package/dist/alpha/plugin.esm.js
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
import { jsx } from 'react/jsx-runtime';
|
|
2
|
-
import { ApiBlueprint, fetchApiRef, discoveryApiRef, PageBlueprint,
|
|
2
|
+
import { ApiBlueprint, fetchApiRef, discoveryApiRef, PageBlueprint, coreExtensionData, SubPageBlueprint, NavItemBlueprint, createFrontendPlugin } from '@backstage/frontend-plugin-api';
|
|
3
3
|
import { devToolsApiRef } from '../api/DevToolsApi.esm.js';
|
|
4
4
|
import { DevToolsClient } from '../api/DevToolsClient.esm.js';
|
|
5
5
|
import BuildIcon from '@material-ui/icons/Build';
|
|
6
|
+
import { Content } from '@backstage/core-components';
|
|
6
7
|
import { rootRouteRef } from '../routes.esm.js';
|
|
8
|
+
import { devToolsInfoReadPermission, devToolsConfigReadPermission } from '@backstage/plugin-devtools-common';
|
|
9
|
+
import { devToolsTaskSchedulerReadPermission } from '@backstage/plugin-devtools-common/alpha';
|
|
10
|
+
import { RequirePermission } from '@backstage/plugin-permission-react';
|
|
7
11
|
|
|
8
12
|
const devToolsApi = ApiBlueprint.make({
|
|
9
13
|
params: (defineParams) => defineParams({
|
|
@@ -16,32 +20,54 @@ const devToolsApi = ApiBlueprint.make({
|
|
|
16
20
|
})
|
|
17
21
|
});
|
|
18
22
|
const devToolsPage = PageBlueprint.makeWithOverrides({
|
|
19
|
-
inputs: {
|
|
20
|
-
contents: createExtensionInput(
|
|
21
|
-
[
|
|
22
|
-
coreExtensionData.reactElement,
|
|
23
|
-
coreExtensionData.routePath,
|
|
24
|
-
coreExtensionData.routeRef.optional(),
|
|
25
|
-
coreExtensionData.title
|
|
26
|
-
],
|
|
27
|
-
{
|
|
28
|
-
optional: true
|
|
29
|
-
}
|
|
30
|
-
)
|
|
31
|
-
},
|
|
32
23
|
factory(originalFactory, { inputs }) {
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
}));
|
|
42
|
-
return import('../components/DevToolsPage/index.esm.js').then((m) => /* @__PURE__ */ jsx(m.DevToolsPage, { contents }));
|
|
24
|
+
const pages = [...inputs.pages].sort((left, right) => {
|
|
25
|
+
const leftPath = left.get(coreExtensionData.routePath);
|
|
26
|
+
const rightPath = right.get(coreExtensionData.routePath);
|
|
27
|
+
if (leftPath === "info" && rightPath !== "info") {
|
|
28
|
+
return -1;
|
|
29
|
+
}
|
|
30
|
+
if (leftPath !== "info" && rightPath === "info") {
|
|
31
|
+
return 1;
|
|
43
32
|
}
|
|
33
|
+
return 0;
|
|
44
34
|
});
|
|
35
|
+
return originalFactory(
|
|
36
|
+
{
|
|
37
|
+
path: "/devtools",
|
|
38
|
+
routeRef: rootRouteRef,
|
|
39
|
+
title: "DevTools"
|
|
40
|
+
},
|
|
41
|
+
{
|
|
42
|
+
inputs: {
|
|
43
|
+
pages
|
|
44
|
+
}
|
|
45
|
+
}
|
|
46
|
+
);
|
|
47
|
+
}
|
|
48
|
+
});
|
|
49
|
+
const devToolsInfoPage = SubPageBlueprint.make({
|
|
50
|
+
name: "info",
|
|
51
|
+
params: {
|
|
52
|
+
path: "info",
|
|
53
|
+
title: "Info",
|
|
54
|
+
loader: () => import('../components/Content/index.esm.js').then((m) => /* @__PURE__ */ jsx(Content, { children: /* @__PURE__ */ jsx(RequirePermission, { permission: devToolsInfoReadPermission, children: /* @__PURE__ */ jsx(m.InfoContent, {}) }) }))
|
|
55
|
+
}
|
|
56
|
+
});
|
|
57
|
+
const devToolsConfigPage = SubPageBlueprint.make({
|
|
58
|
+
name: "config",
|
|
59
|
+
params: {
|
|
60
|
+
path: "config",
|
|
61
|
+
title: "Config",
|
|
62
|
+
loader: () => import('../components/Content/index.esm.js').then((m) => /* @__PURE__ */ jsx(Content, { children: /* @__PURE__ */ jsx(RequirePermission, { permission: devToolsConfigReadPermission, children: /* @__PURE__ */ jsx(m.ConfigContent, {}) }) }))
|
|
63
|
+
}
|
|
64
|
+
});
|
|
65
|
+
const devToolsScheduledTasksPage = SubPageBlueprint.make({
|
|
66
|
+
name: "scheduled-tasks",
|
|
67
|
+
params: {
|
|
68
|
+
path: "scheduled-tasks",
|
|
69
|
+
title: "Scheduled Tasks",
|
|
70
|
+
loader: () => import('../components/Content/index.esm.js').then((m) => /* @__PURE__ */ jsx(Content, { children: /* @__PURE__ */ jsx(RequirePermission, { permission: devToolsTaskSchedulerReadPermission, children: /* @__PURE__ */ jsx(m.ScheduledTasksContent, {}) }) }))
|
|
45
71
|
}
|
|
46
72
|
});
|
|
47
73
|
const devToolsNavItem = NavItemBlueprint.make({
|
|
@@ -54,13 +80,20 @@ const devToolsNavItem = NavItemBlueprint.make({
|
|
|
54
80
|
var plugin = createFrontendPlugin({
|
|
55
81
|
pluginId: "devtools",
|
|
56
82
|
title: "DevTools",
|
|
57
|
-
icon: /* @__PURE__ */ jsx(BuildIcon, {}),
|
|
83
|
+
icon: /* @__PURE__ */ jsx(BuildIcon, { fontSize: "inherit" }),
|
|
58
84
|
info: { packageJson: () => import('../package.json.esm.js') },
|
|
59
85
|
routes: {
|
|
60
86
|
root: rootRouteRef
|
|
61
87
|
},
|
|
62
|
-
extensions: [
|
|
88
|
+
extensions: [
|
|
89
|
+
devToolsApi,
|
|
90
|
+
devToolsPage,
|
|
91
|
+
devToolsInfoPage,
|
|
92
|
+
devToolsConfigPage,
|
|
93
|
+
devToolsScheduledTasksPage,
|
|
94
|
+
devToolsNavItem
|
|
95
|
+
]
|
|
63
96
|
});
|
|
64
97
|
|
|
65
|
-
export { plugin as default, devToolsApi, devToolsNavItem, devToolsPage };
|
|
98
|
+
export { plugin as default, devToolsApi, devToolsConfigPage, devToolsInfoPage, devToolsNavItem, devToolsPage, devToolsScheduledTasksPage };
|
|
66
99
|
//# sourceMappingURL=plugin.esm.js.map
|
|
@@ -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
|
|
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 coreExtensionData,\n discoveryApiRef,\n fetchApiRef,\n ApiBlueprint,\n PageBlueprint,\n NavItemBlueprint,\n SubPageBlueprint,\n} from '@backstage/frontend-plugin-api';\n\nimport { devToolsApiRef, DevToolsClient } from '../api';\nimport BuildIcon from '@material-ui/icons/Build';\nimport { Content } from '@backstage/core-components';\nimport { rootRouteRef } from '../routes';\nimport {\n devToolsConfigReadPermission,\n devToolsInfoReadPermission,\n} from '@backstage/plugin-devtools-common';\nimport { devToolsTaskSchedulerReadPermission } from '@backstage/plugin-devtools-common/alpha';\nimport { RequirePermission } from '@backstage/plugin-permission-react';\n\n/** @alpha */\nexport const devToolsApi = ApiBlueprint.make({\n params: defineParams =>\n defineParams({\n api: devToolsApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n fetchApi: fetchApiRef,\n },\n factory: ({ discoveryApi, fetchApi }) =>\n new DevToolsClient({ discoveryApi, fetchApi }),\n }),\n});\n\n/** @alpha */\nexport const devToolsPage = PageBlueprint.makeWithOverrides({\n factory(originalFactory, { inputs }) {\n const pages = [...inputs.pages].sort((left, right) => {\n const leftPath = left.get(coreExtensionData.routePath);\n const rightPath = right.get(coreExtensionData.routePath);\n\n if (leftPath === 'info' && rightPath !== 'info') {\n return -1;\n }\n if (leftPath !== 'info' && rightPath === 'info') {\n return 1;\n }\n\n return 0;\n });\n\n return originalFactory(\n {\n path: '/devtools',\n routeRef: rootRouteRef,\n title: 'DevTools',\n },\n {\n inputs: {\n pages,\n },\n },\n );\n },\n});\n\n/** @alpha */\nexport const devToolsInfoPage = SubPageBlueprint.make({\n name: 'info',\n params: {\n path: 'info',\n title: 'Info',\n loader: () =>\n import('../components/Content').then(m => (\n <Content>\n <RequirePermission permission={devToolsInfoReadPermission}>\n <m.InfoContent />\n </RequirePermission>\n </Content>\n )),\n },\n});\n\n/** @alpha */\nexport const devToolsConfigPage = SubPageBlueprint.make({\n name: 'config',\n params: {\n path: 'config',\n title: 'Config',\n loader: () =>\n import('../components/Content').then(m => (\n <Content>\n <RequirePermission permission={devToolsConfigReadPermission}>\n <m.ConfigContent />\n </RequirePermission>\n </Content>\n )),\n },\n});\n\n/** @alpha */\nexport const devToolsScheduledTasksPage = SubPageBlueprint.make({\n name: 'scheduled-tasks',\n params: {\n path: 'scheduled-tasks',\n title: 'Scheduled Tasks',\n loader: () =>\n import('../components/Content').then(m => (\n <Content>\n <RequirePermission permission={devToolsTaskSchedulerReadPermission}>\n <m.ScheduledTasksContent />\n </RequirePermission>\n </Content>\n )),\n },\n});\n\n/** @alpha */\nexport const devToolsNavItem = NavItemBlueprint.make({\n params: {\n title: 'DevTools',\n routeRef: rootRouteRef,\n icon: BuildIcon,\n },\n});\n\n/** @alpha */\nexport default createFrontendPlugin({\n pluginId: 'devtools',\n title: 'DevTools',\n icon: <BuildIcon fontSize=\"inherit\" />,\n info: { packageJson: () => import('../../package.json') },\n routes: {\n root: rootRouteRef,\n },\n extensions: [\n devToolsApi,\n devToolsPage,\n devToolsInfoPage,\n devToolsConfigPage,\n devToolsScheduledTasksPage,\n devToolsNavItem,\n ],\n});\n"],"names":[],"mappings":";;;;;;;;;;;AAuCO,MAAM,WAAA,GAAc,aAAa,IAAA,CAAK;AAAA,EAC3C,MAAA,EAAQ,kB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AA;AAEV,CAAC;AAGD,aAAe,oBAAA,CAAqB;AAAA,EAClC,QAAA,EAAU,UAAA;AAAA,EACV,KAAA,EAAO,UAAA;AAAA,EACP,IAAA,kBAAM,GAAA,CAAC,SAAA,EAAA,EAAU,QAAA,EAAS,SAAA,EAAU,CAAA;AAAA,EACpC,MAAM,EAAE,WAAA,EAAa,MAAM,OAAO,wBAAoB,CAAA,EAAE;AAAA,EACxD,MAAA,EAAQ;AAAA,IACN,IAAA,EAAM;AAAA,GACR;AAAA,EACA,UAAA,EAAY;AAAA,IACV,WAAA;AAAA,IACA,YAAA;AAAA,IACA,gBAAA;AAAA,IACA,kBAAA;AAAA,IACA,0BAAA;AAAA,IACA;AAAA;AAEJ,CAAC,CAAA;;;;"}
|
package/dist/alpha.d.ts
CHANGED
|
@@ -60,13 +60,6 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
60
60
|
optional: false;
|
|
61
61
|
internal: false;
|
|
62
62
|
}>;
|
|
63
|
-
contents: _backstage_frontend_plugin_api.ExtensionInput<_backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.title", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<react.JSX.Element, "core.reactElement", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<string, "core.routing.path", {}> | _backstage_frontend_plugin_api.ConfigurableExtensionDataRef<_backstage_frontend_plugin_api.RouteRef<_backstage_frontend_plugin_api.AnyRouteRefParams>, "core.routing.ref", {
|
|
64
|
-
optional: true;
|
|
65
|
-
}>, {
|
|
66
|
-
singleton: false;
|
|
67
|
-
optional: true;
|
|
68
|
-
internal: false;
|
|
69
|
-
}>;
|
|
70
63
|
};
|
|
71
64
|
kind: "page";
|
|
72
65
|
name: undefined;
|
|
@@ -79,6 +72,81 @@ declare const _default: _backstage_frontend_plugin_api.OverridableFrontendPlugin
|
|
|
79
72
|
noHeader?: boolean;
|
|
80
73
|
};
|
|
81
74
|
}>;
|
|
75
|
+
"sub-page:devtools/config": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
76
|
+
kind: "sub-page";
|
|
77
|
+
name: "config";
|
|
78
|
+
config: {
|
|
79
|
+
path: string | undefined;
|
|
80
|
+
title: string | undefined;
|
|
81
|
+
};
|
|
82
|
+
configInput: {
|
|
83
|
+
title?: string | undefined;
|
|
84
|
+
path?: string | undefined;
|
|
85
|
+
};
|
|
86
|
+
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", {
|
|
87
|
+
optional: true;
|
|
88
|
+
}> | _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", {
|
|
89
|
+
optional: true;
|
|
90
|
+
}>;
|
|
91
|
+
inputs: {};
|
|
92
|
+
params: {
|
|
93
|
+
path: string;
|
|
94
|
+
title: string;
|
|
95
|
+
icon?: _backstage_frontend_plugin_api.IconElement;
|
|
96
|
+
loader: () => Promise<JSX.Element>;
|
|
97
|
+
routeRef?: _backstage_frontend_plugin_api.RouteRef;
|
|
98
|
+
};
|
|
99
|
+
}>;
|
|
100
|
+
"sub-page:devtools/info": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
101
|
+
kind: "sub-page";
|
|
102
|
+
name: "info";
|
|
103
|
+
config: {
|
|
104
|
+
path: string | undefined;
|
|
105
|
+
title: string | undefined;
|
|
106
|
+
};
|
|
107
|
+
configInput: {
|
|
108
|
+
title?: string | undefined;
|
|
109
|
+
path?: string | undefined;
|
|
110
|
+
};
|
|
111
|
+
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", {
|
|
112
|
+
optional: true;
|
|
113
|
+
}> | _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", {
|
|
114
|
+
optional: true;
|
|
115
|
+
}>;
|
|
116
|
+
inputs: {};
|
|
117
|
+
params: {
|
|
118
|
+
path: string;
|
|
119
|
+
title: string;
|
|
120
|
+
icon?: _backstage_frontend_plugin_api.IconElement;
|
|
121
|
+
loader: () => Promise<JSX.Element>;
|
|
122
|
+
routeRef?: _backstage_frontend_plugin_api.RouteRef;
|
|
123
|
+
};
|
|
124
|
+
}>;
|
|
125
|
+
"sub-page:devtools/scheduled-tasks": _backstage_frontend_plugin_api.OverridableExtensionDefinition<{
|
|
126
|
+
kind: "sub-page";
|
|
127
|
+
name: "scheduled-tasks";
|
|
128
|
+
config: {
|
|
129
|
+
path: string | undefined;
|
|
130
|
+
title: string | undefined;
|
|
131
|
+
};
|
|
132
|
+
configInput: {
|
|
133
|
+
title?: string | undefined;
|
|
134
|
+
path?: string | undefined;
|
|
135
|
+
};
|
|
136
|
+
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", {
|
|
137
|
+
optional: true;
|
|
138
|
+
}> | _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", {
|
|
139
|
+
optional: true;
|
|
140
|
+
}>;
|
|
141
|
+
inputs: {};
|
|
142
|
+
params: {
|
|
143
|
+
path: string;
|
|
144
|
+
title: string;
|
|
145
|
+
icon?: _backstage_frontend_plugin_api.IconElement;
|
|
146
|
+
loader: () => Promise<JSX.Element>;
|
|
147
|
+
routeRef?: _backstage_frontend_plugin_api.RouteRef;
|
|
148
|
+
};
|
|
149
|
+
}>;
|
|
82
150
|
}>;
|
|
83
151
|
|
|
84
152
|
export { _default as default };
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export { ConfigContent } from './ConfigContent/ConfigContent.esm.js';
|
|
2
|
+
export { InfoContent } from './InfoContent/InfoContent.esm.js';
|
|
3
|
+
export { ExternalDependenciesContent } from './ExternalDependenciesContent/ExternalDependenciesContent.esm.js';
|
|
4
|
+
export { ScheduledTasksContent } from './ScheduledTasksContent/ScheduledTasksContent.esm.js';
|
|
5
|
+
export { ScheduledTaskDetailPanel } from './ScheduledTasksContent/ScheduledTaskDetailedPanel.esm.js';
|
|
6
|
+
//# sourceMappingURL=index.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"DefaultDevToolsPage.esm.js","sources":["../../../src/components/DefaultDevToolsPage/DefaultDevToolsPage.tsx"],"sourcesContent":["/*\n * Copyright 2022 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 devToolsConfigReadPermission,\n devToolsInfoReadPermission,\n} from '@backstage/plugin-devtools-common';\n\nimport { ConfigContent } from '../Content';\nimport { devToolsTaskSchedulerReadPermission } from '@backstage/plugin-devtools-common/alpha';\nimport { DevToolsLayout } from '../DevToolsLayout';\nimport { InfoContent } from '../Content';\nimport { RequirePermission } from '@backstage/plugin-permission-react';\nimport { ScheduledTasksContent } from '../Content/ScheduledTasksContent';\nimport { DevToolsPageProps } from '../DevToolsPage';\n\n/** @public */\nexport const DefaultDevToolsPage = ({ contents }: DevToolsPageProps) => (\n <DevToolsLayout>\n <DevToolsLayout.Route path=\"info\" title=\"Info\">\n <RequirePermission permission={devToolsInfoReadPermission}>\n <InfoContent />\n </RequirePermission>\n </DevToolsLayout.Route>\n <DevToolsLayout.Route path=\"config\" title=\"Config\">\n <RequirePermission permission={devToolsConfigReadPermission}>\n <ConfigContent />\n </RequirePermission>\n </DevToolsLayout.Route>\n <DevToolsLayout.Route path=\"scheduled-tasks\" title=\"Scheduled Tasks\">\n <RequirePermission permission={devToolsTaskSchedulerReadPermission}>\n <ScheduledTasksContent />\n </RequirePermission>\n </DevToolsLayout.Route>\n {contents?.map((content, index) => (\n <DevToolsLayout.Route\n key={`extension-${index}`}\n path={content.path}\n title={content.title}\n >\n {content.children}\n </DevToolsLayout.Route>\n ))}\n </DevToolsLayout>\n);\n"],"names":[],"mappings":";;;;;;;;;;;AA8BO,MAAM,sBAAsB,CAAC,EAAE,QAAA,EAAS,0BAC5C,cAAA,EAAA,EACC,QAAA,EAAA;AAAA,kBAAA,GAAA,CAAC,cAAA,CAAe,KAAA,EAAf,EAAqB,IAAA,EAAK,QAAO,KAAA,EAAM,MAAA,EACtC,QAAA,kBAAA,GAAA,CAAC,iBAAA,EAAA,EAAkB,UAAA,EAAY,0BAAA,EAC7B,QAAA,kBAAA,GAAA,CAAC,WAAA,EAAA,EAAY,GACf,CAAA,EACF,CAAA;AAAA,kBACA,GAAA,CAAC,cAAA,CAAe,KAAA,EAAf,EAAqB,MAAK,QAAA,EAAS,KAAA,EAAM,QAAA,EACxC,QAAA,kBAAA,GAAA,CAAC,qBAAkB,UAAA,EAAY,4BAAA,EAC7B,QAAA,kBAAA,GAAA,CAAC,aAAA,EAAA,EAAc,GACjB,CAAA,EACF,CAAA;AAAA,kBACA,GAAA,CAAC,cAAA,CAAe,KAAA,EAAf,EAAqB,MAAK,iBAAA,EAAkB,KAAA,EAAM,iBAAA,EACjD,QAAA,kBAAA,GAAA,CAAC,qBAAkB,UAAA,EAAY,mCAAA,EAC7B,QAAA,kBAAA,GAAA,CAAC,qBAAA,EAAA,EAAsB,GACzB,CAAA,EACF,CAAA;AAAA,EACC,QAAA,EAAU,GAAA,CAAI,CAAC,OAAA,EAAS,KAAA,qBACvB,GAAA;AAAA,IAAC,cAAA,CAAe,KAAA;AAAA,IAAf;AAAA,MAEC,MAAM,OAAA,CAAQ,IAAA;AAAA,MACd,OAAO,OAAA,CAAQ,KAAA;AAAA,MAEd,QAAA,EAAA,OAAA,CAAQ;AAAA,KAAA;AAAA,IAJJ,aAAa,KAAK,CAAA;AAAA,GAM1B;AAAA,CAAA,EACH;;;;"}
|
|
1
|
+
{"version":3,"file":"DefaultDevToolsPage.esm.js","sources":["../../../src/components/DefaultDevToolsPage/DefaultDevToolsPage.tsx"],"sourcesContent":["/*\n * Copyright 2022 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 devToolsConfigReadPermission,\n devToolsInfoReadPermission,\n} from '@backstage/plugin-devtools-common';\n\nimport { ConfigContent } from '../Content';\nimport { devToolsTaskSchedulerReadPermission } from '@backstage/plugin-devtools-common/alpha';\nimport { DevToolsLayout } from '../DevToolsLayout/DevToolsLayout';\nimport { InfoContent } from '../Content';\nimport { RequirePermission } from '@backstage/plugin-permission-react';\nimport { ScheduledTasksContent } from '../Content/ScheduledTasksContent';\nimport { DevToolsPageProps } from '../DevToolsPage';\n\n/** @public */\nexport const DefaultDevToolsPage = ({ contents }: DevToolsPageProps) => (\n <DevToolsLayout>\n <DevToolsLayout.Route path=\"info\" title=\"Info\">\n <RequirePermission permission={devToolsInfoReadPermission}>\n <InfoContent />\n </RequirePermission>\n </DevToolsLayout.Route>\n <DevToolsLayout.Route path=\"config\" title=\"Config\">\n <RequirePermission permission={devToolsConfigReadPermission}>\n <ConfigContent />\n </RequirePermission>\n </DevToolsLayout.Route>\n <DevToolsLayout.Route path=\"scheduled-tasks\" title=\"Scheduled Tasks\">\n <RequirePermission permission={devToolsTaskSchedulerReadPermission}>\n <ScheduledTasksContent />\n </RequirePermission>\n </DevToolsLayout.Route>\n {contents?.map((content, index) => (\n <DevToolsLayout.Route\n key={`extension-${index}`}\n path={content.path}\n title={content.title}\n >\n {content.children}\n </DevToolsLayout.Route>\n ))}\n </DevToolsLayout>\n);\n"],"names":[],"mappings":";;;;;;;;;;;AA8BO,MAAM,sBAAsB,CAAC,EAAE,QAAA,EAAS,0BAC5C,cAAA,EAAA,EACC,QAAA,EAAA;AAAA,kBAAA,GAAA,CAAC,cAAA,CAAe,KAAA,EAAf,EAAqB,IAAA,EAAK,QAAO,KAAA,EAAM,MAAA,EACtC,QAAA,kBAAA,GAAA,CAAC,iBAAA,EAAA,EAAkB,UAAA,EAAY,0BAAA,EAC7B,QAAA,kBAAA,GAAA,CAAC,WAAA,EAAA,EAAY,GACf,CAAA,EACF,CAAA;AAAA,kBACA,GAAA,CAAC,cAAA,CAAe,KAAA,EAAf,EAAqB,MAAK,QAAA,EAAS,KAAA,EAAM,QAAA,EACxC,QAAA,kBAAA,GAAA,CAAC,qBAAkB,UAAA,EAAY,4BAAA,EAC7B,QAAA,kBAAA,GAAA,CAAC,aAAA,EAAA,EAAc,GACjB,CAAA,EACF,CAAA;AAAA,kBACA,GAAA,CAAC,cAAA,CAAe,KAAA,EAAf,EAAqB,MAAK,iBAAA,EAAkB,KAAA,EAAM,iBAAA,EACjD,QAAA,kBAAA,GAAA,CAAC,qBAAkB,UAAA,EAAY,mCAAA,EAC7B,QAAA,kBAAA,GAAA,CAAC,qBAAA,EAAA,EAAsB,GACzB,CAAA,EACF,CAAA;AAAA,EACC,QAAA,EAAU,GAAA,CAAI,CAAC,OAAA,EAAS,KAAA,qBACvB,GAAA;AAAA,IAAC,cAAA,CAAe,KAAA;AAAA,IAAf;AAAA,MAEC,MAAM,OAAA,CAAQ,IAAA;AAAA,MACd,OAAO,OAAA,CAAQ,KAAA;AAAA,MAEd,QAAA,EAAA,OAAA,CAAQ;AAAA,KAAA;AAAA,IAJJ,aAAa,KAAK,CAAA;AAAA,GAM1B;AAAA,CAAA,EACH;;;;"}
|
package/dist/package.json.esm.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var name = "@backstage/plugin-devtools";
|
|
2
|
-
var version = "0.0.0-nightly-
|
|
2
|
+
var version = "0.0.0-nightly-20260319031605";
|
|
3
3
|
var backstage = {
|
|
4
4
|
role: "frontend-plugin",
|
|
5
5
|
pluginId: "devtools",
|
|
@@ -58,8 +58,8 @@ var dependencies = {
|
|
|
58
58
|
"@backstage/errors": "workspace:*",
|
|
59
59
|
"@backstage/frontend-plugin-api": "workspace:*",
|
|
60
60
|
"@backstage/plugin-devtools-common": "workspace:*",
|
|
61
|
-
"@backstage/plugin-devtools-react": "workspace:*",
|
|
62
61
|
"@backstage/plugin-permission-react": "workspace:*",
|
|
62
|
+
"@backstage/ui": "workspace:*",
|
|
63
63
|
"@material-ui/core": "^4.9.13",
|
|
64
64
|
"@material-ui/icons": "^4.9.1",
|
|
65
65
|
"@material-ui/lab": "^4.0.0-alpha.57",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage/plugin-devtools",
|
|
3
|
-
"version": "0.0.0-nightly-
|
|
3
|
+
"version": "0.0.0-nightly-20260319031605",
|
|
4
4
|
"backstage": {
|
|
5
5
|
"role": "frontend-plugin",
|
|
6
6
|
"pluginId": "devtools",
|
|
@@ -65,14 +65,14 @@
|
|
|
65
65
|
"test": "backstage-cli package test"
|
|
66
66
|
},
|
|
67
67
|
"dependencies": {
|
|
68
|
-
"@backstage/core-compat-api": "0.0.0-nightly-
|
|
69
|
-
"@backstage/core-components": "0.
|
|
70
|
-
"@backstage/core-plugin-api": "
|
|
68
|
+
"@backstage/core-compat-api": "0.0.0-nightly-20260319031605",
|
|
69
|
+
"@backstage/core-components": "0.18.8",
|
|
70
|
+
"@backstage/core-plugin-api": "1.12.4",
|
|
71
71
|
"@backstage/errors": "1.2.7",
|
|
72
|
-
"@backstage/frontend-plugin-api": "0.
|
|
73
|
-
"@backstage/plugin-devtools-common": "0.
|
|
74
|
-
"@backstage/plugin-
|
|
75
|
-
"@backstage/
|
|
72
|
+
"@backstage/frontend-plugin-api": "0.15.0",
|
|
73
|
+
"@backstage/plugin-devtools-common": "0.1.23",
|
|
74
|
+
"@backstage/plugin-permission-react": "0.4.41",
|
|
75
|
+
"@backstage/ui": "0.0.0-nightly-20260319031605",
|
|
76
76
|
"@material-ui/core": "^4.9.13",
|
|
77
77
|
"@material-ui/icons": "^4.9.1",
|
|
78
78
|
"@material-ui/lab": "^4.0.0-alpha.57",
|
|
@@ -81,8 +81,8 @@
|
|
|
81
81
|
"react-use": "^17.2.4"
|
|
82
82
|
},
|
|
83
83
|
"devDependencies": {
|
|
84
|
-
"@backstage/cli": "0.
|
|
85
|
-
"@backstage/dev-utils": "0.0.0-nightly-
|
|
84
|
+
"@backstage/cli": "0.36.0",
|
|
85
|
+
"@backstage/dev-utils": "0.0.0-nightly-20260319031605",
|
|
86
86
|
"@testing-library/jest-dom": "^6.0.0",
|
|
87
87
|
"@types/lodash": "^4.14.151",
|
|
88
88
|
"@types/react": "^18.0.0",
|