mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-08 10:22:46 +00:00
remove about (#7027)
* remove about * update * update --------- Co-authored-by: 孙永强 <11704063+s-yongqiang@user.noreply.gitee.com> Co-authored-by: r350178982 <32759763+r350178982@users.noreply.github.com>
This commit is contained in:
@@ -5,7 +5,7 @@ import { Link } from '@gatsbyjs/reach-router';
|
||||
import {
|
||||
gettext, siteRoot, canAddGroup, canAddRepo, canShareRepo,
|
||||
canGenerateShareLink, canGenerateUploadLink, canInvitePeople,
|
||||
enableTC, sideNavFooterCustomHtml,
|
||||
enableTC, sideNavFooterCustomHtml, enableShowAbout,
|
||||
canViewOrg, isDocs, isPro, isDBSqlite3, customNavItems, mediaUrl
|
||||
} from '../utils/constants';
|
||||
import { seafileAPI } from '../utils/seafile-api';
|
||||
@@ -297,12 +297,14 @@ class MainSideNav extends React.Component {
|
||||
<span className="nav-text">{gettext('Clients')}</span>
|
||||
</a>
|
||||
</li>
|
||||
{enableShowAbout &&
|
||||
<li className='nav-item'>
|
||||
<a href="#" className="nav-link" onClick={this.toggleAboutDialog}>
|
||||
<span className="sf3-font-about sf3-font" aria-hidden="true"></span>
|
||||
<span className="nav-text">{gettext('About')}</span>
|
||||
</a>
|
||||
</li>
|
||||
}
|
||||
</ul>
|
||||
)
|
||||
}
|
||||
|
@@ -103,6 +103,8 @@ export const onlyofficeConverterExtensions = window.app.pageOptions.onlyofficeCo
|
||||
|
||||
export const enableFileTags = window.app.pageOptions.enableFileTags || false;
|
||||
|
||||
export const enableShowAbout = window.app.pageOptions.enableShowAbout || false;
|
||||
|
||||
// dtable
|
||||
export const workspaceID = window.app.pageOptions.workspaceID;
|
||||
export const showLogoutIcon = window.app.pageOptions.showLogoutIcon;
|
||||
|
@@ -498,6 +498,9 @@ ENABLE_CONVERT_TO_TEAM_ACCOUNT = False
|
||||
|
||||
ADMIN_LOGS_EXPORT_MAX_DAYS = 180
|
||||
|
||||
# Enable show about module
|
||||
ENABLE_SHOW_ABOUT = True
|
||||
|
||||
# File preview
|
||||
FILE_PREVIEW_MAX_SIZE = 30 * 1024 * 1024
|
||||
FILE_ENCODING_LIST = ['auto', 'utf-8', 'gbk', 'ISO-8859-1', 'ISO-8859-5']
|
||||
|
@@ -156,6 +156,7 @@
|
||||
isOrgContext: {% if org is not None %} true {% else %} false {% endif %},
|
||||
enableMetadataManagement: {% if enable_metadata_management %} true {% else %} false {% endif %},
|
||||
enableFileTags: {% if enable_file_tags %} true {% else %} false {% endif %},
|
||||
enableShowAbout: {% if enable_show_about %} true {% else %} false {% endif %},
|
||||
baiduMapKey: '{{ baidu_map_key }}',
|
||||
googleMapKey: '{{ google_map_key }}',
|
||||
googleMapId: '{{ google_map_id }}',
|
||||
|
@@ -1147,7 +1147,9 @@ def react_fake_view(request, **kwargs):
|
||||
'request_from_onlyoffice_desktop_editor': ONLYOFFICE_DESKTOP_EDITOR_HTTP_USER_AGENT in request.headers.get('user-agent', ''),
|
||||
'enable_sso_to_thirdpart_website': settings.ENABLE_SSO_TO_THIRDPART_WEBSITE,
|
||||
'enable_metadata_management': settings.ENABLE_METADATA_MANAGEMENT,
|
||||
'enable_file_tags': settings.ENABLE_FILE_TAGS
|
||||
'enable_file_tags': settings.ENABLE_FILE_TAGS,
|
||||
'enable_show_about': settings.ENABLE_SHOW_ABOUT
|
||||
|
||||
}
|
||||
|
||||
if settings.ENABLE_METADATA_MANAGEMENT:
|
||||
|
Reference in New Issue
Block a user