mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
Move QueryPartDef out from angular app (#45386)
This commit is contained in:
parent
6a828a051a
commit
ed5b2e5210
@ -1,7 +1,7 @@
|
|||||||
import { find, map, reduce, remove } from 'lodash';
|
import { find, map, reduce, remove } from 'lodash';
|
||||||
import coreModule from 'app/angular/core_module';
|
import coreModule from 'app/angular/core_module';
|
||||||
import { ThresholdMapper } from './state/ThresholdMapper';
|
import { ThresholdMapper } from './state/ThresholdMapper';
|
||||||
import { QueryPart } from 'app/angular/components/query_part';
|
import { QueryPart } from 'app/features/alerting/state/query_part';
|
||||||
import alertDef from './state/alertDef';
|
import alertDef from './state/alertDef';
|
||||||
import config from 'app/core/config';
|
import config from 'app/core/config';
|
||||||
import appEvents from 'app/core/app_events';
|
import appEvents from 'app/core/app_events';
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { isArray, reduce } from 'lodash';
|
import { isArray, reduce } from 'lodash';
|
||||||
import { QueryPartDef, QueryPart } from 'app/angular/components/query_part';
|
import { QueryPartDef, QueryPart } from 'app/features/alerting/state/query_part';
|
||||||
|
|
||||||
const alertQueryDef = new QueryPartDef({
|
const alertQueryDef = new QueryPartDef({
|
||||||
type: 'query',
|
type: 'query',
|
||||||
|
@ -5,7 +5,7 @@ import InfluxQueryModel from '../../influx_query_model';
|
|||||||
import { unwrap } from './unwrap';
|
import { unwrap } from './unwrap';
|
||||||
import queryPart from '../../query_part';
|
import queryPart from '../../query_part';
|
||||||
import { toSelectableValue } from './toSelectableValue';
|
import { toSelectableValue } from './toSelectableValue';
|
||||||
import { QueryPartDef } from 'app/angular/components/query_part';
|
import { QueryPartDef } from 'app/features/alerting/state/query_part';
|
||||||
|
|
||||||
type Categories = Record<string, QueryPartDef[]>;
|
type Categories = Record<string, QueryPartDef[]>;
|
||||||
|
|
||||||
|
@ -1,5 +1,5 @@
|
|||||||
import { map, clone } from 'lodash';
|
import { map, clone } from 'lodash';
|
||||||
import { QueryPartDef, QueryPart, functionRenderer, suffixRenderer } from 'app/angular/components/query_part';
|
import { QueryPartDef, QueryPart, functionRenderer, suffixRenderer } from 'app/features/alerting/state/query_part';
|
||||||
|
|
||||||
const index: any[] = [];
|
const index: any[] = [];
|
||||||
const categories: any = {
|
const categories: any = {
|
||||||
|
Loading…
Reference in New Issue
Block a user