mirror of
https://github.com/grafana/grafana.git
synced 2025-08-02 16:42:26 +08:00

* feat(grafana-sql): make sqlqueryeditor lazy loaded * feat(sql-datasources): switch out query editor for lazy query editor * build(postgresql): put tsconfig jsx prop inside compilerOptions * chore(sql-queryeditor): move lazy import out of component
13 lines
538 B
TypeScript
13 lines
538 B
TypeScript
import { DataSourcePlugin } from '@grafana/data';
|
|
import { SQLQuery, SqlQueryEditorLazy } from '@grafana/sql';
|
|
|
|
import { CheatSheet } from './CheatSheet';
|
|
import { MySqlDatasource } from './MySqlDatasource';
|
|
import { ConfigurationEditor } from './configuration/ConfigurationEditor';
|
|
import { MySQLOptions } from './types';
|
|
|
|
export const plugin = new DataSourcePlugin<MySqlDatasource, SQLQuery, MySQLOptions>(MySqlDatasource)
|
|
.setQueryEditor(SqlQueryEditorLazy)
|
|
.setQueryEditorHelp(CheatSheet)
|
|
.setConfigEditor(ConfigurationEditor);
|