ReactMigration: Migrate Loki and Elastic config pages to React (#19979)

This commit is contained in:
Andrej Ocenas
2019-10-25 16:43:20 +02:00
committed by GitHub
parent 771f21ed09
commit 551e24f9f8
26 changed files with 742 additions and 215 deletions

View File

@@ -1,19 +1,15 @@
import { DataSourcePlugin } from '@grafana/ui';
import Datasource from './datasource';
import LokiCheatSheet from './components/LokiCheatSheet';
import LokiQueryField from './components/LokiQueryField';
import LokiQueryEditor from './components/LokiQueryEditor';
import { LokiAnnotationsQueryCtrl } from './LokiAnnotationsQueryCtrl';
import { ConfigEditor } from './components/ConfigEditor';
export class LokiConfigCtrl {
static templateUrl = 'partials/config.html';
}
export {
Datasource,
LokiQueryEditor as QueryEditor,
LokiConfigCtrl as ConfigCtrl,
LokiQueryField as ExploreQueryField,
LokiCheatSheet as ExploreStartPage,
LokiAnnotationsQueryCtrl as AnnotationsQueryCtrl,
};
export const plugin = new DataSourcePlugin(Datasource)
.setQueryEditor(LokiQueryEditor)
.setConfigEditor(ConfigEditor)
.setExploreQueryField(LokiQueryField)
.setExploreStartPage(LokiCheatSheet)
.setAnnotationQueryCtrl(LokiAnnotationsQueryCtrl);