Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@
import { Center, Flex } from "@chakra-ui/react";
import axios from "axios";
import { useQuery } from "@tanstack/react-query";
import { OpenAPI } from "openapi/requests/core/OpenAPI";
import { useRef, type ReactNode } from "react";
import { NavLink } from "react-router-dom";

Expand All @@ -34,7 +35,7 @@ export const NavTabs = ({ tabs }: Props) => {

const { data } = useQuery<{version: string, git_version: string | null}>({
queryFn: async () => {
const res = await axios.get("/api/v2/version");
const res = await axios.get(`${OpenAPI.BASE}/api/v2/version`);
return res.data;
},
queryKey: ["appVersion"],
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ export const JobsPage = () => {
{job.queued_dttm ? <TimeAgo date={job.queued_dttm} live={false} /> : undefined}
</Table.Cell>
<Table.Cell>
<Link to={`../worker#${job.edge_worker}`}>{job.edge_worker}</Link>
<Link relative="path" to={`../worker#${job.edge_worker}`}>{job.edge_worker}</Link>
</Table.Cell>
<Table.Cell>
{job.last_update ? <TimeAgo date={job.last_update} live={false} /> : undefined}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ export const WorkerPage = () => {
<List.Root>
{worker.queues.map((queue) => (
<List.Item key={queue}>
<Link to={`../jobs?queue=${encodeURIComponent(queue)}`}>{queue}</Link>
<Link relative="path" to={`../jobs?queue=${encodeURIComponent(queue)}`}>{queue}</Link>
</List.Item>
))}
</List.Root>
Expand All @@ -179,7 +179,7 @@ export const WorkerPage = () => {
</Table.Cell>
<Table.Cell>
{worker.jobs_active !== undefined && worker.jobs_active > 0 ? (
<Link to={`../jobs?worker=${encodeURIComponent(worker.worker_name)}`}>
<Link relative="path" to={`../jobs?worker=${encodeURIComponent(worker.worker_name)}`}>
{worker.jobs_active}
</Link>
) : (
Expand Down
Loading