@backstage-community/plugin-splunk-on-call 0.4.24 → 0.4.25
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 +6 -0
- package/dist/api/client.esm.js +114 -0
- package/dist/api/client.esm.js.map +1 -0
- package/dist/components/EntitySplunkOnCallCard.esm.js +189 -0
- package/dist/components/EntitySplunkOnCallCard.esm.js.map +1 -0
- package/dist/components/Errors/MissingApiKeyOrApiIdError.esm.js +24 -0
- package/dist/components/Errors/MissingApiKeyOrApiIdError.esm.js.map +1 -0
- package/dist/components/Escalation/EscalationPolicy.esm.js +65 -0
- package/dist/components/Escalation/EscalationPolicy.esm.js.map +1 -0
- package/dist/components/Escalation/EscalationUser.esm.js +30 -0
- package/dist/components/Escalation/EscalationUser.esm.js.map +1 -0
- package/dist/components/Escalation/EscalationUsersEmptyState.esm.js +23 -0
- package/dist/components/Escalation/EscalationUsersEmptyState.esm.js.map +1 -0
- package/dist/components/Incident/IncidentEmptyState.esm.js +28 -0
- package/dist/components/Incident/IncidentEmptyState.esm.js.map +1 -0
- package/dist/components/Incident/IncidentListItem.esm.js +189 -0
- package/dist/components/Incident/IncidentListItem.esm.js.map +1 -0
- package/dist/components/Incident/Incidents.esm.js +72 -0
- package/dist/components/Incident/Incidents.esm.js.map +1 -0
- package/dist/components/SplunkOnCallPage.esm.js +24 -0
- package/dist/components/SplunkOnCallPage.esm.js.map +1 -0
- package/dist/components/TriggerDialog/TriggerDialog.esm.js +205 -0
- package/dist/components/TriggerDialog/TriggerDialog.esm.js.map +1 -0
- package/dist/index.esm.js +3 -43
- package/dist/index.esm.js.map +1 -1
- package/dist/plugin.esm.js +37 -0
- package/dist/plugin.esm.js.map +1 -0
- package/package.json +14 -10
- package/dist/esm/SplunkOnCallPage-D9lfarwB.esm.js +0 -62
- package/dist/esm/SplunkOnCallPage-D9lfarwB.esm.js.map +0 -1
- package/dist/esm/index-D8KSFXg5.esm.js +0 -912
- package/dist/esm/index-D8KSFXg5.esm.js.map +0 -1
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { splunkOnCallApiRef, SplunkOnCallClient } from './api/client.esm.js';
|
|
2
|
+
import { createRouteRef, createPlugin, createApiFactory, discoveryApiRef, configApiRef, createRoutableExtension, createComponentExtension } from '@backstage/core-plugin-api';
|
|
3
|
+
|
|
4
|
+
const rootRouteRef = createRouteRef({ id: "splunk-on-call" });
|
|
5
|
+
const splunkOnCallPlugin = createPlugin({
|
|
6
|
+
id: "splunk-on-call",
|
|
7
|
+
apis: [
|
|
8
|
+
createApiFactory({
|
|
9
|
+
api: splunkOnCallApiRef,
|
|
10
|
+
deps: { discoveryApi: discoveryApiRef, configApi: configApiRef },
|
|
11
|
+
factory: ({ configApi, discoveryApi }) => SplunkOnCallClient.fromConfig(configApi, discoveryApi)
|
|
12
|
+
})
|
|
13
|
+
],
|
|
14
|
+
routes: {
|
|
15
|
+
root: rootRouteRef
|
|
16
|
+
}
|
|
17
|
+
});
|
|
18
|
+
const SplunkOnCallPage = splunkOnCallPlugin.provide(
|
|
19
|
+
createRoutableExtension({
|
|
20
|
+
name: "SplunkOnCallPage",
|
|
21
|
+
component: () => import('./components/SplunkOnCallPage.esm.js').then((m) => m.SplunkOnCallPage),
|
|
22
|
+
mountPoint: rootRouteRef
|
|
23
|
+
})
|
|
24
|
+
);
|
|
25
|
+
const EntitySplunkOnCallCard = splunkOnCallPlugin.provide(
|
|
26
|
+
createComponentExtension({
|
|
27
|
+
name: "EntitySplunkOnCallCard",
|
|
28
|
+
component: {
|
|
29
|
+
lazy: () => import('./components/EntitySplunkOnCallCard.esm.js').then(
|
|
30
|
+
(m) => m.EntitySplunkOnCallCard
|
|
31
|
+
)
|
|
32
|
+
}
|
|
33
|
+
})
|
|
34
|
+
);
|
|
35
|
+
|
|
36
|
+
export { EntitySplunkOnCallCard, SplunkOnCallPage, rootRouteRef, splunkOnCallPlugin };
|
|
37
|
+
//# sourceMappingURL=plugin.esm.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["/*\n * Copyright 2020 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 { splunkOnCallApiRef, SplunkOnCallClient } from './api';\nimport {\n createApiFactory,\n createPlugin,\n createRouteRef,\n discoveryApiRef,\n configApiRef,\n createRoutableExtension,\n createComponentExtension,\n} from '@backstage/core-plugin-api';\n\nexport const rootRouteRef = createRouteRef({ id: 'splunk-on-call' });\n\n/** @public */\nexport const splunkOnCallPlugin = createPlugin({\n id: 'splunk-on-call',\n apis: [\n createApiFactory({\n api: splunkOnCallApiRef,\n deps: { discoveryApi: discoveryApiRef, configApi: configApiRef },\n factory: ({ configApi, discoveryApi }) =>\n SplunkOnCallClient.fromConfig(configApi, discoveryApi),\n }),\n ],\n routes: {\n root: rootRouteRef,\n },\n});\n\n/** @public */\nexport const SplunkOnCallPage = splunkOnCallPlugin.provide(\n createRoutableExtension({\n name: 'SplunkOnCallPage',\n component: () =>\n import('./components/SplunkOnCallPage').then(m => m.SplunkOnCallPage),\n mountPoint: rootRouteRef,\n }),\n);\n\n/** @public */\nexport const EntitySplunkOnCallCard = splunkOnCallPlugin.provide(\n createComponentExtension({\n name: 'EntitySplunkOnCallCard',\n component: {\n lazy: () =>\n import('./components/EntitySplunkOnCallCard').then(\n m => m.EntitySplunkOnCallCard,\n ),\n },\n }),\n);\n"],"names":[],"mappings":";;;AA0BO,MAAM,YAAe,GAAA,cAAA,CAAe,EAAE,EAAA,EAAI,kBAAkB,EAAA;AAG5D,MAAM,qBAAqB,YAAa,CAAA;AAAA,EAC7C,EAAI,EAAA,gBAAA;AAAA,EACJ,IAAM,EAAA;AAAA,IACJ,gBAAiB,CAAA;AAAA,MACf,GAAK,EAAA,kBAAA;AAAA,MACL,IAAM,EAAA,EAAE,YAAc,EAAA,eAAA,EAAiB,WAAW,YAAa,EAAA;AAAA,MAC/D,OAAA,EAAS,CAAC,EAAE,SAAA,EAAW,cACrB,KAAA,kBAAA,CAAmB,UAAW,CAAA,SAAA,EAAW,YAAY,CAAA;AAAA,KACxD,CAAA;AAAA,GACH;AAAA,EACA,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,YAAA;AAAA,GACR;AACF,CAAC,EAAA;AAGM,MAAM,mBAAmB,kBAAmB,CAAA,OAAA;AAAA,EACjD,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,kBAAA;AAAA,IACN,SAAA,EAAW,MACT,OAAO,sCAA+B,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,gBAAgB,CAAA;AAAA,IACtE,UAAY,EAAA,YAAA;AAAA,GACb,CAAA;AACH,EAAA;AAGO,MAAM,yBAAyB,kBAAmB,CAAA,OAAA;AAAA,EACvD,wBAAyB,CAAA;AAAA,IACvB,IAAM,EAAA,wBAAA;AAAA,IACN,SAAW,EAAA;AAAA,MACT,IAAM,EAAA,MACJ,OAAO,4CAAqC,CAAE,CAAA,IAAA;AAAA,QAC5C,OAAK,CAAE,CAAA,sBAAA;AAAA,OACT;AAAA,KACJ;AAAA,GACD,CAAA;AACH;;;;"}
|
package/package.json
CHANGED
|
@@ -1,9 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@backstage-community/plugin-splunk-on-call",
|
|
3
|
-
"version": "0.4.
|
|
3
|
+
"version": "0.4.25",
|
|
4
4
|
"description": "A Backstage plugin that integrates towards Splunk On-Call",
|
|
5
5
|
"backstage": {
|
|
6
|
-
"role": "frontend-plugin"
|
|
6
|
+
"role": "frontend-plugin",
|
|
7
|
+
"pluginId": "splunk-on-call",
|
|
8
|
+
"pluginPackages": [
|
|
9
|
+
"@backstage-community/plugin-splunk-on-call"
|
|
10
|
+
]
|
|
7
11
|
},
|
|
8
12
|
"publishConfig": {
|
|
9
13
|
"access": "public",
|
|
@@ -38,10 +42,10 @@
|
|
|
38
42
|
"test": "backstage-cli package test"
|
|
39
43
|
},
|
|
40
44
|
"dependencies": {
|
|
41
|
-
"@backstage/catalog-model": "^1.
|
|
42
|
-
"@backstage/core-components": "^0.14.
|
|
43
|
-
"@backstage/core-plugin-api": "^1.9.
|
|
44
|
-
"@backstage/plugin-catalog-react": "^1.
|
|
45
|
+
"@backstage/catalog-model": "^1.5.0",
|
|
46
|
+
"@backstage/core-components": "^0.14.9",
|
|
47
|
+
"@backstage/core-plugin-api": "^1.9.3",
|
|
48
|
+
"@backstage/plugin-catalog-react": "^1.12.2",
|
|
45
49
|
"@material-ui/core": "^4.12.2",
|
|
46
50
|
"@material-ui/icons": "^4.9.1",
|
|
47
51
|
"@material-ui/lab": "4.0.0-alpha.61",
|
|
@@ -50,10 +54,10 @@
|
|
|
50
54
|
"react-use": "^17.2.4"
|
|
51
55
|
},
|
|
52
56
|
"devDependencies": {
|
|
53
|
-
"@backstage/cli": "^0.26.
|
|
54
|
-
"@backstage/core-app-api": "^1.
|
|
55
|
-
"@backstage/dev-utils": "^1.0.
|
|
56
|
-
"@backstage/test-utils": "^1.5.
|
|
57
|
+
"@backstage/cli": "^0.26.11",
|
|
58
|
+
"@backstage/core-app-api": "^1.14.1",
|
|
59
|
+
"@backstage/dev-utils": "^1.0.36",
|
|
60
|
+
"@backstage/test-utils": "^1.5.9",
|
|
57
61
|
"@testing-library/dom": "^10.0.0",
|
|
58
62
|
"@testing-library/jest-dom": "^6.0.0",
|
|
59
63
|
"@testing-library/react": "^15.0.0",
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import Grid from '@material-ui/core/Grid';
|
|
3
|
-
import { makeStyles } from '@material-ui/core/styles';
|
|
4
|
-
import { E as EntitySplunkOnCallCard } from './index-D8KSFXg5.esm.js';
|
|
5
|
-
import { Page, Header, Content, ContentHeader, SupportButton } from '@backstage/core-components';
|
|
6
|
-
import '@backstage/core-plugin-api';
|
|
7
|
-
import 'react-use/esm/useAsync';
|
|
8
|
-
import '@backstage/plugin-catalog-react';
|
|
9
|
-
import '@material-ui/core/Card';
|
|
10
|
-
import '@material-ui/core/CardContent';
|
|
11
|
-
import '@material-ui/core/CardHeader';
|
|
12
|
-
import '@material-ui/core/Divider';
|
|
13
|
-
import '@material-ui/core/Typography';
|
|
14
|
-
import '@material-ui/icons/AlarmAdd';
|
|
15
|
-
import '@material-ui/icons/Web';
|
|
16
|
-
import '@material-ui/lab/Alert';
|
|
17
|
-
import '@material-ui/core/Button';
|
|
18
|
-
import '@material-ui/core/List';
|
|
19
|
-
import '@material-ui/core/ListSubheader';
|
|
20
|
-
import '@material-ui/core/ListItem';
|
|
21
|
-
import '@material-ui/core/ListItemIcon';
|
|
22
|
-
import '@material-ui/core/ListItemText';
|
|
23
|
-
import '@material-ui/core/ListItemSecondaryAction';
|
|
24
|
-
import '@material-ui/core/Tooltip';
|
|
25
|
-
import '@material-ui/core/IconButton';
|
|
26
|
-
import '@material-ui/core/Avatar';
|
|
27
|
-
import '@material-ui/icons/Email';
|
|
28
|
-
import '@material-ui/icons/Done';
|
|
29
|
-
import '@material-ui/icons/DoneAll';
|
|
30
|
-
import 'luxon';
|
|
31
|
-
import '@material-ui/icons/OpenInBrowser';
|
|
32
|
-
import 'react-use/esm/useAsyncFn';
|
|
33
|
-
import '../assets/emptystate.svg';
|
|
34
|
-
import '@material-ui/core/Dialog';
|
|
35
|
-
import '@material-ui/core/DialogTitle';
|
|
36
|
-
import '@material-ui/core/TextField';
|
|
37
|
-
import '@material-ui/core/DialogActions';
|
|
38
|
-
import '@material-ui/core/DialogContent';
|
|
39
|
-
import '@material-ui/core/CircularProgress';
|
|
40
|
-
import '@material-ui/core/Select';
|
|
41
|
-
import '@material-ui/core/MenuItem';
|
|
42
|
-
import '@material-ui/core/FormControl';
|
|
43
|
-
import '@material-ui/core/InputLabel';
|
|
44
|
-
|
|
45
|
-
const useStyles = makeStyles(() => ({
|
|
46
|
-
overflowXScroll: {
|
|
47
|
-
overflowX: "scroll"
|
|
48
|
-
}
|
|
49
|
-
}));
|
|
50
|
-
const SplunkOnCallPage = (props) => {
|
|
51
|
-
const { title, subtitle, pageTitle } = props;
|
|
52
|
-
const classes = useStyles();
|
|
53
|
-
return /* @__PURE__ */ React.createElement(Page, { themeId: "tool" }, /* @__PURE__ */ React.createElement(Header, { title, subtitle }), /* @__PURE__ */ React.createElement(Content, { className: classes.overflowXScroll }, /* @__PURE__ */ React.createElement(ContentHeader, { title: pageTitle }, /* @__PURE__ */ React.createElement(SupportButton, null, "This is used to help you automate incident management.")), /* @__PURE__ */ React.createElement(Grid, { container: true, spacing: 3, direction: "row" }, /* @__PURE__ */ React.createElement(Grid, { item: true, xs: 12, sm: 6, md: 4 }, /* @__PURE__ */ React.createElement(EntitySplunkOnCallCard, null)))));
|
|
54
|
-
};
|
|
55
|
-
SplunkOnCallPage.defaultProps = {
|
|
56
|
-
title: "Splunk On-Call",
|
|
57
|
-
subtitle: "Automate incident management",
|
|
58
|
-
pageTitle: "Dashboard"
|
|
59
|
-
};
|
|
60
|
-
|
|
61
|
-
export { SplunkOnCallPage };
|
|
62
|
-
//# sourceMappingURL=SplunkOnCallPage-D9lfarwB.esm.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"SplunkOnCallPage-D9lfarwB.esm.js","sources":["../../src/components/SplunkOnCallPage.tsx"],"sourcesContent":["/*\n * Copyright 2020 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 React from 'react';\nimport Grid from '@material-ui/core/Grid';\nimport { makeStyles } from '@material-ui/core/styles';\nimport { EntitySplunkOnCallCard } from './EntitySplunkOnCallCard';\nimport {\n Content,\n ContentHeader,\n Page,\n Header,\n SupportButton,\n} from '@backstage/core-components';\n\nconst useStyles = makeStyles(() => ({\n overflowXScroll: {\n overflowX: 'scroll',\n },\n}));\n\n/** @public */\nexport type SplunkOnCallPageProps = {\n title?: string;\n subtitle?: string;\n pageTitle?: string;\n};\n\nexport const SplunkOnCallPage = (props: SplunkOnCallPageProps): JSX.Element => {\n const { title, subtitle, pageTitle } = props;\n const classes = useStyles();\n\n return (\n <Page themeId=\"tool\">\n <Header title={title} subtitle={subtitle} />\n <Content className={classes.overflowXScroll}>\n <ContentHeader title={pageTitle}>\n <SupportButton>\n This is used to help you automate incident management.\n </SupportButton>\n </ContentHeader>\n <Grid container spacing={3} direction=\"row\">\n <Grid item xs={12} sm={6} md={4}>\n <EntitySplunkOnCallCard />\n </Grid>\n </Grid>\n </Content>\n </Page>\n );\n};\n\nSplunkOnCallPage.defaultProps = {\n title: 'Splunk On-Call',\n subtitle: 'Automate incident management',\n pageTitle: 'Dashboard',\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA4BA,MAAM,SAAA,GAAY,WAAW,OAAO;AAAA,EAClC,eAAiB,EAAA;AAAA,IACf,SAAW,EAAA,QAAA;AAAA,GACb;AACF,CAAE,CAAA,CAAA,CAAA;AASW,MAAA,gBAAA,GAAmB,CAAC,KAA8C,KAAA;AAC7E,EAAA,MAAM,EAAE,KAAA,EAAO,QAAU,EAAA,SAAA,EAAc,GAAA,KAAA,CAAA;AACvC,EAAA,MAAM,UAAU,SAAU,EAAA,CAAA;AAE1B,EACE,uBAAA,KAAA,CAAA,aAAA,CAAC,QAAK,OAAQ,EAAA,MAAA,EAAA,sCACX,MAAO,EAAA,EAAA,KAAA,EAAc,UAAoB,CAC1C,kBAAA,KAAA,CAAA,aAAA,CAAC,WAAQ,SAAW,EAAA,OAAA,CAAQ,mCACzB,KAAA,CAAA,aAAA,CAAA,aAAA,EAAA,EAAc,OAAO,SACpB,EAAA,kBAAA,KAAA,CAAA,aAAA,CAAC,aAAc,EAAA,IAAA,EAAA,wDAEf,CACF,CAAA,sCACC,IAAK,EAAA,EAAA,SAAA,EAAS,MAAC,OAAS,EAAA,CAAA,EAAG,WAAU,KACpC,EAAA,kBAAA,KAAA,CAAA,aAAA,CAAC,QAAK,IAAI,EAAA,IAAA,EAAC,IAAI,EAAI,EAAA,EAAA,EAAI,GAAG,EAAI,EAAA,CAAA,EAAA,sCAC3B,sBAAuB,EAAA,IAAA,CAC1B,CACF,CACF,CACF,CAAA,CAAA;AAEJ,EAAA;AAEA,gBAAA,CAAiB,YAAe,GAAA;AAAA,EAC9B,KAAO,EAAA,gBAAA;AAAA,EACP,QAAU,EAAA,8BAAA;AAAA,EACV,SAAW,EAAA,WAAA;AACb,CAAA;;;;"}
|