grafana/public/app/core/config.ts
Dominik Prokop 26aa1f0cca
DataLinks: Sanitize data/panel link URLs (#21140)
* 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 commit c4f38e6de6.

* Revert "Remove typings"

This reverts commit 676d47e8c2.

* Sanitaze, don't escape html when sanitizing URL
2019-12-18 11:31:11 +01:00

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,
};
};