mario-core 2.9.411-feedback → 2.9.412-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/index.js +16 -15
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +16 -15
- package/dist/index.modern.js.map +1 -1
- package/dist/services/weeklyQuestService.d.ts +1 -0
- package/dist/types/WeeklyQuest.d.ts +37 -0
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -39774,7 +39774,8 @@ var BlockLogin = function BlockLogin(_ref) {
|
|
|
39774
39774
|
lg: 6,
|
|
39775
39775
|
md: 6,
|
|
39776
39776
|
xs: 12,
|
|
39777
|
-
className: styles["btn-login-sso"] + " pl-md-2"
|
|
39777
|
+
className: styles["btn-login-sso"] + " pl-md-2",
|
|
39778
|
+
hidden: !(school !== null && school !== void 0 && school.schoolId)
|
|
39778
39779
|
}, React__default.createElement("div", {
|
|
39779
39780
|
className: styles["btn-login-with-sso"],
|
|
39780
39781
|
onClick: function onClick() {
|
|
@@ -40965,6 +40966,8 @@ var useLogin = function useLogin() {
|
|
|
40965
40966
|
try {
|
|
40966
40967
|
msalInstance.handleRedirectPromise().then(function (tokenResponse) {
|
|
40967
40968
|
try {
|
|
40969
|
+
if (!(school !== null && school !== void 0 && school.schoolId)) return Promise.resolve();
|
|
40970
|
+
|
|
40968
40971
|
var _temp38 = function () {
|
|
40969
40972
|
if (!tokenResponse) {
|
|
40970
40973
|
var accounts = msalInstance.getAllAccounts();
|
|
@@ -49802,7 +49805,7 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
49802
49805
|
return row.trim();
|
|
49803
49806
|
});
|
|
49804
49807
|
var headerIndex = rows.findIndex(function (row) {
|
|
49805
|
-
return row.split(",").includes("
|
|
49808
|
+
return row.split(",").includes("First Name");
|
|
49806
49809
|
});
|
|
49807
49810
|
|
|
49808
49811
|
if (headerIndex === 0) {
|
|
@@ -49816,6 +49819,17 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
49816
49819
|
});
|
|
49817
49820
|
var header = parsedData.meta.fields;
|
|
49818
49821
|
var dataRows = parsedData.data;
|
|
49822
|
+
|
|
49823
|
+
if (!!!dataRows.length) {
|
|
49824
|
+
dispatch(setLoading(false));
|
|
49825
|
+
dispatch(setAlert({
|
|
49826
|
+
type: "danger",
|
|
49827
|
+
message: 'The file has no data or some column names are misformed.'
|
|
49828
|
+
}));
|
|
49829
|
+
_exit2 = true;
|
|
49830
|
+
return;
|
|
49831
|
+
}
|
|
49832
|
+
|
|
49819
49833
|
var chunkSize = 10;
|
|
49820
49834
|
var chunks = [];
|
|
49821
49835
|
|
|
@@ -49826,12 +49840,6 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
49826
49840
|
return (v != null ? v : "").toString().trim();
|
|
49827
49841
|
});
|
|
49828
49842
|
});
|
|
49829
|
-
console.log({
|
|
49830
|
-
valuesOnly: valuesOnly
|
|
49831
|
-
});
|
|
49832
|
-
console.log({
|
|
49833
|
-
chunkData: chunkData
|
|
49834
|
-
});
|
|
49835
49843
|
|
|
49836
49844
|
if (header) {
|
|
49837
49845
|
valuesOnly.unshift(header);
|
|
@@ -49843,13 +49851,6 @@ var useCSVImportTab = function useCSVImportTab() {
|
|
|
49843
49851
|
chunks.push(valuesOnly);
|
|
49844
49852
|
}
|
|
49845
49853
|
|
|
49846
|
-
console.log({
|
|
49847
|
-
chunks: chunks
|
|
49848
|
-
});
|
|
49849
|
-
console.log({
|
|
49850
|
-
header: header
|
|
49851
|
-
});
|
|
49852
|
-
|
|
49853
49854
|
var _temp5 = _forTo(chunks, function (i) {
|
|
49854
49855
|
return Promise.resolve(importChunkFileUsers({
|
|
49855
49856
|
chunks: chunks[i]
|