mirror of
https://github.com/grafana/grafana.git
synced 2024-12-02 05:29:42 -06:00
26aa1f0cca
* Sanitize html in panel links * Add sanitize-url package * Enable config mocking * Sanitize datalinks urls * Update public/app/core/config.ts * Minor test update * Remove sanitize-url dependency * Remove typings * Review update * Revert "Remove sanitize-url dependency" This reverts commitc4f38e6de6
. * Revert "Remove typings" This reverts commit676d47e8c2
. * Sanitaze, don't escape html when sanitizing URL
19 lines
412 B
TypeScript
19 lines
412 B
TypeScript
import { config, GrafanaBootConfig } from '@grafana/runtime';
|
|
// Legacy binding paths
|
|
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,
|
|
};
|
|
};
|