debian-mirror-gitlab/app/assets/javascripts/search_settings/constants.js

15 lines
523 B
JavaScript
Raw Normal View History

2021-03-08 18:12:59 +05:30
// 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
2021-04-29 21:17:54 +05:30
export const HIGHLIGHT_CLASS = 'gl-bg-orange-100';
2021-03-08 18:12:59 +05:30
2021-11-18 22:05:49 +05:30
// used to remove padding for text that matches the * search term
export const NONE_PADDING_CLASS = 'gl-p-0';
2021-03-08 18:12:59 +05:30
// How many seconds to wait until the user * stops typing
export const TYPING_DELAY = 400;