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

feat: sdoc published revision support view (#5709)

* feat: sdoc published revision support view

* feat: restore code

* feat: update revision id
This commit is contained in:
杨国璇
2023-10-26 17:15:42 +08:00
committed by GitHub
parent ddf910cd8b
commit 517b558b55
12 changed files with 223 additions and 99 deletions

View File

@@ -4,7 +4,7 @@ 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';
import SdocEditor from './pages/sdoc/sdoc-editor';
const { serviceURL, avatarURL, siteRoot, lang } = window.app.config;
const { username, name } = window.app.userInfo;
@@ -12,7 +12,7 @@ const {
repoID, repoName, parentDir, filePerm,
docPath, docName, docUuid, seadocAccessToken, seadocServerUrl, assetsUrl,
isSdocRevision, isPublished, originFilename, revisionCreatedAt, originFileVersion,
originFilePath, originDocUuid,
originFilePath, originDocUuid, revisionId,
} = window.app.pageOptions;
window.seafile = {
@@ -36,13 +36,13 @@ window.seafile = {
isStarIconShown: true, // for star/unstar
isSdocRevision,
isPublished,
revisionURL: Utils.generateRevisionURL(siteRoot, repoID, docPath),
originFilename,
originFileVersion,
originFilePath,
originDocUuid,
revisionCreatedAt,
lang,
revisionId,
};
ReactDom.render(