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

feat: sdoc support list history (#5457)

* feat: sdoc support list history

* Feat: git add .

* feat: update code

* feat: update code
This commit is contained in:
杨国璇
2023-04-27 10:36:49 +08:00
committed by GitHub
parent cbc174a23f
commit 8b83ce0196
7 changed files with 316 additions and 7 deletions

View File

@@ -4,10 +4,11 @@ import { SimpleEditor } from '@seafile/sdoc-editor';
import { I18nextProvider } from 'react-i18next';
import i18n from './_i18n/i18n-sdoc-editor';
import Loading from './components/loading';
import { Utils } from './utils/utils';
const { serviceURL, avatarURL } = window.app.config;
const { serviceURL, avatarURL, siteRoot } = window.app.config;
const { username, name } = window.app.userInfo;
const { repoID, docPath, docName, docUuid, seadocAccessToken, seadocServerUrl } = window.app.pageOptions;
const { repoID, docPath, docName, docUuid, seadocAccessToken, seadocServerUrl, filePerm } = window.app.pageOptions;
window.seafile = {
repoID,
@@ -21,6 +22,9 @@ window.seafile = {
name,
username,
avatarURL,
siteRoot,
docPerm: filePerm,
historyURL: Utils.generateHistoryURL(siteRoot, repoID, docPath),
};
ReactDom.render(