Switch from underscore to lodash, #659

This commit is contained in:
Torkel Ödegaard
2014-08-07 14:35:19 +02:00
parent c3a6ae1622
commit 23c9f973cc
58 changed files with 6844 additions and 1312 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
define([
'angular',
'jquery',
'underscore',
'lodash',
'require',
'config',
'bootstrap',
+1 -1
View File
@@ -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';
+2 -5
View File
@@ -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 -1
View File
@@ -1,5 +1,5 @@
define([
'underscore',
'lodash',
'crypto',
],
function (_, crypto) {
+1 -1
View File
@@ -2,7 +2,7 @@ define([
'angular',
'jquery',
'config',
'underscore',
'lodash',
'services/all',
],
function (angular, $, config, _) {
+1 -1
View File
@@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'moment',
'config',
'filesaver'
+1 -1
View File
@@ -1,7 +1,7 @@
define([
'angular',
'config',
'underscore',
'lodash',
],
function (angular, config, _) {
"use strict";
+1 -1
View File
@@ -1,7 +1,7 @@
define([
'angular',
'app',
'underscore'
'lodash'
],
function (angular, app, _) {
'use strict';
+1 -1
View File
@@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'config',
'../services/graphite/gfunc',
'../services/graphite/parser'
+1 -1
View File
@@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'config'
],
function (angular, _, config) {
+1 -1
View File
@@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'kbn'
],
function (angular, _, kbn) {
+1 -1
View File
@@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'config'
],
function (angular, _, config) {
+1 -1
View File
@@ -1,7 +1,7 @@
define([
'angular',
'app',
'underscore'
'lodash'
],
function (angular, app, _) {
'use strict';
+1 -1
View File
@@ -1,7 +1,7 @@
define([
'angular',
'app',
'underscore'
'lodash'
],
function (angular, app, _) {
'use strict';
+1 -1
View File
@@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'config',
'jquery'
],
+1 -1
View File
@@ -1,7 +1,7 @@
define([
'angular',
'app',
'underscore'
'lodash'
],
function (angular, app, _) {
'use strict';
+1 -1
View File
@@ -1,7 +1,7 @@
define([
'angular',
'app',
'underscore',
'lodash',
'jquery',
'../services/graphite/gfunc',
],
+1 -1
View File
@@ -1,7 +1,7 @@
define([
'angular',
'app',
'underscore'
'lodash'
],
function (angular, app, _) {
'use strict';
+1 -1
View File
@@ -1,7 +1,7 @@
define([
'angular',
'app',
'underscore'
'lodash'
],
function (angular, app, _) {
'use strict';
+1 -1
View File
@@ -1,7 +1,7 @@
define([
'angular',
'app',
'underscore'
'lodash'
],
function (angular, app, _) {
'use strict';
+1 -1
View File
@@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'jquery'
],
function (angular, _, $) {
+1 -1
View File
@@ -3,7 +3,7 @@ define([
'jquery',
'kbn',
'moment',
'underscore'
'lodash'
],
function (angular, $, kbn, moment, _) {
'use strict';
+1 -1
View File
@@ -1,7 +1,7 @@
define([
'angular',
'jquery',
'underscore',
'lodash',
],
function (angular, $) {
'use strict';
+1 -1
View File
@@ -1,6 +1,6 @@
define([
'angular',
'underscore'
'lodash'
],
function (angular, _) {
'use strict';
+1 -1
View File
@@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'jquery',
],
function (angular, _, $) {
+1 -1
View File
@@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'jquery',
],
function (angular, _, $) {
+1 -1
View File
@@ -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');
+1 -1
View File
@@ -4,7 +4,7 @@
define([
'angular',
'app',
'underscore'
'lodash'
],
function (angular, app, _) {
'use strict';
+1 -1
View File
@@ -6,7 +6,7 @@
define([
'angular',
'app',
'underscore',
'lodash',
'./editor'
],
function (angular, app, _) {
+1 -1
View File
@@ -6,7 +6,7 @@
define([
'angular',
'app',
'underscore'
'lodash'
],
function (angular, app, _) {
'use strict';
+1 -1
View File
@@ -15,7 +15,7 @@ define([
'angular',
'app',
'jquery',
'underscore',
'lodash',
'kbn',
'moment',
'./timeSeries',
+1 -1
View File
@@ -1,5 +1,5 @@
define([
'underscore',
'lodash',
'kbn'
],
function (_, kbn) {
+1 -1
View File
@@ -13,7 +13,7 @@
define([
'angular',
'app',
'underscore',
'lodash',
'require',
'services/filterSrv'
],
+1 -1
View File
@@ -15,7 +15,7 @@
define([
'angular',
'app',
'underscore',
'lodash',
'moment',
'kbn'
],
+1 -1
View File
@@ -2,7 +2,7 @@ define([
'angular',
'jquery',
'config',
'underscore'
'lodash'
],
function (angular, $, config, _) {
"use strict";
+1 -1
View File
@@ -2,7 +2,7 @@ define([
'angular',
'jquery',
'config',
'underscore',
'lodash',
'kbn',
'moment'
],
+1 -1
View File
@@ -1,6 +1,6 @@
define([
'angular',
'underscore'
'lodash'
],
function (angular, _) {
'use strict';
+1 -1
View File
@@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'moment'
], function (angular, _, moment) {
'use strict';
+1 -1
View File
@@ -2,7 +2,7 @@ define([
'angular',
'jquery',
'kbn',
'underscore',
'lodash',
'../timer',
],
function (angular, $, kbn, _) {
+1 -1
View File
@@ -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 -1
View File
@@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'config',
'kbn'
], function (angular, _, config, kbn) {
+1 -1
View File
@@ -1,5 +1,5 @@
define([
'underscore'
'lodash'
],
function (_) {
'use strict';
@@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'jquery',
'config',
'kbn',
+1 -1
View File
@@ -1,5 +1,5 @@
define([
'underscore'
'lodash'
], function(_) {
'use strict';
+1 -1
View File
@@ -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 -1
View File
@@ -1,6 +1,6 @@
define([
'angular',
'underscore'
'lodash'
],
function (angular, _) {
'use strict';
+1 -1
View File
@@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'jquery',
],
function (angular, _, $) {
+1 -1
View File
@@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'kbn'
],
function (angular, _, kbn) {
+1 -1
View File
@@ -1,6 +1,6 @@
define([
'angular',
'underscore'
'lodash'
],
function (angular, _) {
'use strict';
+1 -1
View File
@@ -1,6 +1,6 @@
define([
'angular',
'underscore',
'lodash',
'config',
],
function(angular, _, config) {
+2 -2
View File
@@ -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();
}));
+2 -6
View File
@@ -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
View File
File diff suppressed because it is too large Load Diff
-1246
View File
File diff suppressed because it is too large Load Diff