Switch from underscore to lodash, #659

pull/669/head
Torkel Ödegaard 11 years ago
parent c3a6ae1622
commit 23c9f973cc
  1. 2
      src/app/app.js
  2. 2
      src/app/components/kbn.js
  3. 2
      src/app/components/lodash.extended.js
  4. 7
      src/app/components/require.config.js
  5. 2
      src/app/components/settings.js
  6. 2
      src/app/controllers/dash.js
  7. 2
      src/app/controllers/dashLoader.js
  8. 2
      src/app/controllers/grafanaCtrl.js
  9. 2
      src/app/controllers/graphiteImport.js
  10. 2
      src/app/controllers/graphiteTarget.js
  11. 2
      src/app/controllers/metricKeys.js
  12. 2
      src/app/controllers/opentsdbTargetCtrl.js
  13. 2
      src/app/controllers/playlistCtrl.js
  14. 2
      src/app/controllers/pulldown.js
  15. 2
      src/app/controllers/row.js
  16. 2
      src/app/controllers/search.js
  17. 2
      src/app/controllers/submenuCtrl.js
  18. 2
      src/app/directives/addGraphiteFunc.js
  19. 2
      src/app/directives/addPanel.js
  20. 2
      src/app/directives/arrayJoin.js
  21. 2
      src/app/directives/bodyClass.js
  22. 2
      src/app/directives/configModal.js
  23. 2
      src/app/directives/grafanaGraph.js
  24. 2
      src/app/directives/grafanaPanel.js
  25. 2
      src/app/directives/grafanaSimplePanel.js
  26. 2
      src/app/directives/graphiteFuncEditor.js
  27. 2
      src/app/directives/influxdbFuncEditor.js
  28. 2
      src/app/filters/all.js
  29. 2
      src/app/panels/annotations/editor.js
  30. 2
      src/app/panels/annotations/module.js
  31. 2
      src/app/panels/filtering/module.js
  32. 2
      src/app/panels/graph/module.js
  33. 2
      src/app/panels/graph/timeSeries.js
  34. 2
      src/app/panels/text/module.js
  35. 2
      src/app/panels/timepicker/module.js
  36. 2
      src/app/routes/dashboard-from-file.js
  37. 2
      src/app/routes/dashboard-from-script.js
  38. 2
      src/app/services/alertSrv.js
  39. 2
      src/app/services/annotationsSrv.js
  40. 2
      src/app/services/dashboard/dashboardModel.js
  41. 2
      src/app/services/datasourceSrv.js
  42. 2
      src/app/services/elasticsearch/es-datasource.js
  43. 2
      src/app/services/filterSrv.js
  44. 2
      src/app/services/graphite/gfunc.js
  45. 2
      src/app/services/graphite/graphiteDatasource.js
  46. 2
      src/app/services/graphite/lexer.js
  47. 2
      src/app/services/influxdb/influxSeries.js
  48. 2
      src/app/services/influxdb/influxdbDatasource.js
  49. 2
      src/app/services/opentsdb/opentsdbDatasource.js
  50. 2
      src/app/services/panelMove.js
  51. 2
      src/app/services/panelSrv.js
  52. 2
      src/app/services/playlistSrv.js
  53. 2
      src/app/services/timer.js
  54. 2
      src/app/services/unsavedChangesSrv.js
  55. 4
      src/test/specs/filterSrv-specs.js
  56. 8
      src/test/test-main.js
  57. 6785
      src/vendor/lodash.js
  58. 1246
      src/vendor/underscore.js

