1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

optimize code (#5467)

* optimize code

* optimize code

* optimize code
This commit is contained in:
杨顺强
2023-05-12 14:12:28 +08:00
committed by GitHub
parent 87dc0289d1
commit 3746fedfb4
3 changed files with 69 additions and 2 deletions

View File

@@ -1,10 +1,10 @@
import React, { Suspense } from 'react';
import ReactDom from 'react-dom';
import { SimpleEditor } from '@seafile/sdoc-editor';
import { I18nextProvider } from 'react-i18next';
import i18n from './_i18n/i18n-sdoc-editor';
import { Utils } from './utils/utils';
import Loading from './components/loading';
import SdocEditor from './pages/sdoc-editor';
const { serviceURL, avatarURL, siteRoot } = window.app.config;
const { username, name } = window.app.userInfo;
@@ -34,7 +34,7 @@ window.seafile = {
ReactDom.render(
<I18nextProvider i18n={ i18n } >
<Suspense fallback={<Loading />}>
<SimpleEditor />
<SdocEditor />
</Suspense>
</I18nextProvider>,
document.getElementById('wrapper')