From 112a35c08f5034a552a5db2d966fd394f2cdae12 Mon Sep 17 00:00:00 2001 From: Jeremy Jack Date: Mon, 5 Jul 2021 23:04:03 -0500 Subject: [PATCH] Adding a default search provider option, with DuckDuckGo as the default --- .../Settings/OtherSettings/OtherSettings.tsx | 22 ++++++++++++++++++- client/src/interfaces/Forms.ts | 3 ++- client/src/utility/searchParser.ts | 9 ++++---- utils/initialConfig.json | 6 ++++- 4 files changed, 33 insertions(+), 7 deletions(-) diff --git a/client/src/components/Settings/OtherSettings/OtherSettings.tsx b/client/src/components/Settings/OtherSettings/OtherSettings.tsx index e3f3aef..ebfe642 100644 --- a/client/src/components/Settings/OtherSettings/OtherSettings.tsx +++ b/client/src/components/Settings/OtherSettings/OtherSettings.tsx @@ -35,6 +35,7 @@ const OtherSettings = (props: ComponentProps): JSX.Element => { hideApps: 0, hideCategories: 0, hideSearch: 0, + defaultSearchProvider: 'd', useOrdering: 'createdAt', appsSameTab: 0, bookmarksSameTab: 0, @@ -51,6 +52,7 @@ const OtherSettings = (props: ComponentProps): JSX.Element => { hideApps: searchConfig('hideApps', 0), hideCategories: searchConfig('hideCategories', 0), hideSearch: searchConfig('hideSearch', 0), + defaultSearchProvider: searchConfig('defaultSearchProvider', 'd'), useOrdering: searchConfig('useOrdering', 'createdAt'), appsSameTab: searchConfig('appsSameTab', 0), bookmarksSameTab: searchConfig('bookmarksSameTab', 0), @@ -192,6 +194,24 @@ const OtherSettings = (props: ComponentProps): JSX.Element => { + + + +