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:
@@ -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(
|
||||
|
Reference in New Issue
Block a user