From b427ae3c161765069718dc786a59275ba34add2e Mon Sep 17 00:00:00 2001 From: vlastahajek <29980246+vlastahajek@users.noreply.github.com> Date: Tue, 19 Nov 2024 13:55:53 +0100 Subject: [PATCH] chore: Using absolute import path --- ui/src/dashboards/components/InfluxQLEditor.tsx | 4 ++-- ui/src/shared/apis/query.ts | 2 +- ui/src/shared/components/TimeMachine/TimeMachine.tsx | 2 +- ui/src/shared/utils/TimeMachineContainer.ts | 2 +- 4 files changed, 5 insertions(+), 5 deletions(-) diff --git a/ui/src/dashboards/components/InfluxQLEditor.tsx b/ui/src/dashboards/components/InfluxQLEditor.tsx index d608ca946..ec05df95f 100644 --- a/ui/src/dashboards/components/InfluxQLEditor.tsx +++ b/ui/src/dashboards/components/InfluxQLEditor.tsx @@ -32,8 +32,8 @@ import { // Types import {QueryConfig, Template} from 'src/types' import {WrappedCancelablePromise} from 'src/types/promises' -import {isExcludedStatement} from '../../utils/queryFilter' -import {ErrorSkipped} from '../../types/queries' +import {isExcludedStatement} from 'src/utils/queryFilter' +import {ErrorSkipped} from 'src/types/queries' interface TempVar { tempVar: string diff --git a/ui/src/shared/apis/query.ts b/ui/src/shared/apis/query.ts index 0b1117927..96276bf39 100644 --- a/ui/src/shared/apis/query.ts +++ b/ui/src/shared/apis/query.ts @@ -6,7 +6,7 @@ import {proxy} from 'src/utils/queryUrlGenerator' import {Query, Source, Template} from 'src/types' import {TimeSeriesResponse} from 'src/types/series' -import {ErrorSkipped} from '../../types/queries' +import {ErrorSkipped} from 'src/types/queries' interface QueryResult { value: TimeSeriesResponse | null diff --git a/ui/src/shared/components/TimeMachine/TimeMachine.tsx b/ui/src/shared/components/TimeMachine/TimeMachine.tsx index f352ee92a..c37729951 100644 --- a/ui/src/shared/components/TimeMachine/TimeMachine.tsx +++ b/ui/src/shared/components/TimeMachine/TimeMachine.tsx @@ -54,7 +54,7 @@ import { import {SourceOption} from 'src/types/sources' import {Links, ScriptStatus} from 'src/types/flux' import queryBuilderFetcher from './fluxQueryBuilder/apis/queryBuilderFetcher' -import {isExcludedStatement} from '../../../utils/queryFilter' +import {isExcludedStatement} from 'src/utils/queryFilter' interface ConnectedProps { script: string diff --git a/ui/src/shared/utils/TimeMachineContainer.ts b/ui/src/shared/utils/TimeMachineContainer.ts index 9174189d6..a548a364b 100644 --- a/ui/src/shared/utils/TimeMachineContainer.ts +++ b/ui/src/shared/utils/TimeMachineContainer.ts @@ -27,7 +27,7 @@ import { setLocalStorage, TMLocalStorageKey, } from 'src/shared/utils/timeMachine' -import {isExcludedStatement} from '../../utils/queryFilter' +import {isExcludedStatement} from 'src/utils/queryFilter' // Constants import {TYPE_QUERY_CONFIG} from 'src/dashboards/constants'