From 397466521ef29209b234bdc018b7fc6b5b8454aa Mon Sep 17 00:00:00 2001 From: kushalpandya Date: Mon, 4 Sep 2017 21:16:30 +0530 Subject: [PATCH] Projects Dropdown App Global Constants --- app/assets/javascripts/projects_dropdown/constants.js | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 app/assets/javascripts/projects_dropdown/constants.js diff --git a/app/assets/javascripts/projects_dropdown/constants.js b/app/assets/javascripts/projects_dropdown/constants.js new file mode 100644 index 00000000000..8937097184c --- /dev/null +++ b/app/assets/javascripts/projects_dropdown/constants.js @@ -0,0 +1,10 @@ +export const FREQUENT_PROJECTS = { + MAX_COUNT: 20, + LIST_COUNT_DESKTOP: 5, + LIST_COUNT_MOBILE: 3, + ELIGIBLE_FREQUENCY: 3, +}; + +export const HOUR_IN_MS = 3600000; + +export const STORAGE_KEY = 'frequent-projects';