@seafile/sdoc-editor 2.0.127 → 2.0.128-test-0.0.1
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.
|
@@ -19,19 +19,15 @@ var LangSubMenu = function LangSubMenu(_ref) {
|
|
|
19
19
|
var onZhcnClick = (0, _react.useCallback)(function () {
|
|
20
20
|
onTranslateClick('zh-cn');
|
|
21
21
|
}, [onTranslateClick]);
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
// const onRuClick = useCallback(() => {
|
|
32
|
-
// onTranslateClick('ru');
|
|
33
|
-
// }, [onTranslateClick]);
|
|
34
|
-
|
|
22
|
+
var onFrClick = (0, _react.useCallback)(function () {
|
|
23
|
+
onTranslateClick('fr');
|
|
24
|
+
}, [onTranslateClick]);
|
|
25
|
+
var onDeClick = (0, _react.useCallback)(function () {
|
|
26
|
+
onTranslateClick('de');
|
|
27
|
+
}, [onTranslateClick]);
|
|
28
|
+
var onItClick = (0, _react.useCallback)(function () {
|
|
29
|
+
onTranslateClick('it');
|
|
30
|
+
}, [onTranslateClick]);
|
|
35
31
|
return /*#__PURE__*/_react["default"].createElement(_reactstrap.UncontrolledPopover, {
|
|
36
32
|
boundariesElement: "viewport",
|
|
37
33
|
target: target,
|
|
@@ -43,11 +39,20 @@ var LangSubMenu = function LangSubMenu(_ref) {
|
|
|
43
39
|
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
44
40
|
className: "sdoc-dropdown-menu-container"
|
|
45
41
|
}, /*#__PURE__*/_react["default"].createElement(_dropdownMenuItem["default"], {
|
|
42
|
+
menuConfig: _constants.LANG_MENU_CONFIG.ZH_CN,
|
|
43
|
+
onClick: onZhcnClick
|
|
44
|
+
}), /*#__PURE__*/_react["default"].createElement(_dropdownMenuItem["default"], {
|
|
46
45
|
menuConfig: _constants.LANG_MENU_CONFIG.EN,
|
|
47
46
|
onClick: onEnClick
|
|
48
47
|
}), /*#__PURE__*/_react["default"].createElement(_dropdownMenuItem["default"], {
|
|
49
|
-
menuConfig: _constants.LANG_MENU_CONFIG.
|
|
50
|
-
onClick:
|
|
48
|
+
menuConfig: _constants.LANG_MENU_CONFIG.FR,
|
|
49
|
+
onClick: onFrClick
|
|
50
|
+
}), /*#__PURE__*/_react["default"].createElement(_dropdownMenuItem["default"], {
|
|
51
|
+
menuConfig: _constants.LANG_MENU_CONFIG.DE,
|
|
52
|
+
onClick: onDeClick
|
|
53
|
+
}), /*#__PURE__*/_react["default"].createElement(_dropdownMenuItem["default"], {
|
|
54
|
+
menuConfig: _constants.LANG_MENU_CONFIG.IT,
|
|
55
|
+
onClick: onItClick
|
|
51
56
|
})));
|
|
52
57
|
};
|
|
53
58
|
var _default = exports["default"] = LangSubMenu;
|
|
@@ -125,10 +125,10 @@ var LANG_MENU_CONFIG = exports.LANG_MENU_CONFIG = {
|
|
|
125
125
|
text: 'French',
|
|
126
126
|
iconClass: 'sdocfont sdoc-ai-translate'
|
|
127
127
|
},
|
|
128
|
-
|
|
129
|
-
id: '
|
|
130
|
-
type: '
|
|
131
|
-
text: '
|
|
128
|
+
IT: {
|
|
129
|
+
id: 'it',
|
|
130
|
+
type: 'it',
|
|
131
|
+
text: 'Italian',
|
|
132
132
|
iconClass: 'sdocfont sdoc-ai-translate'
|
|
133
133
|
}
|
|
134
134
|
};
|
|
@@ -62,6 +62,11 @@ var SocketClient = /*#__PURE__*/(0, _createClass2["default"])(function SocketCli
|
|
|
62
62
|
socketManager.dispatchConnectState('reconnect_error');
|
|
63
63
|
});
|
|
64
64
|
(0, _defineProperty2["default"])(this, "onDisconnected", function (data) {
|
|
65
|
+
if (data === 'ping timeout') {
|
|
66
|
+
(0, _debug.clientDebug)('Disconnected due to ping timeout, trying to reconnect...');
|
|
67
|
+
_this.socket.connect();
|
|
68
|
+
return;
|
|
69
|
+
}
|
|
65
70
|
(0, _debug.clientDebug)('disconnect message: %s', data);
|
|
66
71
|
var socketManager = _socketManager["default"].getInstance();
|
|
67
72
|
socketManager.dispatchConnectState('disconnect');
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@seafile/sdoc-editor",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.128-test-0.0.1",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"test": "jest",
|
|
@@ -69,6 +69,5 @@
|
|
|
69
69
|
},
|
|
70
70
|
"publishConfig": {
|
|
71
71
|
"access": "public"
|
|
72
|
-
}
|
|
73
|
-
"gitHead": "fadcfb916d934dc56ea439ca0221f9ff08e59563"
|
|
72
|
+
}
|
|
74
73
|
}
|
package/LICENSE.txt
DELETED
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Copyright (c) 2025 Seafile Ltd.
|
|
2
|
-
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License.
|
|
5
|
-
You may obtain a copy of the License at
|
|
6
|
-
|
|
7
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
See the License for the specific language governing permissions and
|
|
13
|
-
limitations under the License.
|