mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
XYChart: Refactor to new model (behind feature toggle) (#82499)
Co-authored-by: drew08t <drew08@gmail.com> Co-authored-by: Ihor Yeromin <yeryomin.igor@gmail.com>
This commit is contained in:
@@ -26,6 +26,7 @@ const mssqlPlugin = async () =>
|
||||
const alertmanagerPlugin = async () =>
|
||||
await import(/* webpackChunkName: "alertmanagerPlugin" */ 'app/plugins/datasource/alertmanager/module');
|
||||
|
||||
import { config } from '@grafana/runtime';
|
||||
import * as alertListPanel from 'app/plugins/panel/alertlist/module';
|
||||
import * as annoListPanel from 'app/plugins/panel/annolist/module';
|
||||
import * as barChartPanel from 'app/plugins/panel/barchart/module';
|
||||
@@ -51,12 +52,18 @@ import * as timeseriesPanel from 'app/plugins/panel/timeseries/module';
|
||||
import * as tracesPanel from 'app/plugins/panel/traces/module';
|
||||
import * as trendPanel from 'app/plugins/panel/trend/module';
|
||||
import * as welcomeBanner from 'app/plugins/panel/welcome/module';
|
||||
import * as xyChartPanel from 'app/plugins/panel/xychart/module';
|
||||
|
||||
// Async loaded panels
|
||||
const geomapPanel = async () => await import(/* webpackChunkName: "geomapPanel" */ 'app/plugins/panel/geomap/module');
|
||||
const canvasPanel = async () => await import(/* webpackChunkName: "canvasPanel" */ 'app/plugins/panel/canvas/module');
|
||||
const graphPanel = async () => await import(/* webpackChunkName: "graphPlugin" */ 'app/plugins/panel/graph/module');
|
||||
const xychartPanel = async () => {
|
||||
if (config.featureToggles.autoMigrateXYChartPanel) {
|
||||
return await import(/* webpackChunkName: "xychart2" */ 'app/plugins/panel/xychart/v2/module');
|
||||
} else {
|
||||
return await import(/* webpackChunkName: "xychart" */ 'app/plugins/panel/xychart/module');
|
||||
}
|
||||
};
|
||||
const heatmapPanel = async () =>
|
||||
await import(/* webpackChunkName: "heatmapPanel" */ 'app/plugins/panel/heatmap/module');
|
||||
const tableOldPanel = async () =>
|
||||
@@ -89,7 +96,7 @@ const builtInPlugins: Record<string, System.Module | (() => Promise<System.Modul
|
||||
'core:plugin/status-history': statusHistoryPanel,
|
||||
'core:plugin/candlestick': candlestickPanel,
|
||||
'core:plugin/graph': graphPanel,
|
||||
'core:plugin/xychart': xyChartPanel,
|
||||
'core:plugin/xychart': xychartPanel,
|
||||
'core:plugin/geomap': geomapPanel,
|
||||
'core:plugin/canvas': canvasPanel,
|
||||
'core:plugin/dashlist': dashListPanel,
|
||||
|
||||
Reference in New Issue
Block a user