1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-25 06:33:48 +00:00

remove xmind (#7688)

Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com>
This commit is contained in:
awu0403
2025-03-31 18:28:47 +08:00
committed by GitHub
parent d58584e0d7
commit efe9ecce29
13 changed files with 17 additions and 93 deletions

View File

@@ -11,7 +11,6 @@ const {
thumbnailSizeForOriginal,
previousImage, nextImage, rawPath,
lastModificationTime,
xmindImageSrc // for xmind file
} = window.app.pageOptions;
let previousImageUrl;
@@ -62,9 +61,6 @@ class FileContent extends React.Component {
thumbnailURL = `${siteRoot}thumbnail/${repoID}/${thumbnailSizeForOriginal}${Utils.encodePath(filePath)}?mtime=${lastModificationTime}`;
}
// for xmind file
const xmindSrc = xmindImageSrc ? `${siteRoot}${xmindImageSrc}` : '';
const { scale, angle } = this.props;
let style = {};
if (scale && angle != undefined) {
@@ -84,7 +80,7 @@ class FileContent extends React.Component {
{nextImage && (
<a href={nextImageUrl} id="img-next" title={gettext('you can also press →')}><span className="sf3-font sf3-font-down rotate-270 d-inline-block"></span></a>
)}
<img src={xmindSrc || thumbnailURL || rawPath} alt={fileName} id="image-view" onError={this.handleLoadFailure} style={ style } />
<img src={thumbnailURL || rawPath} alt={fileName} id="image-view" onError={this.handleLoadFailure} style={ style } />
</div>
);
}

View File

@@ -59,9 +59,6 @@ class InnerFileView extends React.Component {
case 'Image':
content = <Image tip={<FileViewTip />} scale={imageScale} angle={imageAngle} />;
break;
case 'XMind':
content = <Image tip={<FileViewTip />} />;
break;
case 'SVG':
content = <SVG />;
break;