Skip to content

Commit

Permalink
move annotation to data package
Browse files Browse the repository at this point in the history
  • Loading branch information
ryantxu committed Jun 19, 2019
1 parent 9cd4dc7 commit 36ada2b
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 12 deletions.
1 change: 1 addition & 0 deletions packages/grafana-data/src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './navModel';
export * from './annotations';
1 change: 0 additions & 1 deletion packages/grafana-ui/src/types/index.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
export * from './data';
export * from './time';
export * from './panel';
export * from './annotations';
export * from './plugin';
export * from './app';
export * from './datasource';
Expand Down
13 changes: 3 additions & 10 deletions public/app/plugins/panel/annolist/AnnoListEditor.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,9 @@
import React, { PureComponent, ChangeEvent } from 'react';

// Components
import {
PanelEditorProps,
PanelOptionsGroup,
PanelOptionsGrid,
Switch,
FormField,
toIntegerOrUndefined,
toNumberString,
FormLabel,
} from '@grafana/ui';
import { PanelEditorProps, PanelOptionsGroup, PanelOptionsGrid, Switch, FormField, FormLabel } from '@grafana/ui';

import { toIntegerOrUndefined, toNumberString } from '@grafana/data';

// Types
import { AnnoOptions } from './types';
Expand Down
3 changes: 2 additions & 1 deletion public/app/plugins/panel/annolist/AnnoListPanel.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,8 @@ import React, { PureComponent } from 'react';

// Types
import { AnnoOptions } from './types';
import { PanelProps, Annotation, Tooltip, dateTime, DurationUnit } from '@grafana/ui';
import { Annotation } from '@grafana/data';
import { PanelProps, Tooltip, dateTime, DurationUnit } from '@grafana/ui';
import { getBackendSrv } from 'app/core/services/backend_srv';
import { AbstractList } from '@grafana/ui/src/components/List/AbstractList';
import { TagBadge } from 'app/core/components/TagFilter/TagBadge';
Expand Down

0 comments on commit 36ada2b

Please sign in to comment.