@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.cjs
CHANGED
|
@@ -462,36 +462,36 @@ var token = {
|
|
|
462
462
|
//#region src/view/helper/sidebar.utils.ts
|
|
463
463
|
const methodColors = {
|
|
464
464
|
GET: {
|
|
465
|
-
bg:
|
|
465
|
+
bg: "transparent",
|
|
466
466
|
color: token.colorPrimary
|
|
467
467
|
},
|
|
468
468
|
POST: {
|
|
469
|
-
bg:
|
|
470
|
-
color:
|
|
469
|
+
bg: "transparent",
|
|
470
|
+
color: token.colorSuccess
|
|
471
471
|
},
|
|
472
472
|
DELETE: {
|
|
473
|
-
bg:
|
|
473
|
+
bg: "transparent",
|
|
474
474
|
color: token.colorError
|
|
475
475
|
},
|
|
476
476
|
PUT: {
|
|
477
|
-
bg:
|
|
477
|
+
bg: "transparent",
|
|
478
478
|
color: token.colorWarning
|
|
479
479
|
},
|
|
480
480
|
PATCH: {
|
|
481
|
-
bg:
|
|
481
|
+
bg: "transparent",
|
|
482
482
|
color: token["volcano.5"]
|
|
483
483
|
},
|
|
484
484
|
OPTIONS: {
|
|
485
|
-
bg:
|
|
485
|
+
bg: "transparent",
|
|
486
486
|
color: token["geekblue.6"]
|
|
487
487
|
},
|
|
488
488
|
HEAD: {
|
|
489
|
-
bg:
|
|
489
|
+
bg: "transparent",
|
|
490
490
|
color: token["purple.5"]
|
|
491
491
|
},
|
|
492
492
|
TRACE: {
|
|
493
|
-
bg:
|
|
494
|
-
color: token["
|
|
493
|
+
bg: "transparent",
|
|
494
|
+
color: token["volcano.4"]
|
|
495
495
|
}
|
|
496
496
|
};
|
|
497
497
|
const darkerMethodColors = {
|
|
@@ -528,43 +528,91 @@ const darkerMethodColors = {
|
|
|
528
528
|
color: "#FFFFFF"
|
|
529
529
|
}
|
|
530
530
|
};
|
|
531
|
+
const sidebarMethodColors = {
|
|
532
|
+
GET: {
|
|
533
|
+
bg: token.colorPrimaryBgHover,
|
|
534
|
+
color: token.colorPrimary
|
|
535
|
+
},
|
|
536
|
+
POST: {
|
|
537
|
+
bg: token.colorSuccessBg,
|
|
538
|
+
color: token.colorSuccess
|
|
539
|
+
},
|
|
540
|
+
DELETE: {
|
|
541
|
+
bg: token.colorErrorBg,
|
|
542
|
+
color: token.colorError
|
|
543
|
+
},
|
|
544
|
+
PUT: {
|
|
545
|
+
bg: token.colorWarningBg,
|
|
546
|
+
color: token.colorWarning
|
|
547
|
+
},
|
|
548
|
+
PATCH: {
|
|
549
|
+
bg: token["volcano.1"],
|
|
550
|
+
color: token["volcano.5"]
|
|
551
|
+
},
|
|
552
|
+
OPTIONS: {
|
|
553
|
+
bg: token["geekblue.2"],
|
|
554
|
+
color: token["geekblue.6"]
|
|
555
|
+
},
|
|
556
|
+
HEAD: {
|
|
557
|
+
bg: token["purple.1"],
|
|
558
|
+
color: token["purple.5"]
|
|
559
|
+
},
|
|
560
|
+
TRACE: {
|
|
561
|
+
bg: token["volcano.1"],
|
|
562
|
+
color: token["volcano.4"]
|
|
563
|
+
}
|
|
564
|
+
};
|
|
531
565
|
const buildTreeDataStructure = (data) => {
|
|
532
566
|
if (!data) return [];
|
|
533
567
|
return data.map((api) => {
|
|
534
568
|
const tagEntries = Object.entries(api.tags);
|
|
569
|
+
const defaultTag = tagEntries.find(([tag]) => tag.toLowerCase() === "default");
|
|
570
|
+
const nonDefaultTags = tagEntries.filter(([tag]) => tag.toLowerCase() !== "default");
|
|
571
|
+
const defaultEndpoints = defaultTag ? defaultTag[1].map((endpoint) => ({
|
|
572
|
+
title: endpoint.summary,
|
|
573
|
+
key: endpoint.id,
|
|
574
|
+
isLeaf: true,
|
|
575
|
+
selectable: true,
|
|
576
|
+
method: endpoint.method,
|
|
577
|
+
data: {
|
|
578
|
+
endpoint,
|
|
579
|
+
api,
|
|
580
|
+
tagName: "default",
|
|
581
|
+
parentApiId: api.id
|
|
582
|
+
}
|
|
583
|
+
})) : [];
|
|
584
|
+
const tagNodes = nonDefaultTags.map(([tag, endpoints]) => {
|
|
585
|
+
const tagId = `tag-${api.id}-${tag.replace(/\s+/g, "-").toLowerCase()}`;
|
|
586
|
+
return {
|
|
587
|
+
title: tag,
|
|
588
|
+
key: tagId,
|
|
589
|
+
selectable: true,
|
|
590
|
+
data: {
|
|
591
|
+
tagName: tag,
|
|
592
|
+
apiData: api
|
|
593
|
+
},
|
|
594
|
+
children: endpoints.map((endpoint) => ({
|
|
595
|
+
title: endpoint.summary,
|
|
596
|
+
key: endpoint.id,
|
|
597
|
+
isLeaf: true,
|
|
598
|
+
selectable: true,
|
|
599
|
+
method: endpoint.method,
|
|
600
|
+
data: {
|
|
601
|
+
endpoint,
|
|
602
|
+
api,
|
|
603
|
+
tagName: tag,
|
|
604
|
+
parentApiId: api.id,
|
|
605
|
+
tagId
|
|
606
|
+
}
|
|
607
|
+
}))
|
|
608
|
+
};
|
|
609
|
+
});
|
|
535
610
|
return {
|
|
536
611
|
title: api.title,
|
|
537
612
|
key: api.id,
|
|
538
613
|
selectable: true,
|
|
539
614
|
data: api,
|
|
540
|
-
children:
|
|
541
|
-
const tagId = `tag-${api.id}-${tag.replace(/\s+/g, "-").toLowerCase()}`;
|
|
542
|
-
return {
|
|
543
|
-
title: tag,
|
|
544
|
-
key: tagId,
|
|
545
|
-
selectable: true,
|
|
546
|
-
data: {
|
|
547
|
-
tagName: tag,
|
|
548
|
-
apiData: api
|
|
549
|
-
},
|
|
550
|
-
children: endpoints.map((endpoint) => {
|
|
551
|
-
return {
|
|
552
|
-
title: endpoint.summary,
|
|
553
|
-
key: endpoint.id,
|
|
554
|
-
isLeaf: true,
|
|
555
|
-
selectable: true,
|
|
556
|
-
method: endpoint.method,
|
|
557
|
-
data: {
|
|
558
|
-
endpoint,
|
|
559
|
-
api,
|
|
560
|
-
tagName: tag,
|
|
561
|
-
parentApiId: api.id,
|
|
562
|
-
tagId
|
|
563
|
-
}
|
|
564
|
-
};
|
|
565
|
-
})
|
|
566
|
-
};
|
|
567
|
-
})
|
|
615
|
+
children: [...tagNodes, ...defaultEndpoints]
|
|
568
616
|
};
|
|
569
617
|
});
|
|
570
618
|
};
|
|
@@ -667,7 +715,9 @@ const getSidebarStyles = (token$1, scope) => ({
|
|
|
667
715
|
gap: token$1.marginXS,
|
|
668
716
|
width: "100%",
|
|
669
717
|
maxWidth: "100%",
|
|
670
|
-
minWidth: "100%"
|
|
718
|
+
minWidth: "100%",
|
|
719
|
+
paddingLeft: token$1.marginXS,
|
|
720
|
+
paddingRight: token$1.marginXS
|
|
671
721
|
},
|
|
672
722
|
[scope("method-tag")]: {
|
|
673
723
|
width: 51,
|
|
@@ -700,7 +750,8 @@ const getSidebarStyles = (token$1, scope) => ({
|
|
|
700
750
|
color: token$1.colorText,
|
|
701
751
|
maxWidth: "100%",
|
|
702
752
|
display: "block",
|
|
703
|
-
|
|
753
|
+
paddingLeft: "4px",
|
|
754
|
+
paddingRight: "4px",
|
|
704
755
|
margin: 0
|
|
705
756
|
}
|
|
706
757
|
});
|
|
@@ -709,7 +760,7 @@ const getSidebarStyles = (token$1, scope) => ({
|
|
|
709
760
|
//#region src/view/helper/sidebar.components.tsx
|
|
710
761
|
const { Text: Text$3 } = antd.Typography;
|
|
711
762
|
const EndpointItem = ({ method, title, cx, isSelected = false }) => {
|
|
712
|
-
const methodStyle = (isSelected ? darkerMethodColors :
|
|
763
|
+
const methodStyle = (isSelected ? darkerMethodColors : sidebarMethodColors)[method];
|
|
713
764
|
const isPost = method?.toUpperCase() === "POST";
|
|
714
765
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
715
766
|
className: `${cx("endpoint-item")}${isSelected ? ` ${cx("endpoint-item-selected")}` : ""}`,
|
|
@@ -867,29 +918,23 @@ const useNodeSelection = () => {
|
|
|
867
918
|
};
|
|
868
919
|
|
|
869
920
|
//#endregion
|
|
870
|
-
//#region src/assets/Minify.
|
|
871
|
-
|
|
872
|
-
|
|
873
|
-
|
|
874
|
-
|
|
875
|
-
|
|
876
|
-
|
|
877
|
-
|
|
878
|
-
|
|
879
|
-
|
|
880
|
-
|
|
881
|
-
|
|
882
|
-
|
|
883
|
-
|
|
884
|
-
|
|
885
|
-
|
|
886
|
-
|
|
887
|
-
}, props), _path$5 || (_path$5 = /* @__PURE__ */ react.createElement("path", {
|
|
888
|
-
stroke: "currentcolor",
|
|
889
|
-
d: "m6 11.334 2-2 2 2M6 4.666l2 2 2-2"
|
|
890
|
-
})));
|
|
891
|
-
};
|
|
892
|
-
var Minify_default = SvgMinify;
|
|
921
|
+
//#region src/assets/Minify.tsx
|
|
922
|
+
const Minify = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
923
|
+
width: "16",
|
|
924
|
+
height: "16",
|
|
925
|
+
viewBox: "0 0 16 16",
|
|
926
|
+
fill: "none",
|
|
927
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
928
|
+
...props,
|
|
929
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
930
|
+
d: "M6 11.334L8 9.33398L10 11.334",
|
|
931
|
+
stroke: "currentcolor"
|
|
932
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
933
|
+
d: "M6 4.66602L8 6.66602L10 4.66602",
|
|
934
|
+
stroke: "currentcolor"
|
|
935
|
+
})]
|
|
936
|
+
});
|
|
937
|
+
var Minify_default = Minify;
|
|
893
938
|
|
|
894
939
|
//#endregion
|
|
895
940
|
//#region src/view/components/NoDataIcon.tsx
|
|
@@ -1224,32 +1269,23 @@ const Sidebar = ({ searchValue, setSearchValue, onNodeSelect }) => {
|
|
|
1224
1269
|
};
|
|
1225
1270
|
|
|
1226
1271
|
//#endregion
|
|
1227
|
-
//#region src/assets/link.
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
}, props), _path$4 || (_path$4 = /* @__PURE__ */ react.createElement("path", {
|
|
1245
|
-
fill: "#4D75D9",
|
|
1246
|
-
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"
|
|
1247
|
-
})), _path2$3 || (_path2$3 = /* @__PURE__ */ react.createElement("path", {
|
|
1248
|
-
fill: "#4D75D9",
|
|
1249
|
-
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"
|
|
1250
|
-
})));
|
|
1251
|
-
};
|
|
1252
|
-
var link_default = SvgLink;
|
|
1272
|
+
//#region src/assets/link.tsx
|
|
1273
|
+
const Link = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
1274
|
+
width: "12",
|
|
1275
|
+
height: "12",
|
|
1276
|
+
viewBox: "0 0 12 12",
|
|
1277
|
+
fill: "none",
|
|
1278
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
1279
|
+
...props,
|
|
1280
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
1281
|
+
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",
|
|
1282
|
+
fill: "#4D75D9"
|
|
1283
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
1284
|
+
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",
|
|
1285
|
+
fill: "#4D75D9"
|
|
1286
|
+
})]
|
|
1287
|
+
});
|
|
1288
|
+
var link_default = Link;
|
|
1253
1289
|
|
|
1254
1290
|
//#endregion
|
|
1255
1291
|
//#region src/view/components/ApiPage/components/ApiCard.tsx
|
|
@@ -1478,11 +1514,11 @@ function formatAuthType(authType) {
|
|
|
1478
1514
|
}
|
|
1479
1515
|
}
|
|
1480
1516
|
const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
|
|
1481
|
-
const { wrapSSR, cx
|
|
1517
|
+
const { wrapSSR, cx } = useStyle("ViewModeApiHeader", (token$1, scope) => ({
|
|
1482
1518
|
[scope("root")]: {
|
|
1483
1519
|
display: "flex",
|
|
1484
1520
|
flexDirection: "column",
|
|
1485
|
-
gap: token$
|
|
1521
|
+
gap: token$1.marginMD
|
|
1486
1522
|
},
|
|
1487
1523
|
[scope("meta-bar")]: {
|
|
1488
1524
|
display: "flex",
|
|
@@ -1498,20 +1534,20 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
|
|
|
1498
1534
|
display: "flex",
|
|
1499
1535
|
alignItems: "center",
|
|
1500
1536
|
paddingRight: 12,
|
|
1501
|
-
borderRight: `1px solid ${token$
|
|
1537
|
+
borderRight: `1px solid ${token$1.colorBorderSecondary}`,
|
|
1502
1538
|
marginRight: 12
|
|
1503
1539
|
},
|
|
1504
1540
|
[scope("jws-tag")]: {
|
|
1505
1541
|
display: "flex",
|
|
1506
1542
|
alignItems: "center",
|
|
1507
1543
|
height: 32,
|
|
1508
|
-
background: token$
|
|
1509
|
-
border: `1px solid ${token$
|
|
1544
|
+
background: token$1.colorPrimaryBg,
|
|
1545
|
+
border: `1px solid ${token$1.colorPrimaryBorder}`,
|
|
1510
1546
|
borderRadius: 6,
|
|
1511
1547
|
padding: "0 8px",
|
|
1512
1548
|
fontSize: 12,
|
|
1513
1549
|
lineHeight: "20px",
|
|
1514
|
-
color: token$
|
|
1550
|
+
color: token$1.colorPrimary,
|
|
1515
1551
|
fontWeight: 400,
|
|
1516
1552
|
margin: 0
|
|
1517
1553
|
},
|
|
@@ -1519,14 +1555,14 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
|
|
|
1519
1555
|
display: "inline-flex",
|
|
1520
1556
|
alignItems: "center",
|
|
1521
1557
|
gap: 4,
|
|
1522
|
-
background: token$
|
|
1523
|
-
border: `1px solid ${token$
|
|
1558
|
+
background: token$1.colorBgContainer,
|
|
1559
|
+
border: `1px solid ${token$1.colorBorder}`,
|
|
1524
1560
|
borderRadius: 4,
|
|
1525
1561
|
padding: "0 8px",
|
|
1526
1562
|
height: 32,
|
|
1527
1563
|
fontSize: 12,
|
|
1528
1564
|
lineHeight: "20px",
|
|
1529
|
-
color: token$
|
|
1565
|
+
color: token$1.colorText,
|
|
1530
1566
|
margin: 0,
|
|
1531
1567
|
boxSizing: "border-box"
|
|
1532
1568
|
},
|
|
@@ -1539,8 +1575,8 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
|
|
|
1539
1575
|
display: "inline-flex",
|
|
1540
1576
|
alignItems: "center",
|
|
1541
1577
|
gap: 8,
|
|
1542
|
-
background: token$
|
|
1543
|
-
border: `1px solid ${token$
|
|
1578
|
+
background: token$1.colorFillTertiary,
|
|
1579
|
+
border: `1px solid ${token$1.colorBorder}`,
|
|
1544
1580
|
borderRadius: 6,
|
|
1545
1581
|
padding: "0 15px",
|
|
1546
1582
|
height: 32,
|
|
@@ -1549,13 +1585,13 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
|
|
|
1549
1585
|
},
|
|
1550
1586
|
[scope("version-icon")]: {
|
|
1551
1587
|
fontSize: 16,
|
|
1552
|
-
color: token$
|
|
1588
|
+
color: token$1.colorTextDisabled,
|
|
1553
1589
|
display: "flex",
|
|
1554
1590
|
alignItems: "center"
|
|
1555
1591
|
},
|
|
1556
1592
|
[scope("version-text")]: {
|
|
1557
1593
|
fontSize: 14,
|
|
1558
|
-
color: token$
|
|
1594
|
+
color: token$1.colorTextDisabled,
|
|
1559
1595
|
fontWeight: 400,
|
|
1560
1596
|
lineHeight: 1
|
|
1561
1597
|
},
|
|
@@ -1569,16 +1605,16 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
|
|
|
1569
1605
|
justifyContent: "center"
|
|
1570
1606
|
},
|
|
1571
1607
|
[scope("toggle-btn-active")]: {
|
|
1572
|
-
border: `1px solid ${token$
|
|
1573
|
-
color: `${token$
|
|
1574
|
-
backgroundColor: `${token$
|
|
1608
|
+
border: `1px solid ${token$1.colorPrimary} !important`,
|
|
1609
|
+
color: `${token$1.colorPrimary} !important`,
|
|
1610
|
+
backgroundColor: `${token$1.colorBgContainer} !important`,
|
|
1575
1611
|
zIndex: 1
|
|
1576
1612
|
},
|
|
1577
1613
|
[scope("description")]: {
|
|
1578
|
-
fontSize: token$
|
|
1579
|
-
color: token$
|
|
1614
|
+
fontSize: token$1.fontSizeLG,
|
|
1615
|
+
color: token$1.colorTextTertiary
|
|
1580
1616
|
},
|
|
1581
|
-
[scope("title")]: { fontFamily: token$
|
|
1617
|
+
[scope("title")]: { fontFamily: token$1.fontFamily }
|
|
1582
1618
|
}));
|
|
1583
1619
|
const version = api.relatedVersions?.find((v) => v.apiId === api.currentVersion)?.version || api.version;
|
|
1584
1620
|
return wrapSSR(/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -1668,10 +1704,9 @@ const ViewModeApiHeader = ({ api, viewLayout, onViewLayoutChange }) => {
|
|
|
1668
1704
|
//#region src/view/components/ApiPage/index.tsx
|
|
1669
1705
|
const APIPage = () => {
|
|
1670
1706
|
const [selectedUrl, setSelectedUrl] = (0, react.useState)("");
|
|
1671
|
-
const { view: { selectedApi,
|
|
1707
|
+
const { view: { selectedApi, focusedTag, setFocusedTag } } = store_default();
|
|
1672
1708
|
const [viewStyle, setViewStyle] = (0, react.useState)("grid");
|
|
1673
|
-
const { wrapSSR,
|
|
1674
|
-
selectedApi?.relatedVersions?.find((v) => v.apiId === selectedApi?.currentVersion);
|
|
1709
|
+
const { wrapSSR, token: token$1 } = useStyle("DocumentationApiPage", () => ({}));
|
|
1675
1710
|
const urlsOptions = (0, react.useMemo)(() => selectedApi?.servers?.map((server) => ({
|
|
1676
1711
|
label: server?.url,
|
|
1677
1712
|
value: server?.url
|
|
@@ -1934,7 +1969,7 @@ const EndpointPage = () => {
|
|
|
1934
1969
|
[scope("row-odd")]: { "& > td": { background: `${token$2.colorBgElevated} !important` } },
|
|
1935
1970
|
[scope("row-even")]: { "& > td": { background: `${token$2.colorBgLayout} !important` } }
|
|
1936
1971
|
}));
|
|
1937
|
-
const methodStyle =
|
|
1972
|
+
const methodStyle = sidebarMethodColors[selectedEndpoint?.method];
|
|
1938
1973
|
const headerParams = buildRequestData(selectedEndpoint?.parameters?.filter((p) => p.in === "header") || [], token$1);
|
|
1939
1974
|
const pathParams = buildRequestData(selectedEndpoint?.parameters?.filter((p) => p.in === "path") || [], token$1);
|
|
1940
1975
|
const queryParams = buildRequestData(selectedEndpoint?.parameters?.filter((p) => p.in === "query") || [], token$1);
|
|
@@ -2041,12 +2076,18 @@ const EndpointPage = () => {
|
|
|
2041
2076
|
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", { children: selectedEndpoint?.tagName || "default" })
|
|
2042
2077
|
})
|
|
2043
2078
|
},
|
|
2044
|
-
{ title: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
2045
|
-
|
|
2046
|
-
|
|
2047
|
-
|
|
2048
|
-
|
|
2049
|
-
|
|
2079
|
+
{ title: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
|
|
2080
|
+
title: selectedEndpoint?.summary || "Endpoint Name",
|
|
2081
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2082
|
+
style: {
|
|
2083
|
+
overflow: "hidden",
|
|
2084
|
+
textOverflow: "ellipsis",
|
|
2085
|
+
whiteSpace: "nowrap",
|
|
2086
|
+
display: "block",
|
|
2087
|
+
maxWidth: "300px"
|
|
2088
|
+
},
|
|
2089
|
+
children: selectedEndpoint?.summary || "Endpoint Name"
|
|
2090
|
+
})
|
|
2050
2091
|
}) }
|
|
2051
2092
|
] })]
|
|
2052
2093
|
}),
|
|
@@ -2069,7 +2110,17 @@ const EndpointPage = () => {
|
|
|
2069
2110
|
flexShrink: 0
|
|
2070
2111
|
},
|
|
2071
2112
|
children: selectedEndpoint?.method
|
|
2072
|
-
}),
|
|
2113
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
|
|
2114
|
+
title: selectedEndpoint?.summary ?? "--",
|
|
2115
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
2116
|
+
style: {
|
|
2117
|
+
overflow: "hidden",
|
|
2118
|
+
textOverflow: "ellipsis",
|
|
2119
|
+
whiteSpace: "nowrap"
|
|
2120
|
+
},
|
|
2121
|
+
children: selectedEndpoint?.summary?.replace(selectedEndpoint?.method, "") ?? "--"
|
|
2122
|
+
})
|
|
2123
|
+
})]
|
|
2073
2124
|
}),
|
|
2074
2125
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(Paragraph, {
|
|
2075
2126
|
style: {
|
|
@@ -2121,38 +2172,29 @@ const EndpointPage = () => {
|
|
|
2121
2172
|
};
|
|
2122
2173
|
|
|
2123
2174
|
//#endregion
|
|
2124
|
-
//#region src/assets/mouseSquare.
|
|
2125
|
-
|
|
2126
|
-
|
|
2127
|
-
|
|
2128
|
-
|
|
2129
|
-
|
|
2130
|
-
|
|
2131
|
-
|
|
2132
|
-
|
|
2133
|
-
|
|
2134
|
-
|
|
2135
|
-
|
|
2136
|
-
return /* @__PURE__ */ react.createElement("svg", _extends$3({
|
|
2137
|
-
xmlns: "http://www.w3.org/2000/svg",
|
|
2138
|
-
width: 18,
|
|
2139
|
-
height: 18,
|
|
2140
|
-
fill: "none"
|
|
2141
|
-
}, props), _path$3 || (_path$3 = /* @__PURE__ */ react.createElement("path", {
|
|
2142
|
-
stroke: "#fff",
|
|
2175
|
+
//#region src/assets/mouseSquare.tsx
|
|
2176
|
+
const MouseSquare = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
2177
|
+
width: "18",
|
|
2178
|
+
height: "18",
|
|
2179
|
+
viewBox: "0 0 18 18",
|
|
2180
|
+
fill: "none",
|
|
2181
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2182
|
+
...props,
|
|
2183
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
2184
|
+
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",
|
|
2185
|
+
stroke: "white",
|
|
2186
|
+
strokeWidth: "1.5",
|
|
2143
2187
|
strokeLinecap: "round",
|
|
2144
|
-
strokeLinejoin: "round"
|
|
2145
|
-
|
|
2146
|
-
d: "
|
|
2147
|
-
|
|
2148
|
-
|
|
2188
|
+
strokeLinejoin: "round"
|
|
2189
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
2190
|
+
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",
|
|
2191
|
+
stroke: "white",
|
|
2192
|
+
strokeWidth: "1.5",
|
|
2149
2193
|
strokeLinecap: "round",
|
|
2150
|
-
strokeLinejoin: "round"
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
2154
|
-
};
|
|
2155
|
-
var mouseSquare_default = SvgMouseSquare;
|
|
2194
|
+
strokeLinejoin: "round"
|
|
2195
|
+
})]
|
|
2196
|
+
});
|
|
2197
|
+
var mouseSquare_default = MouseSquare;
|
|
2156
2198
|
|
|
2157
2199
|
//#endregion
|
|
2158
2200
|
//#region src/view/components/MainContent.tsx
|
|
@@ -2163,7 +2205,9 @@ const MainContent = ({ searchEnabled, handleResetSearch, handleVisitLandingPage
|
|
|
2163
2205
|
width: "100%",
|
|
2164
2206
|
height: "auto",
|
|
2165
2207
|
borderRadius: token$2.borderRadius,
|
|
2166
|
-
padding: token$2.paddingXL
|
|
2208
|
+
padding: token$2.paddingXL,
|
|
2209
|
+
overflow: "hidden",
|
|
2210
|
+
minWidth: 0
|
|
2167
2211
|
},
|
|
2168
2212
|
[scope("centered")]: {
|
|
2169
2213
|
display: "flex",
|
|
@@ -2286,7 +2330,9 @@ const ApiDocumentationBar = ({ apiName, mode, onModeChange, onReset, onSave, has
|
|
|
2286
2330
|
flex: 1,
|
|
2287
2331
|
display: "flex",
|
|
2288
2332
|
alignItems: "center",
|
|
2289
|
-
gap: token$2.marginSM
|
|
2333
|
+
gap: token$2.marginSM,
|
|
2334
|
+
minWidth: 0,
|
|
2335
|
+
overflow: "hidden"
|
|
2290
2336
|
},
|
|
2291
2337
|
[scope("arrow-icon")]: {
|
|
2292
2338
|
width: 24,
|
|
@@ -2300,7 +2346,7 @@ const ApiDocumentationBar = ({ apiName, mode, onModeChange, onReset, onSave, has
|
|
|
2300
2346
|
display: "flex",
|
|
2301
2347
|
alignItems: "center",
|
|
2302
2348
|
background: token$2.colorBgLayout,
|
|
2303
|
-
padding: "4px
|
|
2349
|
+
padding: "4px 4px",
|
|
2304
2350
|
borderRadius: token$2.borderRadius,
|
|
2305
2351
|
gap: 8
|
|
2306
2352
|
},
|
|
@@ -2394,15 +2440,22 @@ const ApiDocumentationBar = ({ apiName, mode, onModeChange, onReset, onSave, has
|
|
|
2394
2440
|
children: [
|
|
2395
2441
|
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("div", {
|
|
2396
2442
|
className: cx("title-section"),
|
|
2397
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.
|
|
2398
|
-
|
|
2399
|
-
|
|
2400
|
-
|
|
2401
|
-
|
|
2402
|
-
|
|
2403
|
-
|
|
2404
|
-
|
|
2405
|
-
|
|
2443
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
|
|
2444
|
+
title: `${apiName} API Documentation`,
|
|
2445
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(Title$3, {
|
|
2446
|
+
level: 3,
|
|
2447
|
+
style: {
|
|
2448
|
+
margin: 0,
|
|
2449
|
+
fontWeight: 600,
|
|
2450
|
+
whiteSpace: "nowrap",
|
|
2451
|
+
overflow: "hidden",
|
|
2452
|
+
textOverflow: "ellipsis",
|
|
2453
|
+
color: token$1.colorTextHeading,
|
|
2454
|
+
minWidth: 0,
|
|
2455
|
+
flex: 1
|
|
2456
|
+
},
|
|
2457
|
+
children: [apiName, " API Documentation"]
|
|
2458
|
+
})
|
|
2406
2459
|
})
|
|
2407
2460
|
}),
|
|
2408
2461
|
/* @__PURE__ */ (0, react_jsx_runtime.jsxs)("div", {
|
|
@@ -2612,70 +2665,103 @@ const GeneralSection = ({ apiName, authType, version, description, onApiNameChan
|
|
|
2612
2665
|
};
|
|
2613
2666
|
|
|
2614
2667
|
//#endregion
|
|
2615
|
-
//#region src/assets/trash.
|
|
2616
|
-
|
|
2617
|
-
|
|
2618
|
-
|
|
2619
|
-
|
|
2620
|
-
|
|
2621
|
-
|
|
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
|
-
|
|
2648
|
-
|
|
2649
|
-
|
|
2668
|
+
//#region src/assets/trash.tsx
|
|
2669
|
+
const Trash = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
2670
|
+
viewBox: "0 0 40 40",
|
|
2671
|
+
fill: "none",
|
|
2672
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2673
|
+
...props,
|
|
2674
|
+
children: [
|
|
2675
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("mask", {
|
|
2676
|
+
id: "path-1-inside-1_17984_239034",
|
|
2677
|
+
fill: "white",
|
|
2678
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.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" })
|
|
2679
|
+
}),
|
|
2680
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
2681
|
+
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",
|
|
2682
|
+
fill: "#FF4D4F",
|
|
2683
|
+
mask: "url(#path-1-inside-1_17984_239034)"
|
|
2684
|
+
}),
|
|
2685
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
2686
|
+
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",
|
|
2687
|
+
fill: "#FF4D4F"
|
|
2688
|
+
}),
|
|
2689
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
2690
|
+
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",
|
|
2691
|
+
stroke: "#FF4D4F",
|
|
2692
|
+
strokeWidth: "1.5",
|
|
2693
|
+
strokeLinecap: "round",
|
|
2694
|
+
strokeLinejoin: "round"
|
|
2695
|
+
}),
|
|
2696
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
2697
|
+
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",
|
|
2698
|
+
stroke: "#FF4D4F",
|
|
2699
|
+
strokeWidth: "1.5",
|
|
2700
|
+
strokeLinecap: "round",
|
|
2701
|
+
strokeLinejoin: "round"
|
|
2702
|
+
}),
|
|
2703
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
2704
|
+
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",
|
|
2705
|
+
stroke: "#FF4D4F",
|
|
2706
|
+
strokeWidth: "1.5",
|
|
2707
|
+
strokeLinecap: "round",
|
|
2708
|
+
strokeLinejoin: "round"
|
|
2709
|
+
}),
|
|
2710
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
2711
|
+
d: "M18.7476 23.375H21.2451",
|
|
2712
|
+
stroke: "#FF4D4F",
|
|
2713
|
+
strokeWidth: "1.5",
|
|
2714
|
+
strokeLinecap: "round",
|
|
2715
|
+
strokeLinejoin: "round"
|
|
2716
|
+
}),
|
|
2717
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
2718
|
+
d: "M18.125 20.375H21.875",
|
|
2719
|
+
stroke: "#FF4D4F",
|
|
2720
|
+
strokeWidth: "1.5",
|
|
2721
|
+
strokeLinecap: "round",
|
|
2722
|
+
strokeLinejoin: "round"
|
|
2723
|
+
})
|
|
2724
|
+
]
|
|
2725
|
+
});
|
|
2726
|
+
var trash_default = Trash;
|
|
2650
2727
|
|
|
2651
2728
|
//#endregion
|
|
2652
|
-
//#region src/assets/info-circle.
|
|
2653
|
-
|
|
2654
|
-
|
|
2655
|
-
|
|
2656
|
-
|
|
2657
|
-
|
|
2658
|
-
|
|
2659
|
-
|
|
2660
|
-
|
|
2661
|
-
|
|
2662
|
-
|
|
2663
|
-
|
|
2664
|
-
|
|
2665
|
-
|
|
2666
|
-
|
|
2667
|
-
|
|
2668
|
-
|
|
2669
|
-
|
|
2670
|
-
|
|
2671
|
-
|
|
2672
|
-
|
|
2673
|
-
|
|
2674
|
-
|
|
2675
|
-
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
|
|
2729
|
+
//#region src/assets/info-circle.tsx
|
|
2730
|
+
const InfoCircle = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
2731
|
+
width: "24",
|
|
2732
|
+
height: "24",
|
|
2733
|
+
viewBox: "0 0 24 24",
|
|
2734
|
+
fill: "none",
|
|
2735
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
2736
|
+
...props,
|
|
2737
|
+
children: [
|
|
2738
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
2739
|
+
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",
|
|
2740
|
+
stroke: "black",
|
|
2741
|
+
strokeOpacity: "0.45",
|
|
2742
|
+
strokeWidth: "1.5",
|
|
2743
|
+
strokeLinecap: "round",
|
|
2744
|
+
strokeLinejoin: "round"
|
|
2745
|
+
}),
|
|
2746
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
2747
|
+
d: "M12 8V13",
|
|
2748
|
+
stroke: "black",
|
|
2749
|
+
strokeOpacity: "0.45",
|
|
2750
|
+
strokeWidth: "1.5",
|
|
2751
|
+
strokeLinecap: "round",
|
|
2752
|
+
strokeLinejoin: "round"
|
|
2753
|
+
}),
|
|
2754
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
2755
|
+
d: "M11.9946 16H12.0036",
|
|
2756
|
+
stroke: "black",
|
|
2757
|
+
strokeOpacity: "0.45",
|
|
2758
|
+
strokeWidth: "1.5",
|
|
2759
|
+
strokeLinecap: "round",
|
|
2760
|
+
strokeLinejoin: "round"
|
|
2761
|
+
})
|
|
2762
|
+
]
|
|
2763
|
+
});
|
|
2764
|
+
var info_circle_default = InfoCircle;
|
|
2679
2765
|
|
|
2680
2766
|
//#endregion
|
|
2681
2767
|
//#region src/hooks/useDebounce.ts
|
|
@@ -3398,7 +3484,8 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
|
|
|
3398
3484
|
padding: `${token$2.paddingXS}px ${token$2.padding}px`,
|
|
3399
3485
|
background: token$2.colorFillSecondary,
|
|
3400
3486
|
borderRadius: token$2.borderRadius,
|
|
3401
|
-
cursor: "pointer"
|
|
3487
|
+
cursor: "pointer",
|
|
3488
|
+
overflow: "hidden"
|
|
3402
3489
|
},
|
|
3403
3490
|
[scope("endpoint-card-active")]: {
|
|
3404
3491
|
background: "transparent",
|
|
@@ -3422,7 +3509,10 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
|
|
|
3422
3509
|
fontSize: token$2.fontSizeLG,
|
|
3423
3510
|
fontWeight: 600,
|
|
3424
3511
|
color: token$2.colorTextHeading,
|
|
3425
|
-
lineHeight: "24px"
|
|
3512
|
+
lineHeight: "24px",
|
|
3513
|
+
overflow: "hidden",
|
|
3514
|
+
textOverflow: "ellipsis",
|
|
3515
|
+
whiteSpace: "nowrap"
|
|
3426
3516
|
},
|
|
3427
3517
|
[scope("endpoint-form")]: {
|
|
3428
3518
|
display: "flex",
|
|
@@ -4043,14 +4133,17 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
|
|
|
4043
4133
|
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
4044
4134
|
className: cx("method-badge"),
|
|
4045
4135
|
style: {
|
|
4046
|
-
color: methodColor?.color,
|
|
4136
|
+
color: isExpanded ? "#ffffff" : methodColor?.color,
|
|
4047
4137
|
borderColor: methodColor?.color,
|
|
4048
|
-
backgroundColor: methodColor?.
|
|
4138
|
+
backgroundColor: isExpanded ? methodColor?.color : "transparent"
|
|
4049
4139
|
},
|
|
4050
4140
|
children: ep.method
|
|
4051
|
-
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
4052
|
-
|
|
4053
|
-
children:
|
|
4141
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Tooltip, {
|
|
4142
|
+
title: ep.path,
|
|
4143
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("span", {
|
|
4144
|
+
className: cx("endpoint-path"),
|
|
4145
|
+
children: ep.path
|
|
4146
|
+
})
|
|
4054
4147
|
})]
|
|
4055
4148
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(__ant_design_icons.UpCircleOutlined, {
|
|
4056
4149
|
onClick: () => handleEndpointClick(ep),
|
|
@@ -5159,7 +5252,7 @@ const EndpointsSection = ({ endpointsByTag, collapsed = false, onToggleCollapse,
|
|
|
5159
5252
|
//#endregion
|
|
5160
5253
|
//#region src/view/components/ApiPage/components/UnsavedChangesBanner.tsx
|
|
5161
5254
|
const UnsavedChangesBanner = ({ onClose }) => {
|
|
5162
|
-
const { wrapSSR, cx
|
|
5255
|
+
const { wrapSSR, cx } = useStyle("UnsavedChangesBanner", (token$1, scope) => ({
|
|
5163
5256
|
[scope("root")]: {
|
|
5164
5257
|
position: "sticky",
|
|
5165
5258
|
top: 0,
|
|
@@ -5169,7 +5262,7 @@ const UnsavedChangesBanner = ({ onClose }) => {
|
|
|
5169
5262
|
},
|
|
5170
5263
|
[scope("alert")]: {
|
|
5171
5264
|
padding: "8px 12px",
|
|
5172
|
-
fontSize: token$
|
|
5265
|
+
fontSize: token$1.fontSize,
|
|
5173
5266
|
fontWeight: 400,
|
|
5174
5267
|
borderRadius: 0
|
|
5175
5268
|
}
|
|
@@ -5228,14 +5321,15 @@ const TagsSection = ({ tags, collapsed = false, onToggleCollapse, onAddTag, onEd
|
|
|
5228
5321
|
alignItems: "center",
|
|
5229
5322
|
justifyContent: "space-between",
|
|
5230
5323
|
height: 50,
|
|
5231
|
-
|
|
5324
|
+
paddingTop: token$2.controlHeightLG,
|
|
5325
|
+
paddingBottom: token$2.controlHeightLG,
|
|
5232
5326
|
paddingRight: token$2.paddingLG,
|
|
5233
5327
|
borderBottom: `1px solid ${token$2.colorBorder}`,
|
|
5234
5328
|
width: "100%"
|
|
5235
5329
|
},
|
|
5236
5330
|
[scope("tag-row-last")]: {
|
|
5237
5331
|
borderBottom: "none",
|
|
5238
|
-
paddingBottom:
|
|
5332
|
+
paddingBottom: token$2.marginLG
|
|
5239
5333
|
},
|
|
5240
5334
|
[scope("tag-info")]: {
|
|
5241
5335
|
display: "flex",
|
|
@@ -6077,32 +6171,23 @@ const transformOpenApiToDocs = (api) => {
|
|
|
6077
6171
|
};
|
|
6078
6172
|
|
|
6079
6173
|
//#endregion
|
|
6080
|
-
//#region src/assets/copy.
|
|
6081
|
-
|
|
6082
|
-
|
|
6083
|
-
|
|
6084
|
-
|
|
6085
|
-
|
|
6086
|
-
|
|
6087
|
-
|
|
6088
|
-
|
|
6089
|
-
|
|
6090
|
-
|
|
6091
|
-
|
|
6092
|
-
|
|
6093
|
-
|
|
6094
|
-
|
|
6095
|
-
|
|
6096
|
-
|
|
6097
|
-
}, props), _path || (_path = /* @__PURE__ */ react.createElement("path", {
|
|
6098
|
-
fill: "currentcolor",
|
|
6099
|
-
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"
|
|
6100
|
-
})), _path2 || (_path2 = /* @__PURE__ */ react.createElement("path", {
|
|
6101
|
-
fill: "currentcolor",
|
|
6102
|
-
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"
|
|
6103
|
-
})));
|
|
6104
|
-
};
|
|
6105
|
-
var copy_default = SvgCopy;
|
|
6174
|
+
//#region src/assets/copy.tsx
|
|
6175
|
+
const Copy = (props) => /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
6176
|
+
width: "16",
|
|
6177
|
+
height: "16",
|
|
6178
|
+
viewBox: "0 0 16 16",
|
|
6179
|
+
fill: "none",
|
|
6180
|
+
xmlns: "http://www.w3.org/2000/svg",
|
|
6181
|
+
...props,
|
|
6182
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
6183
|
+
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",
|
|
6184
|
+
fill: "currentcolor"
|
|
6185
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
6186
|
+
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",
|
|
6187
|
+
fill: "currentcolor"
|
|
6188
|
+
})]
|
|
6189
|
+
});
|
|
6190
|
+
var copy_default = Copy;
|
|
6106
6191
|
|
|
6107
6192
|
//#endregion
|
|
6108
6193
|
//#region src/view/components/EndpointPage/Codebox/Codebox.tsx
|