summaryrefslogtreecommitdiff
path: root/app/assets/javascripts/search_settings/constants.js
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/search_settings/constants.js')
-rw-r--r--app/assets/javascripts/search_settings/constants.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/app/assets/javascripts/search_settings/constants.js b/app/assets/javascripts/search_settings/constants.js
new file mode 100644
index 00000000000..499e42854ed
--- /dev/null
+++ b/app/assets/javascripts/search_settings/constants.js
@@ -0,0 +1,11 @@
+// We do not consider these nodes in the search index
+export const EXCLUDED_NODES = ['OPTION'];
+
+// Used to hide the sections that do not match * the search term
+export const HIDE_CLASS = 'gl-display-none';
+
+// used to highlight the text that matches the * search term
+export const HIGHLIGHT_CLASS = 'gl-bg-orange-50';
+
+// How many seconds to wait until the user * stops typing
+export const TYPING_DELAY = 400;