@seafile/sdoc-editor 0.1.18-beta3 → 0.1.18
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.
|
@@ -38,7 +38,7 @@ var HeaderMenu = /*#__PURE__*/function (_React$Component) {
|
|
|
38
38
|
};
|
|
39
39
|
_this.onToggleClick = function (event) {
|
|
40
40
|
event.stopPropagation();
|
|
41
|
-
event.nativeEvent.stopImmediatePropagation
|
|
41
|
+
event.nativeEvent.stopImmediatePropagation;
|
|
42
42
|
var isShowHeaderPopover = !_this.state.isShowHeaderPopover;
|
|
43
43
|
if (isShowHeaderPopover) {
|
|
44
44
|
_this.setState({
|
|
@@ -9,12 +9,9 @@ var SocketClient = /*#__PURE__*/_createClass(function SocketClient(config) {
|
|
|
9
9
|
_classCallCheck(this, SocketClient);
|
|
10
10
|
this.getParams = function () {
|
|
11
11
|
var params = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
12
|
-
var
|
|
13
|
-
docUuid = _this$config.docUuid,
|
|
14
|
-
user = _this$config.user;
|
|
12
|
+
var docUuid = _this.config.docUuid;
|
|
15
13
|
return _objectSpread({
|
|
16
|
-
doc_uuid: docUuid
|
|
17
|
-
user: user
|
|
14
|
+
doc_uuid: docUuid
|
|
18
15
|
}, params);
|
|
19
16
|
};
|
|
20
17
|
this.onConnected = function () {
|
|
@@ -4,40 +4,25 @@ import _inherits from "@babel/runtime/helpers/esm/inherits";
|
|
|
4
4
|
import _createSuper from "@babel/runtime/helpers/esm/createSuper";
|
|
5
5
|
import React, { Fragment } from 'react';
|
|
6
6
|
import CollaboratorsOperation from './collaborators-operation';
|
|
7
|
-
import context from '../../context';
|
|
8
7
|
import './style.css';
|
|
9
8
|
var DocOperations = /*#__PURE__*/function (_React$Component) {
|
|
10
9
|
_inherits(DocOperations, _React$Component);
|
|
11
10
|
var _super = _createSuper(DocOperations);
|
|
12
11
|
function DocOperations() {
|
|
13
|
-
var _this;
|
|
14
12
|
_classCallCheck(this, DocOperations);
|
|
15
|
-
|
|
16
|
-
args[_key] = arguments[_key];
|
|
17
|
-
}
|
|
18
|
-
_this = _super.call.apply(_super, [this].concat(args));
|
|
19
|
-
_this.toggleHistory = function (event) {
|
|
20
|
-
event.stopPropagation();
|
|
21
|
-
event.nativeEvent.stopImmediatePropagation();
|
|
22
|
-
var historyURL = context.getSetting('historyURL');
|
|
23
|
-
window.location.href = historyURL;
|
|
24
|
-
};
|
|
25
|
-
return _this;
|
|
13
|
+
return _super.apply(this, arguments);
|
|
26
14
|
}
|
|
27
15
|
_createClass(DocOperations, [{
|
|
28
16
|
key: "render",
|
|
29
17
|
value: function render() {
|
|
30
|
-
var docPerm = context.getSetting('docPerm');
|
|
31
|
-
var historyURL = context.getSetting('historyURL');
|
|
32
18
|
return /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement("div", {
|
|
33
19
|
className: "doc-ops"
|
|
34
20
|
}, /*#__PURE__*/React.createElement("span", {
|
|
35
21
|
className: "op-item"
|
|
36
22
|
}, /*#__PURE__*/React.createElement("i", {
|
|
37
23
|
className: "iconfont icon-share"
|
|
38
|
-
})),
|
|
39
|
-
className: "op-item"
|
|
40
|
-
onClick: this.toggleHistory
|
|
24
|
+
})), /*#__PURE__*/React.createElement("span", {
|
|
25
|
+
className: "op-item"
|
|
41
26
|
}, /*#__PURE__*/React.createElement("i", {
|
|
42
27
|
className: "iconfont icon-history"
|
|
43
28
|
})), /*#__PURE__*/React.createElement(CollaboratorsOperation, null), /*#__PURE__*/React.createElement("span", {
|
package/dist/context.js
CHANGED