Move QueryPartDef out from angular app (#45386)

This commit is contained in:
Torkel Ödegaard 2022-02-15 14:20:50 +01:00 committed by GitHub
parent 6a828a051a
commit ed5b2e5210
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 4 additions and 4 deletions

View File

@ -1,7 +1,7 @@
import { find, map, reduce, remove } from 'lodash';
import coreModule from 'app/angular/core_module';
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 config from 'app/core/config';
import appEvents from 'app/core/app_events';

View File

@ -1,5 +1,5 @@
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({
type: 'query',

View File

@ -5,7 +5,7 @@ import InfluxQueryModel from '../../influx_query_model';
import { unwrap } from './unwrap';
import queryPart from '../../query_part';
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[]>;

View File

@ -1,5 +1,5 @@
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 categories: any = {