@backstage-community/plugin-sonarqube 0.7.17 → 0.7.19

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 +15 -0
  2. package/README.md +22 -0
  3. package/dist/api/SonarQubeClient.esm.js +89 -0
  4. package/dist/api/SonarQubeClient.esm.js.map +1 -0
  5. package/dist/components/SonarQubeCard/Percentage.esm.js +29 -0
  6. package/dist/components/SonarQubeCard/Percentage.esm.js.map +1 -0
  7. package/dist/components/SonarQubeCard/Rating.esm.js +81 -0
  8. package/dist/components/SonarQubeCard/Rating.esm.js.map +1 -0
  9. package/dist/components/SonarQubeCard/RatingCard.esm.js +46 -0
  10. package/dist/components/SonarQubeCard/RatingCard.esm.js.map +1 -0
  11. package/dist/components/SonarQubeCard/SonarQubeCard.esm.js +213 -0
  12. package/dist/components/SonarQubeCard/SonarQubeCard.esm.js.map +1 -0
  13. package/dist/components/SonarQubeCard/Value.esm.js +19 -0
  14. package/dist/components/SonarQubeCard/Value.esm.js.map +1 -0
  15. package/dist/components/SonarQubeCard/index.esm.js +2 -0
  16. package/dist/components/SonarQubeCard/index.esm.js.map +1 -0
  17. package/dist/components/SonarQubeContentPage/SonarQubeContentPage.esm.js +25 -0
  18. package/dist/components/SonarQubeContentPage/SonarQubeContentPage.esm.js.map +1 -0
  19. package/dist/components/SonarQubeContentPage/index.esm.js +2 -0
  20. package/dist/components/SonarQubeContentPage/index.esm.js.map +1 -0
  21. package/dist/components/index.esm.js +8 -0
  22. package/dist/components/index.esm.js.map +1 -0
  23. package/dist/index.d.ts +3 -0
  24. package/dist/index.esm.js +4 -488
  25. package/dist/index.esm.js.map +1 -1
  26. package/dist/plugin.esm.js +41 -0
  27. package/dist/plugin.esm.js.map +1 -0
  28. package/package.json +18 -12
  29. package/dist/esm/index-CwJaLZxM.esm.js +0 -22
  30. package/dist/esm/index-CwJaLZxM.esm.js.map +0 -1
  31. package/dist/esm/index-D3iMIkzq.esm.js +0 -35
  32. package/dist/esm/index-D3iMIkzq.esm.js.map +0 -1
