added link for api doc

main
alex 2023-07-05 23:48:15 +02:00
parent 5dda21a697
commit 25aa21351e
3 changed files with 14 additions and 1 deletions

View File

@ -162,6 +162,7 @@
"userProfile.button.createApiKey.popconfirm.title": "Name für den neuen API-Schlüssel", "userProfile.button.createApiKey.popconfirm.title": "Name für den neuen API-Schlüssel",
"userProfile.button.createApiKey.popconfirm.okText": "Erstellen", "userProfile.button.createApiKey.popconfirm.okText": "Erstellen",
"userProfile.button.copyToClipboard.notification": "API Token in die Zwischenablage kopiert", "userProfile.button.copyToClipboard.notification": "API Token in die Zwischenablage kopiert",
"userProfile.icon.viewApiDoc": "Api-Dokumentation anschauen",
"scanners.column.name": "Name", "scanners.column.name": "Name",
"scanners.column.usedBy": "Verwendet von", "scanners.column.usedBy": "Verwendet von",
"scanners.column.lastUsed": "Zuletzt verwendet", "scanners.column.lastUsed": "Zuletzt verwendet",

View File

@ -162,6 +162,7 @@
"userProfile.button.createApiKey.popconfirm.title": "Name for the new API key", "userProfile.button.createApiKey.popconfirm.title": "Name for the new API key",
"userProfile.button.createApiKey.popconfirm.okText": "Create", "userProfile.button.createApiKey.popconfirm.okText": "Create",
"userProfile.button.copyToClipboard.notification": "API token copied to clipboard", "userProfile.button.copyToClipboard.notification": "API token copied to clipboard",
"userProfile.icon.viewApiDoc": "View api documentation",
"scanners.column.name": "Name", "scanners.column.name": "Name",
"scanners.column.usedBy": "Used by", "scanners.column.usedBy": "Used by",
"scanners.column.lastUsed": "Last used", "scanners.column.lastUsed": "Last used",

View File

@ -5,10 +5,12 @@ import {
Form, Form,
Input, Input,
Popconfirm, Popconfirm,
Popover,
Row, Row,
Select, Select,
Space, Space,
Table, Table,
Tooltip,
Upload, Upload,
notification, notification,
} from "antd"; } from "antd";
@ -32,6 +34,7 @@ import {
CopyOutlined, CopyOutlined,
EyeInvisibleOutlined, EyeInvisibleOutlined,
EyeOutlined, EyeOutlined,
FileTextOutlined,
KeyOutlined, KeyOutlined,
} from "@ant-design/icons"; } from "@ant-design/icons";
@ -463,7 +466,15 @@ export default function UserProfile() {
> >
<h1 style={{ fontWeight: "bold" }}> <h1 style={{ fontWeight: "bold" }}>
{t("userProfile.header.yourApiKeys")} ( {t("userProfile.header.yourApiKeys")} (
{webSocketContext.User.ApiKeys.length}) {webSocketContext.User.ApiKeys.length}){" "}
<Tooltip title={t("userProfile.icon.viewApiDoc")}>
<Link
target="_blank"
to={Constants.STATIC_CONTENT_ADDRESS + "swagger/index.html"}
>
<FileTextOutlined style={{ fontSize: 16 }} />
</Link>
</Tooltip>
</h1> </h1>
<Popconfirm <Popconfirm