touchstudy-core 0.1.35 → 0.1.37
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 -12
- package/dist/index.js.map +1 -1
- package/dist/index.modern.js +7 -12
- package/dist/index.modern.js.map +1 -1
- package/package.json +1 -1
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$
|
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$
|
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$
|
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$
|
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();
|
@@ -11740,7 +11735,7 @@ var ExamResultV2 = function ExamResultV2(_ref) {
|
|
11740
11735
|
onClick: function onClick() {
|
11741
11736
|
return handleChangeTab(value);
|
11742
11737
|
}
|
11743
|
-
}, label);
|
11738
|
+
}, t(label));
|
11744
11739
|
})), isTabletUp && React__default.createElement(material.Stack, {
|
11745
11740
|
padding: '12px 24px',
|
11746
11741
|
alignItems: "end",
|
@@ -12006,9 +12001,9 @@ var Header = function Header(_ref) {
|
|
12006
12001
|
direction: "row",
|
12007
12002
|
alignItems: "center"
|
12008
12003
|
}, React__default.createElement(material.Typography, {
|
12009
|
-
className: "fw-bold text-primary me-2 text-nowrap",
|
12004
|
+
className: "fw-bold text-primary me-2 text-nowrap flex-shrink-1",
|
12010
12005
|
sx: {
|
12011
|
-
|
12006
|
+
minWidth: "60px",
|
12012
12007
|
overflow: "hidden",
|
12013
12008
|
textOverflow: "ellipsis"
|
12014
12009
|
}
|