@ -4,7 +4,7 @@
define([
'angular',
'jquery',
'underscore',
'lodash',
'require',
'config',
'bootstrap',

@ -1,4 +1,4 @@
define(['jquery','underscore','moment'],
define(['jquery','lodash','moment'],
function($, _, moment) {
'use strict';

@ -1,5 +1,5 @@
define([
'underscore-src'
'lodash-src'
],
function () {
'use strict';

@ -23,8 +23,8 @@ require.config({
crypto: '../vendor/crypto.min',
spectrum: '../vendor/spectrum',
underscore: 'components/underscore.extended',
'underscore-src': '../vendor/underscore',
lodash: 'components/lodash.extended',
'lodash-src': '../vendor/lodash',
bootstrap: '../vendor/bootstrap/bootstrap',
jquery: '../vendor/jquery/jquery-1.8.0',
@ -46,9 +46,6 @@ require.config({
},
shim: {
underscore: {
exports: '_'
},
spectrum: {
deps: ['jquery']

@ -1,5 +1,5 @@
define([
'underscore',
'lodash',
'crypto',
],
function (_, crypto) {

@ -2,7 +2,7 @@ define([
'angular',
'jquery',
'config',
'underscore',
'lodash',
'services/all',
],
function (angular, $, config, _) {

@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'moment',
'config',
'filesaver'

@ -1,7 +1,7 @@
define([
'angular',
'config',
'underscore',
'lodash',
],
function (angular, config, _) {
"use strict";

@ -1,7 +1,7 @@
define([
'angular',
'app',
'underscore'
'lodash'
],
function (angular, app, _) {
'use strict';

@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'config',
'../services/graphite/gfunc',
'../services/graphite/parser'

@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'config'
],
function (angular, _, config) {

@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'kbn'
],
function (angular, _, kbn) {

@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'config'
],
function (angular, _, config) {

@ -1,7 +1,7 @@
define([
'angular',
'app',
'underscore'
'lodash'
],
function (angular, app, _) {
'use strict';

@ -1,7 +1,7 @@
define([
'angular',
'app',
'underscore'
'lodash'
],
function (angular, app, _) {
'use strict';

@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'config',
'jquery'
],

@ -1,7 +1,7 @@
define([
'angular',
'app',
'underscore'
'lodash'
],
function (angular, app, _) {
'use strict';

@ -1,7 +1,7 @@
define([
'angular',
'app',
'underscore',
'lodash',
'jquery',
'../services/graphite/gfunc',
],

@ -1,7 +1,7 @@
define([
'angular',
'app',
'underscore'
'lodash'
],
function (angular, app, _) {
'use strict';

@ -1,7 +1,7 @@
define([
'angular',
'app',
'underscore'
'lodash'
],
function (angular, app, _) {
'use strict';

@ -1,7 +1,7 @@
define([
'angular',
'app',
'underscore'
'lodash'
],
function (angular, app, _) {
'use strict';

@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'jquery'
],
function (angular, _, $) {

@ -3,7 +3,7 @@ define([
'jquery',
'kbn',
'moment',
'underscore'
'lodash'
],
function (angular, $, kbn, moment, _) {
'use strict';

@ -1,7 +1,7 @@
define([
'angular',
'jquery',
'underscore',
'lodash',
],
function (angular, $) {
'use strict';

@ -1,6 +1,6 @@
define([
'angular',
'underscore'
'lodash'
],
function (angular, _) {
'use strict';

@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'jquery',
],
function (angular, _, $) {

@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'jquery',
],
function (angular, _, $) {

@ -1,4 +1,4 @@
define(['angular', 'jquery', 'underscore', 'moment'], function (angular, $, _, moment) {
define(['angular', 'jquery', 'lodash', 'moment'], function (angular, $, _, moment) {
'use strict';
var module = angular.module('grafana.filters');

@ -4,7 +4,7 @@
define([
'angular',
'app',
'underscore'
'lodash'
],
function (angular, app, _) {
'use strict';

@ -6,7 +6,7 @@
define([
'angular',
'app',
'underscore',
'lodash',
'./editor'
],
function (angular, app, _) {

@ -6,7 +6,7 @@
define([
'angular',
'app',
'underscore'
'lodash'
],
function (angular, app, _) {
'use strict';

@ -15,7 +15,7 @@ define([
'angular',
'app',
'jquery',
'underscore',
'lodash',
'kbn',
'moment',
'./timeSeries',

@ -1,5 +1,5 @@
define([
'underscore',
'lodash',
'kbn'
],
function (_, kbn) {

@ -13,7 +13,7 @@
define([
'angular',
'app',
'underscore',
'lodash',
'require',
'services/filterSrv'
],

@ -15,7 +15,7 @@
define([
'angular',
'app',
'underscore',
'lodash',
'moment',
'kbn'
],

@ -2,7 +2,7 @@ define([
'angular',
'jquery',
'config',
'underscore'
'lodash'
],
function (angular, $, config, _) {
"use strict";

@ -2,7 +2,7 @@ define([
'angular',
'jquery',
'config',
'underscore',
'lodash',
'kbn',
'moment'
],

@ -1,6 +1,6 @@
define([
'angular',
'underscore'
'lodash'
],
function (angular, _) {
'use strict';

@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'moment'
], function (angular, _, moment) {
'use strict';

@ -2,7 +2,7 @@ define([
'angular',
'jquery',
'kbn',
'underscore',
'lodash',
'../timer',
],
function (angular, $, kbn, _) {

@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'config',
'./graphite/graphiteDatasource',
'./influxdb/influxdbDatasource',

@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'jquery',
'config',
'kbn',

@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'config',
'kbn'
], function (angular, _, config, kbn) {

@ -1,5 +1,5 @@
define([
'underscore'
'lodash'
],
function (_) {
'use strict';

@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'jquery',
'config',
'kbn',

@ -1,5 +1,5 @@
define([
'underscore'
'lodash'
], function(_) {
'use strict';

@ -1,5 +1,5 @@
define([
'underscore',
'lodash',
],
function (_) {
'use strict';

@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'kbn',
'./influxSeries'
],

@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'kbn'
],
function (angular, _, kbn) {

@ -1,6 +1,6 @@
define([
'angular',
'underscore'
'lodash'
],
function (angular, _) {
'use strict';

@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'jquery',
],
function (angular, _, $) {

@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'kbn'
],
function (angular, _, kbn) {

@ -1,6 +1,6 @@
define([
'angular',
'underscore'
'lodash'
],
function (angular, _) {
'use strict';

@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'config',
],
function(angular, _, config) {

@ -1,6 +1,6 @@
define([
'mocks/dashboard-mock',
'underscore',
'lodash',
'services/filterSrv'
], function(dashboardMock, _) {
'use strict';
@ -10,7 +10,7 @@ define([
var _dashboard;
beforeEach(module('grafana.services'));
beforeEach(module(function(){
beforeEach(module(function() {
_dashboard = dashboardMock.create();
}));

@ -8,8 +8,8 @@ require.config({
kbn: 'components/kbn',
settings: 'components/settings',
underscore: 'components/underscore.extended',
'underscore-src': '../vendor/underscore',
lodash: 'components/lodash.extended',
'lodash-src': '../vendor/lodash',
moment: '../vendor/moment',
chromath: '../vendor/chromath',
@ -47,10 +47,6 @@ require.config({
},
shim: {
underscore: {
exports: '_'
},
bootstrap: {
deps: ['jquery']
},

6785
src/vendor/lodash.js vendored

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff
Loading…
Cancel
Save