Files
grafana/public/app/core/config.ts
Kristina c00caa2fb2 Transformations: Add time filtering to filter by value (#101591)
* WIP - time filtering

* Replace variable test

* Change tests

* Validator is already tested

* Change test to match evaluation

* Add line to docs

* Revert "Add line to docs"

This reverts commit 783f247c33e854e00a72a42c5d04eee3aa923a5a.

* Put transformations docs update in the right place, cannot build without an update, WIP

* Run build

* Use regex test and rewind

* Does this help

* make config optional
2025-06-16 14:27:34 -05:00

22 lines
596 B
TypeScript

import { PluginState } from '@grafana/data';
import { config, GrafanaBootConfig } from '@grafana/runtime';
export { config, GrafanaBootConfig as Settings };
let grafanaConfig: GrafanaBootConfig = config;
export default grafanaConfig;
export const getConfig = () => {
return grafanaConfig;
};
export const updateConfig = (update: Partial<GrafanaBootConfig>) => {
grafanaConfig = {
...grafanaConfig,
...update,
};
};
// The `enable_alpha` flag is not exposed directly, this is equivalent
export const hasAlphaPanels = Boolean(config?.panels?.debug?.state === PluginState.alpha);