mirror of
https://github.com/grafana/grafana.git
synced 2026-08-14 07:04:57 -05:00
Update dependency prettier to v3 (#71586)
* Update dependency prettier to v3 * run prettier * ignore prettier update in legacy select scss * update command line arg --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Ashley Harrison <ashley.harrison@grafana.com>
This commit is contained in:
co-authored by
renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Ashley Harrison
parent
8ae92db53d
commit
2e8cd1c021
@@ -18,7 +18,10 @@ import { PromQueryRequest } from './types';
|
||||
export default class PrometheusMetricFindQuery {
|
||||
range: TimeRange;
|
||||
|
||||
constructor(private datasource: PrometheusDatasource, private query: string) {
|
||||
constructor(
|
||||
private datasource: PrometheusDatasource,
|
||||
private query: string
|
||||
) {
|
||||
this.datasource = datasource;
|
||||
this.query = query;
|
||||
this.range = getTimeSrv().timeRange();
|
||||
|
||||
@@ -71,13 +71,16 @@ export const binaryScalarDefs = [
|
||||
},
|
||||
];
|
||||
|
||||
export const binaryScalarOperatorToOperatorName = binaryScalarDefs.reduce((acc, def) => {
|
||||
acc[def.sign] = {
|
||||
id: def.id,
|
||||
comparison: def.comparison,
|
||||
};
|
||||
return acc;
|
||||
}, {} as Record<string, { id: string; comparison?: boolean }>);
|
||||
export const binaryScalarOperatorToOperatorName = binaryScalarDefs.reduce(
|
||||
(acc, def) => {
|
||||
acc[def.sign] = {
|
||||
id: def.id,
|
||||
comparison: def.comparison,
|
||||
};
|
||||
return acc;
|
||||
},
|
||||
{} as Record<string, { id: string; comparison?: boolean }>
|
||||
);
|
||||
|
||||
// Not sure about this one. It could also be a more generic 'Simple math operation' where user specifies
|
||||
// both the operator and the operand in a single input
|
||||
|
||||
@@ -85,11 +85,9 @@ export function LabelFilters({
|
||||
{variableEditor ? (
|
||||
<InlineFieldRow>
|
||||
<div
|
||||
className={cx(
|
||||
css`
|
||||
display: flex;
|
||||
`
|
||||
)}
|
||||
className={cx(css`
|
||||
display: flex;
|
||||
`)}
|
||||
>
|
||||
<InlineLabel
|
||||
width={20}
|
||||
|
||||
Reference in New Issue
Block a user