1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-22 11:57:34 +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,9 +4,10 @@ import { SimpleViewer } 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 } = window.app.config;
const { username } = window.app.pageOptions;
const { serviceURL, siteRoot } = window.app.config;
const { username, filePerm } = window.app.pageOptions;
const { repoID, filePath, fileName, rawPath } = window.shared.pageOptions;
window.seafile = {
@@ -16,6 +17,9 @@ window.seafile = {
docPath: filePath,
serviceUrl: serviceURL,
username,
siteRoot,
docPerm: filePerm,
historyURL: Utils.generateHistoryURL(siteRoot, repoID, filePath),
};
ReactDom.render(