@electrolux-oss/plugin-infrawallet 0.1.0

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 (27) hide show
  1. package/README.md +258 -0
  2. package/dist/api/InfraWalletApi.esm.js +8 -0
  3. package/dist/api/InfraWalletApi.esm.js.map +1 -0
  4. package/dist/api/InfraWalletApiClient.esm.js +89 -0
  5. package/dist/api/InfraWalletApiClient.esm.js.map +1 -0
  6. package/dist/api/functions.esm.js +100 -0
  7. package/dist/api/functions.esm.js.map +1 -0
  8. package/dist/components/ColumnsChartComponent/ColumnsChartComponent.esm.js +168 -0
  9. package/dist/components/ColumnsChartComponent/ColumnsChartComponent.esm.js.map +1 -0
  10. package/dist/components/CostReportsTableComponent/CostReportsTableComponent.esm.js +144 -0
  11. package/dist/components/CostReportsTableComponent/CostReportsTableComponent.esm.js.map +1 -0
  12. package/dist/components/CostReportsTableComponent/TrendBarComponent.esm.js +48 -0
  13. package/dist/components/CostReportsTableComponent/TrendBarComponent.esm.js.map +1 -0
  14. package/dist/components/PieChartComponent/PieChartComponent.esm.js +134 -0
  15. package/dist/components/PieChartComponent/PieChartComponent.esm.js.map +1 -0
  16. package/dist/components/ReportsComponent/ReportsComponent.esm.js +126 -0
  17. package/dist/components/ReportsComponent/ReportsComponent.esm.js.map +1 -0
  18. package/dist/components/TopbarComponent/TopbarComponent.esm.js +93 -0
  19. package/dist/components/TopbarComponent/TopbarComponent.esm.js.map +1 -0
  20. package/dist/index.d.ts +10 -0
  21. package/dist/index.esm.js +2 -0
  22. package/dist/index.esm.js.map +1 -0
  23. package/dist/plugin.esm.js +28 -0
  24. package/dist/plugin.esm.js.map +1 -0
  25. package/dist/routes.esm.js +12 -0
  26. package/dist/routes.esm.js.map +1 -0
  27. package/package.json +78 -0
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.esm.js","sources":[],"sourcesContent":[],"names":[],"mappings":""}
@@ -0,0 +1,28 @@
1
+ import { createPlugin, createApiFactory, identityApiRef, configApiRef, createRoutableExtension } from '@backstage/core-plugin-api';
2
+ import { rootRouteRef } from './routes.esm.js';
3
+ import { infraWalletApiRef } from './api/InfraWalletApi.esm.js';
4
+ import { InfraWalletApiClient } from './api/InfraWalletApiClient.esm.js';
5
+
6
+ const infraWalletPlugin = createPlugin({
7
+ id: "infrawallet",
8
+ routes: {
9
+ root: rootRouteRef
10
+ },
11
+ apis: [
12
+ createApiFactory({
13
+ api: infraWalletApiRef,
14
+ deps: { identityApi: identityApiRef, configApi: configApiRef },
15
+ factory: ({ identityApi, configApi }) => new InfraWalletApiClient({ identityApi, configApi })
16
+ })
17
+ ]
18
+ });
19
+ const InfraWalletPage = infraWalletPlugin.provide(
20
+ createRoutableExtension({
21
+ name: "InfraWalletPage",
22
+ component: () => import('./routes.esm.js').then((m) => m.RootRoute),
23
+ mountPoint: rootRouteRef
24
+ })
25
+ );
26
+
27
+ export { InfraWalletPage, infraWalletPlugin };
28
+ //# sourceMappingURL=plugin.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plugin.esm.js","sources":["../src/plugin.ts"],"sourcesContent":["import {\n createApiFactory,\n createPlugin,\n createRoutableExtension,\n identityApiRef,\n configApiRef,\n} from '@backstage/core-plugin-api';\n\nimport { rootRouteRef } from './routes';\nimport { infraWalletApiRef } from './api/InfraWalletApi';\nimport { InfraWalletApiClient } from './api/InfraWalletApiClient';\n\nexport const infraWalletPlugin = createPlugin({\n id: 'infrawallet',\n routes: {\n root: rootRouteRef,\n },\n apis: [\n createApiFactory({\n api: infraWalletApiRef,\n deps: { identityApi: identityApiRef, configApi: configApiRef },\n factory: ({ identityApi, configApi }) =>\n new InfraWalletApiClient({ identityApi, configApi }),\n }),\n ],\n});\n\nexport const InfraWalletPage = infraWalletPlugin.provide(\n createRoutableExtension({\n name: 'InfraWalletPage',\n component: () => import('./routes').then(m => m.RootRoute),\n mountPoint: rootRouteRef,\n }),\n);\n"],"names":[],"mappings":";;;;;AAYO,MAAM,oBAAoB,YAAa,CAAA;AAAA,EAC5C,EAAI,EAAA,aAAA;AAAA,EACJ,MAAQ,EAAA;AAAA,IACN,IAAM,EAAA,YAAA;AAAA,GACR;AAAA,EACA,IAAM,EAAA;AAAA,IACJ,gBAAiB,CAAA;AAAA,MACf,GAAK,EAAA,iBAAA;AAAA,MACL,IAAM,EAAA,EAAE,WAAa,EAAA,cAAA,EAAgB,WAAW,YAAa,EAAA;AAAA,MAC7D,OAAA,EAAS,CAAC,EAAE,WAAa,EAAA,SAAA,EACvB,KAAA,IAAI,oBAAqB,CAAA,EAAE,WAAa,EAAA,SAAA,EAAW,CAAA;AAAA,KACtD,CAAA;AAAA,GACH;AACF,CAAC,EAAA;AAEM,MAAM,kBAAkB,iBAAkB,CAAA,OAAA;AAAA,EAC/C,uBAAwB,CAAA;AAAA,IACtB,IAAM,EAAA,iBAAA;AAAA,IACN,SAAA,EAAW,MAAM,OAAO,iBAAU,EAAE,IAAK,CAAA,CAAA,CAAA,KAAK,EAAE,SAAS,CAAA;AAAA,IACzD,UAAY,EAAA,YAAA;AAAA,GACb,CAAA;AACH;;;;"}
@@ -0,0 +1,12 @@
1
+ import { createRouteRef } from '@backstage/core-plugin-api';
2
+ import React from 'react';
3
+ import { Routes, Route } from 'react-router-dom';
4
+ import { ReportsComponent } from './components/ReportsComponent/ReportsComponent.esm.js';
5
+
6
+ const rootRouteRef = createRouteRef({
7
+ id: "infrawallet"
8
+ });
9
+ const RootRoute = () => /* @__PURE__ */ React.createElement(Routes, null, /* @__PURE__ */ React.createElement(Route, { path: "/", element: /* @__PURE__ */ React.createElement(ReportsComponent, null) }));
10
+
11
+ export { RootRoute, rootRouteRef };
12
+ //# sourceMappingURL=routes.esm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"routes.esm.js","sources":["../src/routes.tsx"],"sourcesContent":["import { createRouteRef } from '@backstage/core-plugin-api';\nimport React from 'react';\nimport { Route, Routes } from 'react-router-dom';\nimport { ReportsComponent } from './components/ReportsComponent';\n\nexport const rootRouteRef = createRouteRef({\n id: 'infrawallet',\n});\n\nexport const RootRoute = () => (\n <Routes>\n <Route path=\"/\" element={<ReportsComponent />} />\n </Routes>\n);\n"],"names":[],"mappings":";;;;;AAKO,MAAM,eAAe,cAAe,CAAA;AAAA,EACzC,EAAI,EAAA,aAAA;AACN,CAAC,EAAA;AAEM,MAAM,SAAY,GAAA,sBACtB,KAAA,CAAA,aAAA,CAAA,MAAA,EAAA,IAAA,kBACE,KAAA,CAAA,aAAA,CAAA,KAAA,EAAA,EAAM,IAAK,EAAA,GAAA,EAAI,OAAS,kBAAA,KAAA,CAAA,aAAA,CAAC,gBAAiB,EAAA,IAAA,CAAA,EAAI,CACjD;;;;"}
package/package.json ADDED
@@ -0,0 +1,78 @@
1
+ {
2
+ "name": "@electrolux-oss/plugin-infrawallet",
3
+ "version": "0.1.0",
4
+ "backstage": {
5
+ "role": "frontend-plugin"
6
+ },
7
+ "publishConfig": {
8
+ "access": "public",
9
+ "main": "dist/index.esm.js",
10
+ "types": "dist/index.d.ts"
11
+ },
12
+ "homepage": "https://opensource.electrolux.one",
13
+ "repository": {
14
+ "type": "git",
15
+ "url": "https://github.com/electrolux-oss/infrawallet",
16
+ "directory": "plugins/infrawallet"
17
+ },
18
+ "license": "Apache-2.0",
19
+ "sideEffects": false,
20
+ "main": "dist/index.esm.js",
21
+ "types": "dist/index.d.ts",
22
+ "files": [
23
+ "dist"
24
+ ],
25
+ "scripts": {
26
+ "build": "backstage-cli package build",
27
+ "clean": "backstage-cli package clean",
28
+ "lint": "backstage-cli package lint",
29
+ "prepack": "backstage-cli package prepack",
30
+ "postpack": "backstage-cli package postpack",
31
+ "start": "backstage-cli package start",
32
+ "test": "backstage-cli package test"
33
+ },
34
+ "dependencies": {
35
+ "@backstage/config": "^1.2.0",
36
+ "@backstage/core-components": "^0.14.7",
37
+ "@backstage/core-plugin-api": "^1.9.2",
38
+ "@backstage/theme": "^0.5.4",
39
+ "@material-ui/core": "^4.9.13",
40
+ "@material-ui/icons": "^4.9.1",
41
+ "@material-ui/lab": "^4.0.0-alpha.61",
42
+ "@mui/material": "^5.12.2",
43
+ "@mui/x-data-grid": "7.3.1",
44
+ "@mui/x-date-pickers": "^6.20.0",
45
+ "@stitches/react": "1.2.8",
46
+ "@types/node-fetch": "^2.6.4",
47
+ "@types/react-date-range": "1.4.5",
48
+ "@viniarruda/react-month-range-picker": "2.0.4",
49
+ "apexcharts": "3.42.0",
50
+ "better-react-mathjax": "^2.0.2",
51
+ "d3-shape": "3.2.0",
52
+ "date-fns": "2.30.0",
53
+ "human-format": "1.2.0",
54
+ "lodash": "^4.17.21",
55
+ "moment": "2.29.4",
56
+ "mui-modal-provider": "2.2.0",
57
+ "node-fetch": "^2.6.7",
58
+ "react-apexcharts": "1.4.1",
59
+ "react-date-range": "1.4.0"
60
+ },
61
+ "devDependencies": {
62
+ "@backstage/cli": "^0.26.5",
63
+ "@backstage/core-app-api": "^1.12.5",
64
+ "@backstage/dev-utils": "^1.0.32",
65
+ "@backstage/test-utils": "^1.5.5",
66
+ "@testing-library/jest-dom": "^6.0.0",
67
+ "@testing-library/react": "^14.0.0",
68
+ "@testing-library/user-event": "^14.0.0",
69
+ "@types/lodash": "^4.14.151",
70
+ "msw": "^1.0.0"
71
+ },
72
+ "peerDependencies": {
73
+ "react": "^16.13.1 || ^17.0.0 || ^18.0.0",
74
+ "react-dom": "^17.0.0 || ^18.0.0",
75
+ "react-router-dom": "^6.13.0"
76
+ },
77
+ "module": "./dist/index.esm.js"
78
+ }