Forráskód Böngészése

created visualizations folder

Torkel Ödegaard 7 éve
szülő
commit
2dfa3269c3

+ 0 - 1
packages/grafana-ui/src/components/index.ts

@@ -1,2 +1 @@
 export { DeleteButton } from './DeleteButton/DeleteButton';
-export { Graph } from './Graph/Graph';

+ 1 - 0
packages/grafana-ui/src/index.ts

@@ -1,3 +1,4 @@
 export * from './components';
+export * from './visualizations';
 export * from './types';
 export * from './utils';

+ 0 - 0
packages/grafana-ui/src/components/Graph/Graph.tsx → packages/grafana-ui/src/visualizations/Graph/Graph.tsx


+ 1 - 0
packages/grafana-ui/src/visualizations/index.ts

@@ -0,0 +1 @@
+export { Graph } from './Graph/Graph';

+ 2 - 8
public/app/plugins/panel/graph2/GraphPanel.tsx

@@ -3,14 +3,8 @@ import _ from 'lodash';
 import React, { PureComponent } from 'react';
 import colors from 'app/core/utils/colors';
 
-// Components
-import { Graph } from '@grafana/ui';
-
-// Services & Utils
-import { processTimeSeries } from '@grafana/ui';
-
-// Types
-import { PanelProps, NullValueMode } from '@grafana/ui';
+// Components & Types
+import { Graph, PanelProps, NullValueMode, processTimeSeries } from '@grafana/ui';
 import { Options } from './types';
 
 interface Props extends PanelProps<Options> {}