mirror of
https://github.com/grafana/grafana.git
synced 2025-02-25 18:55:37 -06:00
* Update backend * Update frontend * Keep old plugin id * Update docs * Place doc images to a new directory * Legacy support for stackdriver-auto alignment * Consistent plugin name * Apply suggestions from code review Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com> Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com> * Update docs * Update public/app/plugins/datasource/cloud-monitoring/README.md Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com> * Add reference to the data source formerly being named Stackdriver * Update pkg/models/datasource.go Co-authored-by: Carl Bergquist <carl@grafana.com> * Fix gofmt Co-authored-by: Marcus Efraimsson <marcus.efraimsson@gmail.com> Co-authored-by: Tobias Skarhed <1438972+tskarhed@users.noreply.github.com> Co-authored-by: Carl Bergquist <carl@grafana.com>
29 lines
800 B
TypeScript
29 lines
800 B
TypeScript
import React, { InputHTMLAttributes, FunctionComponent } from 'react';
|
|
import { InlineFormLabel } from '@grafana/ui';
|
|
|
|
export interface Props extends InputHTMLAttributes<HTMLInputElement> {
|
|
label: string;
|
|
tooltip?: string;
|
|
children?: React.ReactNode;
|
|
}
|
|
|
|
export const QueryField: FunctionComponent<Partial<Props>> = ({ label, tooltip, children }) => (
|
|
<>
|
|
<InlineFormLabel width={9} className="query-keyword" tooltip={tooltip}>
|
|
{label}
|
|
</InlineFormLabel>
|
|
{children}
|
|
</>
|
|
);
|
|
|
|
export const QueryInlineField: FunctionComponent<Props> = ({ ...props }) => {
|
|
return (
|
|
<div className={'gf-form-inline'}>
|
|
<QueryField {...props} />
|
|
<div className="gf-form gf-form--grow">
|
|
<div className="gf-form-label gf-form-label--grow" />
|
|
</div>
|
|
</div>
|
|
);
|
|
};
|