mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
InfluxDB: Convert the InfluxQL query editor from Angular to React (#32168)
Co-authored-by: Giordano Ricci <me@giordanoricci.com>
This commit is contained in:
@@ -1,23 +1,17 @@
|
||||
import InfluxDatasource from './datasource';
|
||||
import { InfluxQueryCtrl } from './query_ctrl';
|
||||
import { QueryEditor } from './components/QueryEditor';
|
||||
import InfluxStartPage from './components/InfluxStartPage';
|
||||
import { DataSourcePlugin } from '@grafana/data';
|
||||
import ConfigEditor from './components/ConfigEditor';
|
||||
import VariableQueryEditor from './components/VariableQueryEditor';
|
||||
|
||||
// This adds a directive that is used in the query editor
|
||||
import './components/FluxQueryEditor';
|
||||
|
||||
// This adds a directive that is used in the query editor
|
||||
import './registerRawInfluxQLEditor';
|
||||
|
||||
class InfluxAnnotationsQueryCtrl {
|
||||
static templateUrl = 'partials/annotations.editor.html';
|
||||
}
|
||||
|
||||
export const plugin = new DataSourcePlugin(InfluxDatasource)
|
||||
.setConfigEditor(ConfigEditor)
|
||||
.setQueryCtrl(InfluxQueryCtrl)
|
||||
.setQueryEditor(QueryEditor)
|
||||
.setAnnotationQueryCtrl(InfluxAnnotationsQueryCtrl)
|
||||
.setVariableQueryEditor(VariableQueryEditor)
|
||||
.setQueryEditorHelp(InfluxStartPage);
|
||||
|
||||
Reference in New Issue
Block a user