1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-08-31 22:54:11 +00:00

12.0 integrate filename seasearch (#6412)

* seafevents integrate filename seasearch

* feat: integrate filename seasearch

* control seasearch open and close at seafevents conf

* fix post redundant api

* feat/seasearch: change seasearch control option

* cancel seasearch url verify

* fix bug

* add es search control  field

* delete redundant seafile ai code

* update

---------

Co-authored-by: ‘JoinTyang’ <yangtong1009@163.com>
This commit is contained in:
cir9no
2024-07-25 14:17:24 +08:00
committed by GitHub
parent 113a88d850
commit 24ad6cda3e
14 changed files with 48 additions and 469 deletions

View File

@@ -1,6 +1,6 @@
import React from 'react';
import PropTypes from 'prop-types';
import { isPro, gettext, showLogoutIcon, enableSeafileAI } from '../../utils/constants';
import { isPro, gettext, showLogoutIcon, enableSeasearch, enableElasticsearch } from '../../utils/constants';
import Search from '../search/search';
import AISearch from '../search/ai-search';
import SearchByName from '../search/search-by-name';
@@ -65,7 +65,7 @@ class CommonToolbar extends React.Component {
const placeholder = searchPlaceholder || gettext('Search files');
if (isPro) {
if (enableSeafileAI) {
if (enableSeasearch && !enableElasticsearch) {
return (
<AISearch
repoID={repoID}