diff options
author | Vijay Raghavan Aravamudhan <vraravam@users.noreply.github.com> | 2021-05-15 18:34:25 +0530 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-05-15 15:04:25 +0200 |
commit | 8ef5380b941a8f1483ee5d30e61a5086e669b12e (patch) | |
tree | 8e4db26f558722622738c17c21f97187cdb23ea0 /src/config.js | |
parent | Minor refactoring to have consistent command-line invocations. (diff) | |
download | ferdium-app-8ef5380b941a8f1483ee5d30e61a5086e669b12e.tar.gz ferdium-app-8ef5380b941a8f1483ee5d30e61a5086e669b12e.tar.zst ferdium-app-8ef5380b941a8f1483ee5d30e61a5086e669b12e.zip |
Adding DuckDuckGo as an alternative search engine (#1414)
* Adding DuckDuckGo as an alternative search engine.
* Fixing review comments.
* Fixing review comments.
Diffstat (limited to 'src/config.js')
-rw-r--r-- | src/config.js | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/config.js b/src/config.js index b6a052de7..9117089c5 100644 --- a/src/config.js +++ b/src/config.js | |||
@@ -52,6 +52,18 @@ export const NAVIGATION_BAR_BEHAVIOURS = { | |||
52 | never: 'Never show navigation bar', | 52 | never: 'Never show navigation bar', |
53 | }; | 53 | }; |
54 | 54 | ||
55 | export const SEARCH_ENGINE_GOOGLE = 'google'; | ||
56 | export const SEARCH_ENGINE_DDG = 'duckDuckGo'; | ||
57 | export const SEARCH_ENGINE_NAMES = { | ||
58 | [SEARCH_ENGINE_GOOGLE]: 'Google', | ||
59 | [SEARCH_ENGINE_DDG]: 'DuckDuckGo', | ||
60 | }; | ||
61 | |||
62 | export const SEARCH_ENGINE_URLS = { | ||
63 | [SEARCH_ENGINE_GOOGLE]: ({ searchTerm }) => `https://www.google.com/search?q=${searchTerm}`, | ||
64 | [SEARCH_ENGINE_DDG]: ({ searchTerm }) => `https://duckduckgo.com/?q=${searchTerm}`, | ||
65 | }; | ||
66 | |||
55 | export const TODO_APPS = { | 67 | export const TODO_APPS = { |
56 | 'https://todoist.com/app': 'Todoist', | 68 | 'https://todoist.com/app': 'Todoist', |
57 | 'https://app.franztodos.com': 'Franz Todo', | 69 | 'https://app.franztodos.com': 'Franz Todo', |
@@ -135,6 +147,7 @@ export const DEFAULT_APP_SETTINGS = { | |||
135 | sentry: false, | 147 | sentry: false, |
136 | nightly: false, | 148 | nightly: false, |
137 | navigationBarBehaviour: 'custom', | 149 | navigationBarBehaviour: 'custom', |
150 | searchEngine: SEARCH_ENGINE_DDG, | ||
138 | useVerticalStyle: false, | 151 | useVerticalStyle: false, |
139 | alwaysShowWorkspaces: false, | 152 | alwaysShowWorkspaces: false, |
140 | }; | 153 | }; |