github.com/matm/etcd@v0.3.1-0.20140328024009-5b4a473f1453/mod/dashboard/app/scripts/shims.js (about)

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