gitlab-org--gitlab-foss/app/assets/javascripts/droplab/constants.js

10 lines
413 B
JavaScript
Raw Normal View History

2017-04-07 09:57:03 -04:00
const DATA_TRIGGER = 'data-dropdown-trigger';
const DATA_DROPDOWN = 'data-dropdown';
const SELECTED_CLASS = 'droplab-item-selected';
const ACTIVE_CLASS = 'droplab-item-active';
const IGNORE_CLASS = 'droplab-item-ignore';
2017-04-27 12:06:55 -04:00
// Matches `{{anything}}` and `{{ everything }}`.
const TEMPLATE_REGEX = /\{\{(.+?)\}\}/g;
2017-04-07 09:57:03 -04:00
export { DATA_TRIGGER, DATA_DROPDOWN, SELECTED_CLASS, ACTIVE_CLASS, TEMPLATE_REGEX, IGNORE_CLASS };