mario-core 2.9.415-feedback → 2.9.417-feedback
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/containers/Login/views/block/BlockAssignTeacherByCode.d.ts +8 -0
- package/dist/containers/User/hooks/useCSVImportTab.d.ts +2 -0
- package/dist/index.js +599 -563
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +602 -566
- package/dist/index.modern.js.map +1 -1
- package/dist/services/csvImportService.d.ts +2 -0
- package/dist/utils/constants.d.ts +4 -0
- package/package.json +105 -105
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { CsvImportType } from "../utils/constants";
|
|
1
2
|
export declare const downloadTemplateFile: () => Promise<import("axios").AxiosResponse<any>>;
|
|
2
3
|
export declare const importCSV: (formData: FormData, subFolder: string) => Promise<import("axios").AxiosResponse<any>>;
|
|
3
4
|
export declare const importStudentCSV: (formData: FormData) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -5,3 +6,4 @@ export declare const importClassReflectionCSV: (formData: FormData) => Promise<i
|
|
|
5
6
|
export declare const importStudentByTeacher: (teacherId: number, formData: FormData) => Promise<import("axios").AxiosResponse<any>>;
|
|
6
7
|
export declare const importUsersCSV: (formData: FormData) => Promise<import("axios").AxiosResponse<any>>;
|
|
7
8
|
export declare const downloadTemplateFileUser: () => Promise<import("axios").AxiosResponse<any>>;
|
|
9
|
+
export declare const validateCsvApi: (formData: FormData, type: CsvImportType) => Promise<import("axios").AxiosResponse<any>>;
|
|
@@ -80,3 +80,7 @@ export declare const LANGUAGES: Language[];
|
|
|
80
80
|
export declare const DEFAULT_LANGUAGE_CODE = "en-US";
|
|
81
81
|
export declare const SUPPORTED_LANGUAGES_CODE: string[];
|
|
82
82
|
export declare const screenWidth: number;
|
|
83
|
+
export declare enum CsvImportType {
|
|
84
|
+
Teacher = 0,
|
|
85
|
+
Admin = 1
|
|
86
|
+
}
|
package/package.json
CHANGED
|
@@ -1,105 +1,105 @@
|
|
|
1
|
-
{
|
|
2
|
-
"name": "mario-core",
|
|
3
|
-
"version": "2.9.
|
|
4
|
-
"description": "Contains core components && functions for Mario project",
|
|
5
|
-
"author": "brss",
|
|
6
|
-
"license": "MIT",
|
|
7
|
-
"repository": "brss/mario-core",
|
|
8
|
-
"main": "dist/index.js",
|
|
9
|
-
"module": "dist/index.modern.js",
|
|
10
|
-
"source": "src/index.tsx",
|
|
11
|
-
"engines": {
|
|
12
|
-
"node": ">=10"
|
|
13
|
-
},
|
|
14
|
-
"scripts": {
|
|
15
|
-
"build": "microbundle-crl --no-compress --format modern,cjs",
|
|
16
|
-
"start": "microbundle-crl watch --no-compress --format modern,cjs",
|
|
17
|
-
"prepare": "run-s build",
|
|
18
|
-
"test": "run-s test:unit test:lint test:build",
|
|
19
|
-
"test:build": "run-s build",
|
|
20
|
-
"test:lint": "eslint .",
|
|
21
|
-
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
|
|
22
|
-
"test:watch": "react-scripts test --env=jsdom"
|
|
23
|
-
},
|
|
24
|
-
"peerDependencies": {
|
|
25
|
-
"react": "^16.0.0",
|
|
26
|
-
"react-dom": "*",
|
|
27
|
-
"react-router-dom": "*",
|
|
28
|
-
"react-redux": "*"
|
|
29
|
-
},
|
|
30
|
-
"devDependencies": {
|
|
31
|
-
"@rollup/plugin-commonjs": "11.0.2",
|
|
32
|
-
"@testing-library/jest-dom": "^4.2.4",
|
|
33
|
-
"@testing-library/react": "^9.5.0",
|
|
34
|
-
"@testing-library/user-event": "^7.2.1",
|
|
35
|
-
"@types/date-fns": "^2.6.0",
|
|
36
|
-
"@types/jest": "^25.1.4",
|
|
37
|
-
"@types/node": "^12.12.38",
|
|
38
|
-
"@types/papaparse": "^5.3.16",
|
|
39
|
-
"@types/react": "^16.9.27",
|
|
40
|
-
"@types/react-datepicker": "^3.1.7",
|
|
41
|
-
"@types/react-dom": "^16.9.7",
|
|
42
|
-
"@types/react-redux": "^7.1.16",
|
|
43
|
-
"@types/react-router-dom": "^5.1.7",
|
|
44
|
-
"@types/react-select": "^4.0.13",
|
|
45
|
-
"@types/redux-logger": "^3.0.8",
|
|
46
|
-
"@types/yup": "^0.29.11",
|
|
47
|
-
"@typescript-eslint/eslint-plugin": "^2.26.0",
|
|
48
|
-
"@typescript-eslint/parser": "^2.26.0",
|
|
49
|
-
"babel-eslint": "^10.0.3",
|
|
50
|
-
"cross-env": "^7.0.2",
|
|
51
|
-
"eslint": "^6.8.0",
|
|
52
|
-
"eslint-config-prettier": "^6.7.0",
|
|
53
|
-
"eslint-config-standard": "^14.1.0",
|
|
54
|
-
"eslint-config-standard-react": "^9.2.0",
|
|
55
|
-
"eslint-plugin-import": "^2.18.2",
|
|
56
|
-
"eslint-plugin-node": "^11.0.0",
|
|
57
|
-
"eslint-plugin-prettier": "^3.3.1",
|
|
58
|
-
"eslint-plugin-promise": "^4.2.1",
|
|
59
|
-
"eslint-plugin-react": "^7.17.0",
|
|
60
|
-
"eslint-plugin-standard": "^4.0.1",
|
|
61
|
-
"gh-pages": "^2.2.0",
|
|
62
|
-
"microbundle-crl": "^0.13.10",
|
|
63
|
-
"npm-run-all": "^4.1.5",
|
|
64
|
-
"prettier": "^2.0.4",
|
|
65
|
-
"react-scripts": "^3.4.1",
|
|
66
|
-
"redux-logger": "^3.0.6",
|
|
67
|
-
"typescript": "^3.7.5"
|
|
68
|
-
},
|
|
69
|
-
"files": [
|
|
70
|
-
"dist"
|
|
71
|
-
],
|
|
72
|
-
"dependencies": {
|
|
73
|
-
"@azure/msal-browser": "2.30.0",
|
|
74
|
-
"@azure/msal-common": "14.6.0",
|
|
75
|
-
"@azure/msal-react": "2.0.2",
|
|
76
|
-
"@coreui/icons": "2.0.0-rc.0",
|
|
77
|
-
"@coreui/icons-react": "1.0.2",
|
|
78
|
-
"@coreui/react": "3.4.0",
|
|
79
|
-
"@reduxjs/toolkit": "^1.5.0",
|
|
80
|
-
"@tinymce/tinymce-react": "^3.9.0",
|
|
81
|
-
"@types/react-notifications-component": "2.4.0",
|
|
82
|
-
"@amplitude/analytics-browser": "2.11.8",
|
|
83
|
-
"axios": "^0.21.1",
|
|
84
|
-
"bootstrap": "^4.6.0",
|
|
85
|
-
"date-fns": "^2.19.0",
|
|
86
|
-
"formik": "^2.2.6",
|
|
87
|
-
"i18next": "^19.8.7",
|
|
88
|
-
"link": "^1.5.1",
|
|
89
|
-
"moment": "^2.29.1",
|
|
90
|
-
"node-sass": "^5.0.0",
|
|
91
|
-
"papaparse": "^5.5.3",
|
|
92
|
-
"pusher-js": "^7.0.3",
|
|
93
|
-
"react-datepicker": "^3.6.0",
|
|
94
|
-
"react-google-login": "^5.2.2",
|
|
95
|
-
"react-google-recaptcha-v3": "^1.9.3",
|
|
96
|
-
"react-i18next": "11.8.5",
|
|
97
|
-
"react-icons": "^4.2.0",
|
|
98
|
-
"react-notifications-component": "3.0.4",
|
|
99
|
-
"react-select": "^4.1.0",
|
|
100
|
-
"reactstrap": "^8.9.0",
|
|
101
|
-
"redux-thunk": "^2.3.0",
|
|
102
|
-
"symbol-observable": "^4.0.0",
|
|
103
|
-
"yup": "^0.32.9"
|
|
104
|
-
}
|
|
105
|
-
}
|
|
1
|
+
{
|
|
2
|
+
"name": "mario-core",
|
|
3
|
+
"version": "2.9.417-feedback",
|
|
4
|
+
"description": "Contains core components && functions for Mario project",
|
|
5
|
+
"author": "brss",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"repository": "brss/mario-core",
|
|
8
|
+
"main": "dist/index.js",
|
|
9
|
+
"module": "dist/index.modern.js",
|
|
10
|
+
"source": "src/index.tsx",
|
|
11
|
+
"engines": {
|
|
12
|
+
"node": ">=10"
|
|
13
|
+
},
|
|
14
|
+
"scripts": {
|
|
15
|
+
"build": "microbundle-crl --no-compress --format modern,cjs",
|
|
16
|
+
"start": "microbundle-crl watch --no-compress --format modern,cjs",
|
|
17
|
+
"prepare": "run-s build",
|
|
18
|
+
"test": "run-s test:unit test:lint test:build",
|
|
19
|
+
"test:build": "run-s build",
|
|
20
|
+
"test:lint": "eslint .",
|
|
21
|
+
"test:unit": "cross-env CI=1 react-scripts test --env=jsdom",
|
|
22
|
+
"test:watch": "react-scripts test --env=jsdom"
|
|
23
|
+
},
|
|
24
|
+
"peerDependencies": {
|
|
25
|
+
"react": "^16.0.0",
|
|
26
|
+
"react-dom": "*",
|
|
27
|
+
"react-router-dom": "*",
|
|
28
|
+
"react-redux": "*"
|
|
29
|
+
},
|
|
30
|
+
"devDependencies": {
|
|
31
|
+
"@rollup/plugin-commonjs": "11.0.2",
|
|
32
|
+
"@testing-library/jest-dom": "^4.2.4",
|
|
33
|
+
"@testing-library/react": "^9.5.0",
|
|
34
|
+
"@testing-library/user-event": "^7.2.1",
|
|
35
|
+
"@types/date-fns": "^2.6.0",
|
|
36
|
+
"@types/jest": "^25.1.4",
|
|
37
|
+
"@types/node": "^12.12.38",
|
|
38
|
+
"@types/papaparse": "^5.3.16",
|
|
39
|
+
"@types/react": "^16.9.27",
|
|
40
|
+
"@types/react-datepicker": "^3.1.7",
|
|
41
|
+
"@types/react-dom": "^16.9.7",
|
|
42
|
+
"@types/react-redux": "^7.1.16",
|
|
43
|
+
"@types/react-router-dom": "^5.1.7",
|
|
44
|
+
"@types/react-select": "^4.0.13",
|
|
45
|
+
"@types/redux-logger": "^3.0.8",
|
|
46
|
+
"@types/yup": "^0.29.11",
|
|
47
|
+
"@typescript-eslint/eslint-plugin": "^2.26.0",
|
|
48
|
+
"@typescript-eslint/parser": "^2.26.0",
|
|
49
|
+
"babel-eslint": "^10.0.3",
|
|
50
|
+
"cross-env": "^7.0.2",
|
|
51
|
+
"eslint": "^6.8.0",
|
|
52
|
+
"eslint-config-prettier": "^6.7.0",
|
|
53
|
+
"eslint-config-standard": "^14.1.0",
|
|
54
|
+
"eslint-config-standard-react": "^9.2.0",
|
|
55
|
+
"eslint-plugin-import": "^2.18.2",
|
|
56
|
+
"eslint-plugin-node": "^11.0.0",
|
|
57
|
+
"eslint-plugin-prettier": "^3.3.1",
|
|
58
|
+
"eslint-plugin-promise": "^4.2.1",
|
|
59
|
+
"eslint-plugin-react": "^7.17.0",
|
|
60
|
+
"eslint-plugin-standard": "^4.0.1",
|
|
61
|
+
"gh-pages": "^2.2.0",
|
|
62
|
+
"microbundle-crl": "^0.13.10",
|
|
63
|
+
"npm-run-all": "^4.1.5",
|
|
64
|
+
"prettier": "^2.0.4",
|
|
65
|
+
"react-scripts": "^3.4.1",
|
|
66
|
+
"redux-logger": "^3.0.6",
|
|
67
|
+
"typescript": "^3.7.5"
|
|
68
|
+
},
|
|
69
|
+
"files": [
|
|
70
|
+
"dist"
|
|
71
|
+
],
|
|
72
|
+
"dependencies": {
|
|
73
|
+
"@azure/msal-browser": "2.30.0",
|
|
74
|
+
"@azure/msal-common": "14.6.0",
|
|
75
|
+
"@azure/msal-react": "2.0.2",
|
|
76
|
+
"@coreui/icons": "2.0.0-rc.0",
|
|
77
|
+
"@coreui/icons-react": "1.0.2",
|
|
78
|
+
"@coreui/react": "3.4.0",
|
|
79
|
+
"@reduxjs/toolkit": "^1.5.0",
|
|
80
|
+
"@tinymce/tinymce-react": "^3.9.0",
|
|
81
|
+
"@types/react-notifications-component": "2.4.0",
|
|
82
|
+
"@amplitude/analytics-browser": "2.11.8",
|
|
83
|
+
"axios": "^0.21.1",
|
|
84
|
+
"bootstrap": "^4.6.0",
|
|
85
|
+
"date-fns": "^2.19.0",
|
|
86
|
+
"formik": "^2.2.6",
|
|
87
|
+
"i18next": "^19.8.7",
|
|
88
|
+
"link": "^1.5.1",
|
|
89
|
+
"moment": "^2.29.1",
|
|
90
|
+
"node-sass": "^5.0.0",
|
|
91
|
+
"papaparse": "^5.5.3",
|
|
92
|
+
"pusher-js": "^7.0.3",
|
|
93
|
+
"react-datepicker": "^3.6.0",
|
|
94
|
+
"react-google-login": "^5.2.2",
|
|
95
|
+
"react-google-recaptcha-v3": "^1.9.3",
|
|
96
|
+
"react-i18next": "11.8.5",
|
|
97
|
+
"react-icons": "^4.2.0",
|
|
98
|
+
"react-notifications-component": "3.0.4",
|
|
99
|
+
"react-select": "^4.1.0",
|
|
100
|
+
"reactstrap": "^8.9.0",
|
|
101
|
+
"redux-thunk": "^2.3.0",
|
|
102
|
+
"symbol-observable": "^4.0.0",
|
|
103
|
+
"yup": "^0.32.9"
|
|
104
|
+
}
|
|
105
|
+
}
|