InfluxDB: Convert the InfluxQL query editor from Angular to React (#32168)

Co-authored-by: Giordano Ricci <me@giordanoricci.com>
This commit is contained in:
Gábor Farkas
2021-05-11 08:15:44 +02:00
committed by GitHub
parent a469fa8416
commit 3e59ae7e56
33 changed files with 2257 additions and 856 deletions

View File

@@ -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);