touchstudy-core 0.1.36 → 0.1.38

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
@@ -881,7 +881,7 @@ var switchAcademy = function switchAcademy(academyId) {
881
881
  };
882
882
 
883
883
  var LayoutContext = function LayoutContext(_ref) {
884
- var _currentPusher$connec, _currentPusher$connec3;
884
+ var _currentPusher$connec2;
885
885
  var children = _ref.children,
886
886
  role = _ref.role,
887
887
  _ref$pusherRegisterUr = _ref.pusherRegisterUrls,
@@ -973,14 +973,9 @@ var LayoutContext = function LayoutContext(_ref) {
973
973
  return Promise.reject(e);
974
974
  }
975
975
  };
976
- console.log({
977
- connection: currentPusher === null || currentPusher === void 0 ? void 0 : (_currentPusher$connec = currentPusher.connection) === null || _currentPusher$connec === void 0 ? void 0 : _currentPusher$connec.state,
978
- pusherRegisterUrls: pusherRegisterUrls,
979
- pathname: pathname
980
- });
981
976
  var registerPusher = React.useCallback(function () {
982
977
  if (pusherRegisterUrls.includes(pathname.toLocaleLowerCase())) {
983
- var _currentPusher$connec2;
978
+ var _currentPusher$connec;
984
979
  if (academyDomain && academyDomain !== (concurrentConnectionPusher === null || concurrentConnectionPusher === void 0 ? void 0 : concurrentConnectionPusher.academyDomain) && isReadyRegisterPusher) {
985
980
  var _headers;
986
981
  if (currentPusher) {
@@ -1001,7 +996,7 @@ var LayoutContext = function LayoutContext(_ref) {
1001
996
  pusher: pusher,
1002
997
  academyDomain: academyDomain
1003
998
  }));
1004
- } else if ((currentPusher === null || currentPusher === void 0 ? void 0 : (_currentPusher$connec2 = currentPusher.connection) === null || _currentPusher$connec2 === void 0 ? void 0 : _currentPusher$connec2.state) === "disconnected") {
999
+ } else if ((currentPusher === null || currentPusher === void 0 ? void 0 : (_currentPusher$connec = currentPusher.connection) === null || _currentPusher$connec === void 0 ? void 0 : _currentPusher$connec.state) === "disconnected") {
1005
1000
  currentPusher.connect();
1006
1001
  }
1007
1002
  }
@@ -1017,7 +1012,7 @@ var LayoutContext = function LayoutContext(_ref) {
1017
1012
  if (!pusherRegisterUrls.includes(pathname.toLocaleLowerCase()) && isReadyRegisterPusher) {
1018
1013
  dispatch(setReadyRegisterPusher(false));
1019
1014
  }
1020
- }, [pusherRegisterUrls.join(","), academyDomain, pathname, isReadyRegisterPusher, currentPusher === null || currentPusher === void 0 ? void 0 : (_currentPusher$connec3 = currentPusher.connection) === null || _currentPusher$connec3 === void 0 ? void 0 : _currentPusher$connec3.state]);
1015
+ }, [pusherRegisterUrls.join(","), academyDomain, pathname, isReadyRegisterPusher, currentPusher === null || currentPusher === void 0 ? void 0 : (_currentPusher$connec2 = currentPusher.connection) === null || _currentPusher$connec2 === void 0 ? void 0 : _currentPusher$connec2.state]);
1021
1016
  React.useEffect(function () {
1022
1017
  !user && loadInfo();
1023
1018
  !!user && checkRoleUser();
@@ -1618,6 +1613,8 @@ var problem_analysis = "문제 분석";
1618
1613
  var class_information = "수업정보";
1619
1614
  var teachers = "교사";
1620
1615
  var lessons = "수업";
1616
+ var update_class = "수업 업데이트";
1617
+ var create_class = "수업 만들기";
1621
1618
  var lang_ko = {
1622
1619
  problem_solving: problem_solving,
1623
1620
  my_story: my_story,
@@ -1924,7 +1921,9 @@ var lang_ko = {
1924
1921
  problem_analysis: problem_analysis,
1925
1922
  class_information: class_information,
1926
1923
  teachers: teachers,
1927
- lessons: lessons
1924
+ lessons: lessons,
1925
+ update_class: update_class,
1926
+ create_class: create_class
1928
1927
  };
1929
1928
 
1930
1929
  var problem_solving$1 = "Problem Solving";
@@ -2279,6 +2278,8 @@ var problem_analysis$1 = "Problem analysis";
2279
2278
  var class_information$1 = "Class Information";
2280
2279
  var teachers$1 = "Teachers";
2281
2280
  var lessons$1 = "Lessons";
2281
+ var update_class$1 = "Update class";
2282
+ var create_class$1 = "Create class";
2282
2283
  var lang_en = {
2283
2284
  problem_solving: problem_solving$1,
2284
2285
  my_story: my_story$1,
@@ -2620,7 +2621,9 @@ var lang_en = {
2620
2621
  problem_analysis: problem_analysis$1,
2621
2622
  class_information: class_information$1,
2622
2623
  teachers: teachers$1,
2623
- lessons: lessons$1
2624
+ lessons: lessons$1,
2625
+ update_class: update_class$1,
2626
+ create_class: create_class$1
2624
2627
  };
2625
2628
 
2626
2629
  i18n.use(reactI18next.initReactI18next).init({
@@ -12006,9 +12009,9 @@ var Header = function Header(_ref) {
12006
12009
  direction: "row",
12007
12010
  alignItems: "center"
12008
12011
  }, React__default.createElement(material.Typography, {
12009
- className: "fw-bold text-primary me-2 text-nowrap",
12012
+ className: "fw-bold text-primary me-2 text-nowrap flex-shrink-1",
12010
12013
  sx: {
12011
- maxWidth: "120px",
12014
+ minWidth: "60px",
12012
12015
  overflow: "hidden",
12013
12016
  textOverflow: "ellipsis"
12014
12017
  }