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