summaryrefslogtreecommitdiffhomepage
path: root/frontend
diff options
context:
space:
mode:
authormorpheus65535 <[email protected]>2022-09-21 23:51:34 -0400
committerGitHub <[email protected]>2022-09-21 23:51:34 -0400
commit131b4e5cde4034f78923d7eaebd49b3550f8aa13 (patch)
tree950000f1cbfdeb8aa446214bf09b8df8c599b11e /frontend
parentc3f43f0e42a8985346468eaffcff0d761c8b34fc (diff)
downloadbazarr-131b4e5cde4034f78923d7eaebd49b3550f8aa13.tar.gz
bazarr-131b4e5cde4034f78923d7eaebd49b3550f8aa13.zip
Added Swagger documentation for Bazarr APIv1.1.2-beta.7
Diffstat (limited to 'frontend')
-rw-r--r--frontend/src/pages/System/Logs/table.tsx3
-rw-r--r--frontend/src/pages/System/Status/index.tsx9
2 files changed, 8 insertions, 4 deletions
diff --git a/frontend/src/pages/System/Logs/table.tsx b/frontend/src/pages/System/Logs/table.tsx
index e1379f18a..c6419cd4c 100644
--- a/frontend/src/pages/System/Logs/table.tsx
+++ b/frontend/src/pages/System/Logs/table.tsx
@@ -10,7 +10,6 @@ import {
faQuestion,
} from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
-import { isUndefined } from "lodash";
import { FunctionComponent, useMemo } from "react";
import { Column } from "react-table";
import SystemLogModal from "./modal";
@@ -55,7 +54,7 @@ const Table: FunctionComponent<Props> = ({ logs }) => {
accessor: "exception",
Cell: ({ value }) => {
const modals = useModals();
- if (!isUndefined(value)) {
+ if (value) {
return (
<Action
label="Detail"
diff --git a/frontend/src/pages/System/Status/index.tsx b/frontend/src/pages/System/Status/index.tsx
index 0d17219c7..d6843c0dc 100644
--- a/frontend/src/pages/System/Status/index.tsx
+++ b/frontend/src/pages/System/Status/index.tsx
@@ -1,14 +1,14 @@
import { useSystemHealth, useSystemStatus } from "@/apis/hooks";
import { QueryOverlay } from "@/components/async";
import { GithubRepoRoot } from "@/constants";
-import { useInterval } from "@/utilities";
+import { Environment, useInterval } from "@/utilities";
import { IconDefinition } from "@fortawesome/fontawesome-common-types";
import {
faDiscord,
faGithub,
faWikipediaW,
} from "@fortawesome/free-brands-svg-icons";
-import { faPaperPlane } from "@fortawesome/free-solid-svg-icons";
+import { faCode, faPaperPlane } from "@fortawesome/free-solid-svg-icons";
import { FontAwesomeIcon } from "@fortawesome/react-fontawesome";
import { Anchor, Container, Divider, Grid, Stack, Text } from "@mantine/core";
import { useDocumentTitle } from "@mantine/hooks";
@@ -131,6 +131,11 @@ const SystemStatusView: FunctionComponent = () => {
Bazarr Wiki
</Label>
</Row>
+ <Row title="API documentation">
+ <Label icon={faCode} link={`${Environment.baseUrl}/api/`}>
+ Swagger UI
+ </Label>
+ </Row>
<Row title="Discord">
<Label icon={faDiscord} link="https://discord.gg/MH2e2eb">
Bazarr on Discord