shims.js 737 B

123456789101112131415161718192021222324252627282930313233343536
  1. 'use strict';
  2. angular.module('underscore', []).factory('_', function($window) {
  3. return $window._;
  4. });
  5. angular.module('jquery', []).factory('$', function($window) {
  6. return $window.$;
  7. });
  8. angular.module('vg', []).factory('vg', function($window) {
  9. return $window.vg;
  10. });
  11. angular.module('moment', []).factory('moment', function($window) {
  12. $window.moment.lang('en', {
  13. relativeTime : {
  14. future: 'Expires in %s',
  15. past: 'Expired %s ago',
  16. s: 'seconds',
  17. m: 'a minute',
  18. mm: '%d minutes',
  19. h: 'an hour',
  20. hh: '%d hours',
  21. d: 'a day',
  22. dd: '%d days',
  23. M: 'a month',
  24. MM: '%d months',
  25. y: 'a year',
  26. yy: '%d years'
  27. }
  28. });
  29. return $window.moment;
  30. });