Skip to content

Commit

Permalink
chore(frontend): update axios imports
Browse files Browse the repository at this point in the history
  • Loading branch information
ardaerzin committed Dec 10, 2024
1 parent 91fb899 commit c4836fb
Show file tree
Hide file tree
Showing 10 changed files with 10 additions and 10 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import {isDemo} from "@/lib/helpers/utils"
import {Button, Col, Dropdown, MenuProps, Modal, ModalProps, Row, Spin, message} from "antd"
import {getErrorMessage} from "@/lib/helpers/errorHandler"
import {EvaluationType} from "@/lib/enums"
import {PERMISSION_ERR_MSG} from "@/lib/helpers/axiosConfig"
import {PERMISSION_ERR_MSG} from "@/lib/api/assets/axiosConfig"
import {getAllVariantParameters} from "@/lib/helpers/variantHelper"
import {useRouter} from "next/router"
import {useAppTheme} from "../Layout/ThemeContextProvider"
Expand Down
2 changes: 1 addition & 1 deletion agenta-web/src/lib/hooks/useVariant.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {useState, useEffect, useRef} from "react"
import {Variant, Parameter} from "@/lib/Types"
import {getAllVariantParameters, updateInputParams} from "@/lib/helpers/variantHelper"
import {PERMISSION_ERR_MSG} from "../helpers/axiosConfig"
import {PERMISSION_ERR_MSG} from "../api/assets/axiosConfig"
import {createNewVariant, fetchVariantLogs, updateVariantParams} from "@/services/playground/api"

/**
Expand Down
2 changes: 1 addition & 1 deletion agenta-web/src/services/api.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {getCurrentProject} from "@/contexts/project.context"
import axios from "@/lib//helpers/axiosConfig"
import axios from "@/lib/api/assets/axiosConfig"
import Session from "supertokens-auth-react/recipe/session"
import {formatDay} from "@/lib/helpers/dateTimeHelper"
import {
Expand Down
2 changes: 1 addition & 1 deletion agenta-web/src/services/app-selector/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {getCurrentProject} from "@/contexts/project.context"
import {AppTemplate} from "@/lib/Types"
import axios from "@/lib/helpers/axiosConfig"
import axios from "@/lib/api/assets/axiosConfig"
import {dynamicContext} from "@/lib/helpers/dynamic"
import {LlmProvider} from "@/lib/helpers/llmProviders"
import {getAgentaApiUrl} from "@/lib/helpers/utils"
Expand Down
2 changes: 1 addition & 1 deletion agenta-web/src/services/deployment/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {getCurrentProject} from "@/contexts/project.context"
import {Environment} from "@/lib/Types"
import axios from "@/lib/helpers/axiosConfig"
import axios from "@/lib/api/assets/axiosConfig"
import {getAgentaApiUrl} from "@/lib/helpers/utils"

//Prefix convention:
Expand Down
2 changes: 1 addition & 1 deletion agenta-web/src/services/evaluations/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import axios from "@/lib//helpers/axiosConfig"
import axios from "@/lib/api/assets/axiosConfig"
import {
ComparisonResultRow,
Evaluator,
Expand Down
2 changes: 1 addition & 1 deletion agenta-web/src/services/human-evaluations/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import axios from "@/lib//helpers/axiosConfig"
import axios from "@/lib/api/assets/axiosConfig"
import {
EvaluationResponseType,
Evaluation,
Expand Down
2 changes: 1 addition & 1 deletion agenta-web/src/services/observability/core/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {getAgentaApiUrl} from "@/lib/helpers/utils"
import {_AgentaRootsResponse} from "../types"
import axios from "@/lib/helpers/axiosConfig"
import axios from "@/lib/api/assets/axiosConfig"
import {getCurrentProject} from "@/contexts/project.context"

//Prefix convention:
Expand Down
2 changes: 1 addition & 1 deletion agenta-web/src/services/playground/api/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {getCurrentProject} from "@/contexts/project.context"
import {Parameter} from "@/lib/Types"
import axios from "@/lib/helpers/axiosConfig"
import axios from "@/lib/api/assets/axiosConfig"
import {getAgentaApiUrl} from "@/lib/helpers/utils"

//Prefix convention:
Expand Down
2 changes: 1 addition & 1 deletion agenta-web/src/services/project/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import axios from "@/lib/helpers/axiosConfig"
import axios from "@/lib/api/assets/axiosConfig"
import {getAgentaApiUrl} from "@/lib/helpers/utils"
import {ProjectsResponse} from "./types"

Expand Down

0 comments on commit c4836fb

Please sign in to comment.