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.
@@ -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 = 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
  useEffect(function () {
1022
1017
  !user && loadInfo();
1023
1018
  !!user && checkRoleUser();
@@ -1619,6 +1614,8 @@ var problem_analysis = "문제 분석";
1619
1614
  var class_information = "수업정보";
1620
1615
  var teachers = "교사";
1621
1616
  var lessons = "수업";
1617
+ var update_class = "수업 업데이트";
1618
+ var create_class = "수업 만들기";
1622
1619
  var lang_ko = {
1623
1620
  problem_solving: problem_solving,
1624
1621
  my_story: my_story,
@@ -1925,7 +1922,9 @@ var lang_ko = {
1925
1922
  problem_analysis: problem_analysis,
1926
1923
  class_information: class_information,
1927
1924
  teachers: teachers,
1928
- lessons: lessons
1925
+ lessons: lessons,
1926
+ update_class: update_class,
1927
+ create_class: create_class
1929
1928
  };
1930
1929
 
1931
1930
  var problem_solving$1 = "Problem Solving";
@@ -2280,6 +2279,8 @@ var problem_analysis$1 = "Problem analysis";
2280
2279
  var class_information$1 = "Class Information";
2281
2280
  var teachers$1 = "Teachers";
2282
2281
  var lessons$1 = "Lessons";
2282
+ var update_class$1 = "Update class";
2283
+ var create_class$1 = "Create class";
2283
2284
  var lang_en = {
2284
2285
  problem_solving: problem_solving$1,
2285
2286
  my_story: my_story$1,
@@ -2621,7 +2622,9 @@ var lang_en = {
2621
2622
  problem_analysis: problem_analysis$1,
2622
2623
  class_information: class_information$1,
2623
2624
  teachers: teachers$1,
2624
- lessons: lessons$1
2625
+ lessons: lessons$1,
2626
+ update_class: update_class$1,
2627
+ create_class: create_class$1
2625
2628
  };
2626
2629
 
2627
2630
  i18n.use(initReactI18next).init({
@@ -12008,9 +12011,9 @@ var Header = function Header(_ref) {
12008
12011
  direction: "row",
12009
12012
  alignItems: "center"
12010
12013
  }, React.createElement(Typography, {
12011
- className: "fw-bold text-primary me-2 text-nowrap",
12014
+ className: "fw-bold text-primary me-2 text-nowrap flex-shrink-1",
12012
12015
  sx: {
12013
- maxWidth: "120px",
12016
+ minWidth: "60px",
12014
12017
  overflow: "hidden",
12015
12018
  textOverflow: "ellipsis"
12016
12019
  }