Explorar o código

updated how moment is included and removed moment as a dep since it is included

Rick Briganti %!s(int64=12) %!d(string=hai) anos
pai
achega
49e131ce21
Modificáronse 2 ficheiros con 3 adicións e 4 borrados
  1. 0 1
      package.json
  2. 3 3
      src/app/services/graphite/graphiteSrv.js

+ 0 - 1
package.json

@@ -10,7 +10,6 @@
     "url": "http://github.com/torkelo/grafana.git"
   },
   "devDependencies": {
-    "moment": "~2.5.1",
     "rjs-build-analysis": "0.0.3",
     "grunt": "~0.4.0",
     "grunt-ngmin": "0.0.3",

+ 3 - 3
src/app/services/graphite/graphiteSrv.js

@@ -3,13 +3,13 @@ define([
   'underscore',
   'jquery',
   'config',
-  'kbn'
+  'kbn',
+  'moment'
 ],
-function (angular, _, $, config, kbn) {
+function (angular, _, $, config, kbn, moment) {
   'use strict';
 
   var module = angular.module('kibana.services');
-  var moment = require('moment');
 
   module.service('graphiteSrv', function($http, $q, filterSrv) {