Skip to content
Snippets Groups Projects
Commit cc970f1a authored by Tom Robinson's avatar Tom Robinson
Browse files

Migrate some global dependencies to file dependencies

parent 94e44fbc
No related branches found
No related tags found
No related merge requests found
Showing
with 31 additions and 31 deletions
......@@ -2,7 +2,6 @@
/*jslint browser:true*/
/*jslint devel:true */
/*global _*/
/*global $*/
var AuthControllers = angular.module('corvus.auth.controllers', [
'ipCookie',
......@@ -127,4 +126,4 @@ AuthControllers.controller('PasswordReset', ['$scope', '$routeParams', '$locatio
});
};
}]);
\ No newline at end of file
}]);
'use strict';
/*jslint browser:true */
/*global document,$,jQuery,_,google,d3,crossfilter,dc,console,vs*/
/*global document,_,google,console,vs*/
import $ from 'jquery';
import d3 from 'd3';
import crossfilter from 'crossfilter';
import dc from 'dc';
// ---------------------------------------- TODO - Maybe. Lots of these things never worked in the first place. ----------------------------------------
// IMPORTANT
......
'use strict';
/*global setTimeout*/
/*global $*/
/* global React */
/*global setTimeout, React */
import $ from 'jquery';
import { CardRenderer } from './card.charting';
......
'use strict';
/*jslint browser:true*/
/*jslint devel:true */
/*global _*/
/*global $*/
// Global Controllers
var CorvusControllers = angular.module('corvus.controllers', ['corvus.services', 'corvus.navbar.directives']);
......
'use strict';
/*jslint browser:true */
/*jslint devel:true */
/*global _*/
/*global CardRenderer*/
/*global $*/
/*global ace*/
'use strict';
/* Directives */
var CorvusDirectives = angular.module('corvus.directives', []);
CorvusDirectives.directive('deleteConfirm', [function() {
......
'use strict';
/*global OnClickOutside*/
import OnClickOutside from 'react-onclickoutside';
import FormField from './form_field.react';
import Icon from './icon.react';
......
'use strict';
/*global moment, DatePicker*/
/*global window,moment*/
// import compiled version, webpack doesn't seem to be running JSX transforms on node_modules
// css imported in init.css
import DatePicker from 'react-datepicker/react-datepicker';
// DatePicker depedencies :(
window.Tether = require('tether/tether');
window.moment = require('moment');
export default React.createClass({
displayName: 'DateFilter',
......
'use strict';
/*global OnClickOutside*/
import OnClickOutside from 'react-onclickoutside';
// this feels a little silly, but we have this component ONLY so that we can add the OnClickOutside functionality on an
// arbitrary set of html content. I wish we could do that more easily
......
'use strict';
/*global OnClickOutside*/
import OnClickOutside from 'react-onclickoutside';
import FormField from './form_field.react';
......
'use strict';
/*global OnClickOutside*/
import OnClickOutside from 'react-onclickoutside';
import Icon from './icon.react';
import SearchBar from './search_bar.react';
......
......@@ -31,16 +31,5 @@ import 'ace-builds/src-min-noconflict/snippets/sql';
window.React = require('react');
require('react/addons');
// react 3rd-party:
window.OnClickOutside = require('react-onclickoutside');
window.DatePicker = require('react-datepicker/react-datepicker'); // compiled version
window.Tether = require('tether/tether'); // DatePicker depedency
// d3
window.dc = require('dc'); // also imports 'd3' and 'crossfilter' as globals
// misc
// misc:
window._ = require('underscore');
window.$ = require('jquery');
window.moment = require('moment');
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment