mario-core 2.6.1 → 2.6.5

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 CHANGED
@@ -133,10 +133,9 @@ var COLORS = {
133
133
  SUCCESS: "#28a745",
134
134
  INFO: "#007bff"
135
135
  };
136
- var DATE_FORMAT = "yyyy-MM-DD";
137
- var DATE_RESULT = "DD-MM-yyyy";
138
- var FULL_DATE_RESULT = "DD-MM-yyyy HH:mm";
139
- var FULL_DATE_FORMAT = "yyyy-MM-DD HH:mm";
136
+ var DATE_FORMAT = "yyyy-MM-dd";
137
+ var DATE_RESULT = "dd-MM-yyyy";
138
+ var FULL_DATE_RESULT = "dd-MM-yyyy HH:mm";
140
139
  var DATE_MIN_VALUE = "0001-01-01T00:00:00";
141
140
  var LICENSE_AGGRID = "Alhanko&Johnson_BASE23_single_1_Devs__22_November_2020_[v2]_MTYwNjAwMzIwMDAwMA==d452f38afc893671cad92795e95d52a1";
142
141
  var BASE_URL = function () {
@@ -5154,7 +5153,7 @@ var utcToLocalTime = (function (time, FORMAT) {
5154
5153
  if (time === DATE_MIN_VALUE) return "";
5155
5154
 
5156
5155
  try {
5157
- return moment.utc(time).local().format(FORMAT || DATE_FORMAT);
5156
+ return moment.utc(time).local().format(FORMAT || "yyyy-MM-DD");
5158
5157
  } catch (_unused) {
5159
5158
  return "";
5160
5159
  }
@@ -5202,7 +5201,7 @@ var useNotificationList = function useNotificationList() {
5202
5201
  };
5203
5202
 
5204
5203
  var viewNotification = function viewNotification(notification) {
5205
- var _JSON$parse, _JSON$parse2;
5204
+ var _JSON$parse, _JSON$parse2, _JSON$parse3, _JSON$parse4;
5206
5205
 
5207
5206
  var source = notification.source,
5208
5207
  extraData = notification.extraData;
@@ -5212,8 +5211,12 @@ var useNotificationList = function useNotificationList() {
5212
5211
  window.open("/player/diagnosticsurvey/" + Number(extraData));
5213
5212
  break;
5214
5213
 
5214
+ case "NewConferenceCreated":
5215
+ window.open("/start-conference/" + ((_JSON$parse = JSON.parse(extraData)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse[0]) + "/" + ((_JSON$parse2 = JSON.parse(extraData)) === null || _JSON$parse2 === void 0 ? void 0 : _JSON$parse2[1]) + "/conferenceRubric");
5216
+ break;
5217
+
5215
5218
  case "NewSessionCreated":
5216
- window.open("/start-question/" + ((_JSON$parse = JSON.parse(extraData)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse[0]) + "/" + ((_JSON$parse2 = JSON.parse(extraData)) === null || _JSON$parse2 === void 0 ? void 0 : _JSON$parse2[1]));
5219
+ window.open("/start-question/" + ((_JSON$parse3 = JSON.parse(extraData)) === null || _JSON$parse3 === void 0 ? void 0 : _JSON$parse3[0]) + "/" + ((_JSON$parse4 = JSON.parse(extraData)) === null || _JSON$parse4 === void 0 ? void 0 : _JSON$parse4[1]));
5217
5220
  break;
5218
5221
 
5219
5222
  case "CertificateApproved":
@@ -5374,7 +5377,7 @@ var NotificationList = function NotificationList() {
5374
5377
  className: "align-middle"
5375
5378
  }, record.text), React__default.createElement("td", {
5376
5379
  className: "align-middle"
5377
- }, utcToLocalTime(record.time, FULL_DATE_FORMAT)), React__default.createElement("td", {
5380
+ }, utcToLocalTime(record.time, "yyyy-MM-DD HH:mm")), React__default.createElement("td", {
5378
5381
  className: styles["control-input"] + " text-center align-middle"
5379
5382
  }, React__default.createElement(reactstrap.CustomInput, {
5380
5383
  type: "checkbox",
@@ -5385,7 +5388,7 @@ var NotificationList = function NotificationList() {
5385
5388
  }
5386
5389
  })), React__default.createElement("td", {
5387
5390
  className: "text-center align-middle"
5388
- }, ["AssessmentAssignment", "NewSessionCreated", "CertificateApproved"].includes(record.source) && React__default.createElement(ai.AiOutlineEye, {
5391
+ }, ["AssessmentAssignment", "NewConferenceCreated", "NewSessionCreated", "CertificateApproved"].includes(record.source) && React__default.createElement(ai.AiOutlineEye, {
5389
5392
  className: "cursor-pointer",
5390
5393
  size: ICON_SIZE,
5391
5394
  title: "Detail",