mario-education 2.4.515-feedback → 2.4.516-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 +7 -2
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -2
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -6083,7 +6083,7 @@ var useCSVImport = function useCSVImport() {
|
|
|
6083
6083
|
setStudentDataFile = _useState5[1];
|
|
6084
6084
|
|
|
6085
6085
|
var domainName = window.location.hostname;
|
|
6086
|
-
var isCheckDomainIBS = domainName.includes('isb') || domainName.includes('stage');
|
|
6086
|
+
var isCheckDomainIBS = domainName.includes('isb') || domainName.includes('stage') || domainName.includes("localhost");
|
|
6087
6087
|
|
|
6088
6088
|
var _useState6 = React.useState(0),
|
|
6089
6089
|
defaultTeacher = _useState6[0],
|
|
@@ -6163,9 +6163,12 @@ var useCSVImport = function useCSVImport() {
|
|
|
6163
6163
|
|
|
6164
6164
|
var formData = new FormData();
|
|
6165
6165
|
formData.append("file", file, file.name);
|
|
6166
|
+
console.log("run");
|
|
6167
|
+
console.log("📌 Type run:", type.toString());
|
|
6166
6168
|
|
|
6167
6169
|
var _temp8 = function () {
|
|
6168
6170
|
if (type == CSVType.AllUser) {
|
|
6171
|
+
console.log("📌 Type 1:", type.toString());
|
|
6169
6172
|
return Promise.resolve(file.text()).then(function (fileTextRaw) {
|
|
6170
6173
|
var fileText = fileTextRaw.trim();
|
|
6171
6174
|
var headerIndex = 0;
|
|
@@ -6192,7 +6195,6 @@ var useCSVImport = function useCSVImport() {
|
|
|
6192
6195
|
skipEmptyLines: true
|
|
6193
6196
|
});
|
|
6194
6197
|
var header = parsedData.meta.fields;
|
|
6195
|
-
console.log("📌 CSV Header:", header);
|
|
6196
6198
|
var dataRows = parsedData.data;
|
|
6197
6199
|
var chunkSize = 20;
|
|
6198
6200
|
var chunks = [];
|
|
@@ -6220,6 +6222,8 @@ var useCSVImport = function useCSVImport() {
|
|
|
6220
6222
|
} else {
|
|
6221
6223
|
var _temp14 = function () {
|
|
6222
6224
|
if (isCheckDomainIBS) {
|
|
6225
|
+
console.log("📌 Type if:", type.toString());
|
|
6226
|
+
|
|
6223
6227
|
var _temp15 = function () {
|
|
6224
6228
|
if (type == CSVType.ClassReflection) {
|
|
6225
6229
|
return Promise.resolve(importClassReflectionCSV(formData)).then(function () {});
|
|
@@ -6228,6 +6232,7 @@ var useCSVImport = function useCSVImport() {
|
|
|
6228
6232
|
|
|
6229
6233
|
if (_temp15 && _temp15.then) return _temp15.then(function () {});
|
|
6230
6234
|
} else {
|
|
6235
|
+
console.log("📌 Type else:", type.toString());
|
|
6231
6236
|
return Promise.resolve(importCSV(formData, type.toString())).then(function () {});
|
|
6232
6237
|
}
|
|
6233
6238
|
}();
|