mirror of https://github.com/grafana/grafana.git
More files that has fixed with prettier
This commit is contained in:
parent
ac9129c2b7
commit
ffdf747080
|
|
@ -1,6 +1,6 @@
|
|||
export interface GrafanaVariables {
|
||||
'panelHorizontalPadding': number;
|
||||
'panelVerticalPadding': number;
|
||||
panelHorizontalPadding: number;
|
||||
panelVerticalPadding: number;
|
||||
}
|
||||
|
||||
declare const variables: GrafanaVariables;
|
||||
|
|
|
|||
|
|
@ -1,10 +1,11 @@
|
|||
import { DataQueryOptions, DataQuery } from '@grafana/ui';
|
||||
import moment from 'moment';
|
||||
|
||||
|
||||
export function getQueryOptions<TQuery extends DataQuery>(options: Partial<DataQueryOptions<TQuery>>): DataQueryOptions<TQuery> {
|
||||
const raw = {from: 'now', to: 'now-1h'};
|
||||
const range = { from: moment(), to: moment(), raw: raw};
|
||||
export function getQueryOptions<TQuery extends DataQuery>(
|
||||
options: Partial<DataQueryOptions<TQuery>>
|
||||
): DataQueryOptions<TQuery> {
|
||||
const raw = { from: 'now', to: 'now-1h' };
|
||||
const range = { from: moment(), to: moment(), raw: raw };
|
||||
|
||||
const defaults: DataQueryOptions<TQuery> = {
|
||||
range: range,
|
||||
|
|
|
|||
|
|
@ -1,8 +1,5 @@
|
|||
export class BackendSrvMock {
|
||||
search: any;
|
||||
|
||||
constructor() {
|
||||
}
|
||||
|
||||
constructor() {}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue