mirror of
https://github.com/prometheus/prometheus.git
synced 2024-11-10 07:34:04 -08:00
Remove unused imports in new UI to fix build
Signed-off-by: Julius Volz <julius.volz@gmail.com>
This commit is contained in:
parent
d6f4d3a00b
commit
1b2290c131
|
@ -33,8 +33,6 @@ import ExpressionInput from "./ExpressionInput";
|
||||||
import Graph from "./Graph";
|
import Graph from "./Graph";
|
||||||
import {
|
import {
|
||||||
formatPrometheusDuration,
|
formatPrometheusDuration,
|
||||||
formatTimestamp,
|
|
||||||
now,
|
|
||||||
parsePrometheusDuration,
|
parsePrometheusDuration,
|
||||||
} from "../../lib/formatTime";
|
} from "../../lib/formatTime";
|
||||||
|
|
||||||
|
|
|
@ -12,7 +12,6 @@ import { computePosition, shift, flip, offset } from "@floating-ui/dom";
|
||||||
import { colorPool } from "./ColorPool";
|
import { colorPool } from "./ColorPool";
|
||||||
import { useSettings } from "../../state/settingsSlice";
|
import { useSettings } from "../../state/settingsSlice";
|
||||||
import { useComputedColorScheme } from "@mantine/core";
|
import { useComputedColorScheme } from "@mantine/core";
|
||||||
import { fill } from "lodash";
|
|
||||||
|
|
||||||
const formatYAxisTickValue = (y: number | null): string => {
|
const formatYAxisTickValue = (y: number | null): string => {
|
||||||
if (y === null) {
|
if (y === null) {
|
||||||
|
@ -127,7 +126,8 @@ const tooltipPlugin = (useLocalTime: boolean) => {
|
||||||
boundingTop = bbox.top;
|
boundingTop = bbox.top;
|
||||||
},
|
},
|
||||||
// When a series is selected by hovering close to it, store the
|
// When a series is selected by hovering close to it, store the
|
||||||
// index of the selected series.
|
// index of the selected series, so we can update the hover tooltip
|
||||||
|
// in setCursor.
|
||||||
setSeries: (_u: uPlot, seriesIdx: number | null, _opts: Series) => {
|
setSeries: (_u: uPlot, seriesIdx: number | null, _opts: Series) => {
|
||||||
selectedSeriesIdx = seriesIdx;
|
selectedSeriesIdx = seriesIdx;
|
||||||
},
|
},
|
||||||
|
|
|
@ -1,11 +1,6 @@
|
||||||
import { randomId } from "@mantine/hooks";
|
import { randomId } from "@mantine/hooks";
|
||||||
import {
|
import { PayloadAction, createSlice } from "@reduxjs/toolkit";
|
||||||
PayloadAction,
|
|
||||||
createListenerMiddleware,
|
|
||||||
createSlice,
|
|
||||||
} from "@reduxjs/toolkit";
|
|
||||||
import { encodePanelOptionsToURLParams } from "../pages/query/urlStateEncoding";
|
import { encodePanelOptionsToURLParams } from "../pages/query/urlStateEncoding";
|
||||||
import { update } from "lodash";
|
|
||||||
|
|
||||||
export enum GraphDisplayMode {
|
export enum GraphDisplayMode {
|
||||||
Lines = "lines",
|
Lines = "lines",
|
||||||
|
|
Loading…
Reference in a new issue