@seafile/sdoc-editor 1.0.36-alpha.5 → 1.0.36-alpha.7
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.
|
@@ -99,6 +99,7 @@ const SimpleEditor = _ref => {
|
|
|
99
99
|
}, [setErrorMessage]);
|
|
100
100
|
const renderEditor = useCallback(() => {
|
|
101
101
|
if (!isSdocRevision) {
|
|
102
|
+
console.log('!isSdocRevision');
|
|
102
103
|
return /*#__PURE__*/React.createElement(SDocEditor, {
|
|
103
104
|
ref: editorRef,
|
|
104
105
|
isReloading: isReloading,
|
|
@@ -107,12 +108,14 @@ const SimpleEditor = _ref => {
|
|
|
107
108
|
});
|
|
108
109
|
}
|
|
109
110
|
if (isPublished) {
|
|
111
|
+
console.log('isPublished');
|
|
110
112
|
return /*#__PURE__*/React.createElement(PublishedRevisionDiffViewer, {
|
|
111
113
|
isShowChanges: isShowChanges,
|
|
112
114
|
revisionContent: revisionContent,
|
|
113
115
|
didMountCallback: setDiffChanges
|
|
114
116
|
});
|
|
115
117
|
}
|
|
118
|
+
console.log('11111111');
|
|
116
119
|
return /*#__PURE__*/React.createElement(RevisionEditor, {
|
|
117
120
|
ref: editorRef,
|
|
118
121
|
isShowChanges: isShowChanges,
|
|
@@ -132,7 +135,9 @@ const SimpleEditor = _ref => {
|
|
|
132
135
|
className: "error-tip"
|
|
133
136
|
}, t(errorMessage)));
|
|
134
137
|
}
|
|
135
|
-
return /*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement(Layout,
|
|
138
|
+
return /*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement(Layout, {
|
|
139
|
+
pageType: "simple"
|
|
140
|
+
}, /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement(DocInfo, {
|
|
136
141
|
isStarred: isStarred,
|
|
137
142
|
isDraft: isDraft,
|
|
138
143
|
showFileTags: showFileTags,
|
|
@@ -65,7 +65,9 @@ class SimpleViewer extends React.Component {
|
|
|
65
65
|
downloadURL
|
|
66
66
|
} = context.getSettings();
|
|
67
67
|
if (isMobile) {
|
|
68
|
-
return /*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement(Layout,
|
|
68
|
+
return /*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement(Layout, {
|
|
69
|
+
pageType: "simple-view11"
|
|
70
|
+
}, /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement("div", {
|
|
69
71
|
className: "doc-info"
|
|
70
72
|
}, /*#__PURE__*/React.createElement("h2", {
|
|
71
73
|
className: "doc-name my-0"
|
|
@@ -85,7 +87,9 @@ class SimpleViewer extends React.Component {
|
|
|
85
87
|
showComment: false
|
|
86
88
|
}))));
|
|
87
89
|
}
|
|
88
|
-
return /*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement(Layout,
|
|
90
|
+
return /*#__PURE__*/React.createElement(ErrorBoundary, null, /*#__PURE__*/React.createElement(Layout, {
|
|
91
|
+
pageType: "simple-view22"
|
|
92
|
+
}, /*#__PURE__*/React.createElement(Header, null, /*#__PURE__*/React.createElement("div", {
|
|
89
93
|
className: "doc-info"
|
|
90
94
|
}, /*#__PURE__*/React.createElement("h2", {
|
|
91
95
|
className: "doc-name my-0"
|