Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkushalpandya <kushal@gitlab.com>2017-09-04 18:46:30 +0300
committerkushalpandya <kushal@gitlab.com>2017-09-05 10:41:20 +0300
commit397466521ef29209b234bdc018b7fc6b5b8454aa (patch)
tree103d5132bde43d6f8bdce817a2da0fa8f12c6e7d /app/assets/javascripts/projects_dropdown
parent536ce80129d52ba3ca5d0b532cdc343f654aaec3 (diff)
Projects Dropdown App Global Constants
Diffstat (limited to 'app/assets/javascripts/projects_dropdown')
-rw-r--r--app/assets/javascripts/projects_dropdown/constants.js10
1 files changed, 10 insertions, 0 deletions
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';