mirror of
https://github.com/grafana/grafana.git
synced 2025-08-01 09:34:27 +08:00
TableNG: Restructure panel implementation swapping (#102956)
This commit is contained in:
@ -1,3 +1,5 @@
|
||||
import { config } from '@grafana/runtime';
|
||||
|
||||
const graphitePlugin = async () =>
|
||||
await import(/* webpackChunkName: "graphitePlugin" */ 'app/plugins/datasource/graphite/module');
|
||||
const cloudwatchPlugin = async () =>
|
||||
@ -55,7 +57,13 @@ const stateTimelinePanel = async () =>
|
||||
await import(/* webpackChunkName: "stateTimelinePanel" */ 'app/plugins/panel/state-timeline/module');
|
||||
const statusHistoryPanel = async () =>
|
||||
await import(/* webpackChunkName: "statusHistoryPanel" */ 'app/plugins/panel/status-history/module');
|
||||
const tablePanel = async () => await import(/* webpackChunkName: "tablePanel" */ 'app/plugins/panel/table/module');
|
||||
const tablePanel = async () => {
|
||||
if (config.featureToggles.tableNextGen) {
|
||||
return await import(/* webpackChunkName: "tableNewPanel" */ 'app/plugins/panel/table/table-new/module');
|
||||
} else {
|
||||
return await import(/* webpackChunkName: "tablePanel" */ 'app/plugins/panel/table/module');
|
||||
}
|
||||
};
|
||||
const textPanel = async () => await import(/* webpackChunkName: "textPanel" */ 'app/plugins/panel/text/module');
|
||||
const timeseriesPanel = async () =>
|
||||
await import(/* webpackChunkName: "timeseriesPanel" */ 'app/plugins/panel/timeseries/module');
|
||||
|
Reference in New Issue
Block a user