1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-10-21 19:00:12 +00:00

support create docxf file

This commit is contained in:
lian
2025-09-24 17:17:04 +08:00
parent 7f668d8e0e
commit 36e6585ba9
3 changed files with 13 additions and 1 deletions

View File

@@ -352,6 +352,9 @@ class DirentGridView extends React.Component {
case 'New Word File':
this.onCreateFile('.docx');
break;
case 'New Docxf File':
this.onCreateFile('.docxf');
break;
case 'New Whiteboard File':
this.onCreateFile('.draw');
break;

View File

@@ -472,6 +472,9 @@ class DirentListView extends React.Component {
case 'New Word File':
this.onCreateFile('.docx');
break;
case 'New Docxf File':
this.onCreateFile('.docxf');
break;
case 'New Whiteboard File':
this.onCreateFile('.draw');
break;

View File

@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import { enableSeadoc, gettext, enableWhiteboard } from '../../utils/constants';
import { enableSeadoc, gettext, enableWhiteboard, onlyofficeSupportEditDocxf } from '../../utils/constants';
import Loading from '../loading';
import TextTranslation from '../../utils/text-translation';
import { Utils } from '../../utils/utils';
@@ -119,6 +119,9 @@ class DirentNoneView extends React.Component {
case 'New Word File':
this.onCreateFile('.docx');
break;
case 'New Docxf File':
this.onCreateFile('.docxf');
break;
case 'New Whiteboard File':
this.onCreateFile('.draw');
break;
@@ -163,6 +166,9 @@ class DirentNoneView extends React.Component {
{enableSeadoc && !currentRepoInfo.encrypted &&
<button className="big-new-file-button" onClick={this.onCreateFile.bind(this, '.sdoc')}>{'+ SeaDoc'}</button>
}
{onlyofficeSupportEditDocxf &&
<button className="big-new-file-button" onClick={this.onCreateFile.bind(this, '.docxf')}>{'+ Docxf'}</button>
}
</>
)}
</div>