Add app/lib folder for general client code (instead of app/utils)

This commit is contained in:
Arik Fraimovich 2017-10-26 10:00:36 +03:00
parent 047475562d
commit fb723328d4
19 changed files with 12 additions and 18 deletions

View File

@ -325,6 +325,4 @@ function boxQuartiles(d) {
return [d3.quantile(d, 0.25), d3.quantile(d, 0.5), d3.quantile(d, 0.75)];
}
box.skipAutoLoad = true;
export default box;

View File

@ -333,6 +333,4 @@ function Sankey() {
return sankey;
}
Sankey.skipAutoLoad = true;
export default Sankey;

View File

@ -397,6 +397,4 @@ Sunburst.prototype.remove = function remove() {
angular.element(this.element[0]).empty('.vis-container');
};
Sunburst.skipAutoLoad = true;
export default Sunburst;

View File

@ -1,6 +1,6 @@
import moment from 'moment';
import { Paginator } from '../../../utils';
import { Paginator } from '@/lib/pagination';
import template from './outdated-queries.html';
function OutdatedQueriesCtrl($scope, Events, $http, $timeout) {

View File

@ -1,6 +1,6 @@
import moment from 'moment';
import { Paginator } from '../../../utils';
import { Paginator } from '@/lib/pagination';
import template from './tasks.html';
function TasksCtrl($scope, $location, $http, $timeout, Events) {

View File

@ -1,4 +1,4 @@
import { Paginator } from '../../utils';
import { Paginator } from '@/lib/pagination';
import template from './alerts-list.html';
const stateClass = {

View File

@ -1,6 +1,6 @@
import _ from 'underscore';
import { Paginator } from '../../utils';
import { Paginator } from '@/lib/pagination';
import template from './dashboard-list.html';
import './dashboard-list.css';

View File

@ -1,4 +1,4 @@
import { Paginator } from '../../utils';
import { Paginator } from '@/lib/pagination';
import template from './list.html';
function GroupsCtrl($scope, $uibModal, currentUser, Events, Group) {

View File

@ -1,6 +1,6 @@
import moment from 'moment';
import { LivePaginator } from '../../utils';
import { LivePaginator } from '@/lib/pagination';
import template from './queries-list.html';
class QueriesListCtrl {

View File

@ -1,7 +1,7 @@
import moment from 'moment';
import { isString } from 'underscore';
import { Paginator } from '../../utils';
import { Paginator } from '@/lib/pagination';
import template from './queries-search-results-page.html';
function QuerySearchCtrl($location, $filter, currentUser, Events, Query) {

View File

@ -1,4 +1,4 @@
import { Paginator } from '../../utils';
import { Paginator } from '@/lib/pagination';
import template from './list.html';
function SnippetsCtrl($location, currentUser, Events, QuerySnippet) {

View File

@ -1,4 +1,4 @@
import { Paginator } from '../../utils';
import { Paginator } from '@/lib/pagination';
import template from './list.html';
function UsersCtrl(currentUser, Events, User) {

View File

@ -1,5 +1,5 @@
import d3 from 'd3';
import box from './d3box';
import box from '@/lib/visualizations/d3box';
import editorTemplate from './box-plot-editor.html';
function boxPlotRenderer() {

View File

@ -3,7 +3,7 @@ import _ from 'underscore';
import $ from 'jquery';
import d3 from 'd3';
import d3sankey from './d3sankey';
import d3sankey from '@/lib/visualizations/d3sankey';
import editorTemplate from './sankey-editor.html';
function getConnectedNodes(node) {

View File

@ -1,5 +1,5 @@
import jQuery from 'jquery';
import Sunburst from './sunburst';
import Sunburst from '@/lib/visualizations/sunburst';
import editorTemplate from './sunburst-sequence-editor.html';
function sunburstSequenceRenderer() {