mirror of
https://github.com/apache/superset.git
synced 2026-04-25 19:14:27 +00:00
Bumping the JS libs to fix the build (#2616)
* bumping the js libs * New linting rules * More linting * More * Done linting * npm >=4.5.0 * Bumping node * Tweaking the build * Fixing the damn build * Fixing the apps
This commit is contained in:
committed by
GitHub
parent
a2b30f35fc
commit
366ecefbaa
@@ -1,5 +1,5 @@
|
||||
import $ from 'jquery';
|
||||
const d3 = require('d3');
|
||||
import d3 from 'd3';
|
||||
|
||||
// Color related utility functions go in this object
|
||||
export const bnbColors = [
|
||||
|
||||
@@ -9,7 +9,7 @@ function UTC(dttm) {
|
||||
dttm.getUTCDate(),
|
||||
dttm.getUTCHours(),
|
||||
dttm.getUTCMinutes(),
|
||||
dttm.getUTCSeconds()
|
||||
dttm.getUTCSeconds(),
|
||||
);
|
||||
}
|
||||
export const tickMultiFormat = d3.time.format.multi([
|
||||
|
||||
@@ -1,12 +1,12 @@
|
||||
import $ from 'jquery';
|
||||
const utils = require('./utils');
|
||||
// vis sources
|
||||
/* eslint camel-case: 0 */
|
||||
import $ from 'jquery';
|
||||
import Mustache from 'mustache';
|
||||
import vizMap from '../../visualizations/main.js';
|
||||
import vizMap from '../../visualizations/main';
|
||||
import { getExploreUrl } from '../explorev2/exploreUtils';
|
||||
import { applyDefaultFormData } from '../explorev2/stores/store';
|
||||
|
||||
const utils = require('./utils');
|
||||
|
||||
/* eslint wrap-iife: 0*/
|
||||
const px = function () {
|
||||
let slice;
|
||||
@@ -217,14 +217,14 @@ const px = function () {
|
||||
timer = setInterval(stopwatch, 10);
|
||||
$('#timer').removeClass('label-danger label-success');
|
||||
$('#timer').addClass('label-warning');
|
||||
$.getJSON(this.jsonEndpoint(), queryResponse => {
|
||||
$.getJSON(this.jsonEndpoint(), (queryResponse) => {
|
||||
try {
|
||||
vizMap[formData.viz_type](this, queryResponse);
|
||||
this.done(queryResponse);
|
||||
} catch (e) {
|
||||
this.error('An error occurred while rendering the visualization: ' + e);
|
||||
}
|
||||
}).fail(err => {
|
||||
}).fail((err) => {
|
||||
this.error(err.responseText, err);
|
||||
});
|
||||
},
|
||||
|
||||
@@ -143,8 +143,8 @@ export function formatSelectOptionsForRange(start, end) {
|
||||
}
|
||||
|
||||
export function formatSelectOptions(options) {
|
||||
return options.map((opt) =>
|
||||
[opt, opt.toString()]
|
||||
return options.map(opt =>
|
||||
[opt, opt.toString()],
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user