mirror of
https://github.com/grafana/grafana.git
synced 2025-02-16 18:34:52 -06:00
* Adding simplified version of query editor based on app flag. * cleaned up the absolute time range. * changing placeholder text. * updated snapshot. * added some tests. * adding loki query editor tests. * updating snapshots.
16 lines
692 B
TypeScript
16 lines
692 B
TypeScript
import { DataSourcePlugin } from '@grafana/data';
|
|
import Datasource from './datasource';
|
|
|
|
import LokiCheatSheet from './components/LokiCheatSheet';
|
|
import LokiExploreQueryEditor from './components/LokiExploreQueryEditor';
|
|
import LokiQueryEditorByApp from './components/LokiQueryEditorByApp';
|
|
import { LokiAnnotationsQueryCtrl } from './LokiAnnotationsQueryCtrl';
|
|
import { ConfigEditor } from './configuration/ConfigEditor';
|
|
|
|
export const plugin = new DataSourcePlugin(Datasource)
|
|
.setQueryEditor(LokiQueryEditorByApp)
|
|
.setConfigEditor(ConfigEditor)
|
|
.setExploreQueryField(LokiExploreQueryEditor)
|
|
.setQueryEditorHelp(LokiCheatSheet)
|
|
.setAnnotationQueryCtrl(LokiAnnotationsQueryCtrl);
|