icleafreportui 0.1.6 → 0.1.7
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 +39 -43
- package/dist/Login.js +130 -121
- package/dist/Reports/CourseReport.js +163 -152
- package/dist/Reports/ExamPackReport.js +245 -226
- package/dist/Reports/ExamReport.js +173 -161
- package/dist/Reports/Report.js +193 -178
- package/dist/api/client.js +1 -7
- package/dist/components/Header.js +76 -78
- package/dist/components/Loader.js +16 -22
- package/dist/components/imagePathUrl.js +5 -11
- package/dist/components/sidebar.js +96 -65
- package/dist/context/TenantProvider.js +13 -22
- package/dist/index.js +16 -15
- package/dist/package.js +15 -100
- package/dist/reportWebVitals.js +2 -10
- package/dist/setupTests.js +5 -3
- package/package.json +1 -1
|
@@ -1,30 +1,24 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactBootstrap = require("react-bootstrap");
|
|
9
|
-
var _reactLoaderSpinner = require("react-loader-spinner");
|
|
10
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
11
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
1
|
+
import React, { useState, useEffect } from 'react';
|
|
2
|
+
import { Modal } from 'react-bootstrap';
|
|
3
|
+
import { RotatingLines } from 'react-loader-spinner';
|
|
4
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
12
5
|
function Loader(_ref) {
|
|
13
6
|
let {
|
|
14
7
|
visible
|
|
15
8
|
} = _ref;
|
|
16
|
-
const [value, setValue] =
|
|
17
|
-
return /*#__PURE__*/
|
|
9
|
+
const [value, setValue] = useState(visible);
|
|
10
|
+
return /*#__PURE__*/_jsx(Modal, {
|
|
18
11
|
onShow: true,
|
|
19
12
|
style: {
|
|
20
13
|
background: "transperent"
|
|
21
|
-
}
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
14
|
+
},
|
|
15
|
+
children: /*#__PURE__*/_jsx(RotatingLines, {
|
|
16
|
+
strokeColor: "grey",
|
|
17
|
+
strokeWidth: "5",
|
|
18
|
+
animationDuration: "0.75",
|
|
19
|
+
width: "96",
|
|
20
|
+
visible: true
|
|
21
|
+
})
|
|
22
|
+
});
|
|
29
23
|
}
|
|
30
|
-
|
|
24
|
+
export default Loader;
|
|
@@ -1,17 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.youngMan = exports.logo = exports.elearnImagePathUrlPrefix = exports.default = exports.baseName = void 0;
|
|
7
|
-
var _default = exports.default = "https://groupnpay.com/iccloud";
|
|
8
|
-
const elearnImagePathUrlPrefix = exports.elearnImagePathUrlPrefix = "https://groupnpay.com/iccloud/qhubresources/elearn";
|
|
1
|
+
export default "https://groupnpay.com/iccloud";
|
|
2
|
+
export const elearnImagePathUrlPrefix = "https://groupnpay.com/iccloud/qhubresources/elearn";
|
|
9
3
|
// export const commonImagePathUrlPrefix = "http://64.227.170.125:8080/iccloud";
|
|
10
4
|
// export const elearnImagePathUrlPrefix = "http://64.227.170.125:8080/iccloud/qhubresources/elearn";
|
|
11
5
|
// export const commonImagePathUrlPrefix = "http://139.59.64.128:8080/iccloud";
|
|
12
6
|
// export const elearnImagePathUrlPrefix = "http://139.59.64.128:8080/iccloud/qhubresources/elearn";
|
|
13
7
|
// export const commonImagePathUrlPrefix = "http://192.168.3.155:8080/icleaf";
|
|
14
8
|
// export const elearnImagePathUrlPrefix = "http://192.168.3.155:8080/icleaf/qhubresources/elearn";
|
|
15
|
-
const logo =
|
|
16
|
-
const youngMan =
|
|
17
|
-
const baseName =
|
|
9
|
+
export const logo = process.env.PUBLIC_URL + '/images/icleaf_logo.png';
|
|
10
|
+
export const youngMan = process.env.PUBLIC_URL + '/images/young-man-studying-library-using-laptop-1.png';
|
|
11
|
+
export const baseName = "/icleaf/#";
|
|
@@ -1,24 +1,17 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _reactRouterDom = require("react-router-dom");
|
|
9
|
-
var _bi = require("react-icons/bi");
|
|
10
|
-
var _imagePathUrl = require("./imagePathUrl");
|
|
11
|
-
require("./sidebar.css");
|
|
12
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
1
|
+
import React, { useEffect, useState } from 'react';
|
|
2
|
+
import { Link, useLocation } from 'react-router-dom';
|
|
3
|
+
import { BiSolidBookContent } from "react-icons/bi";
|
|
4
|
+
import { logo } from './imagePathUrl';
|
|
5
|
+
import "./sidebar.css";
|
|
6
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
14
7
|
const Sidebar = () => {
|
|
15
|
-
const location =
|
|
16
|
-
const [activeMenuItem, setActiveMenuItem] =
|
|
17
|
-
const [drawerVisible, setDrawerVisible] =
|
|
8
|
+
const location = useLocation();
|
|
9
|
+
const [activeMenuItem, setActiveMenuItem] = useState(location.pathname);
|
|
10
|
+
const [drawerVisible, setDrawerVisible] = useState(window.innerWidth <= 1001);
|
|
18
11
|
const handleResize = () => {
|
|
19
12
|
setDrawerVisible(window.innerWidth < 1001);
|
|
20
13
|
};
|
|
21
|
-
|
|
14
|
+
useEffect(() => {
|
|
22
15
|
window.addEventListener('resize', handleResize);
|
|
23
16
|
return () => {
|
|
24
17
|
window.removeEventListener('resize', handleResize);
|
|
@@ -27,52 +20,90 @@ const Sidebar = () => {
|
|
|
27
20
|
const handleDrawerClose = () => {
|
|
28
21
|
setDrawerVisible(false);
|
|
29
22
|
};
|
|
30
|
-
return /*#__PURE__*/
|
|
31
|
-
className: `sidebar
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
23
|
+
return /*#__PURE__*/_jsxs("div", {
|
|
24
|
+
className: `sidebar`,
|
|
25
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
26
|
+
className: "header_logo_container",
|
|
27
|
+
children: /*#__PURE__*/_jsx("img", {
|
|
28
|
+
src: logo,
|
|
29
|
+
className: "header_logo_img",
|
|
30
|
+
alt: "Your Image"
|
|
31
|
+
})
|
|
32
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
33
|
+
className: "sidebar-inner",
|
|
34
|
+
children: /*#__PURE__*/_jsx("div", {
|
|
35
|
+
id: "sidebar-menu",
|
|
36
|
+
className: "sidebar-menu",
|
|
37
|
+
children: /*#__PURE__*/_jsxs("ul", {
|
|
38
|
+
children: [/*#__PURE__*/_jsx("li", {
|
|
39
|
+
children: /*#__PURE__*/_jsxs(Link, {
|
|
40
|
+
className: activeMenuItem === "/Report" ? "activeExamLi" : "inactiveExamLi",
|
|
41
|
+
to: "/Report",
|
|
42
|
+
children: [/*#__PURE__*/_jsx("i", {
|
|
43
|
+
className: "icon_background",
|
|
44
|
+
children: /*#__PURE__*/_jsx(BiSolidBookContent, {
|
|
45
|
+
className: "manage_content_icon"
|
|
46
|
+
})
|
|
47
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
48
|
+
children: "Exam Report"
|
|
49
|
+
})]
|
|
50
|
+
})
|
|
51
|
+
}), /*#__PURE__*/_jsx("li", {
|
|
52
|
+
children: /*#__PURE__*/_jsxs(Link, {
|
|
53
|
+
className: activeMenuItem === "/CourseReport" ? "activeExamLi" : "inactiveExamLi",
|
|
54
|
+
to: "/CourseReport",
|
|
55
|
+
children: [/*#__PURE__*/_jsx("i", {
|
|
56
|
+
className: "icon_background",
|
|
57
|
+
children: /*#__PURE__*/_jsx(BiSolidBookContent, {
|
|
58
|
+
className: "manage_content_icon"
|
|
59
|
+
})
|
|
60
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
61
|
+
children: "Course Report"
|
|
62
|
+
})]
|
|
63
|
+
})
|
|
64
|
+
}), /*#__PURE__*/_jsx("li", {
|
|
65
|
+
children: /*#__PURE__*/_jsxs(Link, {
|
|
66
|
+
className: activeMenuItem === "/examReport" ? "activeExamLi" : "inactiveExamLi",
|
|
67
|
+
to: "/examReport",
|
|
68
|
+
children: [/*#__PURE__*/_jsx("i", {
|
|
69
|
+
className: "icon_background",
|
|
70
|
+
children: /*#__PURE__*/_jsx(BiSolidBookContent, {
|
|
71
|
+
className: "manage_content_icon"
|
|
72
|
+
})
|
|
73
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
74
|
+
children: "Exam Questions Report"
|
|
75
|
+
})]
|
|
76
|
+
})
|
|
77
|
+
}), /*#__PURE__*/_jsx("li", {
|
|
78
|
+
children: /*#__PURE__*/_jsxs(Link, {
|
|
79
|
+
className: activeMenuItem === "/examPackReport" ? "activeExamLi" : "inactiveExamLi",
|
|
80
|
+
to: "/examPackReport",
|
|
81
|
+
children: [/*#__PURE__*/_jsx("i", {
|
|
82
|
+
className: "icon_background",
|
|
83
|
+
children: /*#__PURE__*/_jsx(BiSolidBookContent, {
|
|
84
|
+
className: "manage_content_icon"
|
|
85
|
+
})
|
|
86
|
+
}), /*#__PURE__*/_jsx("span", {
|
|
87
|
+
children: "Exam Pack Report"
|
|
88
|
+
})]
|
|
89
|
+
})
|
|
90
|
+
})]
|
|
91
|
+
})
|
|
92
|
+
})
|
|
93
|
+
}), /*#__PURE__*/_jsx("div", {
|
|
94
|
+
className: "comp-info-main",
|
|
95
|
+
children: /*#__PURE__*/_jsxs("div", {
|
|
96
|
+
children: [/*#__PURE__*/_jsx("div", {
|
|
97
|
+
children: "Copyright \xA9 2021 ICLeaF. All Rights Reserved"
|
|
98
|
+
}), /*#__PURE__*/_jsxs("div", {
|
|
99
|
+
children: ["Powered by ", /*#__PURE__*/_jsx(Link, {
|
|
100
|
+
target: "_blank",
|
|
101
|
+
to: "https://infocareerindia.com/",
|
|
102
|
+
children: "Infocareer Pvt Ltd."
|
|
103
|
+
})]
|
|
104
|
+
})]
|
|
105
|
+
})
|
|
106
|
+
})]
|
|
107
|
+
});
|
|
77
108
|
};
|
|
78
|
-
|
|
109
|
+
export default Sidebar;
|
|
@@ -1,34 +1,25 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
exports.useTenant = exports.TenantProvider = void 0;
|
|
7
|
-
var _react = _interopRequireWildcard(require("react"));
|
|
8
|
-
var _client = _interopRequireDefault(require("../api/client"));
|
|
9
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
10
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
11
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
12
|
-
const TenantContext = /*#__PURE__*/(0, _react.createContext)();
|
|
13
|
-
const TenantProvider = _ref => {
|
|
1
|
+
import React, { createContext, useContext } from 'react';
|
|
2
|
+
import TenantApiClient from '../api/client';
|
|
3
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
|
+
const TenantContext = /*#__PURE__*/createContext();
|
|
5
|
+
export const TenantProvider = _ref => {
|
|
14
6
|
let {
|
|
15
7
|
children,
|
|
16
8
|
config
|
|
17
9
|
} = _ref;
|
|
18
|
-
const apiClient = new
|
|
19
|
-
return /*#__PURE__*/
|
|
10
|
+
const apiClient = new TenantApiClient(config);
|
|
11
|
+
return /*#__PURE__*/_jsx(TenantContext.Provider, {
|
|
20
12
|
value: {
|
|
21
13
|
apiClient,
|
|
22
14
|
config
|
|
23
|
-
}
|
|
24
|
-
|
|
15
|
+
},
|
|
16
|
+
children: children
|
|
17
|
+
});
|
|
25
18
|
};
|
|
26
|
-
|
|
27
|
-
const
|
|
28
|
-
const context = (0, _react.useContext)(TenantContext);
|
|
19
|
+
export const useTenant = () => {
|
|
20
|
+
const context = useContext(TenantContext);
|
|
29
21
|
if (!context) {
|
|
30
22
|
throw new Error('useTenant must be used within TenantProvider');
|
|
31
23
|
}
|
|
32
24
|
return context;
|
|
33
|
-
};
|
|
34
|
-
exports.useTenant = useTenant;
|
|
25
|
+
};
|
package/dist/index.js
CHANGED
|
@@ -1,19 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}
|
|
1
|
+
import React from 'react';
|
|
2
|
+
import ReactDOM from 'react-dom/client';
|
|
3
|
+
import './index.css';
|
|
4
|
+
import App from './App';
|
|
5
|
+
import './theme.css';
|
|
6
|
+
import reportWebVitals from './reportWebVitals';
|
|
7
|
+
import { StyledEngineProvider } from '@mui/material/styles';
|
|
8
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
9
|
+
const root = ReactDOM.createRoot(document.getElementById('root'));
|
|
10
|
+
root.render(/*#__PURE__*/_jsx(React.StrictMode, {
|
|
11
|
+
children: /*#__PURE__*/_jsx(StyledEngineProvider, {
|
|
12
|
+
injectFirst: true,
|
|
13
|
+
children: /*#__PURE__*/_jsx(App, {})
|
|
14
|
+
})
|
|
15
|
+
}));
|
|
15
16
|
|
|
16
17
|
// If you want to start measuring performance in your app, pass a function
|
|
17
18
|
// to log results (for example: reportWebVitals(console.log))
|
|
18
19
|
// or send to an analytics endpoint. Learn more: https://bit.ly/CRA-vitals
|
|
19
|
-
(
|
|
20
|
+
reportWebVitals();
|
package/dist/package.js
CHANGED
|
@@ -1,101 +1,16 @@
|
|
|
1
|
-
|
|
1
|
+
// Components
|
|
2
|
+
export { default as Header } from './components/Header';
|
|
3
|
+
export { default as Sidebar } from './components/sidebar';
|
|
4
|
+
export { default as Loader } from './components/Loader';
|
|
2
5
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
get: function () {
|
|
15
|
-
return _ExamPackReport.default;
|
|
16
|
-
}
|
|
17
|
-
});
|
|
18
|
-
Object.defineProperty(exports, "ExamReport", {
|
|
19
|
-
enumerable: true,
|
|
20
|
-
get: function () {
|
|
21
|
-
return _ExamReport.default;
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
Object.defineProperty(exports, "Header", {
|
|
25
|
-
enumerable: true,
|
|
26
|
-
get: function () {
|
|
27
|
-
return _Header.default;
|
|
28
|
-
}
|
|
29
|
-
});
|
|
30
|
-
Object.defineProperty(exports, "Loader", {
|
|
31
|
-
enumerable: true,
|
|
32
|
-
get: function () {
|
|
33
|
-
return _Loader.default;
|
|
34
|
-
}
|
|
35
|
-
});
|
|
36
|
-
Object.defineProperty(exports, "Report", {
|
|
37
|
-
enumerable: true,
|
|
38
|
-
get: function () {
|
|
39
|
-
return _Report.default;
|
|
40
|
-
}
|
|
41
|
-
});
|
|
42
|
-
Object.defineProperty(exports, "Sidebar", {
|
|
43
|
-
enumerable: true,
|
|
44
|
-
get: function () {
|
|
45
|
-
return _sidebar.default;
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
Object.defineProperty(exports, "TenantProvider", {
|
|
49
|
-
enumerable: true,
|
|
50
|
-
get: function () {
|
|
51
|
-
return _TenantProvider.TenantProvider;
|
|
52
|
-
}
|
|
53
|
-
});
|
|
54
|
-
Object.defineProperty(exports, "baseName", {
|
|
55
|
-
enumerable: true,
|
|
56
|
-
get: function () {
|
|
57
|
-
return _imagePathUrl.baseName;
|
|
58
|
-
}
|
|
59
|
-
});
|
|
60
|
-
Object.defineProperty(exports, "elearnImagePathUrlPrefix", {
|
|
61
|
-
enumerable: true,
|
|
62
|
-
get: function () {
|
|
63
|
-
return _imagePathUrl.elearnImagePathUrlPrefix;
|
|
64
|
-
}
|
|
65
|
-
});
|
|
66
|
-
Object.defineProperty(exports, "imageBaseUrl", {
|
|
67
|
-
enumerable: true,
|
|
68
|
-
get: function () {
|
|
69
|
-
return _imagePathUrl.default;
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
Object.defineProperty(exports, "logo", {
|
|
73
|
-
enumerable: true,
|
|
74
|
-
get: function () {
|
|
75
|
-
return _imagePathUrl.logo;
|
|
76
|
-
}
|
|
77
|
-
});
|
|
78
|
-
Object.defineProperty(exports, "useTenant", {
|
|
79
|
-
enumerable: true,
|
|
80
|
-
get: function () {
|
|
81
|
-
return _TenantProvider.useTenant;
|
|
82
|
-
}
|
|
83
|
-
});
|
|
84
|
-
Object.defineProperty(exports, "youngMan", {
|
|
85
|
-
enumerable: true,
|
|
86
|
-
get: function () {
|
|
87
|
-
return _imagePathUrl.youngMan;
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
var _Header = _interopRequireDefault(require("./components/Header"));
|
|
91
|
-
var _sidebar = _interopRequireDefault(require("./components/sidebar"));
|
|
92
|
-
var _Loader = _interopRequireDefault(require("./components/Loader"));
|
|
93
|
-
var _Report = _interopRequireDefault(require("./Reports/Report"));
|
|
94
|
-
var _CourseReport = _interopRequireDefault(require("./Reports/CourseReport"));
|
|
95
|
-
var _ExamReport = _interopRequireDefault(require("./Reports/ExamReport"));
|
|
96
|
-
var _ExamPackReport = _interopRequireDefault(require("./Reports/ExamPackReport"));
|
|
97
|
-
var _TenantProvider = require("./context/TenantProvider");
|
|
98
|
-
var _imagePathUrl = _interopRequireWildcard(require("./components/imagePathUrl"));
|
|
99
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
100
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
101
|
-
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
6
|
+
// Reports
|
|
7
|
+
export { default as Report } from './Reports/Report';
|
|
8
|
+
export { default as CourseReport } from './Reports/CourseReport';
|
|
9
|
+
export { default as ExamReport } from './Reports/ExamReport';
|
|
10
|
+
export { default as ExamPackReport } from './Reports/ExamPackReport';
|
|
11
|
+
|
|
12
|
+
// Context
|
|
13
|
+
export { TenantProvider, useTenant } from './context/TenantProvider';
|
|
14
|
+
|
|
15
|
+
// Images/Config
|
|
16
|
+
export { default as imageBaseUrl, elearnImagePathUrlPrefix, logo, youngMan, baseName } from './components/imagePathUrl';
|
package/dist/reportWebVitals.js
CHANGED
|
@@ -1,14 +1,6 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function (e) { return e ? t : r; })(e); }
|
|
8
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
9
1
|
const reportWebVitals = onPerfEntry => {
|
|
10
2
|
if (onPerfEntry && onPerfEntry instanceof Function) {
|
|
11
|
-
|
|
3
|
+
import('web-vitals').then(_ref => {
|
|
12
4
|
let {
|
|
13
5
|
getCLS,
|
|
14
6
|
getFID,
|
|
@@ -24,4 +16,4 @@ const reportWebVitals = onPerfEntry => {
|
|
|
24
16
|
});
|
|
25
17
|
}
|
|
26
18
|
};
|
|
27
|
-
|
|
19
|
+
export default reportWebVitals;
|
package/dist/setupTests.js
CHANGED
|
@@ -1,3 +1,5 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
// jest-dom adds custom jest matchers for asserting on DOM nodes.
|
|
2
|
+
// allows you to do things like:
|
|
3
|
+
// expect(element).toHaveTextContent(/react/i)
|
|
4
|
+
// learn more: https://github.com/testing-library/jest-dom
|
|
5
|
+
import '@testing-library/jest-dom';
|