Enhancement: default to title/content search, allow choosing full search link from global search (#6805)

This commit is contained in:
shamoon
2024-05-22 16:19:46 -07:00
committed by GitHub
parent 8abb0cd75d
commit 719f76060b
8 changed files with 191 additions and 101 deletions

View File

@@ -12,6 +12,11 @@ export interface UiSetting {
default: any
}
export enum GlobalSearchType {
ADVANCED = 'advanced',
TITLE_CONTENT = 'title-content',
}
export const SETTINGS_KEYS = {
LANGUAGE: 'language',
APP_LOGO: 'app_logo',
@@ -57,6 +62,7 @@ export const SETTINGS_KEYS = {
DOCUMENT_EDITING_REMOVE_INBOX_TAGS:
'general-settings:document-editing:remove-inbox-tags',
SEARCH_DB_ONLY: 'general-settings:search:db-only',
SEARCH_FULL_TYPE: 'general-settings:search:more-link',
}
export const SETTINGS: UiSetting[] = [
@@ -225,4 +231,9 @@ export const SETTINGS: UiSetting[] = [
type: 'boolean',
default: false,
},
{
key: SETTINGS_KEYS.SEARCH_FULL_TYPE,
type: 'string',
default: GlobalSearchType.TITLE_CONTENT,
},
]