icleafreportui 0.1.9 → 0.2.1
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/dist/App.js +1 -1
- package/dist/api/client.js +2 -6
- package/package.json +25 -18
package/dist/App.js
CHANGED
|
@@ -13,7 +13,7 @@ const App = () => {
|
|
|
13
13
|
// Configuration for API calls
|
|
14
14
|
const config = {
|
|
15
15
|
baseURL: process.env.REACT_APP_BASE_URL || 'http://192.168.2.203:8080/icleafreport',
|
|
16
|
-
tenantToken: '
|
|
16
|
+
tenantToken: 'tn_96ef3426276611f19d84005056575b50'
|
|
17
17
|
};
|
|
18
18
|
return /*#__PURE__*/_jsx(TenantProvider, {
|
|
19
19
|
config: config,
|
package/dist/api/client.js
CHANGED
|
@@ -5,11 +5,9 @@ class TenantApiClient {
|
|
|
5
5
|
}
|
|
6
6
|
async request(endpoint) {
|
|
7
7
|
let options = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : {};
|
|
8
|
-
//
|
|
9
|
-
const cleanEndpoint = endpoint.startsWith('/') ? endpoint.slice(1) : endpoint;
|
|
8
|
+
const cleanEndpoint = endpoint.startsWith('/') ? endpoint.slice(1) : endpoint; //slash at the beginning of endpoint if exists
|
|
10
9
|
const url = `${this.baseURL}/${cleanEndpoint}`;
|
|
11
|
-
console.log('FULL URL BEING SENT:', url);
|
|
12
|
-
|
|
10
|
+
console.log('FULL URL BEING SENT:', url);
|
|
13
11
|
const response = await fetch(url, {
|
|
14
12
|
...options,
|
|
15
13
|
headers: {
|
|
@@ -23,8 +21,6 @@ class TenantApiClient {
|
|
|
23
21
|
}
|
|
24
22
|
return response.json();
|
|
25
23
|
}
|
|
26
|
-
|
|
27
|
-
// Add your API methods
|
|
28
24
|
async get(endpoint) {
|
|
29
25
|
return this.request(endpoint);
|
|
30
26
|
}
|
package/package.json
CHANGED
|
@@ -1,41 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "icleafreportui",
|
|
3
|
-
"version": "0.1
|
|
3
|
+
"version": "0.2.1",
|
|
4
4
|
"private": false,
|
|
5
5
|
"main": "dist/package.js",
|
|
6
6
|
"files": [
|
|
7
7
|
"dist"
|
|
8
8
|
],
|
|
9
9
|
"homepage": "/reports",
|
|
10
|
-
"
|
|
11
|
-
"
|
|
12
|
-
"
|
|
13
|
-
"@emotion/styled": "^11.11.5",
|
|
14
|
-
"@mui/icons-material": "^6.4.5",
|
|
10
|
+
"peerDependencies": {
|
|
11
|
+
"react": "^18.0.0 || ^19.0.0",
|
|
12
|
+
"react-dom": "^18.0.0 || ^19.0.0",
|
|
15
13
|
"@mui/material": "^5.15.20",
|
|
14
|
+
"@mui/icons-material": "^5.15.20",
|
|
16
15
|
"@mui/x-data-grid": "^7.27.1",
|
|
17
|
-
"@testing-library/jest-dom": "^5.17.0",
|
|
18
|
-
"@testing-library/react": "^13.4.0",
|
|
19
|
-
"@testing-library/user-event": "^13.5.0",
|
|
20
16
|
"antd": "^5.18.3",
|
|
17
|
+
"react-router-dom": "^6.24.0",
|
|
18
|
+
"react-bootstrap": "^2.10.3",
|
|
19
|
+
"@emotion/react": "^11.11.4",
|
|
20
|
+
"@emotion/styled": "^11.11.5"
|
|
21
|
+
},
|
|
22
|
+
"dependencies": {
|
|
23
|
+
"@csstools/normalize.css": "^12.1.1",
|
|
21
24
|
"axios": "^1.7.2",
|
|
22
|
-
"bootstrap": "^5.3.3",
|
|
23
25
|
"file-saver": "^2.0.5",
|
|
24
|
-
"react": "^18.3.1",
|
|
25
|
-
"react-bootstrap": "^2.10.3",
|
|
26
26
|
"react-custom-scrollbars": "^4.2.1",
|
|
27
|
-
"react-dom": "^18.3.1",
|
|
28
27
|
"react-icons": "^5.2.1",
|
|
29
28
|
"react-loader-spinner": "^6.1.6",
|
|
30
|
-
"react-router-dom": "^6.24.0",
|
|
31
|
-
"react-scripts": "5.0.1",
|
|
32
29
|
"sanitize.css": "^13.0.0",
|
|
33
|
-
"web-vitals": "^2.1.4",
|
|
34
30
|
"xlsx": "^0.18.5"
|
|
35
31
|
},
|
|
36
32
|
"scripts": {
|
|
37
33
|
"start": "react-scripts start",
|
|
38
|
-
"build": "babel src -d dist --copy-files",
|
|
34
|
+
"build": "babel src -d dist --copy-files --ignore 'src/**/*.test.js','src/**/*.stories.js'",
|
|
39
35
|
"test": "react-scripts test",
|
|
40
36
|
"eject": "react-scripts eject"
|
|
41
37
|
},
|
|
@@ -59,7 +55,18 @@
|
|
|
59
55
|
},
|
|
60
56
|
"devDependencies": {
|
|
61
57
|
"@babel/cli": "^7.28.6",
|
|
58
|
+
"@babel/core": "^7.28.6",
|
|
62
59
|
"@babel/preset-env": "^7.29.2",
|
|
63
|
-
"@babel/preset-react": "^7.28.5"
|
|
60
|
+
"@babel/preset-react": "^7.28.5",
|
|
61
|
+
"react": "^18.3.1",
|
|
62
|
+
"react-dom": "^18.3.1",
|
|
63
|
+
"@mui/material": "^5.15.20",
|
|
64
|
+
"@mui/icons-material": "^5.15.20",
|
|
65
|
+
"@mui/x-data-grid": "^7.27.1",
|
|
66
|
+
"antd": "^5.18.3",
|
|
67
|
+
"react-router-dom": "^6.24.0",
|
|
68
|
+
"react-bootstrap": "^2.10.3",
|
|
69
|
+
"@emotion/react": "^11.11.4",
|
|
70
|
+
"@emotion/styled": "^11.11.5"
|
|
64
71
|
}
|
|
65
72
|
}
|