mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* WIP * WIP * Add URL additions to query library API * Add tag invalidation for refresh * add styles * Add verbiage from prototype * Translations generation
25 lines
645 B
TypeScript
25 lines
645 B
TypeScript
/**
|
|
* This is a temporary place for Query Library API and data types.
|
|
* To be exposed via grafana-runtime/data in the future.
|
|
*
|
|
* Query Library is an experimental feature, the API and components are subject to change
|
|
*
|
|
* @alpha
|
|
*/
|
|
|
|
import { config } from '@grafana/runtime';
|
|
|
|
import { queryLibraryApi } from './api/factory';
|
|
import { mockData } from './api/mocks';
|
|
|
|
export const { useAllQueryTemplatesQuery, useAddQueryTemplateMutation, useDeleteQueryTemplateMutation } =
|
|
queryLibraryApi;
|
|
|
|
export function isQueryLibraryEnabled() {
|
|
return config.featureToggles.queryLibrary;
|
|
}
|
|
|
|
export const QueryLibraryMocks = {
|
|
data: mockData,
|
|
};
|