@@ -0,0 +1,41 @@
1
+ import { SonarQubeClient } from './api/SonarQubeClient.esm.js';
2
+ import { createPlugin, createApiFactory, discoveryApiRef, identityApiRef, createComponentExtension } from '@backstage/core-plugin-api';
3
+ import { sonarQubeApiRef } from '@backstage-community/plugin-sonarqube-react';
4
+
5
+ const sonarQubePlugin = createPlugin({
6
+ id: "sonarqube",
7
+ apis: [
8
+ createApiFactory({
9
+ api: sonarQubeApiRef,
10
+ deps: {
11
+ discoveryApi: discoveryApiRef,
12
+ identityApi: identityApiRef
13
+ },
14
+ factory: ({ discoveryApi, identityApi }) => new SonarQubeClient({
15
+ discoveryApi,
16
+ identityApi
17
+ })
18
+ })
19
+ ]
20
+ });
21
+ const EntitySonarQubeCard = sonarQubePlugin.provide(
22
+ createComponentExtension({
23
+ name: "EntitySonarQubeCard",
24
+ component: {
25
+ lazy: () => import('./components/SonarQubeCard/index.esm.js').then((m) => m.SonarQubeCard)
26
+ }
27
+ })
28
+ );
29
+ const EntitySonarQubeContentPage = sonarQubePlugin.provide(
30
+ createComponentExtension({
31
+ name: "EntitySonarQubeContentPage",
32
+ component: {
33
+ lazy: () => import('./components/SonarQubeContentPage/index.esm.js').then(
34
+ (m) => m.SonarQubeContentPage
35
+ )
36
+ }
37
+ })
38
+ );
39
+
40
+ export { EntitySonarQubeCard, EntitySonarQubeContentPage, sonarQubePlugin };
41
+ //# 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 */\n\nimport { SonarQubeClient } from './api';\nimport {\n createApiFactory,\n createComponentExtension,\n createPlugin,\n discoveryApiRef,\n identityApiRef,\n} from '@backstage/core-plugin-api';\nimport { sonarQubeApiRef } from '@backstage-community/plugin-sonarqube-react';\n\n/** @public */\nexport const sonarQubePlugin = createPlugin({\n id: 'sonarqube',\n apis: [\n createApiFactory({\n api: sonarQubeApiRef,\n deps: {\n discoveryApi: discoveryApiRef,\n identityApi: identityApiRef,\n },\n factory: ({ discoveryApi, identityApi }) =>\n new SonarQubeClient({\n discoveryApi,\n identityApi,\n }),\n }),\n ],\n});\n\n/** @public */\nexport const EntitySonarQubeCard = sonarQubePlugin.provide(\n createComponentExtension({\n name: 'EntitySonarQubeCard',\n component: {\n lazy: () =>\n import('./components/SonarQubeCard').then(m => m.SonarQubeCard),\n },\n }),\n);\n\n/** @public */\nexport const EntitySonarQubeContentPage = sonarQubePlugin.provide(\n createComponentExtension({\n name: 'EntitySonarQubeContentPage',\n component: {\n lazy: () =>\n import('./components/SonarQubeContentPage').then(\n m => m.SonarQubeContentPage,\n ),\n },\n }),\n);\n"],"names":[],"mappings":";;;;AA2BO,MAAM,kBAAkB,YAAa,CAAA;AAAA,EAC1C,EAAI,EAAA,WAAA;AAAA,EACJ,IAAM,EAAA;AAAA,IACJ,gBAAiB,CAAA;AAAA,MACf,GAAK,EAAA,eAAA;AAAA,MACL,IAAM,EAAA;AAAA,QACJ,YAAc,EAAA,eAAA;AAAA,QACd,WAAa,EAAA,cAAA;AAAA,OACf;AAAA,MACA,SAAS,CAAC,EAAE,cAAc,WAAY,EAAA,KACpC,IAAI,eAAgB,CAAA;AAAA,QAClB,YAAA;AAAA,QACA,WAAA;AAAA,OACD,CAAA;AAAA,KACJ,CAAA;AAAA,GACH;AACF,CAAC,EAAA;AAGM,MAAM,sBAAsB,eAAgB,CAAA,OAAA;AAAA,EACjD,wBAAyB,CAAA;AAAA,IACvB,IAAM,EAAA,qBAAA;AAAA,IACN,SAAW,EAAA;AAAA,MACT,IAAA,EAAM,MACJ,OAAO,yCAA4B,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,aAAa,CAAA;AAAA,KAClE;AAAA,GACD,CAAA;AACH,EAAA;AAGO,MAAM,6BAA6B,eAAgB,CAAA,OAAA;AAAA,EACxD,wBAAyB,CAAA;AAAA,IACvB,IAAM,EAAA,4BAAA;AAAA,IACN,SAAW,EAAA;AAAA,MACT,IAAM,EAAA,MACJ,OAAO,gDAAmC,CAAE,CAAA,IAAA;AAAA,QAC1C,OAAK,CAAE,CAAA,oBAAA;AAAA,OACT;AAAA,KACJ;AAAA,GACD,CAAA;AACH;;;;"}
package/package.json CHANGED
@@ -1,9 +1,15 @@
1
1
  {
2
2
  "name": "@backstage-community/plugin-sonarqube",
3
- "version": "0.7.17",
3
+ "version": "0.7.19",
4
4
  "description": "",
5
5
  "backstage": {
6
- "role": "frontend-plugin"
6
+ "role": "frontend-plugin",
7
+ "pluginId": "sonarqube",
8
+ "pluginPackages": [
9
+ "@backstage-community/plugin-sonarqube",
10
+ "@backstage-community/plugin-sonarqube-backend",
11
+ "@backstage-community/plugin-sonarqube-react"
12
+ ]
7
13
  },
8
14
  "publishConfig": {
9
15
  "access": "public",
@@ -40,25 +46,25 @@
40
46
  "test": "backstage-cli package test"
41
47
  },
42
48
  "dependencies": {
43
- "@backstage-community/plugin-sonarqube-react": "^0.1.16",
44
- "@backstage/catalog-model": "^1.4.5",
45
- "@backstage/core-components": "^0.14.4",
46
- "@backstage/core-plugin-api": "^1.9.2",
47
- "@backstage/plugin-catalog-react": "^1.11.3",
49
+ "@backstage-community/plugin-sonarqube-react": "^0.1.17",
50
+ "@backstage/catalog-model": "^1.5.0",
51
+ "@backstage/core-components": "^0.14.9",
52
+ "@backstage/core-plugin-api": "^1.9.3",
53
+ "@backstage/plugin-catalog-react": "^1.12.2",
48
54
  "@material-ui/core": "^4.12.2",
49
55
  "@material-ui/icons": "^4.9.1",
50
56
  "@material-ui/styles": "^4.10.0",
51
57
  "@types/react": "^16.13.1 || ^17.0.0 || ^18.0.0",
52
58
  "cross-fetch": "^4.0.0",
53
59
  "luxon": "^3.0.0",
54
- "rc-progress": "3.5.1",
60
+ "rc-progress": "4.0.0",
55
61
  "react-use": "^17.2.4"
56
62
  },
57
63
  "devDependencies": {
58
- "@backstage/cli": "^0.26.3",
59
- "@backstage/core-app-api": "^1.12.4",
60
- "@backstage/dev-utils": "^1.0.31",
61
- "@backstage/test-utils": "^1.5.4",
64
+ "@backstage/cli": "^0.26.11",
65
+ "@backstage/core-app-api": "^1.14.0",
66
+ "@backstage/dev-utils": "^1.0.35",
67
+ "@backstage/test-utils": "^1.5.8",
62
68
  "@testing-library/dom": "^10.0.0",
63
69
  "@testing-library/jest-dom": "^6.0.0",
64
70
  "@testing-library/react": "^15.0.0",
@@ -1,22 +0,0 @@
1
- export { SonarQubeCard } from '../index.esm.js';
2
- import 'cross-fetch';
3
- import '@backstage-community/plugin-sonarqube-react';
4
- import '@backstage/plugin-catalog-react';
5
- import '@material-ui/core/Chip';
6
- import '@material-ui/core/Grid';
7
- import '@material-ui/core/styles';
8
- import '@material-ui/icons/BugReport';
9
- import '@material-ui/icons/Lock';
10
- import '@material-ui/icons/LockOpen';
11
- import '@material-ui/icons/Security';
12
- import '@material-ui/icons/SentimentVeryDissatisfied';
13
- import '@material-ui/icons/SentimentVerySatisfied';
14
- import 'react';
15
- import 'react-use/esm/useAsync';
16
- import 'rc-progress';
17
- import '@material-ui/core/Avatar';
18
- import '@backstage/core-components';
19
- import '@material-ui/core/Typography';
20
- import '@backstage/core-plugin-api';
21
- import 'luxon';
22
- //# sourceMappingURL=index-CwJaLZxM.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-CwJaLZxM.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;"}
@@ -1,35 +0,0 @@
1
- import { Content, ContentHeader, SupportButton } from '@backstage/core-components';
2
- import { useEntity, MissingAnnotationEmptyState } from '@backstage/plugin-catalog-react';
3
- import React from 'react';
4
- import { SonarQubeCard } from '../index.esm.js';
5
- import { isSonarQubeAvailable, SONARQUBE_PROJECT_KEY_ANNOTATION } from '@backstage-community/plugin-sonarqube-react';
6
- import 'cross-fetch';
7
- import '@material-ui/core/Chip';
8
- import '@material-ui/core/Grid';
9
- import '@material-ui/core/styles';
10
- import '@material-ui/icons/BugReport';
11
- import '@material-ui/icons/Lock';
12
- import '@material-ui/icons/LockOpen';
13
- import '@material-ui/icons/Security';
14
- import '@material-ui/icons/SentimentVeryDissatisfied';
15
- import '@material-ui/icons/SentimentVerySatisfied';
16
- import 'react-use/esm/useAsync';
17
- import 'rc-progress';
18
- import '@material-ui/core/Avatar';
19
- import '@material-ui/core/Typography';
20
- import '@backstage/core-plugin-api';
21
- import 'luxon';
22
-
23
- const SonarQubeContentPage = (props) => {
24
- const { entity } = useEntity();
25
- const { title, supportTitle } = props;
26
- return isSonarQubeAvailable(entity) ? /* @__PURE__ */ React.createElement(Content, null, /* @__PURE__ */ React.createElement(ContentHeader, { title: title != null ? title : "SonarQube Dashboard" }, supportTitle && /* @__PURE__ */ React.createElement(SupportButton, null, supportTitle)), /* @__PURE__ */ React.createElement(SonarQubeCard, null)) : /* @__PURE__ */ React.createElement(
27
- MissingAnnotationEmptyState,
28
- {
29
- annotation: SONARQUBE_PROJECT_KEY_ANNOTATION
30
- }
31
- );
32
- };
33
-
34
- export { SonarQubeContentPage };
35
- //# sourceMappingURL=index-D3iMIkzq.esm.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"index-D3iMIkzq.esm.js","sources":["../../src/components/SonarQubeContentPage/SonarQubeContentPage.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 {\n Content,\n ContentHeader,\n SupportButton,\n} from '@backstage/core-components';\nimport {\n useEntity,\n MissingAnnotationEmptyState,\n} from '@backstage/plugin-catalog-react';\nimport React from 'react';\nimport { SonarQubeCard } from '../SonarQubeCard';\nimport {\n isSonarQubeAvailable,\n SONARQUBE_PROJECT_KEY_ANNOTATION,\n} from '@backstage-community/plugin-sonarqube-react';\n\n/** @public */\nexport type SonarQubeContentPageProps = {\n title?: string;\n supportTitle?: string;\n};\n\nexport const SonarQubeContentPage = (props: SonarQubeContentPageProps) => {\n const { entity } = useEntity();\n const { title, supportTitle } = props;\n\n return isSonarQubeAvailable(entity) ? (\n <Content>\n <ContentHeader title={title ?? 'SonarQube Dashboard'}>\n {supportTitle && <SupportButton>{supportTitle}</SupportButton>}\n </ContentHeader>\n <SonarQubeCard />\n </Content>\n ) : (\n <MissingAnnotationEmptyState\n annotation={SONARQUBE_PROJECT_KEY_ANNOTATION}\n />\n );\n};\n"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;AAsCa,MAAA,oBAAA,GAAuB,CAAC,KAAqC,KAAA;AACxE,EAAM,MAAA,EAAE,MAAO,EAAA,GAAI,SAAU,EAAA,CAAA;AAC7B,EAAM,MAAA,EAAE,KAAO,EAAA,YAAA,EAAiB,GAAA,KAAA,CAAA;AAEhC,EAAA,OAAO,qBAAqB,MAAM,CAAA,uCAC/B,OACC,EAAA,IAAA,kBAAA,KAAA,CAAA,aAAA,CAAC,iBAAc,KAAO,EAAA,KAAA,IAAA,IAAA,GAAA,KAAA,GAAS,yBAC5B,YAAgB,oBAAA,KAAA,CAAA,aAAA,CAAC,qBAAe,YAAa,CAChD,mBACC,KAAA,CAAA,aAAA,CAAA,aAAA,EAAA,IAAc,CACjB,CAEA,mBAAA,KAAA,CAAA,aAAA;AAAA,IAAC,2BAAA;AAAA,IAAA;AAAA,MACC,UAAY,EAAA,gCAAA;AAAA,KAAA;AAAA,GACd,CAAA;AAEJ;;;;"}