@digi-frontend/dgate-api-documentation 3.1.4 → 3.1.6
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.cjs +91 -109
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +91 -109
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.cjs
CHANGED
|
@@ -919,23 +919,23 @@ const useNodeSelection = () => {
|
|
|
919
919
|
|
|
920
920
|
//#endregion
|
|
921
921
|
//#region src/assets/Minify.svg
|
|
922
|
-
var _path$
|
|
923
|
-
function _extends$
|
|
924
|
-
return _extends$
|
|
922
|
+
var _path$4;
|
|
923
|
+
function _extends$4() {
|
|
924
|
+
return _extends$4 = Object.assign ? Object.assign.bind() : function(n) {
|
|
925
925
|
for (var e = 1; e < arguments.length; e++) {
|
|
926
926
|
var t = arguments[e];
|
|
927
927
|
for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]);
|
|
928
928
|
}
|
|
929
929
|
return n;
|
|
930
|
-
}, _extends$
|
|
930
|
+
}, _extends$4.apply(null, arguments);
|
|
931
931
|
}
|
|
932
932
|
var SvgMinify = function SvgMinify$1(props) {
|
|
933
|
-
return /* @__PURE__ */ react.createElement("svg", _extends$
|
|
933
|
+
return /* @__PURE__ */ react.createElement("svg", _extends$4({
|
|
934
934
|
xmlns: "http://www.w3.org/2000/svg",
|
|
935
935
|
width: 16,
|
|
936
936
|
height: 16,
|
|
937
937
|
fill: "none"
|
|
938
|
-
}, props), _path$
|
|
938
|
+
}, props), _path$4 || (_path$4 = /* @__PURE__ */ react.createElement("path", {
|
|
939
939
|
stroke: "currentcolor",
|
|
940
940
|
d: "m6 11.334 2-2 2 2M6 4.666l2 2 2-2"
|
|
941
941
|
})));
|
|
@@ -1262,64 +1262,49 @@ const Sidebar = ({ searchValue, setSearchValue }) => {
|
|
|
1262
1262
|
};
|
|
1263
1263
|
|
|
1264
1264
|
//#endregion
|
|
1265
|
-
//#region src/
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
}
|
|
1273
|
-
return n;
|
|
1274
|
-
}, _extends$5.apply(null, arguments);
|
|
1275
|
-
}
|
|
1276
|
-
var SvgGrid = function SvgGrid$1(props) {
|
|
1277
|
-
return /* @__PURE__ */ react.createElement("svg", _extends$5({
|
|
1265
|
+
//#region src/view/components/ApiPage/components/GridLayoutIcon.tsx
|
|
1266
|
+
const GridLayoutIcon = ({ width = 16, height = 16, ...props }) => {
|
|
1267
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)("svg", {
|
|
1268
|
+
width,
|
|
1269
|
+
height,
|
|
1270
|
+
viewBox: "0 0 16 16",
|
|
1271
|
+
fill: "none",
|
|
1278
1272
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
}, /* @__PURE__ */ react.createElement("path", { d: "M3.333 2.5a.833.833 0 0 0-.833.833v3.334c0 .46.373.833.833.833h2c.46 0 .834-.373.834-.833V3.333a.833.833 0 0 0-.834-.833zM1.5 3.333c0-1.012.82-1.833 1.833-1.833h2c1.013 0 1.834.82 1.834 1.833v3.334c0 1.012-.82 1.833-1.834 1.833h-2A1.833 1.833 0 0 1 1.5 6.667zm8.333 0c0-.46.373-.833.834-.833h2c.46 0 .833.373.833.833v1.334c0 .46-.373.833-.833.833h-2a.833.833 0 0 1-.834-.833zm.834-1.833c-1.013 0-1.834.82-1.834 1.833v1.334c0 1.012.82 1.833 1.834 1.833h2c1.013 0 1.833-.82 1.833-1.833V3.333c0-1.012-.82-1.833-1.833-1.833zm-.834 7.833c0-.46.373-.833.834-.833h2c.46 0 .833.373.833.833v3.334c0 .46-.373.833-.833.833h-2a.833.833 0 0 1-.834-.833zm.834-1.833c-1.013 0-1.834.82-1.834 1.833v3.334c0 1.013.82 1.833 1.834 1.833h2c1.013 0 1.833-.82 1.833-1.833V9.333c0-1.012-.82-1.833-1.833-1.833zM2.5 11.333c0-.46.373-.833.833-.833h2c.46 0 .834.373.834.833v1.334c0 .46-.373.833-.834.833h-2a.833.833 0 0 1-.833-.833zM3.333 9.5c-1.012 0-1.833.82-1.833 1.833v1.334c0 1.013.82 1.833 1.833 1.833h2c1.013 0 1.834-.82 1.834-1.833v-1.334c0-1.013-.82-1.833-1.834-1.833z" }))), _path$5 || (_path$5 = /* @__PURE__ */ react.createElement("path", {
|
|
1286
|
-
fill: "#D9D9D9",
|
|
1287
|
-
d: "M3.333 2.5a.833.833 0 0 0-.833.833v3.334c0 .46.373.833.833.833h2c.46 0 .834-.373.834-.833V3.333a.833.833 0 0 0-.834-.833zM1.5 3.333c0-1.012.82-1.833 1.833-1.833h2c1.013 0 1.834.82 1.834 1.833v3.334c0 1.012-.82 1.833-1.834 1.833h-2A1.833 1.833 0 0 1 1.5 6.667zm8.333 0c0-.46.373-.833.834-.833h2c.46 0 .833.373.833.833v1.334c0 .46-.373.833-.833.833h-2a.833.833 0 0 1-.834-.833zm.834-1.833c-1.013 0-1.834.82-1.834 1.833v1.334c0 1.012.82 1.833 1.834 1.833h2c1.013 0 1.833-.82 1.833-1.833V3.333c0-1.012-.82-1.833-1.833-1.833zm-.834 7.833c0-.46.373-.833.834-.833h2c.46 0 .833.373.833.833v3.334c0 .46-.373.833-.833.833h-2a.833.833 0 0 1-.834-.833zm.834-1.833c-1.013 0-1.834.82-1.834 1.833v3.334c0 1.013.82 1.833 1.834 1.833h2c1.013 0 1.833-.82 1.833-1.833V9.333c0-1.012-.82-1.833-1.833-1.833zM2.5 11.333c0-.46.373-.833.833-.833h2c.46 0 .834.373.834.833v1.334c0 .46-.373.833-.834.833h-2a.833.833 0 0 1-.833-.833zM3.333 9.5c-1.012 0-1.833.82-1.833 1.833v1.334c0 1.013.82 1.833 1.833 1.833h2c1.013 0 1.834-.82 1.834-1.833v-1.334c0-1.013-.82-1.833-1.834-1.833z"
|
|
1288
|
-
})), _path2$4 || (_path2$4 = /* @__PURE__ */ react.createElement("path", {
|
|
1289
|
-
fill: "#769DE4",
|
|
1290
|
-
d: "M3.333 2.5v-1C2.321 1.5 1.5 2.32 1.5 3.333h2a.167.167 0 0 1-.167.167zm-.833.833h-1v3.334h2V3.333zm0 3.334h-1c0 1.012.82 1.833 1.833 1.833v-2c.092 0 .167.075.167.167zm.833.833v1h2v-2h-2zm2 0v1c1.013 0 1.834-.82 1.834-1.833h-2c0-.092.075-.167.166-.167zm.834-.833h1V3.333h-2v3.334zm0-3.334h1c0-1.012-.82-1.833-1.834-1.833v2a.167.167 0 0 1-.166-.167zM5.333 2.5v-1h-2v2h2zM1.5 3.333h1c0-.46.373-.833.833-.833v-2A2.833 2.833 0 0 0 .5 3.333zM3.333 1.5v1h2v-2h-2zm2 0v1c.46 0 .834.373.834.833h2A2.833 2.833 0 0 0 5.333.5zm1.834 1.833h-1v3.334h2V3.333zm0 3.334h-1c0 .46-.373.833-.834.833v2a2.833 2.833 0 0 0 2.834-2.833zM5.333 8.5v-1h-2v2h2zm-2 0v-1a.833.833 0 0 1-.833-.833h-2A2.833 2.833 0 0 0 3.333 9.5zM1.5 6.667h1V3.333h-2v3.334zm8.333-3.334h1a.167.167 0 0 1-.166.167v-2c-1.013 0-1.834.82-1.834 1.833zm.834-.833v1h2v-2h-2zm2 0v1a.167.167 0 0 1-.167-.167h2c0-1.012-.82-1.833-1.833-1.833zm.833.833h-1v1.334h2V3.333zm0 1.334h-1c0-.092.075-.167.167-.167v2c1.013 0 1.833-.82 1.833-1.833zm-.833.833v-1h-2v2h2zm-2 0v-1c.091 0 .166.075.166.167h-2c0 1.012.82 1.833 1.834 1.833zm-.834-.833h1V3.333h-2v1.334zm.834-3.167v-1a2.833 2.833 0 0 0-2.834 2.833h2c0-.46.373-.833.834-.833zM8.833 3.333h-1v1.334h2V3.333zm0 1.334h-1A2.833 2.833 0 0 0 10.667 7.5v-2a.833.833 0 0 1-.834-.833zM10.667 6.5v1h2v-2h-2zm2 0v1A2.833 2.833 0 0 0 15.5 4.667h-2c0 .46-.373.833-.833.833zM14.5 4.667h1V3.333h-2v1.334zm0-1.334h1A2.833 2.833 0 0 0 12.667.5v2c.46 0 .833.373.833.833zM12.667 1.5v-1h-2v2h2zM9.833 9.333h1a.167.167 0 0 1-.166.167v-2c-1.013 0-1.834.82-1.834 1.833zm.834-.833v1h2v-2h-2zm2 0v1a.167.167 0 0 1-.167-.167h2c0-1.012-.82-1.833-1.833-1.833zm.833.833h-1v3.334h2V9.333zm0 3.334h-1c0-.092.075-.167.167-.167v2c1.013 0 1.833-.82 1.833-1.833zm-.833.833v-1h-2v2h2zm-2 0v-1c.091 0 .166.075.166.167h-2c0 1.013.82 1.833 1.834 1.833zm-.834-.833h1V9.333h-2v3.334zm.834-5.167v-1a2.833 2.833 0 0 0-2.834 2.833h2c0-.46.373-.833.834-.833zM8.833 9.333h-1v3.334h2V9.333zm0 3.334h-1a2.833 2.833 0 0 0 2.834 2.833v-2a.833.833 0 0 1-.834-.833zm1.834 1.833v1h2v-2h-2zm2 0v1a2.833 2.833 0 0 0 2.833-2.833h-2c0 .46-.373.833-.833.833zm1.833-1.833h1V9.333h-2v3.334zm0-3.334h1A2.833 2.833 0 0 0 12.667 6.5v2c.46 0 .833.373.833.833zM12.667 7.5v-1h-2v2h2zM2.5 11.333h1a.167.167 0 0 1-.167.167v-2c-1.012 0-1.833.82-1.833 1.833zm.833-.833v1h2v-2h-2zm2 0v1a.167.167 0 0 1-.166-.167h2c0-1.013-.82-1.833-1.834-1.833zm.834.833h-1v1.334h2v-1.334zm0 1.334h-1c0-.092.075-.167.166-.167v2c1.013 0 1.834-.82 1.834-1.833zm-.834.833v-1h-2v2h2zm-2 0v-1c.092 0 .167.075.167.167h-2c0 1.013.82 1.833 1.833 1.833zm-.833-.833h1v-1.334h-2v1.334zM3.333 9.5v-1A2.833 2.833 0 0 0 .5 11.333h2c0-.46.373-.833.833-.833zM1.5 11.333h-1v1.334h2v-1.334zm0 1.334h-1A2.833 2.833 0 0 0 3.333 15.5v-2a.833.833 0 0 1-.833-.833zM3.333 14.5v1h2v-2h-2zm2 0v1a2.833 2.833 0 0 0 2.834-2.833h-2c0 .46-.373.833-.834.833zm1.834-1.833h1v-1.334h-2v1.334zm0-1.334h1A2.833 2.833 0 0 0 5.333 8.5v2c.46 0 .834.373.834.833zM5.333 9.5v-1h-2v2h2z",
|
|
1291
|
-
mask: "url(#grid_svg__a)"
|
|
1292
|
-
})));
|
|
1273
|
+
...props,
|
|
1274
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
1275
|
+
d: "M3.33333 2.5C2.87281 2.5 2.5 2.87281 2.5 3.33333V6.66667C2.5 7.1272 2.87281 7.5 3.33333 7.5H5.33333C5.79386 7.5 6.16667 7.1272 6.16667 6.66667V3.33333C6.16667 2.87281 5.79386 2.5 5.33333 2.5H3.33333ZM1.5 3.33333C1.5 2.32053 2.32053 1.5 3.33333 1.5H5.33333C6.34614 1.5 7.16667 2.32053 7.16667 3.33333V6.66667C7.16667 7.67947 6.34614 8.5 5.33333 8.5H3.33333C2.32053 8.5 1.5 7.67947 1.5 6.66667V3.33333ZM9.83333 3.33333C9.83333 2.87281 10.2061 2.5 10.6667 2.5H12.6667C13.1272 2.5 13.5 2.87281 13.5 3.33333V4.66667C13.5 5.12719 13.1272 5.5 12.6667 5.5H10.6667C10.2061 5.5 9.83333 5.12719 9.83333 4.66667V3.33333ZM10.6667 1.5C9.65387 1.5 8.83333 2.32053 8.83333 3.33333V4.66667C8.83333 5.67947 9.65387 6.5 10.6667 6.5H12.6667C13.6795 6.5 14.5 5.67947 14.5 4.66667V3.33333C14.5 2.32053 13.6795 1.5 12.6667 1.5H10.6667ZM9.83333 9.33333C9.83333 8.8728 10.2061 8.5 10.6667 8.5H12.6667C13.1272 8.5 13.5 8.8728 13.5 9.33333V12.6667C13.5 13.1272 13.1272 13.5 12.6667 13.5H10.6667C10.2061 13.5 9.83333 13.1272 9.83333 12.6667V9.33333ZM10.6667 7.5C9.65387 7.5 8.83333 8.32053 8.83333 9.33333V12.6667C8.83333 13.6795 9.65387 14.5 10.6667 14.5H12.6667C13.6795 14.5 14.5 13.6795 14.5 12.6667V9.33333C14.5 8.32053 13.6795 7.5 12.6667 7.5H10.6667ZM2.5 11.3333C2.5 10.8728 2.87281 10.5 3.33333 10.5H5.33333C5.79386 10.5 6.16667 10.8728 6.16667 11.3333V12.6667C6.16667 13.1272 5.79386 13.5 5.33333 13.5H3.33333C2.87281 13.5 2.5 13.1272 2.5 12.6667V11.3333ZM3.33333 9.5C2.32053 9.5 1.5 10.3205 1.5 11.3333V12.6667C1.5 13.6795 2.32053 14.5 3.33333 14.5H5.33333C6.34614 14.5 7.16667 13.6795 7.16667 12.6667V11.3333C7.16667 10.3205 6.34614 9.5 5.33333 9.5H3.33333Z",
|
|
1276
|
+
fill: "currentColor"
|
|
1277
|
+
})
|
|
1278
|
+
});
|
|
1293
1279
|
};
|
|
1294
|
-
var
|
|
1280
|
+
var GridLayoutIcon_default = GridLayoutIcon;
|
|
1295
1281
|
|
|
1296
1282
|
//#endregion
|
|
1297
|
-
//#region src/
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
}
|
|
1305
|
-
return n;
|
|
1306
|
-
}, _extends$4.apply(null, arguments);
|
|
1307
|
-
}
|
|
1308
|
-
var SvgList = function SvgList$1(props) {
|
|
1309
|
-
return /* @__PURE__ */ react.createElement("svg", _extends$4({
|
|
1283
|
+
//#region src/view/components/ApiPage/components/RowVerticalIcon.tsx
|
|
1284
|
+
const RowVerticalIcon = ({ width = 16, height = 16, ...props }) => {
|
|
1285
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)("svg", {
|
|
1286
|
+
width,
|
|
1287
|
+
height,
|
|
1288
|
+
viewBox: "0 0 16 16",
|
|
1289
|
+
fill: "none",
|
|
1310
1290
|
xmlns: "http://www.w3.org/2000/svg",
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1291
|
+
...props,
|
|
1292
|
+
children: [/* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
1293
|
+
d: "M13.2666 9H2.73331C1.73331 9 1.33331 9.42667 1.33331 10.4867V13.18C1.33331 14.24 1.73331 14.6667 2.73331 14.6667H13.2666C14.2666 14.6667 14.6666 14.24 14.6666 13.18V10.4867C14.6666 9.42667 14.2666 9 13.2666 9Z",
|
|
1294
|
+
stroke: "currentColor",
|
|
1295
|
+
strokeOpacity: "0.25",
|
|
1296
|
+
strokeLinecap: "round",
|
|
1297
|
+
strokeLinejoin: "round"
|
|
1298
|
+
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)("path", {
|
|
1299
|
+
d: "M13.2666 1.33203H2.73331C1.73331 1.33203 1.33331 1.7587 1.33331 2.8187V5.51203C1.33331 6.57203 1.73331 6.9987 2.73331 6.9987H13.2666C14.2666 6.9987 14.6666 6.57203 14.6666 5.51203V2.8187C14.6666 1.7587 14.2666 1.33203 13.2666 1.33203Z",
|
|
1300
|
+
stroke: "currentColor",
|
|
1301
|
+
strokeOpacity: "0.25",
|
|
1302
|
+
strokeLinecap: "round",
|
|
1303
|
+
strokeLinejoin: "round"
|
|
1304
|
+
})]
|
|
1305
|
+
});
|
|
1321
1306
|
};
|
|
1322
|
-
var
|
|
1307
|
+
var RowVerticalIcon_default = RowVerticalIcon;
|
|
1323
1308
|
|
|
1324
1309
|
//#endregion
|
|
1325
1310
|
//#region src/assets/link.svg
|
|
@@ -1446,7 +1431,8 @@ const ApiCard = ({ api, viewStyle }) => {
|
|
|
1446
1431
|
alignSelf: "stretch",
|
|
1447
1432
|
flexDirection: "row",
|
|
1448
1433
|
borderRadius: token$2.borderRadiusSM,
|
|
1449
|
-
border: `1px solid ${token$2.colorBorderSecondary}
|
|
1434
|
+
border: `1px solid ${token$2.colorBorderSecondary}`,
|
|
1435
|
+
svg: { path: { fill: token$2.colorPrimary } }
|
|
1450
1436
|
},
|
|
1451
1437
|
[scope("grid-path-name")]: {
|
|
1452
1438
|
color: token$2.colorText,
|
|
@@ -1657,45 +1643,6 @@ const APIPage = () => {
|
|
|
1657
1643
|
});
|
|
1658
1644
|
return filtered;
|
|
1659
1645
|
};
|
|
1660
|
-
const APIsRenderer = ({ apis, withTitle, tagName, haveUnderLine, contextPath }) => {
|
|
1661
|
-
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(antd.Flex, {
|
|
1662
|
-
gap: viewStyle == "grid" ? token$1.marginXS : 0,
|
|
1663
|
-
style: {
|
|
1664
|
-
marginBottom: 0,
|
|
1665
|
-
paddingBottom: 0
|
|
1666
|
-
},
|
|
1667
|
-
vertical: true,
|
|
1668
|
-
children: [
|
|
1669
|
-
withTitle && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd_es_typography_Title.default, {
|
|
1670
|
-
id: tagName,
|
|
1671
|
-
style: { marginBottom: 0 },
|
|
1672
|
-
level: 4,
|
|
1673
|
-
children: tagName
|
|
1674
|
-
}),
|
|
1675
|
-
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Flex, {
|
|
1676
|
-
wrap: "wrap",
|
|
1677
|
-
gap: viewStyle == "grid" ? "1.5rem" : 0,
|
|
1678
|
-
vertical: viewStyle == "list",
|
|
1679
|
-
children: apis.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ApiCard_default, {
|
|
1680
|
-
api: item,
|
|
1681
|
-
viewStyle
|
|
1682
|
-
}, `${tagName}_renderer_${item.method}_${contextPath}`))
|
|
1683
|
-
}),
|
|
1684
|
-
haveUnderLine && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Divider, { style: {
|
|
1685
|
-
marginTop: token$1.marginSM,
|
|
1686
|
-
marginBottom: token$1.marginSM
|
|
1687
|
-
} })
|
|
1688
|
-
]
|
|
1689
|
-
}, `${tagName}_renderer_${contextPath}`);
|
|
1690
|
-
};
|
|
1691
|
-
function formatAuthType(authType) {
|
|
1692
|
-
if (!authType) return "N/A";
|
|
1693
|
-
switch (authType) {
|
|
1694
|
-
case "OAUTH": return "OAuth2";
|
|
1695
|
-
case "API_KEY": return "API Key";
|
|
1696
|
-
default: return authType.replaceAll("_", " ").toLowerCase().replace(/\b\w/g, (char) => char.toUpperCase());
|
|
1697
|
-
}
|
|
1698
|
-
}
|
|
1699
1646
|
return wrapSSR(/* @__PURE__ */ (0, react_jsx_runtime.jsxs)(antd.Flex, {
|
|
1700
1647
|
vertical: true,
|
|
1701
1648
|
gap: token$1.margin,
|
|
@@ -1774,14 +1721,14 @@ const APIPage = () => {
|
|
|
1774
1721
|
display: "flex",
|
|
1775
1722
|
alignItems: "center"
|
|
1776
1723
|
},
|
|
1777
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1724
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(GridLayoutIcon_default, {})
|
|
1778
1725
|
}), /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Radio.Button, {
|
|
1779
1726
|
value: "list",
|
|
1780
1727
|
style: {
|
|
1781
1728
|
display: "flex",
|
|
1782
1729
|
alignItems: "center"
|
|
1783
1730
|
},
|
|
1784
|
-
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(
|
|
1731
|
+
children: /* @__PURE__ */ (0, react_jsx_runtime.jsx)(RowVerticalIcon_default, {})
|
|
1785
1732
|
})]
|
|
1786
1733
|
})
|
|
1787
1734
|
] }),
|
|
@@ -1799,23 +1746,58 @@ const APIPage = () => {
|
|
|
1799
1746
|
if (b.toLowerCase() === "default") return -1;
|
|
1800
1747
|
return 0;
|
|
1801
1748
|
}).map(([key, endpoints], index, arr) => {
|
|
1802
|
-
if (key.toLowerCase() === "default" && arr.length <= 1) return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(APIsRenderer, {
|
|
1803
|
-
apis: endpoints,
|
|
1804
|
-
tagName: key,
|
|
1805
|
-
withTitle: false,
|
|
1806
|
-
contextPath: selectedApi?.contextPath
|
|
1807
|
-
}, `${selectedApi}_${selectedApi?.contextPath}`);
|
|
1808
1749
|
return /* @__PURE__ */ (0, react_jsx_runtime.jsx)(APIsRenderer, {
|
|
1809
1750
|
apis: endpoints,
|
|
1810
1751
|
tagName: key,
|
|
1811
|
-
withTitle:
|
|
1752
|
+
withTitle: !(key.toLowerCase() === "default") || arr.length > 1,
|
|
1812
1753
|
haveUnderLine: index < arr.length - 1,
|
|
1813
|
-
contextPath: selectedApi?.contextPath
|
|
1814
|
-
|
|
1754
|
+
contextPath: selectedApi?.contextPath,
|
|
1755
|
+
viewStyle,
|
|
1756
|
+
token: token$1
|
|
1757
|
+
}, `${selectedApi?.id}_${key}`);
|
|
1815
1758
|
})
|
|
1816
1759
|
]
|
|
1817
1760
|
}));
|
|
1818
1761
|
};
|
|
1762
|
+
const APIsRenderer = ({ apis, withTitle, tagName, haveUnderLine, contextPath, viewStyle, token: token$1 }) => {
|
|
1763
|
+
return /* @__PURE__ */ (0, react_jsx_runtime.jsxs)(antd.Flex, {
|
|
1764
|
+
gap: viewStyle === "grid" ? token$1.marginXS : 0,
|
|
1765
|
+
style: {
|
|
1766
|
+
marginBottom: 0,
|
|
1767
|
+
paddingBottom: 0
|
|
1768
|
+
},
|
|
1769
|
+
vertical: true,
|
|
1770
|
+
children: [
|
|
1771
|
+
withTitle && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd_es_typography_Title.default, {
|
|
1772
|
+
id: tagName,
|
|
1773
|
+
style: { marginBottom: 0 },
|
|
1774
|
+
level: 4,
|
|
1775
|
+
children: tagName
|
|
1776
|
+
}),
|
|
1777
|
+
/* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Flex, {
|
|
1778
|
+
wrap: "wrap",
|
|
1779
|
+
gap: viewStyle === "grid" ? "1.5rem" : 0,
|
|
1780
|
+
vertical: viewStyle === "list",
|
|
1781
|
+
children: apis.map((item) => /* @__PURE__ */ (0, react_jsx_runtime.jsx)(ApiCard_default, {
|
|
1782
|
+
api: item,
|
|
1783
|
+
viewStyle
|
|
1784
|
+
}, `${tagName}_renderer_${item.id}_${item.method}_${item.path}`))
|
|
1785
|
+
}),
|
|
1786
|
+
haveUnderLine && /* @__PURE__ */ (0, react_jsx_runtime.jsx)(antd.Divider, { style: {
|
|
1787
|
+
marginTop: token$1.marginSM,
|
|
1788
|
+
marginBottom: token$1.marginSM
|
|
1789
|
+
} })
|
|
1790
|
+
]
|
|
1791
|
+
}, `${tagName}_renderer_${contextPath}`);
|
|
1792
|
+
};
|
|
1793
|
+
function formatAuthType(authType) {
|
|
1794
|
+
if (!authType) return "N/A";
|
|
1795
|
+
switch (authType) {
|
|
1796
|
+
case "OAUTH": return "OAuth2";
|
|
1797
|
+
case "API_KEY": return "API Key";
|
|
1798
|
+
default: return authType.replaceAll("_", " ").toLowerCase().replace(/\b\w/g, (char) => char.toUpperCase());
|
|
1799
|
+
}
|
|
1800
|
+
}
|
|
1819
1801
|
|
|
1820
1802
|
//#endregion
|
|
1821
1803
|
//#region src/view/components/EndpointPage/EndpointPage.tsx
|