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

[side nav] removed the link to SeaTable (#5841)

This commit is contained in:
llj
2023-12-20 10:14:46 +08:00
committed by GitHub
parent 843482bd07
commit 285a3b9c38
4 changed files with 1 additions and 17 deletions

View File

@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import { Link } from '@gatsbyjs/reach-router';
import { gettext, siteRoot, canAddRepo, canGenerateShareLink, canGenerateUploadLink, canInvitePeople, dtableWebServer, enableOCM, enableOCMViaWebdav } from '../utils/constants';
import { gettext, siteRoot, canAddRepo, canGenerateShareLink, canGenerateUploadLink, canInvitePeople, enableOCM, enableOCMViaWebdav } from '../utils/constants';
import { seafileAPI } from '../utils/seafile-api';
import { Utils } from '../utils/utils';
import toaster from './toast';
@@ -76,11 +76,6 @@ class MainSideNav extends React.Component {
this.props.tabItemClick(param, id);
};
onDTableClick = () => {
let url = dtableWebServer;
window.open(url);
};
getActiveClass = (tab) => {
return this.props.currentTab === tab ? 'active' : '';
};
@@ -290,14 +285,6 @@ class MainSideNav extends React.Component {
{customNavItems && this.renderCustomNavItems()}
</ul>
</div>
{dtableWebServer &&
<div className="side-nav-link" onClick={this.onDTableClick}>
<span className="link-icon icon-left sf3-font sf3-font-dtable-logo" aria-hidden="true"></span>
<span className="link-text">SeaTable</span>
<span className="link-icon icon-right sf3-font sf3-font-arrow"></span>
</div>
}
</div>
);
}

View File

@@ -32,7 +32,6 @@ export const enableRepoAutoDel = window.app.config.enableRepoAutoDel;
//pageOptions
export const trashReposExpireDays = window.app.pageOptions.trashReposExpireDays;
export const dtableWebServer = window.app.pageOptions.dtableWebServer;
export const seafileCollabServer = window.app.pageOptions.seafileCollabServer;
export const name = window.app.pageOptions.name;
export const contactEmail = window.app.pageOptions.contactEmail;

View File

@@ -55,7 +55,6 @@
},
pageOptions: {
csrfToken: "{{ csrf_token }}",
dtableWebServer: "{{dtable_web_server}}",
seafileCollabServer: '{{seafile_collab_server}}',
name: "{{request.user.username|email2nickname|escapejs}}",
contactEmail: "{{request.user.username|email2contact_email|escapejs}}",

View File

@@ -1210,7 +1210,6 @@ def react_fake_view(request, **kwargs):
return render(request, "react_app.html", {
"guide_enabled": guide_enabled,
'trash_repos_expire_days': expire_days if expire_days > 0 else 30,
'dtable_web_server': DTABLE_WEB_SERVER,
'max_upload_file_size': max_upload_file_size,
'seafile_collab_server': SEAFILE_COLLAB_SERVER,
'storages': get_library_storages(request),