mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-10 19:29:56 +00:00
update seafile-editor version
This commit is contained in:
14
frontend/package-lock.json
generated
14
frontend/package-lock.json
generated
@@ -14,7 +14,7 @@
|
|||||||
"@seafile/resumablejs": "1.1.16",
|
"@seafile/resumablejs": "1.1.16",
|
||||||
"@seafile/sdoc-editor": "0.5.27",
|
"@seafile/sdoc-editor": "0.5.27",
|
||||||
"@seafile/seafile-calendar": "0.0.12",
|
"@seafile/seafile-calendar": "0.0.12",
|
||||||
"@seafile/seafile-editor": "1.0.47",
|
"@seafile/seafile-editor": "1.0.53",
|
||||||
"@uiw/codemirror-extensions-langs": "^4.19.4",
|
"@uiw/codemirror-extensions-langs": "^4.19.4",
|
||||||
"@uiw/react-codemirror": "^4.19.4",
|
"@uiw/react-codemirror": "^4.19.4",
|
||||||
"chart.js": "2.9.4",
|
"chart.js": "2.9.4",
|
||||||
@@ -4838,9 +4838,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@seafile/seafile-editor": {
|
"node_modules/@seafile/seafile-editor": {
|
||||||
"version": "1.0.47",
|
"version": "1.0.53",
|
||||||
"resolved": "https://registry.npmjs.org/@seafile/seafile-editor/-/seafile-editor-1.0.47.tgz",
|
"resolved": "https://registry.npmjs.org/@seafile/seafile-editor/-/seafile-editor-1.0.53.tgz",
|
||||||
"integrity": "sha512-GF3JL4eehM3NteNAsRakMjoy4567bY5zRh8Dn5JPLQr4Kkbr4JFl2PuMENTH1EuTY+jwDEbH/Mvy45++xpr9uA==",
|
"integrity": "sha512-sNE9znQTtXq7TcRHISE1xKoJ/f5FpGvxPYGYN1TBbTM+FMytyq5hPyjW3dUI5ny8Ynbu1yXWq2VP8hyK5cdIPg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@codemirror/lang-markdown": "6.2.3",
|
"@codemirror/lang-markdown": "6.2.3",
|
||||||
"@codemirror/language-data": "6.3.1",
|
"@codemirror/language-data": "6.3.1",
|
||||||
@@ -31921,9 +31921,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"@seafile/seafile-editor": {
|
"@seafile/seafile-editor": {
|
||||||
"version": "1.0.47",
|
"version": "1.0.53",
|
||||||
"resolved": "https://registry.npmjs.org/@seafile/seafile-editor/-/seafile-editor-1.0.47.tgz",
|
"resolved": "https://registry.npmjs.org/@seafile/seafile-editor/-/seafile-editor-1.0.53.tgz",
|
||||||
"integrity": "sha512-GF3JL4eehM3NteNAsRakMjoy4567bY5zRh8Dn5JPLQr4Kkbr4JFl2PuMENTH1EuTY+jwDEbH/Mvy45++xpr9uA==",
|
"integrity": "sha512-sNE9znQTtXq7TcRHISE1xKoJ/f5FpGvxPYGYN1TBbTM+FMytyq5hPyjW3dUI5ny8Ynbu1yXWq2VP8hyK5cdIPg==",
|
||||||
"requires": {
|
"requires": {
|
||||||
"@codemirror/lang-markdown": "6.2.3",
|
"@codemirror/lang-markdown": "6.2.3",
|
||||||
"@codemirror/language-data": "6.3.1",
|
"@codemirror/language-data": "6.3.1",
|
||||||
|
@@ -9,7 +9,7 @@
|
|||||||
"@seafile/resumablejs": "1.1.16",
|
"@seafile/resumablejs": "1.1.16",
|
||||||
"@seafile/sdoc-editor": "0.5.27",
|
"@seafile/sdoc-editor": "0.5.27",
|
||||||
"@seafile/seafile-calendar": "0.0.12",
|
"@seafile/seafile-calendar": "0.0.12",
|
||||||
"@seafile/seafile-editor": "1.0.47",
|
"@seafile/seafile-editor": "1.0.53",
|
||||||
"@uiw/codemirror-extensions-langs": "^4.19.4",
|
"@uiw/codemirror-extensions-langs": "^4.19.4",
|
||||||
"@uiw/react-codemirror": "^4.19.4",
|
"@uiw/react-codemirror": "^4.19.4",
|
||||||
"chart.js": "2.9.4",
|
"chart.js": "2.9.4",
|
||||||
|
@@ -1,6 +1,8 @@
|
|||||||
import React from 'react';
|
import React, { Suspense } from 'react';
|
||||||
import PropTypes from 'prop-types';
|
import PropTypes from 'prop-types';
|
||||||
import { MarkdownViewer } from '@seafile/seafile-editor';
|
import { MarkdownViewer } from '@seafile/seafile-editor';
|
||||||
|
import { I18nextProvider } from 'react-i18next';
|
||||||
|
import i18n from '../../_i18n/i18n-seafile-editor';
|
||||||
import { gettext, mediaUrl, serviceURL, sharedToken, slug } from '../../utils/constants';
|
import { gettext, mediaUrl, serviceURL, sharedToken, slug } from '../../utils/constants';
|
||||||
import { Utils } from '../../utils/utils';
|
import { Utils } from '../../utils/utils';
|
||||||
import Loading from '../loading';
|
import Loading from '../loading';
|
||||||
@@ -91,7 +93,13 @@ class SeafileMarkdownViewer extends React.Component {
|
|||||||
...(isWiki && {beforeRenderCallback: this.modifyValueBeforeRender})
|
...(isWiki && {beforeRenderCallback: this.modifyValueBeforeRender})
|
||||||
};
|
};
|
||||||
|
|
||||||
return <MarkdownViewer {...props} />;
|
return (
|
||||||
|
<I18nextProvider i18n={ i18n }>
|
||||||
|
<Suspense fallback={<Loading />}>
|
||||||
|
<MarkdownViewer {...props} />
|
||||||
|
</Suspense>
|
||||||
|
</I18nextProvider>
|
||||||
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
render() {
|
render() {
|
||||||
|
Reference in New Issue
Block a user