chore(frontend): fix jquery imports
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
import $ from 'jquery';
|
import 'jquery';
|
||||||
import { PureComponent } from 'react';
|
import { PureComponent } from 'react';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
// Libraries
|
// Libraries
|
||||||
import $ from 'jquery';
|
import 'jquery';
|
||||||
import { uniqBy } from 'lodash';
|
import { uniqBy } from 'lodash';
|
||||||
import { PureComponent } from 'react';
|
import { PureComponent } from 'react';
|
||||||
import * as React from 'react';
|
import * as React from 'react';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import angular from 'angular';
|
import angular from 'angular';
|
||||||
import $ from 'jquery';
|
import 'jquery';
|
||||||
|
|
||||||
import coreModule from './core_module';
|
import coreModule from './core_module';
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import angular from 'angular';
|
import angular from 'angular';
|
||||||
import $ from 'jquery';
|
import 'jquery';
|
||||||
import { isFunction } from 'lodash';
|
import { isFunction } from 'lodash';
|
||||||
|
|
||||||
import coreModule from './core_module';
|
import coreModule from './core_module';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import $ from 'jquery';
|
import 'jquery';
|
||||||
import { debounce, each, map, partial, escape, unescape } from 'lodash';
|
import { debounce, each, map, partial, escape, unescape } from 'lodash';
|
||||||
|
|
||||||
import coreModule from 'app/angular/core_module';
|
import coreModule from 'app/angular/core_module';
|
||||||
|
|||||||
@@ -1,6 +1,6 @@
|
|||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
import baron from 'baron';
|
import baron from 'baron';
|
||||||
import $ from 'jquery';
|
import 'jquery';
|
||||||
|
|
||||||
import coreModule from 'app/angular/core_module';
|
import coreModule from 'app/angular/core_module';
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import $ from 'jquery';
|
import 'jquery';
|
||||||
import { debounce, each, indexOf, map, partial, escape, unescape } from 'lodash';
|
import { debounce, each, indexOf, map, partial, escape, unescape } from 'lodash';
|
||||||
|
|
||||||
import coreModule from 'app/angular/core_module';
|
import coreModule from 'app/angular/core_module';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import $ from 'jquery';
|
import 'jquery';
|
||||||
import { each, reduce } from 'lodash';
|
import { each, reduce } from 'lodash';
|
||||||
|
|
||||||
import coreModule from './core_module';
|
import coreModule from './core_module';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import angular from 'angular';
|
import angular from 'angular';
|
||||||
import $ from 'jquery';
|
import 'jquery';
|
||||||
import { extend } from 'lodash';
|
import { extend } from 'lodash';
|
||||||
|
|
||||||
const $win = $(window);
|
const $win = $(window);
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import $ from 'jquery';
|
import 'jquery';
|
||||||
import _, { isFunction } from 'lodash'; // eslint-disable-line lodash/import-scope
|
import _, { isFunction } from 'lodash'; // eslint-disable-line lodash/import-scope
|
||||||
import moment from 'moment'; // eslint-disable-line no-restricted-imports
|
import moment from 'moment'; // eslint-disable-line no-restricted-imports
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import $ from 'jquery';
|
import 'jquery';
|
||||||
import { isString, escape } from 'lodash';
|
import { isString, escape } from 'lodash';
|
||||||
|
|
||||||
import coreModule from 'app/angular/core_module';
|
import coreModule from 'app/angular/core_module';
|
||||||
|
|||||||
@@ -8,7 +8,7 @@ import 'vendor/flot/jquery.flot.crosshair';
|
|||||||
import 'vendor/flot/jquery.flot.dashes';
|
import 'vendor/flot/jquery.flot.dashes';
|
||||||
import './jquery.flot.events';
|
import './jquery.flot.events';
|
||||||
|
|
||||||
import $ from 'jquery';
|
import 'jquery';
|
||||||
import { clone, find, flatten, isUndefined, map, max as _max, min as _min, sortBy as _sortBy, toNumber } from 'lodash';
|
import { clone, find, flatten, isUndefined, map, max as _max, min as _min, sortBy as _sortBy, toNumber } from 'lodash';
|
||||||
import { createElement } from 'react';
|
import { createElement } from 'react';
|
||||||
import { createRoot, Root } from 'react-dom/client';
|
import { createRoot, Root } from 'react-dom/client';
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import $ from 'jquery';
|
import 'jquery';
|
||||||
|
|
||||||
import {
|
import {
|
||||||
textUtil,
|
textUtil,
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import $ from 'jquery';
|
import 'jquery';
|
||||||
import { partition, each } from 'lodash';
|
import { partition, each } from 'lodash';
|
||||||
//@ts-ignore
|
//@ts-ignore
|
||||||
import Drop from 'tether-drop';
|
import Drop from 'tether-drop';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import 'vendor/flot/jquery.flot';
|
import 'vendor/flot/jquery.flot';
|
||||||
import $ from 'jquery';
|
import 'jquery';
|
||||||
import { isNumber } from 'lodash';
|
import { isNumber } from 'lodash';
|
||||||
|
|
||||||
import { PanelCtrl } from 'app/angular/panel/panel_ctrl';
|
import { PanelCtrl } from 'app/angular/panel/panel_ctrl';
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { IScope, IAngularStatic } from 'angular';
|
import { IScope, IAngularStatic } from 'angular';
|
||||||
import $ from 'jquery';
|
import 'jquery';
|
||||||
import { defaults } from 'lodash';
|
import { defaults } from 'lodash';
|
||||||
|
|
||||||
import { isTableData, PanelEvents, PanelPlugin } from '@grafana/data';
|
import { isTableData, PanelEvents, PanelPlugin } from '@grafana/data';
|
||||||
|
|||||||
Reference in New Issue
Block a user