@digi-frontend/dgate-api-documentation 4.0.0-beta.0 → 4.0.0-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{index-3piy-SU-.d.cts → index-Bu-W04Zg.d.cts} +3 -3
- package/dist/index-Bu-W04Zg.d.cts.map +1 -0
- package/dist/index-ZiBNQn4i.d.ts.map +1 -1
- package/dist/index.cjs +346 -261
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +346 -262
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/dist/index-3piy-SU-.d.cts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { create } from "zustand";
|
|
2
2
|
import { devtools } from "zustand/middleware";
|
|
3
3
|
import { immer } from "zustand/middleware/immer";
|
|
4
|
-
import * as React from "react";
|
|
5
4
|
import { useEffect, useMemo, useRef, useState } from "react";
|
|
6
5
|
import { Alert, Breadcrumb, Button, Card, Divider, Drawer, Empty, Flex, Form, Grid, Input, Modal, Pagination, Select, Switch, Table, Tabs, Tag, Tooltip, Tree, Typography, message, theme } from "antd";
|
|
7
6
|
import { AppstoreOutlined, BarsOutlined, CheckCircleOutlined, DownOutlined, EditOutlined, ExclamationCircleFilled, EyeOutlined, InfoCircleOutlined, LeftOutlined, MinusSquareOutlined, PlusOutlined, PlusSquareOutlined, RightOutlined, SafetyOutlined, SearchOutlined, UpCircleOutlined } from "@ant-design/icons";
|
|
@@ -431,36 +430,36 @@ var token = {
|
|
|
431
430
|
//#region src/view/helper/sidebar.utils.ts
|
|
432
431
|
const methodColors = {
|
|
433
432
|
GET: {
|
|
434
|
-
bg:
|
|
433
|
+
bg: "transparent",
|
|
435
434
|
color: token.colorPrimary
|
|
436
435
|
},
|
|
437
436
|
POST: {
|
|
438
|
-
bg:
|
|
439
|
-
color:
|
|
437
|
+
bg: "transparent",
|
|
438
|
+
color: token.colorSuccess
|
|
440
439
|
},
|
|
441
440
|
DELETE: {
|
|
442
|
-
bg:
|
|
441
|
+
bg: "transparent",
|
|
443
442
|
color: token.colorError
|
|
444
443
|
},
|
|
445
444
|
PUT: {
|
|
446
|
-
bg:
|
|
445
|
+
bg: "transparent",
|
|
447
446
|
color: token.colorWarning
|
|
448
447
|
},
|
|
449
448
|
PATCH: {
|
|
450
|
-
bg:
|
|
449
|
+
bg: "transparent",
|
|
451
450
|
color: token["volcano.5"]
|
|
452
451
|
},
|
|
453
452
|
OPTIONS: {
|
|
454
|
-
bg:
|
|
453
|
+
bg: "transparent",
|
|
455
454
|
color: token["geekblue.6"]
|
|
456
455
|
},
|
|
457
456
|
HEAD: {
|
|
458
|
-
bg:
|
|
457
|
+
bg: "transparent",
|
|
459
458
|
color: token["purple.5"]
|
|
460
459
|
},
|
|
461
460
|
TRACE: {
|
|
462
|
-
bg:
|
|
463
|
-
color: token["
|
|
461
|
+
bg: "transparent",
|
|
462
|
+
color: token["volcano.4"]
|
|
464
463
|
}
|
|
465
464
|
};
|
|
466
465
|
const darkerMethodColors = {
|
|
@@ -497,43 +496,91 @@ const darkerMethodColors = {
|
|
|
497
496
|
color: "#FFFFFF"
|
|
498
497
|
}
|
|
499
498
|
};
|
|
499
|
+
const sidebarMethodColors = {
|
|
500
|
+
GET: {
|
|
501
|
+
bg: token.colorPrimaryBgHover,
|
|
502
|
+
color: token.colorPrimary
|
|
503
|
+
},
|
|
504
|
+
POST: {
|
|
505
|
+
bg: token.colorSuccessBg,
|
|
506
|
+
color: token.colorSuccess
|
|
507
|
+
},
|
|
508
|
+
DELETE: {
|
|
509
|
+
bg: token.colorErrorBg,
|
|
510
|
+
color: token.colorError
|
|
511
|
+
},
|
|
512
|
+
PUT: {
|
|
513
|
+
bg: token.colorWarningBg,
|
|
514
|
+
color: token.colorWarning
|
|
515
|
+
},
|
|
516
|
+
PATCH: {
|
|
517
|
+
bg: token["volcano.1"],
|
|
518
|
+
color: token["volcano.5"]
|
|
519
|
+
},
|
|
520
|
+
OPTIONS: {
|
|
521
|
+
bg: token["geekblue.2"],
|
|
522
|
+
color: token["geekblue.6"]
|
|
523
|
+
},
|
|
524
|
+
HEAD: {
|
|
525
|
+
bg: token["purple.1"],
|
|
526
|
+
color: token["purple.5"]
|
|
527
|
+
},
|
|
528
|
+
TRACE: {
|
|
529
|
+
bg: token["volcano.1"],
|
|
530
|
+
color: token["volcano.4"]
|
|
531
|
+
}
|
|
532
|
+
};
|
|
500
533
|
const buildTreeDataStructure = (data) => {
|
|
501
534
|
if (!data) return [];
|
|
502
535
|
return data.map((api) => {
|
|
503
536
|
const tagEntries = Object.entries(api.tags);
|
|
537
|
+
const defaultTag = tagEntries.find(([tag]) => tag.toLowerCase() === "default");
|
|
538
|
+
const nonDefaultTags = tagEntries.filter(([tag]) => tag.toLowerCase() !== "default");
|
|
539
|
+
const defaultEndpoints = defaultTag ? defaultTag[1].map((endpoint) => ({
|
|
540
|
+
title: endpoint.summary,
|
|
541
|
+
key: endpoint.id,
|
|
542
|
+
isLeaf: true,
|
|
543
|
+
selectable: true,
|
|
544
|
+
method: endpoint.method,
|
|
545
|
+
data: {
|
|
546
|
+
endpoint,
|
|
547
|
+
api,
|
|
548
|
+
tagName: "default",
|
|
549
|
+
parentApiId: api.id
|
|
550
|
+
}
|
|
551
|
+
})) : [];
|
|
552
|
+
const tagNodes = nonDefaultTags.map(([tag, endpoints]) => {
|
|
553
|
+
const tagId = `tag-${api.id}-${tag.replace(/\s+/g, "-").toLowerCase()}`;
|
|
554
|
+
return {
|
|
555
|
+
title: tag,
|
|
556
|
+
key: tagId,
|
|
557
|
+
selectable: true,
|
|
558
|
+
data: {
|
|
559
|
+
tagName: tag,
|
|
560
|
+
apiData: api
|
|
561
|
+
},
|
|
562
|
+
children: endpoints.map((endpoint) => ({
|
|
563
|
+
title: endpoint.summary,
|
|
564
|
+
key: endpoint.id,
|
|
565
|
+
isLeaf: true,
|
|
566
|
+
selectable: true,
|
|
567
|
+
method: endpoint.method,
|
|
568
|
+
data: {
|
|
569
|
+
endpoint,
|
|
570
|
+
api,
|
|
571
|
+
tagName: tag,
|
|
572
|
+
parentApiId: api.id,
|
|
573
|
+
tagId
|
|
574
|
+
}
|
|
575
|
+
}))
|
|
576
|
+
};
|
|
577
|
+
});
|
|
504
578
|
return {
|
|
505
579
|
title: api.title,
|
|
506
580
|
key: api.id,
|
|
507
581
|
selectable: true,
|
|
508
582
|
data: api,
|
|
509
|
-
children:
|
|
510
|
-
const tagId = `tag-${api.id}-${tag.replace(/\s+/g, "-").toLowerCase()}`;
|
|
511
|
-
return {
|
|
512
|
-
title: tag,
|
|
513
|
-
key: tagId,
|
|
514
|
-
selectable: true,
|
|
515
|
-
data: {
|
|
516
|
-
tagName: tag,
|
|
517
|
-
apiData: api
|
|
518
|
-
},
|
|
519
|
-
children: endpoints.map((endpoint) => {
|
|
520
|
-
return {
|
|
521
|
-
title: endpoint.summary,
|
|
522
|
-
key: endpoint.id,
|
|
523
|
-
isLeaf: true,
|
|
524
|
-
selectable: true,
|
|
525
|
-
method: endpoint.method,
|
|
526
|
-
data: {
|
|
527
|
-
endpoint,
|
|
528
|
-
api,
|
|
529
|
-
tagName: tag,
|
|
530
|
-
parentApiId: api.id,
|
|
531
|
-
tagId
|
|
532
|
-
}
|
|
533
|
-
};
|
|
534
|
-
})
|
|
535
|
-
};
|
|
536
|
-
})
|
|
583
|
+
children: [...tagNodes, ...defaultEndpoints]
|
|
537
584
|
};
|
|
538
585
|
});
|
|
539
586
|
};
|
|
@@ -636,7 +683,9 @@ const getSidebarStyles = (token$1, scope) => ({
|
|
|
636
683
|
gap: token$1.marginXS,
|
|
637
684
|
width: "100%",
|
|
638
685
|
maxWidth: "100%",
|
|
639
|
-
minWidth: "100%"
|
|
686
|
+
minWidth: "100%",
|
|
687
|
+
paddingLeft: token$1.marginXS,
|
|
688
|
+
paddingRight: token$1.marginXS
|
|
640
689
|
},
|
|
641
690
|
[scope("method-tag")]: {
|
|
642
691
|
width: 51,
|
|
@@ -669,7 +718,8 @@ const getSidebarStyles = (token$1, scope) => ({
|
|
|
669
718
|
color: token$1.colorText,
|
|
670
719
|
maxWidth: "100%",
|
|
671
720
|
display: "block",
|
|
672
|
-
|
|
721
|
+
paddingLeft: "4px",
|
|
722
|
+
paddingRight: "4px",
|
|
673
723
|
margin: 0
|
|
674
724
|
}
|
|
675
725
|
});
|
|
@@ -678,7 +728,7 @@ const getSidebarStyles = (token$1, scope) => ({
|
|
|
678
728
|
//#region src/view/helper/sidebar.components.tsx
|
|
679
729
|
const { Text: Text$1 } = Typography;
|
|
680
730
|
const EndpointItem = ({ method, title, cx, isSelected = false }) => {
|
|
681
|
-
const methodStyle = (isSelected ? darkerMethodColors :
|
|
731
|
+
const methodStyle = (isSelected ? darkerMethodColors : sidebarMethodColors)[method];
|
|
682
732
|
const isPost = method?.toUpperCase() === "POST";
|
|
683
733
|
return /* @__PURE__ */ jsxs("div", {
|
|
684
734
|
className: `${cx("endpoint-item")}${isSelected ? ` ${cx("endpoint-item-selected")}` : ""}`,
|
|
@@ -836,29 +886,23 @@ const useNodeSelection = () => {
|
|
|
836
886
|
};
|
|
837
887
|
|
|
838
888
|
//#endregion
|
|
839
|
-
//#region src/assets/Minify.
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
|
|
843
|
-
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
}, props), _path$5 || (_path$5 = /* @__PURE__ */ React.createElement("path", {
|
|
857
|
-
stroke: "currentcolor",
|
|
858
|
-
d: "m6 11.334 2-2 2 2M6 4.666l2 2 2-2"
|
|
859
|
-
})));
|
|
860
|
-
};
|
|
861
|
-
var Minify_default = SvgMinify;
|
|
889
|
+
//#region src/assets/Minify.tsx
|
|
890
|
+
const Minify = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
891
|
+
width: "16",
|
|
892
|
+
height: "16",
|
|
893
|
+
viewBox: "0 0 16 16",
|
|
894
|
+
fill: "none",
|
|
895
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
896
|
+
...props,
|
|
897
|
+
children: [/* @__PURE__ */ jsx("path", {
|
|
898
|
+
d: "M6 11.334L8 9.33398L10 11.334",
|
|
899
|
+
stroke: "currentcolor"
|
|
900
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
901
|
+
d: "M6 4.66602L8 6.66602L10 4.66602",
|
|
902
|
+
stroke: "currentcolor"
|
|
903
|
+
})]
|
|
904
|
+
});
|
|
905
|
+
var Minify_default = Minify;
|
|
862
906
|
|
|
863
907
|
//#endregion
|
|
864
908
|
//#region src/view/components/NoDataIcon.tsx
|
|
@@ -1193,32 +1237,23 @@ const Sidebar = ({ searchValue, setSearchValue, onNodeSelect }) => {
|
|
|
1193
1237
|
};
|
|
1194
1238
|
|
|
1195
1239
|
//#endregion
|
|
1196
|
-
//#region src/assets/link.
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
}, props), _path$4 || (_path$4 = /* @__PURE__ */ React.createElement("path", {
|
|
1214
|
-
fill: "#4D75D9",
|
|
1215
|
-
d: "M3.875 9.25C2.085 9.25.625 7.79.625 6s1.46-3.25 3.25-3.25c.205 0 .375.17.375.375s-.17.375-.375.375a2.5 2.5 0 0 0 0 5 2.5 2.5 0 0 0 2.5-2.5c0-.205.17-.375.375-.375s.375.17.375.375c0 1.79-1.46 3.25-3.25 3.25"
|
|
1216
|
-
})), _path2$3 || (_path2$3 = /* @__PURE__ */ React.createElement("path", {
|
|
1217
|
-
fill: "#4D75D9",
|
|
1218
|
-
d: "M8 9.375A.38.38 0 0 1 7.625 9c0-.205.17-.375.375-.375A2.63 2.63 0 0 0 10.625 6 2.63 2.63 0 0 0 8 3.375 2.63 2.63 0 0 0 5.375 6c0 .205-.17.375-.375.375A.38.38 0 0 1 4.625 6 3.38 3.38 0 0 1 8 2.625 3.38 3.38 0 0 1 11.375 6 3.38 3.38 0 0 1 8 9.375"
|
|
1219
|
-
})));
|
|
1220
|
-
};
|
|
1221
|
-
var link_default = SvgLink;
|
|
1240
|
+
//#region src/assets/link.tsx
|
|
1241
|
+
const Link = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
1242
|
+
width: "12",
|
|
1243
|
+
height: "12",
|
|
1244
|
+
viewBox: "0 0 12 12",
|
|
1245
|
+
fill: "none",
|
|
1246
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1247
|
+
...props,
|
|
1248
|
+
children: [/* @__PURE__ */ jsx("path", {
|
|
1249
|
+
d: "M3.875 9.25C2.085 9.25 0.625 7.79 0.625 6C0.625 4.21 2.085 2.75 3.875 2.75C4.08 2.75 4.25 2.92 4.25 3.125C4.25 3.33 4.08 3.5 3.875 3.5C2.495 3.5 1.375 4.62 1.375 6C1.375 7.38 2.495 8.5 3.875 8.5C5.255 8.5 6.375 7.38 6.375 6C6.375 5.795 6.545 5.625 6.75 5.625C6.955 5.625 7.125 5.795 7.125 6C7.125 7.79 5.665 9.25 3.875 9.25Z",
|
|
1250
|
+
fill: "#4D75D9"
|
|
1251
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
1252
|
+
d: "M8 9.375C7.795 9.375 7.625 9.205 7.625 9C7.625 8.795 7.795 8.625 8 8.625C9.445 8.625 10.625 7.445 10.625 6C10.625 4.555 9.445 3.375 8 3.375C6.555 3.375 5.375 4.555 5.375 6C5.375 6.205 5.205 6.375 5 6.375C4.795 6.375 4.625 6.205 4.625 6C4.625 4.14 6.14 2.625 8 2.625C9.86 2.625 11.375 4.14 11.375 6C11.375 7.86 9.86 9.375 8 9.375Z",
|
|
1253
|
+
fill: "#4D75D9"
|
|
1254
|
+
})]
|
|
1255
|
+
});
|
|
1256
|
+
var link_default = Link;
|
|
1222
1257
|
|
|
1223
1258
|
//#endregion
|
|
1224
1259
|
//#region src/view/components/ApiPage/components/ApiCard.tsx
|
|
@@ -1447,11 +1482,11 @@ function formatAuthType(authType) {
|
|
|
1447
1482
|
}
|
|
1448
1483
|
}
|
|
1449
1484
|
const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
|
|
1450
|
-
const { wrapSSR, cx
|
|
1485
|
+
const { wrapSSR, cx } = useStyle("ViewModeApiHeader", (token$1, scope) => ({
|
|
1451
1486
|
[scope("root")]: {
|
|
1452
1487
|
display: "flex",
|
|
1453
1488
|
flexDirection: "column",
|
|
1454
|
-
gap: token$
|
|
1489
|
+
gap: token$1.marginMD
|
|
1455
1490
|
},
|
|
1456
1491
|
[scope("meta-bar")]: {
|
|
1457
1492
|
display: "flex",
|
|
@@ -1467,20 +1502,20 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
|
|
|
1467
1502
|
display: "flex",
|
|
1468
1503
|
alignItems: "center",
|
|
1469
1504
|
paddingRight: 12,
|
|
1470
|
-
borderRight: `1px solid ${token$
|
|
1505
|
+
borderRight: `1px solid ${token$1.colorBorderSecondary}`,
|
|
1471
1506
|
marginRight: 12
|
|
1472
1507
|
},
|
|
1473
1508
|
[scope("jws-tag")]: {
|
|
1474
1509
|
display: "flex",
|
|
1475
1510
|
alignItems: "center",
|
|
1476
1511
|
height: 32,
|
|
1477
|
-
background: token$
|
|
1478
|
-
border: `1px solid ${token$
|
|
1512
|
+
background: token$1.colorPrimaryBg,
|
|
1513
|
+
border: `1px solid ${token$1.colorPrimaryBorder}`,
|
|
1479
1514
|
borderRadius: 6,
|
|
1480
1515
|
padding: "0 8px",
|
|
1481
1516
|
fontSize: 12,
|
|
1482
1517
|
lineHeight: "20px",
|
|
1483
|
-
color: token$
|
|
1518
|
+
color: token$1.colorPrimary,
|
|
1484
1519
|
fontWeight: 400,
|
|
1485
1520
|
margin: 0
|
|
1486
1521
|
},
|
|
@@ -1488,14 +1523,14 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
|
|
|
1488
1523
|
display: "inline-flex",
|
|
1489
1524
|
alignItems: "center",
|
|
1490
1525
|
gap: 4,
|
|
1491
|
-
background: token$
|
|
1492
|
-
border: `1px solid ${token$
|
|
1526
|
+
background: token$1.colorBgContainer,
|
|
1527
|
+
border: `1px solid ${token$1.colorBorder}`,
|
|
1493
1528
|
borderRadius: 4,
|
|
1494
1529
|
padding: "0 8px",
|
|
1495
1530
|
height: 32,
|
|
1496
1531
|
fontSize: 12,
|
|
1497
1532
|
lineHeight: "20px",
|
|
1498
|
-
color: token$
|
|
1533
|
+
color: token$1.colorText,
|
|
1499
1534
|
margin: 0,
|
|
1500
1535
|
boxSizing: "border-box"
|
|
1501
1536
|
},
|
|
@@ -1508,8 +1543,8 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
|
|
|
1508
1543
|
display: "inline-flex",
|
|
1509
1544
|
alignItems: "center",
|
|
1510
1545
|
gap: 8,
|
|
1511
|
-
background: token$
|
|
1512
|
-
border: `1px solid ${token$
|
|
1546
|
+
background: token$1.colorFillTertiary,
|
|
1547
|
+
border: `1px solid ${token$1.colorBorder}`,
|
|
1513
1548
|
borderRadius: 6,
|
|
1514
1549
|
padding: "0 15px",
|
|
1515
1550
|
height: 32,
|
|
@@ -1518,13 +1553,13 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
|
|
|
1518
1553
|
},
|
|
1519
1554
|
[scope("version-icon")]: {
|
|
1520
1555
|
fontSize: 16,
|
|
1521
|
-
color: token$
|
|
1556
|
+
color: token$1.colorTextDisabled,
|
|
1522
1557
|
display: "flex",
|
|
1523
1558
|
alignItems: "center"
|
|
1524
1559
|
},
|
|
1525
1560
|
[scope("version-text")]: {
|
|
1526
1561
|
fontSize: 14,
|
|
1527
|
-
color: token$
|
|
1562
|
+
color: token$1.colorTextDisabled,
|
|
1528
1563
|
fontWeight: 400,
|
|
1529
1564
|
lineHeight: 1
|
|
1530
1565
|
},
|
|
@@ -1538,16 +1573,16 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
|
|
|
1538
1573
|
justifyContent: "center"
|
|
1539
1574
|
},
|
|
1540
1575
|
[scope("toggle-btn-active")]: {
|
|
1541
|
-
border: `1px solid ${token$
|
|
1542
|
-
color: `${token$
|
|
1543
|
-
backgroundColor: `${token$
|
|
1576
|
+
border: `1px solid ${token$1.colorPrimary} !important`,
|
|
1577
|
+
color: `${token$1.colorPrimary} !important`,
|
|
1578
|
+
backgroundColor: `${token$1.colorBgContainer} !important`,
|
|
1544
1579
|
zIndex: 1
|
|
1545
1580
|
},
|
|
1546
1581
|
[scope("description")]: {
|
|
1547
|
-
fontSize: token$
|
|
1548
|
-
color: token$
|
|
1582
|
+
fontSize: token$1.fontSizeLG,
|
|
1583
|
+
color: token$1.colorTextTertiary
|
|
1549
1584
|
},
|
|
1550
|
-
[scope("title")]: { fontFamily: token$
|
|
1585
|
+
[scope("title")]: { fontFamily: token$1.fontFamily }
|
|
1551
1586
|
}));
|
|
1552
1587
|
const version = api.relatedVersions?.find((v) => v.apiId === api.currentVersion)?.version || api.version;
|
|
1553
1588
|
return wrapSSR(/* @__PURE__ */ jsxs("div", {
|
|
@@ -1637,10 +1672,9 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
|
|
|
1637
1672
|
//#region src/view/components/ApiPage/index.tsx
|
|
1638
1673
|
const APIPage = () => {
|
|
1639
1674
|
const [selectedUrl, setSelectedUrl] = useState("");
|
|
1640
|
-
const { view: { selectedApi,
|
|
1675
|
+
const { view: { selectedApi, focusedTag, setFocusedTag } } = store_default();
|
|
1641
1676
|
const [viewStyle, setViewStyle] = useState("grid");
|
|
1642
|
-
const { wrapSSR,
|
|
1643
|
-
selectedApi?.relatedVersions?.find((v) => v.apiId === selectedApi?.currentVersion);
|
|
1677
|
+
const { wrapSSR, token: token$1 } = useStyle("DocumentationApiPage", () => ({}));
|
|
1644
1678
|
const urlsOptions = useMemo(() => selectedApi?.servers?.map((server) => ({
|
|
1645
1679
|
label: server?.url,
|
|
1646
1680
|
value: server?.url
|
|
@@ -1903,7 +1937,7 @@ const EndpointPage = () => {
|
|
|
1903
1937
|
[scope("row-odd")]: { "& > td": { background: `${token$2.colorBgElevated} !important` } },
|
|
1904
1938
|
[scope("row-even")]: { "& > td": { background: `${token$2.colorBgLayout} !important` } }
|
|
1905
1939
|
}));
|
|
1906
|
-
const methodStyle =
|
|
1940
|
+
const methodStyle = sidebarMethodColors[selectedEndpoint?.method];
|
|
1907
1941
|
const headerParams = buildRequestData(selectedEndpoint?.parameters?.filter((p) => p.in === "header") || [], token$1);
|
|
1908
1942
|
const pathParams = buildRequestData(selectedEndpoint?.parameters?.filter((p) => p.in === "path") || [], token$1);
|
|
1909
1943
|
const queryParams = buildRequestData(selectedEndpoint?.parameters?.filter((p) => p.in === "query") || [], token$1);
|
|
@@ -2010,12 +2044,18 @@ const EndpointPage = () => {
|
|
|
2010
2044
|
children: /* @__PURE__ */ jsx("span", { children: selectedEndpoint?.tagName || "default" })
|
|
2011
2045
|
})
|
|
2012
2046
|
},
|
|
2013
|
-
{ title: /* @__PURE__ */ jsx(
|
|
2014
|
-
|
|
2015
|
-
|
|
2016
|
-
|
|
2017
|
-
|
|
2018
|
-
|
|
2047
|
+
{ title: /* @__PURE__ */ jsx(Tooltip, {
|
|
2048
|
+
title: selectedEndpoint?.summary || "Endpoint Name",
|
|
2049
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
2050
|
+
style: {
|
|
2051
|
+
overflow: "hidden",
|
|
2052
|
+
textOverflow: "ellipsis",
|
|
2053
|
+
whiteSpace: "nowrap",
|
|
2054
|
+
display: "block",
|
|
2055
|
+
maxWidth: "300px"
|
|
2056
|
+
},
|
|
2057
|
+
children: selectedEndpoint?.summary || "Endpoint Name"
|
|
2058
|
+
})
|
|
2019
2059
|
}) }
|
|
2020
2060
|
] })]
|
|
2021
2061
|
}),
|
|
@@ -2038,7 +2078,17 @@ const EndpointPage = () => {
|
|
|
2038
2078
|
flexShrink: 0
|
|
2039
2079
|
},
|
|
2040
2080
|
children: selectedEndpoint?.method
|
|
2041
|
-
}),
|
|
2081
|
+
}), /* @__PURE__ */ jsx(Tooltip, {
|
|
2082
|
+
title: selectedEndpoint?.summary ?? "--",
|
|
2083
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
2084
|
+
style: {
|
|
2085
|
+
overflow: "hidden",
|
|
2086
|
+
textOverflow: "ellipsis",
|
|
2087
|
+
whiteSpace: "nowrap"
|
|
2088
|
+
},
|
|
2089
|
+
children: selectedEndpoint?.summary?.replace(selectedEndpoint?.method, "") ?? "--"
|
|
2090
|
+
})
|
|
2091
|
+
})]
|
|
2042
2092
|
}),
|
|
2043
2093
|
/* @__PURE__ */ jsx(Paragraph, {
|
|
2044
2094
|
style: {
|
|
@@ -2090,38 +2140,29 @@ const EndpointPage = () => {
|
|
|
2090
2140
|
};
|
|
2091
2141
|
|
|
2092
2142
|
//#endregion
|
|
2093
|
-
//#region src/assets/mouseSquare.
|
|
2094
|
-
|
|
2095
|
-
|
|
2096
|
-
|
|
2097
|
-
|
|
2098
|
-
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
|
|
2102
|
-
|
|
2103
|
-
|
|
2104
|
-
|
|
2105
|
-
return /* @__PURE__ */ React.createElement("svg", _extends$3({
|
|
2106
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2107
|
-
width: 18,
|
|
2108
|
-
height: 18,
|
|
2109
|
-
fill: "none"
|
|
2110
|
-
}, props), _path$3 || (_path$3 = /* @__PURE__ */ React.createElement("path", {
|
|
2111
|
-
stroke: "#fff",
|
|
2143
|
+
//#region src/assets/mouseSquare.tsx
|
|
2144
|
+
const MouseSquare = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
2145
|
+
width: "18",
|
|
2146
|
+
height: "18",
|
|
2147
|
+
viewBox: "0 0 18 18",
|
|
2148
|
+
fill: "none",
|
|
2149
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2150
|
+
...props,
|
|
2151
|
+
children: [/* @__PURE__ */ jsx("path", {
|
|
2152
|
+
d: "M16.5 9V6.75C16.5 3 15 1.5 11.25 1.5H6.75C3 1.5 1.5 3 1.5 6.75V11.25C1.5 15 3 16.5 6.75 16.5H9",
|
|
2153
|
+
stroke: "white",
|
|
2154
|
+
strokeWidth: "1.5",
|
|
2112
2155
|
strokeLinecap: "round",
|
|
2113
|
-
strokeLinejoin: "round"
|
|
2114
|
-
|
|
2115
|
-
d: "
|
|
2116
|
-
|
|
2117
|
-
|
|
2156
|
+
strokeLinejoin: "round"
|
|
2157
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
2158
|
+
d: "M15.7202 13.3808L14.4978 13.7934C14.1603 13.9059 13.8902 14.1684 13.7777 14.5134L13.3652 15.7359C13.0127 16.7934 11.5277 16.7709 11.1977 15.7134L9.81025 11.2508C9.54025 10.3658 10.3577 9.54085 11.2352 9.81835L15.7053 11.2059C16.7553 11.5359 16.7702 13.0283 15.7202 13.3808Z",
|
|
2159
|
+
stroke: "white",
|
|
2160
|
+
strokeWidth: "1.5",
|
|
2118
2161
|
strokeLinecap: "round",
|
|
2119
|
-
strokeLinejoin: "round"
|
|
2120
|
-
|
|
2121
|
-
|
|
2122
|
-
|
|
2123
|
-
};
|
|
2124
|
-
var mouseSquare_default = SvgMouseSquare;
|
|
2162
|
+
strokeLinejoin: "round"
|
|
2163
|
+
})]
|
|
2164
|
+
});
|
|
2165
|
+
var mouseSquare_default = MouseSquare;
|
|
2125
2166
|
|
|
2126
2167
|
//#endregion
|
|
2127
2168
|
//#region src/view/components/MainContent.tsx
|
|
@@ -2132,7 +2173,9 @@ const MainContent = ({ searchEnabled, handleResetSearch, handleVisitLandingPage
|
|
|
2132
2173
|
width: "100%",
|
|
2133
2174
|
height: "auto",
|
|
2134
2175
|
borderRadius: token$2.borderRadius,
|
|
2135
|
-
padding: token$2.paddingXL
|
|
2176
|
+
padding: token$2.paddingXL,
|
|
2177
|
+
overflow: "hidden",
|
|
2178
|
+
minWidth: 0
|
|
2136
2179
|
},
|
|
2137
2180
|
[scope("centered")]: {
|
|
2138
2181
|
display: "flex",
|
|
@@ -2255,7 +2298,9 @@ const ApiDocumentationBar = ({ apiName, mode, onModeChange, onReset, onSave, has
|
|
|
2255
2298
|
flex: 1,
|
|
2256
2299
|
display: "flex",
|
|
2257
2300
|
alignItems: "center",
|
|
2258
|
-
gap: token$2.marginSM
|
|
2301
|
+
gap: token$2.marginSM,
|
|
2302
|
+
minWidth: 0,
|
|
2303
|
+
overflow: "hidden"
|
|
2259
2304
|
},
|
|
2260
2305
|
[scope("arrow-icon")]: {
|
|
2261
2306
|
width: 24,
|
|
@@ -2269,7 +2314,7 @@ const ApiDocumentationBar = ({ apiName, mode, onModeChange, onReset, onSave, has
|
|
|
2269
2314
|
display: "flex",
|
|
2270
2315
|
alignItems: "center",
|
|
2271
2316
|
background: token$2.colorBgLayout,
|
|
2272
|
-
padding: "4px
|
|
2317
|
+
padding: "4px 4px",
|
|
2273
2318
|
borderRadius: token$2.borderRadius,
|
|
2274
2319
|
gap: 8
|
|
2275
2320
|
},
|
|
@@ -2363,15 +2408,22 @@ const ApiDocumentationBar = ({ apiName, mode, onModeChange, onReset, onSave, has
|
|
|
2363
2408
|
children: [
|
|
2364
2409
|
/* @__PURE__ */ jsx("div", {
|
|
2365
2410
|
className: cx("title-section"),
|
|
2366
|
-
children: /* @__PURE__ */
|
|
2367
|
-
|
|
2368
|
-
|
|
2369
|
-
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2411
|
+
children: /* @__PURE__ */ jsx(Tooltip, {
|
|
2412
|
+
title: `${apiName} API Documentation`,
|
|
2413
|
+
children: /* @__PURE__ */ jsxs(Title$1, {
|
|
2414
|
+
level: 3,
|
|
2415
|
+
style: {
|
|
2416
|
+
margin: 0,
|
|
2417
|
+
fontWeight: 600,
|
|
2418
|
+
whiteSpace: "nowrap",
|
|
2419
|
+
overflow: "hidden",
|
|
2420
|
+
textOverflow: "ellipsis",
|
|
2421
|
+
color: token$1.colorTextHeading,
|
|
2422
|
+
minWidth: 0,
|
|
2423
|
+
flex: 1
|
|
2424
|
+
},
|
|
2425
|
+
children: [apiName, " API Documentation"]
|
|
2426
|
+
})
|
|
2375
2427
|
})
|
|
2376
2428
|
}),
|
|
2377
2429
|
/* @__PURE__ */ jsxs("div", {
|
|
@@ -2581,70 +2633,103 @@ const GeneralSection = ({ apiName, authType, version, description, onApiNameChan
|
|
|
2581
2633
|
};
|
|
2582
2634
|
|
|
2583
2635
|
//#endregion
|
|
2584
|
-
//#region src/assets/trash.
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2588
|
-
|
|
2589
|
-
|
|
2590
|
-
|
|
2591
|
-
|
|
2592
|
-
|
|
2593
|
-
|
|
2594
|
-
}
|
|
2595
|
-
|
|
2596
|
-
|
|
2597
|
-
|
|
2598
|
-
|
|
2599
|
-
|
|
2600
|
-
|
|
2601
|
-
|
|
2602
|
-
|
|
2603
|
-
|
|
2604
|
-
|
|
2605
|
-
|
|
2606
|
-
|
|
2607
|
-
|
|
2608
|
-
|
|
2609
|
-
|
|
2610
|
-
|
|
2611
|
-
|
|
2612
|
-
|
|
2613
|
-
|
|
2614
|
-
|
|
2615
|
-
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2636
|
+
//#region src/assets/trash.tsx
|
|
2637
|
+
const Trash = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
2638
|
+
viewBox: "0 0 40 40",
|
|
2639
|
+
fill: "none",
|
|
2640
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2641
|
+
...props,
|
|
2642
|
+
children: [
|
|
2643
|
+
/* @__PURE__ */ jsx("mask", {
|
|
2644
|
+
id: "path-1-inside-1_17984_239034",
|
|
2645
|
+
fill: "white",
|
|
2646
|
+
children: /* @__PURE__ */ jsx("path", { d: "M0 8C0 3.58172 3.58172 0 8 0H32C36.4183 0 40 3.58172 40 8V32C40 36.4183 36.4183 40 32 40H8C3.58172 40 0 36.4183 0 32V8Z" })
|
|
2647
|
+
}),
|
|
2648
|
+
/* @__PURE__ */ jsx("path", {
|
|
2649
|
+
d: "M8 0V1H32V0V-1H8V0ZM40 8H39V32H40H41V8H40ZM32 40V39H8V40V41H32V40ZM0 32H1V8H0H-1V32H0ZM8 40V39C4.13401 39 1 35.866 1 32H0H-1C-1 36.9706 3.02944 41 8 41V40ZM40 32H39C39 35.866 35.866 39 32 39V40V41C36.9706 41 41 36.9706 41 32H40ZM32 0V1C35.866 1 39 4.13401 39 8H40H41C41 3.02944 36.9706 -1 32 -1V0ZM8 0V-1C3.02944 -1 -1 3.02944 -1 8H0H1C1 4.13401 4.13401 1 8 1V0Z",
|
|
2650
|
+
fill: "#FF4D4F",
|
|
2651
|
+
mask: "url(#path-1-inside-1_17984_239034)"
|
|
2652
|
+
}),
|
|
2653
|
+
/* @__PURE__ */ jsx("path", {
|
|
2654
|
+
d: "M26.75 15.4844C24.2525 15.2369 21.74 15.1094 19.235 15.1094C17.75 15.1094 16.265 15.1844 14.78 15.3344L13.25 15.4844",
|
|
2655
|
+
fill: "#FF4D4F"
|
|
2656
|
+
}),
|
|
2657
|
+
/* @__PURE__ */ jsx("path", {
|
|
2658
|
+
d: "M26.75 15.4844C24.2525 15.2369 21.74 15.1094 19.235 15.1094C17.75 15.1094 16.265 15.1844 14.78 15.3344L13.25 15.4844",
|
|
2659
|
+
stroke: "#FF4D4F",
|
|
2660
|
+
strokeWidth: "1.5",
|
|
2661
|
+
strokeLinecap: "round",
|
|
2662
|
+
strokeLinejoin: "round"
|
|
2663
|
+
}),
|
|
2664
|
+
/* @__PURE__ */ jsx("path", {
|
|
2665
|
+
d: "M17.375 14.7275L17.54 13.745C17.66 13.0325 17.75 12.5 19.0175 12.5H20.9825C22.25 12.5 22.3475 13.0625 22.46 13.7525L22.625 14.7275",
|
|
2666
|
+
stroke: "#FF4D4F",
|
|
2667
|
+
strokeWidth: "1.5",
|
|
2668
|
+
strokeLinecap: "round",
|
|
2669
|
+
strokeLinejoin: "round"
|
|
2670
|
+
}),
|
|
2671
|
+
/* @__PURE__ */ jsx("path", {
|
|
2672
|
+
d: "M25.1373 17.8555L24.6498 25.408C24.5673 26.5855 24.4998 27.5005 22.4073 27.5005H17.5923C15.4998 27.5005 15.4323 26.5855 15.3498 25.408L14.8623 17.8555",
|
|
2673
|
+
stroke: "#FF4D4F",
|
|
2674
|
+
strokeWidth: "1.5",
|
|
2675
|
+
strokeLinecap: "round",
|
|
2676
|
+
strokeLinejoin: "round"
|
|
2677
|
+
}),
|
|
2678
|
+
/* @__PURE__ */ jsx("path", {
|
|
2679
|
+
d: "M18.7476 23.375H21.2451",
|
|
2680
|
+
stroke: "#FF4D4F",
|
|
2681
|
+
strokeWidth: "1.5",
|
|
2682
|
+
strokeLinecap: "round",
|
|
2683
|
+
strokeLinejoin: "round"
|
|
2684
|
+
}),
|
|
2685
|
+
/* @__PURE__ */ jsx("path", {
|
|
2686
|
+
d: "M18.125 20.375H21.875",
|
|
2687
|
+
stroke: "#FF4D4F",
|
|
2688
|
+
strokeWidth: "1.5",
|
|
2689
|
+
strokeLinecap: "round",
|
|
2690
|
+
strokeLinejoin: "round"
|
|
2691
|
+
})
|
|
2692
|
+
]
|
|
2693
|
+
});
|
|
2694
|
+
var trash_default = Trash;
|
|
2619
2695
|
|
|
2620
2696
|
//#endregion
|
|
2621
|
-
//#region src/assets/info-circle.
|
|
2622
|
-
|
|
2623
|
-
|
|
2624
|
-
|
|
2625
|
-
|
|
2626
|
-
|
|
2627
|
-
|
|
2628
|
-
|
|
2629
|
-
|
|
2630
|
-
|
|
2631
|
-
|
|
2632
|
-
|
|
2633
|
-
|
|
2634
|
-
|
|
2635
|
-
|
|
2636
|
-
|
|
2637
|
-
|
|
2638
|
-
|
|
2639
|
-
|
|
2640
|
-
|
|
2641
|
-
|
|
2642
|
-
|
|
2643
|
-
|
|
2644
|
-
|
|
2645
|
-
|
|
2646
|
-
|
|
2647
|
-
|
|
2697
|
+
//#region src/assets/info-circle.tsx
|
|
2698
|
+
const InfoCircle = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
2699
|
+
width: "24",
|
|
2700
|
+
height: "24",
|
|
2701
|
+
viewBox: "0 0 24 24",
|
|
2702
|
+
fill: "none",
|
|
2703
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2704
|
+
...props,
|
|
2705
|
+
children: [
|
|
2706
|
+
/* @__PURE__ */ jsx("path", {
|
|
2707
|
+
d: "M12 22C17.5 22 22 17.5 22 12C22 6.5 17.5 2 12 2C6.5 2 2 6.5 2 12C2 17.5 6.5 22 12 22Z",
|
|
2708
|
+
stroke: "black",
|
|
2709
|
+
strokeOpacity: "0.45",
|
|
2710
|
+
strokeWidth: "1.5",
|
|
2711
|
+
strokeLinecap: "round",
|
|
2712
|
+
strokeLinejoin: "round"
|
|
2713
|
+
}),
|
|
2714
|
+
/* @__PURE__ */ jsx("path", {
|
|
2715
|
+
d: "M12 8V13",
|
|
2716
|
+
stroke: "black",
|
|
2717
|
+
strokeOpacity: "0.45",
|
|
2718
|
+
strokeWidth: "1.5",
|
|
2719
|
+
strokeLinecap: "round",
|
|
2720
|
+
strokeLinejoin: "round"
|
|
2721
|
+
}),
|
|
2722
|
+
/* @__PURE__ */ jsx("path", {
|
|
2723
|
+
d: "M11.9946 16H12.0036",
|
|
2724
|
+
stroke: "black",
|
|
2725
|
+
strokeOpacity: "0.45",
|
|
2726
|
+
strokeWidth: "1.5",
|
|
2727
|
+
strokeLinecap: "round",
|
|
2728
|
+
strokeLinejoin: "round"
|
|
2729
|
+
})
|
|
2730
|
+
]
|
|
2731
|
+
});
|
|
2732
|
+
var info_circle_default = InfoCircle;
|
|
2648
2733
|
|
|
2649
2734
|
//#endregion
|
|
2650
2735
|
//#region src/hooks/useDebounce.ts
|
|
@@ -3367,7 +3452,8 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
|
|
|
3367
3452
|
padding: `${token$2.paddingXS}px ${token$2.padding}px`,
|
|
3368
3453
|
background: token$2.colorFillSecondary,
|
|
3369
3454
|
borderRadius: token$2.borderRadius,
|
|
3370
|
-
cursor: "pointer"
|
|
3455
|
+
cursor: "pointer",
|
|
3456
|
+
overflow: "hidden"
|
|
3371
3457
|
},
|
|
3372
3458
|
[scope("endpoint-card-active")]: {
|
|
3373
3459
|
background: "transparent",
|
|
@@ -3391,7 +3477,10 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
|
|
|
3391
3477
|
fontSize: token$2.fontSizeLG,
|
|
3392
3478
|
fontWeight: 600,
|
|
3393
3479
|
color: token$2.colorTextHeading,
|
|
3394
|
-
lineHeight: "24px"
|
|
3480
|
+
lineHeight: "24px",
|
|
3481
|
+
overflow: "hidden",
|
|
3482
|
+
textOverflow: "ellipsis",
|
|
3483
|
+
whiteSpace: "nowrap"
|
|
3395
3484
|
},
|
|
3396
3485
|
[scope("endpoint-form")]: {
|
|
3397
3486
|
display: "flex",
|
|
@@ -4012,14 +4101,17 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
|
|
|
4012
4101
|
children: [/* @__PURE__ */ jsx("span", {
|
|
4013
4102
|
className: cx("method-badge"),
|
|
4014
4103
|
style: {
|
|
4015
|
-
color: methodColor?.color,
|
|
4104
|
+
color: isExpanded ? "#ffffff" : methodColor?.color,
|
|
4016
4105
|
borderColor: methodColor?.color,
|
|
4017
|
-
backgroundColor: methodColor?.
|
|
4106
|
+
backgroundColor: isExpanded ? methodColor?.color : "transparent"
|
|
4018
4107
|
},
|
|
4019
4108
|
children: ep.method
|
|
4020
|
-
}), /* @__PURE__ */ jsx(
|
|
4021
|
-
|
|
4022
|
-
children:
|
|
4109
|
+
}), /* @__PURE__ */ jsx(Tooltip, {
|
|
4110
|
+
title: ep.path,
|
|
4111
|
+
children: /* @__PURE__ */ jsx("span", {
|
|
4112
|
+
className: cx("endpoint-path"),
|
|
4113
|
+
children: ep.path
|
|
4114
|
+
})
|
|
4023
4115
|
})]
|
|
4024
4116
|
}), /* @__PURE__ */ jsx(UpCircleOutlined, {
|
|
4025
4117
|
onClick: () => handleEndpointClick(ep),
|
|
@@ -5128,7 +5220,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
|
|
|
5128
5220
|
//#endregion
|
|
5129
5221
|
//#region src/view/components/ApiPage/components/UnsavedChangesBanner.tsx
|
|
5130
5222
|
const UnsavedChangesBanner = ({ onClose }) => {
|
|
5131
|
-
const { wrapSSR, cx
|
|
5223
|
+
const { wrapSSR, cx } = useStyle("UnsavedChangesBanner", (token$1, scope) => ({
|
|
5132
5224
|
[scope("root")]: {
|
|
5133
5225
|
position: "sticky",
|
|
5134
5226
|
top: 0,
|
|
@@ -5138,7 +5230,7 @@ const UnsavedChangesBanner = ({ onClose }) => {
|
|
|
5138
5230
|
},
|
|
5139
5231
|
[scope("alert")]: {
|
|
5140
5232
|
padding: "8px 12px",
|
|
5141
|
-
fontSize: token$
|
|
5233
|
+
fontSize: token$1.fontSize,
|
|
5142
5234
|
fontWeight: 400,
|
|
5143
5235
|
borderRadius: 0
|
|
5144
5236
|
}
|
|
@@ -5197,14 +5289,15 @@ const TagsSection = ({ tags, collapsed = false, onToggleCollapse, onAddTag, onEd
|
|
|
5197
5289
|
alignItems: "center",
|
|
5198
5290
|
justifyContent: "space-between",
|
|
5199
5291
|
height: 50,
|
|
5200
|
-
|
|
5292
|
+
paddingTop: token$2.controlHeightLG,
|
|
5293
|
+
paddingBottom: token$2.controlHeightLG,
|
|
5201
5294
|
paddingRight: token$2.paddingLG,
|
|
5202
5295
|
borderBottom: `1px solid ${token$2.colorBorder}`,
|
|
5203
5296
|
width: "100%"
|
|
5204
5297
|
},
|
|
5205
5298
|
[scope("tag-row-last")]: {
|
|
5206
5299
|
borderBottom: "none",
|
|
5207
|
-
paddingBottom:
|
|
5300
|
+
paddingBottom: token$2.marginLG
|
|
5208
5301
|
},
|
|
5209
5302
|
[scope("tag-info")]: {
|
|
5210
5303
|
display: "flex",
|
|
@@ -6046,32 +6139,23 @@ const transformOpenApiToDocs = (api) => {
|
|
|
6046
6139
|
};
|
|
6047
6140
|
|
|
6048
6141
|
//#endregion
|
|
6049
|
-
//#region src/assets/copy.
|
|
6050
|
-
|
|
6051
|
-
|
|
6052
|
-
|
|
6053
|
-
|
|
6054
|
-
|
|
6055
|
-
|
|
6056
|
-
|
|
6057
|
-
|
|
6058
|
-
|
|
6059
|
-
|
|
6060
|
-
|
|
6061
|
-
|
|
6062
|
-
|
|
6063
|
-
|
|
6064
|
-
|
|
6065
|
-
|
|
6066
|
-
}, props), _path || (_path = /* @__PURE__ */ React.createElement("path", {
|
|
6067
|
-
fill: "currentcolor",
|
|
6068
|
-
d: "M7.4 15.167H4.6c-2.607 0-3.767-1.16-3.767-3.766V8.6c0-2.607 1.16-3.767 3.767-3.767h2.8c2.606 0 3.766 1.16 3.766 3.767v2.8c0 2.606-1.16 3.766-3.766 3.766M4.6 5.834c-2.067 0-2.767.7-2.767 2.767v2.8c0 2.066.7 2.766 2.767 2.766h2.8c2.066 0 2.766-.7 2.766-2.766V8.6c0-2.067-.7-2.767-2.766-2.767z"
|
|
6069
|
-
})), _path2 || (_path2 = /* @__PURE__ */ React.createElement("path", {
|
|
6070
|
-
fill: "currentcolor",
|
|
6071
|
-
d: "M11.4 11.167h-.734a.504.504 0 0 1-.5-.5V8.601c0-2.067-.7-2.767-2.766-2.767H5.333a.504.504 0 0 1-.5-.5v-.733C4.833 1.994 5.993.834 8.6.834h2.8c2.606 0 3.766 1.16 3.766 3.767v2.8c0 2.606-1.16 3.766-3.766 3.766m-.234-1h.234c2.066 0 2.766-.7 2.766-2.766V4.6c0-2.067-.7-2.767-2.766-2.767H8.6c-2.067 0-2.767.7-2.767 2.767v.233H7.4c2.606 0 3.766 1.16 3.766 3.767z"
|
|
6072
|
-
})));
|
|
6073
|
-
};
|
|
6074
|
-
var copy_default = SvgCopy;
|
|
6142
|
+
//#region src/assets/copy.tsx
|
|
6143
|
+
const Copy = (props) => /* @__PURE__ */ jsxs("svg", {
|
|
6144
|
+
width: "16",
|
|
6145
|
+
height: "16",
|
|
6146
|
+
viewBox: "0 0 16 16",
|
|
6147
|
+
fill: "none",
|
|
6148
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6149
|
+
...props,
|
|
6150
|
+
children: [/* @__PURE__ */ jsx("path", {
|
|
6151
|
+
d: "M7.39967 15.1673H4.59967C1.99301 15.1673 0.833008 14.0073 0.833008 11.4007V8.60065C0.833008 5.99398 1.99301 4.83398 4.59967 4.83398H7.39967C10.0063 4.83398 11.1663 5.99398 11.1663 8.60065V11.4007C11.1663 14.0073 10.0063 15.1673 7.39967 15.1673ZM4.59967 5.83398C2.53301 5.83398 1.83301 6.53398 1.83301 8.60065V11.4007C1.83301 13.4673 2.53301 14.1673 4.59967 14.1673H7.39967C9.46634 14.1673 10.1663 13.4673 10.1663 11.4007V8.60065C10.1663 6.53398 9.46634 5.83398 7.39967 5.83398H4.59967Z",
|
|
6152
|
+
fill: "currentcolor"
|
|
6153
|
+
}), /* @__PURE__ */ jsx("path", {
|
|
6154
|
+
d: "M11.3997 11.1673H10.6663C10.393 11.1673 10.1663 10.9407 10.1663 10.6673V8.60065C10.1663 6.53398 9.46634 5.83398 7.39967 5.83398H5.33301C5.05967 5.83398 4.83301 5.60732 4.83301 5.33398V4.60065C4.83301 1.99398 5.99301 0.833984 8.59967 0.833984H11.3997C14.0063 0.833984 15.1663 1.99398 15.1663 4.60065V7.40065C15.1663 10.0073 14.0063 11.1673 11.3997 11.1673ZM11.1663 10.1673H11.3997C13.4663 10.1673 14.1663 9.46732 14.1663 7.40065V4.60065C14.1663 2.53398 13.4663 1.83398 11.3997 1.83398H8.59967C6.53301 1.83398 5.83301 2.53398 5.83301 4.60065V4.83398H7.39967C10.0063 4.83398 11.1663 5.99398 11.1663 8.60065V10.1673Z",
|
|
6155
|
+
fill: "currentcolor"
|
|
6156
|
+
})]
|
|
6157
|
+
});
|
|
6158
|
+
var copy_default = Copy;
|
|
6075
6159
|
|
|
6076
6160
|
//#endregion
|
|
6077
6161
|
//#region src/view/components/EndpointPage/Codebox/Codebox.tsx
|