Iftekharul Islam | 99d199f | 2017-03-24 15:28:25 -0500 | [diff] [blame] | 1 | /** |
| 2 | * A module with constants for the REST API |
| 3 | * |
| 4 | * @module app/constants |
| 5 | * @exports app/constants |
| 6 | * |
Iftekharul Islam | 99d199f | 2017-03-24 15:28:25 -0500 | [diff] [blame] | 7 | */ |
| 8 | |
Andrew Geissler | ba5e3f3 | 2018-05-24 10:58:00 -0700 | [diff] [blame] | 9 | window.angular && (function(angular) { |
| 10 | 'use strict'; |
Iftekharul Islam | 99d199f | 2017-03-24 15:28:25 -0500 | [diff] [blame] | 11 | |
Andrew Geissler | d27bb13 | 2018-05-24 11:07:27 -0700 | [diff] [blame^] | 12 | angular.module('app.constants').constant('EnvironmentConstants', { |
| 13 | 'inDevelopmentMode': true, |
| 14 | 'RestConstants': {}, |
| 15 | FLASH_MESSAGE: { |
| 16 | duration: 2000, |
| 17 | classes: { |
| 18 | warning: 'message-warning', |
| 19 | info: 'message-info', |
| 20 | error: 'message-error', |
| 21 | success: 'message-success' |
Andrew Geissler | ba5e3f3 | 2018-05-24 10:58:00 -0700 | [diff] [blame] | 22 | } |
Andrew Geissler | d27bb13 | 2018-05-24 11:07:27 -0700 | [diff] [blame^] | 23 | } |
| 24 | }); |
Iftekharul Islam | 99d199f | 2017-03-24 15:28:25 -0500 | [diff] [blame] | 25 | |
| 26 | })(window.angular); |