@rspress/core 0.0.13 → 0.2.0
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.js +90 -50
- package/dist/index.js.map +1 -1
- package/dist/loader.d.ts +3 -0
- package/dist/loader.js +28 -72
- package/dist/loader.js.map +1 -1
- package/dist/runtime/App.d.ts +8 -0
- package/dist/runtime/App.js +1 -0
- package/dist/runtime/Content.d.ts +6 -0
- package/dist/runtime/Content.js +7 -2
- package/dist/runtime/NoSSR.d.ts +4 -0
- package/dist/runtime/clientEntry.d.ts +1 -0
- package/dist/runtime/hooks.d.ts +29 -0
- package/dist/runtime/hooks.js +23 -1
- package/dist/runtime/index.d.ts +6 -0
- package/dist/runtime/ssrEntry.d.ts +6 -0
- package/dist/runtime/tsconfig.json +9 -0
- package/dist/runtime/utils.d.ts +6 -0
- package/dist/theme/bundle.css +94 -53
- package/dist/theme/bundle.d.ts +12 -1
- package/dist/theme/bundle.js +527 -489
- package/dist/theme/bundle.js.map +1 -1
- package/package.json +14 -14
- package/src/runtime/App.tsx +1 -0
- package/src/runtime/Content.tsx +11 -2
- package/src/runtime/global.d.ts +49 -0
- package/src/runtime/hooks.ts +47 -1
- package/src/runtime/tsconfig.json +9 -0
- package/src/theme-default/components/LocalSideBar/{index.module.scss → index.scss} +6 -5
- package/src/theme-default/components/LocalSideBar/index.tsx +4 -4
- package/src/theme-default/components/Nav/index.tsx +19 -5
- package/src/theme-default/components/Search/SearchPanel.tsx +339 -0
- package/src/theme-default/components/Search/index.tsx +6 -326
- package/src/theme-default/index.ts +3 -1
- package/src/theme-default/layout/DocLayout/docComponents/link.tsx +8 -23
- package/src/theme-default/layout/DocLayout/index.module.scss +52 -3
- package/src/theme-default/layout/DocLayout/index.tsx +9 -7
- package/src/theme-default/logic/index.ts +1 -0
- package/src/theme-default/logic/useAppearance.ts +0 -1
- package/src/theme-default/logic/usePathUtils.ts +72 -0
package/dist/theme/bundle.js
CHANGED
|
@@ -120,14 +120,14 @@ function _object_spread_props(target, source) {
|
|
|
120
120
|
return target;
|
|
121
121
|
}
|
|
122
122
|
function useLocaleSiteData() {
|
|
123
|
-
var _pageData_siteData
|
|
123
|
+
var _pageData_siteData;
|
|
124
124
|
const pageData = usePageData2();
|
|
125
125
|
const { page: { lang } } = pageData;
|
|
126
126
|
var _pageData_siteData_themeConfig;
|
|
127
|
-
const themeConfig = (_pageData_siteData_themeConfig =
|
|
127
|
+
const themeConfig = (_pageData_siteData_themeConfig = pageData === null || pageData === void 0 ? void 0 : (_pageData_siteData = pageData.siteData) === null || _pageData_siteData === void 0 ? void 0 : _pageData_siteData.themeConfig) !== null && _pageData_siteData_themeConfig !== void 0 ? _pageData_siteData_themeConfig : {};
|
|
128
128
|
var _pageData_siteData_lang;
|
|
129
129
|
const defaultLang = (_pageData_siteData_lang = pageData.siteData.lang) !== null && _pageData_siteData_lang !== void 0 ? _pageData_siteData_lang : "";
|
|
130
|
-
const locales =
|
|
130
|
+
const locales = themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.locales;
|
|
131
131
|
if (!locales || locales.length === 0) {
|
|
132
132
|
return {
|
|
133
133
|
nav: themeConfig.nav,
|
|
@@ -326,7 +326,6 @@ function bindingWindowScroll() {
|
|
|
326
326
|
});
|
|
327
327
|
}
|
|
328
328
|
function bindingAsideScroll() {
|
|
329
|
-
var _aside;
|
|
330
329
|
function isBottom() {
|
|
331
330
|
return document.documentElement.scrollTop + window.innerHeight >= document.documentElement.scrollHeight;
|
|
332
331
|
}
|
|
@@ -340,16 +339,15 @@ function bindingAsideScroll() {
|
|
|
340
339
|
return;
|
|
341
340
|
}
|
|
342
341
|
let prevActiveLink = null;
|
|
343
|
-
const headers = Array.from((
|
|
342
|
+
const headers = Array.from((aside === null || aside === void 0 ? void 0 : aside.getElementsByTagName("a")) || []).map((item) => decodeURIComponent(item.hash));
|
|
344
343
|
if (marker && !headers.length) {
|
|
345
344
|
marker.style.opacity = "0";
|
|
346
345
|
return;
|
|
347
346
|
}
|
|
348
347
|
const activate = (links2, index) => {
|
|
349
348
|
if (links2[index]) {
|
|
350
|
-
var _id, _aside2;
|
|
351
349
|
const id = links2[index].getAttribute("href");
|
|
352
|
-
const currentLink =
|
|
350
|
+
const currentLink = aside === null || aside === void 0 ? void 0 : aside.querySelector(`a[href="#${id === null || id === void 0 ? void 0 : id.slice(1)}"] > span`);
|
|
353
351
|
if (currentLink) {
|
|
354
352
|
if (prevActiveLink) {
|
|
355
353
|
prevActiveLink.classList.remove("aside-active");
|
|
@@ -397,6 +395,58 @@ function setup() {
|
|
|
397
395
|
bindingWindowScroll();
|
|
398
396
|
}
|
|
399
397
|
|
|
398
|
+
// src/theme-default/logic/usePathUtils.ts
|
|
399
|
+
import { isExternalUrl, normalizeHref } from "@rspress/shared";
|
|
400
|
+
import { removeBase, useLang, usePageData as usePageData4, useVersion, withBase as withBase3 } from "@/runtime";
|
|
401
|
+
function usePathUtils() {
|
|
402
|
+
const currentLang = useLang();
|
|
403
|
+
const currentVersion = useVersion();
|
|
404
|
+
const pageData = usePageData4();
|
|
405
|
+
const defaultLang = pageData.siteData.lang;
|
|
406
|
+
const defaultVersion = pageData.siteData.multiVersion.default;
|
|
407
|
+
const normalizeLinkHref = (rawHref) => {
|
|
408
|
+
let href = rawHref;
|
|
409
|
+
if ((defaultLang || defaultVersion) && !isExternalUrl(href) && !href.startsWith("#")) {
|
|
410
|
+
href = removeBase(href);
|
|
411
|
+
const linkParts = href.split("/").filter(Boolean);
|
|
412
|
+
let versionPart = "";
|
|
413
|
+
let langPart = "";
|
|
414
|
+
let purePathPart = "";
|
|
415
|
+
if (defaultVersion) {
|
|
416
|
+
if (currentVersion !== defaultVersion) {
|
|
417
|
+
versionPart = currentVersion;
|
|
418
|
+
if (linkParts[0] === currentVersion) {
|
|
419
|
+
linkParts.shift();
|
|
420
|
+
}
|
|
421
|
+
} else if (linkParts[0] === defaultVersion) {
|
|
422
|
+
linkParts.shift();
|
|
423
|
+
}
|
|
424
|
+
}
|
|
425
|
+
if (defaultLang) {
|
|
426
|
+
if (currentLang !== defaultLang) {
|
|
427
|
+
langPart = currentLang;
|
|
428
|
+
if (linkParts[0] === currentLang) {
|
|
429
|
+
linkParts.shift();
|
|
430
|
+
}
|
|
431
|
+
} else if (linkParts[0] === defaultLang) {
|
|
432
|
+
linkParts.shift();
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
purePathPart = linkParts.join("/");
|
|
436
|
+
return normalizeHref(withBase3([
|
|
437
|
+
versionPart,
|
|
438
|
+
langPart,
|
|
439
|
+
purePathPart
|
|
440
|
+
].filter(Boolean).join("/")));
|
|
441
|
+
} else {
|
|
442
|
+
return href;
|
|
443
|
+
}
|
|
444
|
+
};
|
|
445
|
+
return {
|
|
446
|
+
normalizeLinkHref
|
|
447
|
+
};
|
|
448
|
+
}
|
|
449
|
+
|
|
400
450
|
// src/theme-default/logic/utils.ts
|
|
401
451
|
import { isEqualPath as isEqualPath3 } from "@/runtime";
|
|
402
452
|
function isActive(currentPath, targetLink, strict = false) {
|
|
@@ -537,7 +587,7 @@ import { routes } from "virtual-routes";
|
|
|
537
587
|
var index_module_default2 = { "link": "link_b3367" };
|
|
538
588
|
|
|
539
589
|
// src/theme-default/components/Link/index.tsx
|
|
540
|
-
import { normalizeHref, normalizeRoutePath, withBase as
|
|
590
|
+
import { normalizeHref as normalizeHref2, normalizeRoutePath, withBase as withBase4 } from "@/runtime";
|
|
541
591
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
542
592
|
try {
|
|
543
593
|
var info = gen[key](arg);
|
|
@@ -576,15 +626,14 @@ function Link(props) {
|
|
|
576
626
|
const isExternal = EXTERNAL_URL_RE.test(href);
|
|
577
627
|
const target = isExternal ? "_blank" : "";
|
|
578
628
|
const rel = isExternal ? "noopener noreferrer" : void 0;
|
|
579
|
-
const withBaseUrl = isExternal ? href :
|
|
629
|
+
const withBaseUrl = isExternal ? href : withBase4(normalizeHref2(href));
|
|
580
630
|
const navigate = useNavigate();
|
|
581
631
|
const handleNavigate = function() {
|
|
582
632
|
var _ref = _async_to_generator(function* (e) {
|
|
583
633
|
e.preventDefault();
|
|
584
634
|
if (!process.env.__SSR__) {
|
|
585
|
-
var _matchedRoutes, _onNavigate;
|
|
586
635
|
const matchedRoutes = matchRoutes(routes, normalizeRoutePath(withBaseUrl));
|
|
587
|
-
if (
|
|
636
|
+
if (matchedRoutes === null || matchedRoutes === void 0 ? void 0 : matchedRoutes.length) {
|
|
588
637
|
const timer = setTimeout(() => {
|
|
589
638
|
nprogress.start();
|
|
590
639
|
}, 200);
|
|
@@ -592,7 +641,7 @@ function Link(props) {
|
|
|
592
641
|
clearTimeout(timer);
|
|
593
642
|
nprogress.done();
|
|
594
643
|
}
|
|
595
|
-
|
|
644
|
+
onNavigate === null || onNavigate === void 0 ? void 0 : onNavigate();
|
|
596
645
|
navigate(withBaseUrl, {
|
|
597
646
|
replace: false
|
|
598
647
|
});
|
|
@@ -626,14 +675,13 @@ function Link(props) {
|
|
|
626
675
|
var index_module_default3 = { "pager": "pager_33e00", "has-next": "has-next_33e00", "hasNext": "has-next_33e00", "prev": "prev_33e00", "next": "next_33e00", "pager-link": "pager-link_33e00", "pagerLink": "pager-link_33e00", "title": "title_33e00", "desc": "desc_33e00" };
|
|
627
676
|
|
|
628
677
|
// src/theme-default/components/DocFooter/index.tsx
|
|
629
|
-
import { normalizeHref as
|
|
678
|
+
import { normalizeHref as normalizeHref3, usePageData as usePageData5 } from "@/runtime";
|
|
630
679
|
function DocFooter() {
|
|
631
|
-
var _themeConfig;
|
|
632
680
|
const { prevPage, nextPage } = usePrevNextPage();
|
|
633
681
|
const { prevPageText = "Previous Page", nextPageText = "Next page", lastUpdatedText: localesLastUpdatedText = "Last Updated", lastUpdated: localesLastUpdated = false } = useLocaleSiteData();
|
|
634
|
-
const { page: { lastUpdatedTime }, siteData: siteData2 } =
|
|
682
|
+
const { page: { lastUpdatedTime }, siteData: siteData2 } = usePageData5();
|
|
635
683
|
const { themeConfig } = siteData2;
|
|
636
|
-
const lastUpdatedText = (
|
|
684
|
+
const lastUpdatedText = (themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.lastUpdatedText) || localesLastUpdatedText;
|
|
637
685
|
const showLastUpdated = themeConfig.lastUpdated || localesLastUpdated;
|
|
638
686
|
return /* @__PURE__ */ _jsxs3("footer", {
|
|
639
687
|
className: "mt-8",
|
|
@@ -665,7 +713,7 @@ function DocFooter() {
|
|
|
665
713
|
/* @__PURE__ */ _jsx5("div", {
|
|
666
714
|
className: `${index_module_default3.prev} flex flex-col`,
|
|
667
715
|
children: prevPage ? /* @__PURE__ */ _jsxs3(Link, {
|
|
668
|
-
href:
|
|
716
|
+
href: normalizeHref3(prevPage.link),
|
|
669
717
|
className: index_module_default3.pagerLink,
|
|
670
718
|
children: [
|
|
671
719
|
/* @__PURE__ */ _jsx5("span", {
|
|
@@ -682,7 +730,7 @@ function DocFooter() {
|
|
|
682
730
|
/* @__PURE__ */ _jsx5("div", {
|
|
683
731
|
className: `${index_module_default3.next} flex flex-col`,
|
|
684
732
|
children: nextPage ? /* @__PURE__ */ _jsxs3(Link, {
|
|
685
|
-
href:
|
|
733
|
+
href: normalizeHref3(nextPage.link),
|
|
686
734
|
className: `${index_module_default3.pagerLink} ${index_module_default3.next}`,
|
|
687
735
|
children: [
|
|
688
736
|
/* @__PURE__ */ _jsx5("span", {
|
|
@@ -817,7 +865,7 @@ var SvgArrowRight = (props) => /* @__PURE__ */ _jsx7("svg", _object_spread_props
|
|
|
817
865
|
var arrow_right_default = SvgArrowRight;
|
|
818
866
|
|
|
819
867
|
// src/theme-default/components/Sidebar/SidebarGroup.tsx
|
|
820
|
-
import { normalizeHref as
|
|
868
|
+
import { normalizeHref as normalizeHref4, withBase as withBase5 } from "@/runtime";
|
|
821
869
|
function _define_property4(obj, key, value) {
|
|
822
870
|
if (key in obj) {
|
|
823
871
|
Object.defineProperty(obj, key, {
|
|
@@ -871,7 +919,7 @@ function _object_spread_props3(target, source) {
|
|
|
871
919
|
return target;
|
|
872
920
|
}
|
|
873
921
|
function SidebarGroup(props) {
|
|
874
|
-
var _item_items
|
|
922
|
+
var _item_items;
|
|
875
923
|
const { item, depth = 0, activeMatcher, id, setSidebarData } = props;
|
|
876
924
|
const navigate = useNavigate2();
|
|
877
925
|
const isGroupMatched = matchCache.get(item);
|
|
@@ -959,7 +1007,7 @@ function SidebarGroup(props) {
|
|
|
959
1007
|
onMouseEnter: () => item.link && props.preloadLink(item.link),
|
|
960
1008
|
onClick: (e) => {
|
|
961
1009
|
if (item.link) {
|
|
962
|
-
navigate(
|
|
1010
|
+
navigate(withBase5(normalizeHref4(item.link)));
|
|
963
1011
|
collapsed && toggleCollapse(e);
|
|
964
1012
|
} else {
|
|
965
1013
|
collapsible && toggleCollapse(e);
|
|
@@ -1001,7 +1049,7 @@ function SidebarGroup(props) {
|
|
|
1001
1049
|
opacity: initialState.current ? 0 : 1,
|
|
1002
1050
|
marginLeft: depth === 0 ? "12px" : 0
|
|
1003
1051
|
},
|
|
1004
|
-
children:
|
|
1052
|
+
children: item === null || item === void 0 ? void 0 : (_item_items = item.items) === null || _item_items === void 0 ? void 0 : _item_items.map((item2, index) => (
|
|
1005
1053
|
// eslint-disable-next-line react/no-array-index-key
|
|
1006
1054
|
/* @__PURE__ */ _jsx8("div", {
|
|
1007
1055
|
children: /* @__PURE__ */ _jsx8(SidebarItem, _object_spread_props3(_object_spread4({}, props), {
|
|
@@ -1019,7 +1067,7 @@ function SidebarGroup(props) {
|
|
|
1019
1067
|
}
|
|
1020
1068
|
|
|
1021
1069
|
// src/theme-default/components/Sidebar/SidebarItem.tsx
|
|
1022
|
-
import { normalizeHref as
|
|
1070
|
+
import { normalizeHref as normalizeHref5 } from "@/runtime";
|
|
1023
1071
|
function _define_property5(obj, key, value) {
|
|
1024
1072
|
if (key in obj) {
|
|
1025
1073
|
Object.defineProperty(obj, key, {
|
|
@@ -1073,7 +1121,7 @@ function SidebarItem(props) {
|
|
|
1073
1121
|
}, `${item.text}-${id}`);
|
|
1074
1122
|
} else {
|
|
1075
1123
|
return /* @__PURE__ */ _jsx9(Link, {
|
|
1076
|
-
href:
|
|
1124
|
+
href: normalizeHref5(item.link),
|
|
1077
1125
|
className: index_module_default4.menuLink,
|
|
1078
1126
|
children: /* @__PURE__ */ _jsxs5("div", {
|
|
1079
1127
|
ref,
|
|
@@ -1099,7 +1147,7 @@ function SidebarItem(props) {
|
|
|
1099
1147
|
}
|
|
1100
1148
|
|
|
1101
1149
|
// src/theme-default/components/Sidebar/index.tsx
|
|
1102
|
-
import { removeBase, usePageData as
|
|
1150
|
+
import { removeBase as removeBase2, usePageData as usePageData6 } from "@/runtime";
|
|
1103
1151
|
function _define_property6(obj, key, value) {
|
|
1104
1152
|
if (key in obj) {
|
|
1105
1153
|
Object.defineProperty(obj, key, {
|
|
@@ -1136,11 +1184,10 @@ var highlightTitleStyle = {
|
|
|
1136
1184
|
};
|
|
1137
1185
|
var matchCache = /* @__PURE__ */ new WeakMap();
|
|
1138
1186
|
function SideBar(props) {
|
|
1139
|
-
var _frontmatter, _themeConfig;
|
|
1140
1187
|
const { isSidebarOpen, langRoutePrefix, pathname: rawPathname, sidebarData: rawSidebarData } = props;
|
|
1141
|
-
const { siteData: { themeConfig }, page: { frontmatter } } =
|
|
1188
|
+
const { siteData: { themeConfig }, page: { frontmatter } } = usePageData6();
|
|
1142
1189
|
var _frontmatter_hideNavbar, _ref;
|
|
1143
|
-
const hideNavbar = (_ref = (_frontmatter_hideNavbar =
|
|
1190
|
+
const hideNavbar = (_ref = (_frontmatter_hideNavbar = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.hideNavbar) !== null && _frontmatter_hideNavbar !== void 0 ? _frontmatter_hideNavbar : themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.hideNavbar) !== null && _ref !== void 0 ? _ref : false;
|
|
1144
1191
|
const [sidebarData, setSidebarData] = useState2(rawSidebarData.filter(Boolean).flat());
|
|
1145
1192
|
const pathname = decodeURIComponent(rawPathname);
|
|
1146
1193
|
useEffect5(() => {
|
|
@@ -1184,11 +1231,10 @@ function SideBar(props) {
|
|
|
1184
1231
|
const removeLangPrefix = (path) => {
|
|
1185
1232
|
return path.replace(langRoutePrefix, "");
|
|
1186
1233
|
};
|
|
1187
|
-
const activeMatcher = (path) => isActive(
|
|
1234
|
+
const activeMatcher = (path) => isActive(removeBase2(removeLangPrefix(pathname)), removeLangPrefix(path), true);
|
|
1188
1235
|
const preloadLink = (link) => {
|
|
1189
|
-
var _match;
|
|
1190
1236
|
const match = matchRoutes2(routes2, link);
|
|
1191
|
-
if (
|
|
1237
|
+
if (match === null || match === void 0 ? void 0 : match.length) {
|
|
1192
1238
|
const { route } = match[0];
|
|
1193
1239
|
route.preload();
|
|
1194
1240
|
}
|
|
@@ -1291,9 +1337,6 @@ var SvgMenu = (props) => /* @__PURE__ */ _jsx11("svg", _object_spread_props4(_ob
|
|
|
1291
1337
|
}));
|
|
1292
1338
|
var menu_default = SvgMenu;
|
|
1293
1339
|
|
|
1294
|
-
// src/theme-default/components/LocalSideBar/index.module.scss
|
|
1295
|
-
var index_module_default5 = { "localNav": "localNav_dce60", "menu": "menu_dce60", "backDrop": "backDrop_dce60" };
|
|
1296
|
-
|
|
1297
1340
|
// src/theme-default/components/LocalSideBar/index.tsx
|
|
1298
1341
|
function SideMenu(props) {
|
|
1299
1342
|
const { langRoutePrefix, pathname, sidebarData } = props;
|
|
@@ -1312,10 +1355,10 @@ function SideMenu(props) {
|
|
|
1312
1355
|
return /* @__PURE__ */ _jsxs6(Fragment, {
|
|
1313
1356
|
children: [
|
|
1314
1357
|
/* @__PURE__ */ _jsx12("div", {
|
|
1315
|
-
className:
|
|
1358
|
+
className: "rspress-sidebar-menu",
|
|
1316
1359
|
children: /* @__PURE__ */ _jsxs6("button", {
|
|
1317
1360
|
onClick: openSidebar,
|
|
1318
|
-
className:
|
|
1361
|
+
className: "flex-center",
|
|
1319
1362
|
children: [
|
|
1320
1363
|
/* @__PURE__ */ _jsx12("div", {
|
|
1321
1364
|
className: "text-md mr-2",
|
|
@@ -1336,7 +1379,7 @@ function SideMenu(props) {
|
|
|
1336
1379
|
}),
|
|
1337
1380
|
isSidebarOpen ? /* @__PURE__ */ _jsx12("div", {
|
|
1338
1381
|
onClick: closeSidebar,
|
|
1339
|
-
className:
|
|
1382
|
+
className: "rspress-sidebar-back-drop"
|
|
1340
1383
|
}) : null
|
|
1341
1384
|
]
|
|
1342
1385
|
});
|
|
@@ -1347,10 +1390,10 @@ import { jsx as _jsx13, jsxs as _jsxs7 } from "react/jsx-runtime";
|
|
|
1347
1390
|
import { useMemo } from "react";
|
|
1348
1391
|
|
|
1349
1392
|
// src/theme-default/components/Overview/index.module.scss
|
|
1350
|
-
var
|
|
1393
|
+
var index_module_default5 = { "header-anchor": "header-anchor_90d29", "headerAnchor": "header-anchor_90d29", "overview-groups": "overview-groups_90d29", "overviewGroups": "overview-groups_90d29", "overview-group-li": "overview-group-li_90d29", "overviewGroupLi": "overview-group-li_90d29", "level-2": "level-2_90d29", "level2": "level-2_90d29", "overview-group": "overview-group_90d29", "overviewGroup": "overview-group_90d29", "header": "header_90d29" };
|
|
1351
1394
|
|
|
1352
1395
|
// src/theme-default/components/Overview/index.tsx
|
|
1353
|
-
import { usePageData as
|
|
1396
|
+
import { usePageData as usePageData7, normalizeHref as normalizeHref6, withBase as withBase6, isEqualPath as isEqualPath4 } from "@/runtime";
|
|
1354
1397
|
function _define_property8(obj, key, value) {
|
|
1355
1398
|
if (key in obj) {
|
|
1356
1399
|
Object.defineProperty(obj, key, {
|
|
@@ -1405,13 +1448,13 @@ function _object_spread_props5(target, source) {
|
|
|
1405
1448
|
}
|
|
1406
1449
|
var DEFAULT_GROUP = "Others";
|
|
1407
1450
|
function Overview() {
|
|
1408
|
-
const { siteData: siteData2, page: { routePath } } =
|
|
1451
|
+
const { siteData: siteData2, page: { routePath } } = usePageData7();
|
|
1409
1452
|
const { pages } = siteData2;
|
|
1410
1453
|
const overviewModules = pages.filter((page) => page.routePath.startsWith(routePath.replace(/overview$/, "")) && page.routePath !== routePath);
|
|
1411
1454
|
const { items: overviewSidebarGroups } = useSidebarData();
|
|
1412
1455
|
function normalizeSidebarItem(item) {
|
|
1413
|
-
var _pageModule_toc
|
|
1414
|
-
const pageModule = overviewModules.find((m) => isEqualPath4(m.routePath,
|
|
1456
|
+
var _pageModule_toc;
|
|
1457
|
+
const pageModule = overviewModules.find((m) => isEqualPath4(m.routePath, withBase6(item.link || "")));
|
|
1415
1458
|
const getChildLink = (traverseItem) => {
|
|
1416
1459
|
if (traverseItem.link) {
|
|
1417
1460
|
return traverseItem.link;
|
|
@@ -1424,7 +1467,7 @@ function Overview() {
|
|
|
1424
1467
|
const link = getChildLink(item);
|
|
1425
1468
|
return _object_spread_props5(_object_spread8({}, item), {
|
|
1426
1469
|
link,
|
|
1427
|
-
headers: (
|
|
1470
|
+
headers: (pageModule === null || pageModule === void 0 ? void 0 : (_pageModule_toc = pageModule.toc) === null || _pageModule_toc === void 0 ? void 0 : _pageModule_toc.filter((header) => header.depth === 2)) || []
|
|
1428
1471
|
});
|
|
1429
1472
|
}
|
|
1430
1473
|
const groups = useMemo(() => {
|
|
@@ -1465,11 +1508,11 @@ function Overview() {
|
|
|
1465
1508
|
children: group.name
|
|
1466
1509
|
}),
|
|
1467
1510
|
/* @__PURE__ */ _jsx13("div", {
|
|
1468
|
-
className:
|
|
1511
|
+
className: index_module_default5.overviewGroups,
|
|
1469
1512
|
children: group.items.map((item) => {
|
|
1470
1513
|
var _item_headers;
|
|
1471
1514
|
return /* @__PURE__ */ _jsxs7("div", {
|
|
1472
|
-
className:
|
|
1515
|
+
className: index_module_default5.overviewGroup,
|
|
1473
1516
|
children: [
|
|
1474
1517
|
/* @__PURE__ */ _jsx13("div", {
|
|
1475
1518
|
className: "flex",
|
|
@@ -1478,7 +1521,7 @@ function Overview() {
|
|
|
1478
1521
|
marginBottom: 8
|
|
1479
1522
|
},
|
|
1480
1523
|
children: /* @__PURE__ */ _jsx13(Link, {
|
|
1481
|
-
href:
|
|
1524
|
+
href: normalizeHref6(item.link),
|
|
1482
1525
|
children: item.text
|
|
1483
1526
|
})
|
|
1484
1527
|
})
|
|
@@ -1486,9 +1529,9 @@ function Overview() {
|
|
|
1486
1529
|
/* @__PURE__ */ _jsx13("ul", {
|
|
1487
1530
|
className: "list-none",
|
|
1488
1531
|
children: (_item_headers = item.headers) === null || _item_headers === void 0 ? void 0 : _item_headers.map((header) => /* @__PURE__ */ _jsx13("li", {
|
|
1489
|
-
className: `${
|
|
1532
|
+
className: `${index_module_default5.overviewGroupLi} ${index_module_default5[`level${header.depth}`]} first:mt-2`,
|
|
1490
1533
|
children: /* @__PURE__ */ _jsx13(Link, {
|
|
1491
|
-
href: `${
|
|
1534
|
+
href: `${normalizeHref6(item.link)}#${header.id}`,
|
|
1492
1535
|
children: header.text
|
|
1493
1536
|
})
|
|
1494
1537
|
}, header.id))
|
|
@@ -1508,10 +1551,10 @@ import { createContext } from "react";
|
|
|
1508
1551
|
var TabDataContext = createContext({});
|
|
1509
1552
|
|
|
1510
1553
|
// src/theme-default/layout/DocLayout/index.module.scss
|
|
1511
|
-
var
|
|
1554
|
+
var index_module_default6 = { "aside-container": "aside-container_feeda", "asideContainer": "aside-container_feeda", "fade-out": "fade-out_feeda", "fadeOut": "fade-out_feeda", "fade-in": "fade-in_feeda", "fadeIn": "fade-in_feeda", "docLayout": "docLayout_feeda", "content": "content_feeda" };
|
|
1512
1555
|
|
|
1513
1556
|
// src/theme-default/layout/DocLayout/index.tsx
|
|
1514
|
-
import { Content, usePageData as
|
|
1557
|
+
import { Content, usePageData as usePageData8, normalizeSlash } from "@/runtime";
|
|
1515
1558
|
function _define_property9(obj, key, value) {
|
|
1516
1559
|
if (key in obj) {
|
|
1517
1560
|
Object.defineProperty(obj, key, {
|
|
@@ -1541,9 +1584,8 @@ function _object_spread9(target) {
|
|
|
1541
1584
|
return target;
|
|
1542
1585
|
}
|
|
1543
1586
|
function DocLayout(props) {
|
|
1544
|
-
var _frontmatter, _themeConfig, _frontmatter1, _localesData, _themeConfig1, _frontmatter2, _frontmatter3;
|
|
1545
1587
|
const { beforeDocFooter, beforeDoc, afterDoc, beforeOutline, afterOutline } = props;
|
|
1546
|
-
const { siteData: siteData2, page } =
|
|
1588
|
+
const { siteData: siteData2, page } = usePageData8();
|
|
1547
1589
|
const { toc = [], frontmatter } = page;
|
|
1548
1590
|
const [tabData, setTabData] = useState4({});
|
|
1549
1591
|
const headers = toc;
|
|
@@ -1554,18 +1596,17 @@ function DocLayout(props) {
|
|
|
1554
1596
|
const { items: sidebarData } = useSidebarData();
|
|
1555
1597
|
const langRoutePrefix = normalizeSlash(localesData.langRoutePrefix || "");
|
|
1556
1598
|
var _frontmatter_hideNavbar, _ref;
|
|
1557
|
-
const hideNavbar = (_ref = (_frontmatter_hideNavbar =
|
|
1558
|
-
const hasSidebar = (
|
|
1559
|
-
const outlineTitle = (
|
|
1599
|
+
const hideNavbar = (_ref = (_frontmatter_hideNavbar = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.hideNavbar) !== null && _frontmatter_hideNavbar !== void 0 ? _frontmatter_hideNavbar : themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.hideNavbar) !== null && _ref !== void 0 ? _ref : false;
|
|
1600
|
+
const hasSidebar = (frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.sidebar) !== false && Object.keys(sidebar).length > 0;
|
|
1601
|
+
const outlineTitle = (localesData === null || localesData === void 0 ? void 0 : localesData.outlineTitle) || (themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.outlineTitle) || "ON THIS PAGE";
|
|
1560
1602
|
var _frontmatter_overview;
|
|
1561
|
-
const isOverviewPage = (_frontmatter_overview =
|
|
1603
|
+
const isOverviewPage = (_frontmatter_overview = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.overview) !== null && _frontmatter_overview !== void 0 ? _frontmatter_overview : false;
|
|
1562
1604
|
var _frontmatter_footer;
|
|
1563
|
-
const hasFooter = (_frontmatter_footer =
|
|
1605
|
+
const hasFooter = (_frontmatter_footer = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.footer) !== null && _frontmatter_footer !== void 0 ? _frontmatter_footer : true;
|
|
1564
1606
|
const getHasAside = () => {
|
|
1565
|
-
var _frontmatter4, _themeConfig2;
|
|
1566
1607
|
const defaultHasAside = typeof window === "undefined" ? true : window.top === window.self;
|
|
1567
1608
|
var _frontmatter_outline, _ref2;
|
|
1568
|
-
return ((_ref2 = (_frontmatter_outline =
|
|
1609
|
+
return ((_ref2 = (_frontmatter_outline = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.outline) !== null && _frontmatter_outline !== void 0 ? _frontmatter_outline : themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.outline) !== null && _ref2 !== void 0 ? _ref2 : defaultHasAside) && headers.length > 0;
|
|
1569
1610
|
};
|
|
1570
1611
|
const [hasAside, setHasAside] = useState4(getHasAside());
|
|
1571
1612
|
useEffect7(() => {
|
|
@@ -1575,7 +1616,7 @@ function DocLayout(props) {
|
|
|
1575
1616
|
siteData2
|
|
1576
1617
|
]);
|
|
1577
1618
|
return /* @__PURE__ */ _jsxs8("div", {
|
|
1578
|
-
className: `${
|
|
1619
|
+
className: `${index_module_default6.docLayout} pt-0`,
|
|
1579
1620
|
style: _object_spread9({}, hideNavbar ? {
|
|
1580
1621
|
marginTop: 0
|
|
1581
1622
|
} : {}),
|
|
@@ -1587,24 +1628,27 @@ function DocLayout(props) {
|
|
|
1587
1628
|
sidebarData
|
|
1588
1629
|
}) : null,
|
|
1589
1630
|
/* @__PURE__ */ _jsxs8("div", {
|
|
1590
|
-
className: `${
|
|
1631
|
+
className: `${index_module_default6.content} rspress-doc-container flex flex-shrink-0`,
|
|
1591
1632
|
children: [
|
|
1592
1633
|
/* @__PURE__ */ _jsx14("div", {
|
|
1593
1634
|
className: "w-full",
|
|
1594
1635
|
children: isOverviewPage ? /* @__PURE__ */ _jsx14(Overview, {}) : /* @__PURE__ */ _jsxs8("div", {
|
|
1595
|
-
className: "rspress-doc",
|
|
1596
1636
|
children: [
|
|
1597
|
-
/* @__PURE__ */ _jsx14(
|
|
1598
|
-
|
|
1599
|
-
|
|
1600
|
-
|
|
1601
|
-
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
children: /* @__PURE__ */ _jsx14(
|
|
1637
|
+
/* @__PURE__ */ _jsx14("div", {
|
|
1638
|
+
className: "rspress-doc",
|
|
1639
|
+
children: /* @__PURE__ */ _jsx14(TabDataContext.Provider, {
|
|
1640
|
+
value: {
|
|
1641
|
+
tabData,
|
|
1642
|
+
setTabData
|
|
1643
|
+
},
|
|
1644
|
+
children: /* @__PURE__ */ _jsx14(MDXProvider, {
|
|
1645
|
+
components: getCustomMDXComponent(),
|
|
1646
|
+
children: /* @__PURE__ */ _jsx14(Content, {})
|
|
1647
|
+
})
|
|
1605
1648
|
})
|
|
1606
1649
|
}),
|
|
1607
1650
|
/* @__PURE__ */ _jsxs8("div", {
|
|
1651
|
+
className: "rspress-doc-footer",
|
|
1608
1652
|
children: [
|
|
1609
1653
|
beforeDocFooter,
|
|
1610
1654
|
hasFooter && /* @__PURE__ */ _jsx14(DocFooter, {})
|
|
@@ -1614,7 +1658,7 @@ function DocLayout(props) {
|
|
|
1614
1658
|
})
|
|
1615
1659
|
}),
|
|
1616
1660
|
hasAside ? /* @__PURE__ */ _jsx14("div", {
|
|
1617
|
-
className:
|
|
1661
|
+
className: index_module_default6.asideContainer,
|
|
1618
1662
|
style: _object_spread9({
|
|
1619
1663
|
maxHeight: "calc(100vh - (var(--rp-nav-height) + 32px))",
|
|
1620
1664
|
overflow: "scroll"
|
|
@@ -1641,7 +1685,7 @@ function DocLayout(props) {
|
|
|
1641
1685
|
}
|
|
1642
1686
|
|
|
1643
1687
|
// src/theme-default/layout/Layout/index.tsx
|
|
1644
|
-
import { usePageData as
|
|
1688
|
+
import { usePageData as usePageData9, Content as Content2, removeBase as removeBase3, withBase as withBase7 } from "@/runtime";
|
|
1645
1689
|
function _define_property10(obj, key, value) {
|
|
1646
1690
|
if (key in obj) {
|
|
1647
1691
|
Object.defineProperty(obj, key, {
|
|
@@ -1671,7 +1715,6 @@ function _object_spread10(target) {
|
|
|
1671
1715
|
return target;
|
|
1672
1716
|
}
|
|
1673
1717
|
var Layout = (props) => {
|
|
1674
|
-
var _frontmatter, _themeConfig, _frontmatter1, _frontmatter2;
|
|
1675
1718
|
const { top, bottom, beforeDocFooter, beforeDoc, afterDoc, beforeOutline, afterOutline, beforeNavTitle, afterNavTitle, beforeNav } = props;
|
|
1676
1719
|
const docProps = {
|
|
1677
1720
|
beforeDocFooter,
|
|
@@ -1680,7 +1723,7 @@ var Layout = (props) => {
|
|
|
1680
1723
|
beforeOutline,
|
|
1681
1724
|
afterOutline
|
|
1682
1725
|
};
|
|
1683
|
-
const { siteData: siteData2, page } =
|
|
1726
|
+
const { siteData: siteData2, page } = usePageData9();
|
|
1684
1727
|
const { themeConfig } = siteData2;
|
|
1685
1728
|
const {
|
|
1686
1729
|
pageType,
|
|
@@ -1692,9 +1735,9 @@ var Layout = (props) => {
|
|
|
1692
1735
|
const localesData = useLocaleSiteData();
|
|
1693
1736
|
const defaultLang = siteData2.lang || "";
|
|
1694
1737
|
var _frontmatter_navbar, _themeConfig_hideNavbar;
|
|
1695
|
-
const hideNavbar = !((_frontmatter_navbar =
|
|
1738
|
+
const hideNavbar = !((_frontmatter_navbar = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.navbar) !== null && _frontmatter_navbar !== void 0 ? _frontmatter_navbar : true) || ((_themeConfig_hideNavbar = themeConfig === null || themeConfig === void 0 ? void 0 : themeConfig.hideNavbar) !== null && _themeConfig_hideNavbar !== void 0 ? _themeConfig_hideNavbar : false);
|
|
1696
1739
|
var _ref;
|
|
1697
|
-
let title = (_ref =
|
|
1740
|
+
let title = (_ref = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.title) !== null && _ref !== void 0 ? _ref : articleTitle;
|
|
1698
1741
|
const mainTitle = siteData2.title || localesData.title;
|
|
1699
1742
|
const localeLanguages = Object.values(siteData2.themeConfig.locales || {});
|
|
1700
1743
|
const langs = localeLanguages.map((item) => item.lang) || [];
|
|
@@ -1703,7 +1746,7 @@ var Layout = (props) => {
|
|
|
1703
1746
|
} else {
|
|
1704
1747
|
title = mainTitle;
|
|
1705
1748
|
}
|
|
1706
|
-
const description = (
|
|
1749
|
+
const description = (frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.description) || siteData2.description || localesData.description;
|
|
1707
1750
|
const getContentLayout = () => {
|
|
1708
1751
|
switch (pageType) {
|
|
1709
1752
|
case "home":
|
|
@@ -1724,7 +1767,7 @@ var Layout = (props) => {
|
|
|
1724
1767
|
return;
|
|
1725
1768
|
}
|
|
1726
1769
|
const { pathname } = window.location;
|
|
1727
|
-
const cleanPathname =
|
|
1770
|
+
const cleanPathname = removeBase3(pathname);
|
|
1728
1771
|
const FIRST_VISIT_KEY = "rspress-visited";
|
|
1729
1772
|
const visited = localStorage.getItem(FIRST_VISIT_KEY);
|
|
1730
1773
|
if (visited) {
|
|
@@ -1740,7 +1783,7 @@ var Layout = (props) => {
|
|
|
1740
1783
|
if (targetLang === defaultLang) {
|
|
1741
1784
|
window.location.replace(pathname.replace(`/${currentLang}`, ""));
|
|
1742
1785
|
} else if (currentLang === defaultLang) {
|
|
1743
|
-
window.location.replace(
|
|
1786
|
+
window.location.replace(withBase7(`/${targetLang}${cleanPathname}`));
|
|
1744
1787
|
} else {
|
|
1745
1788
|
window.location.replace(pathname.replace(`/${currentLang}`, `/${targetLang}`));
|
|
1746
1789
|
}
|
|
@@ -1800,7 +1843,7 @@ import { jsx as _jsx16, jsxs as _jsxs10 } from "react/jsx-runtime";
|
|
|
1800
1843
|
import React6 from "react";
|
|
1801
1844
|
|
|
1802
1845
|
// src/theme-default/components/Button/index.module.scss
|
|
1803
|
-
var
|
|
1846
|
+
var index_module_default7 = { "button": "button_c5dfc", "medium": "medium_c5dfc", "big": "big_c5dfc", "brand": "brand_c5dfc", "alt": "alt_c5dfc" };
|
|
1804
1847
|
|
|
1805
1848
|
// src/theme-default/components/Button/index.tsx
|
|
1806
1849
|
function Button(props) {
|
|
@@ -1812,16 +1855,16 @@ function Button(props) {
|
|
|
1812
1855
|
type = external ? "a" : Link;
|
|
1813
1856
|
}
|
|
1814
1857
|
return /* @__PURE__ */ React6.createElement(type !== null && type !== void 0 ? type : "a", {
|
|
1815
|
-
className: `${
|
|
1858
|
+
className: `${index_module_default7.button} ${index_module_default7[theme]} ${index_module_default7[size]} ${className}`,
|
|
1816
1859
|
href
|
|
1817
1860
|
}, props.text);
|
|
1818
1861
|
}
|
|
1819
1862
|
|
|
1820
1863
|
// src/theme-default/components/HomeHero/index.module.scss
|
|
1821
|
-
var
|
|
1864
|
+
var index_module_default8 = { "clip": "clip_1e4a0", "mask": "mask_1e4a0" };
|
|
1822
1865
|
|
|
1823
1866
|
// src/theme-default/components/HomeHero/index.tsx
|
|
1824
|
-
import { normalizeHref as
|
|
1867
|
+
import { normalizeHref as normalizeHref7 } from "@/runtime";
|
|
1825
1868
|
var DEFAULT_HERO = {
|
|
1826
1869
|
name: "modern",
|
|
1827
1870
|
text: "modern ssg",
|
|
@@ -1830,14 +1873,14 @@ var DEFAULT_HERO = {
|
|
|
1830
1873
|
image: void 0
|
|
1831
1874
|
};
|
|
1832
1875
|
function HomeHero({ frontmatter }) {
|
|
1833
|
-
var
|
|
1834
|
-
const hero = (
|
|
1876
|
+
var _hero_text, _hero_image, _hero_image1;
|
|
1877
|
+
const hero = (frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.hero) || DEFAULT_HERO;
|
|
1835
1878
|
const hasImage = hero.image !== void 0;
|
|
1836
1879
|
return /* @__PURE__ */ _jsxs10("div", {
|
|
1837
1880
|
className: "m-auto pt-0 px-6 pb-12 sm:pt-10 sm:px-16 md:pt-16 md:px-16 md:pb-16",
|
|
1838
1881
|
children: [
|
|
1839
1882
|
/* @__PURE__ */ _jsx16("div", {
|
|
1840
|
-
className:
|
|
1883
|
+
className: index_module_default8.mask,
|
|
1841
1884
|
style: {
|
|
1842
1885
|
left: hasImage ? "75%" : "50%"
|
|
1843
1886
|
}
|
|
@@ -1851,7 +1894,7 @@ function HomeHero({ frontmatter }) {
|
|
|
1851
1894
|
/* @__PURE__ */ _jsx16("h1", {
|
|
1852
1895
|
className: "font-bold text-3xl sm:text-6xl md:text-7xl m-auto sm:m-4 md:m-0 md:pb-3 lg:pb-2 leading-tight z-10",
|
|
1853
1896
|
children: /* @__PURE__ */ _jsx16("span", {
|
|
1854
|
-
className:
|
|
1897
|
+
className: index_module_default8.clip,
|
|
1855
1898
|
style: {
|
|
1856
1899
|
lineHeight: "1.3"
|
|
1857
1900
|
},
|
|
@@ -1876,7 +1919,7 @@ function HomeHero({ frontmatter }) {
|
|
|
1876
1919
|
children: /* @__PURE__ */ _jsx16(Button, {
|
|
1877
1920
|
type: "a",
|
|
1878
1921
|
text: action.text,
|
|
1879
|
-
href:
|
|
1922
|
+
href: normalizeHref7(action.link),
|
|
1880
1923
|
theme: action.theme
|
|
1881
1924
|
})
|
|
1882
1925
|
}, action.link))
|
|
@@ -1900,7 +1943,7 @@ function HomeHero({ frontmatter }) {
|
|
|
1900
1943
|
import { jsx as _jsx17, jsxs as _jsxs11 } from "react/jsx-runtime";
|
|
1901
1944
|
|
|
1902
1945
|
// src/theme-default/components/HomeFeatures/index.module.scss
|
|
1903
|
-
var
|
|
1946
|
+
var index_module_default9 = { "grid-2": "grid-2_7983b", "grid2": "grid-2_7983b", "grid-4": "grid-4_7983b", "grid4": "grid-4_7983b", "grid-6": "grid-6_7983b", "grid6": "grid-6_7983b", "grid-3": "grid-3_7983b", "grid3": "grid-3_7983b", "featureCard": "featureCard_7983b" };
|
|
1904
1947
|
|
|
1905
1948
|
// src/theme-default/components/HomeFeatures/index.tsx
|
|
1906
1949
|
var PRESET_COUNT = [
|
|
@@ -1921,19 +1964,18 @@ var getGridClass = (count) => {
|
|
|
1921
1964
|
return "";
|
|
1922
1965
|
};
|
|
1923
1966
|
function HomeFeature({ frontmatter }) {
|
|
1924
|
-
|
|
1925
|
-
const
|
|
1926
|
-
const gridClass = getGridClass((_features = features) === null || _features === void 0 ? void 0 : _features.length);
|
|
1967
|
+
const features = frontmatter === null || frontmatter === void 0 ? void 0 : frontmatter.features;
|
|
1968
|
+
const gridClass = getGridClass(features === null || features === void 0 ? void 0 : features.length);
|
|
1927
1969
|
return /* @__PURE__ */ _jsx17("div", {
|
|
1928
1970
|
className: "overflow-hidden m-auto flex flex-wrap justify-between max-w-6xl",
|
|
1929
|
-
children:
|
|
1971
|
+
children: features === null || features === void 0 ? void 0 : features.map((feature) => {
|
|
1930
1972
|
const { icon, title, details, link } = feature;
|
|
1931
1973
|
return /* @__PURE__ */ _jsx17("div", {
|
|
1932
|
-
className: `${gridClass ?
|
|
1974
|
+
className: `${gridClass ? index_module_default9[gridClass] : "w-full"} rounded hover:var(--rp-c-brand)`,
|
|
1933
1975
|
children: /* @__PURE__ */ _jsx17("div", {
|
|
1934
1976
|
className: "h-full p-2",
|
|
1935
1977
|
children: /* @__PURE__ */ _jsxs11("article", {
|
|
1936
|
-
className: `${
|
|
1978
|
+
className: `${index_module_default9.featureCard} h-full p-8 rounded-4xl border-transparent`,
|
|
1937
1979
|
style: {
|
|
1938
1980
|
cursor: link ? "pointer" : "auto"
|
|
1939
1981
|
},
|
|
@@ -1967,10 +2009,10 @@ function HomeFeature({ frontmatter }) {
|
|
|
1967
2009
|
}
|
|
1968
2010
|
|
|
1969
2011
|
// src/theme-default/layout/HomeLayout/index.tsx
|
|
1970
|
-
import { usePageData as
|
|
2012
|
+
import { usePageData as usePageData10 } from "@/runtime";
|
|
1971
2013
|
function HomeLayout(props) {
|
|
1972
2014
|
const { beforeHero, afterHero, beforeFeatures, afterFeatures } = props;
|
|
1973
|
-
const { page: { frontmatter } } =
|
|
2015
|
+
const { page: { frontmatter } } = usePageData10();
|
|
1974
2016
|
return /* @__PURE__ */ _jsxs12("div", {
|
|
1975
2017
|
className: "relative",
|
|
1976
2018
|
style: {
|
|
@@ -2086,7 +2128,7 @@ var SvgDown = (props) => /* @__PURE__ */ _jsx19("svg", _object_spread_props6(_ob
|
|
|
2086
2128
|
var down_default = SvgDown;
|
|
2087
2129
|
|
|
2088
2130
|
// src/theme-default/components/NavScreenMenuGroup/index.module.scss
|
|
2089
|
-
var
|
|
2131
|
+
var index_module_default10 = { "navScreenMenuGroup": "navScreenMenuGroup_de8a5", "open": "open_de8a5", "button": "button_de8a5", "buttonSpan": "buttonSpan_de8a5", "items": "items_de8a5", "down": "down_de8a5" };
|
|
2090
2132
|
|
|
2091
2133
|
// src/theme-default/components/NavScreenMenuGroup/NavScreenMenuGroup.tsx
|
|
2092
2134
|
function NavScreenMenuGroup(item) {
|
|
@@ -2139,26 +2181,26 @@ function NavScreenMenuGroup(item) {
|
|
|
2139
2181
|
});
|
|
2140
2182
|
};
|
|
2141
2183
|
return /* @__PURE__ */ _jsxs13("div", {
|
|
2142
|
-
className: `${isOpen ?
|
|
2184
|
+
className: `${isOpen ? index_module_default10.open : ""} ${index_module_default10.navScreenMenuGroup} relative`,
|
|
2143
2185
|
children: [
|
|
2144
2186
|
/* @__PURE__ */ _jsxs13("button", {
|
|
2145
|
-
className:
|
|
2187
|
+
className: index_module_default10.button,
|
|
2146
2188
|
onClick: () => {
|
|
2147
2189
|
setIsOpen(!isOpen);
|
|
2148
2190
|
},
|
|
2149
2191
|
children: [
|
|
2150
2192
|
/* @__PURE__ */ _jsx20("span", {
|
|
2151
|
-
className:
|
|
2193
|
+
className: index_module_default10.buttonSpan,
|
|
2152
2194
|
children: item.text
|
|
2153
2195
|
}),
|
|
2154
2196
|
/* @__PURE__ */ _jsx20(down_default, {
|
|
2155
|
-
className: `${isOpen ?
|
|
2197
|
+
className: `${isOpen ? index_module_default10.open : ""} ${index_module_default10.down} `
|
|
2156
2198
|
})
|
|
2157
2199
|
]
|
|
2158
2200
|
}),
|
|
2159
2201
|
/* @__PURE__ */ _jsx20("div", {
|
|
2160
2202
|
children: /* @__PURE__ */ _jsx20("div", {
|
|
2161
|
-
className:
|
|
2203
|
+
className: index_module_default10.items,
|
|
2162
2204
|
children: item.items.map((item2) => {
|
|
2163
2205
|
return /* @__PURE__ */ _jsx20("div", {
|
|
2164
2206
|
children: "items" in item2 ? renderGroup(item2) : renderLinkItem(item2)
|
|
@@ -2175,17 +2217,17 @@ import { jsx as _jsx21, jsxs as _jsxs14 } from "react/jsx-runtime";
|
|
|
2175
2217
|
import { withoutBase } from "@rspress/shared";
|
|
2176
2218
|
|
|
2177
2219
|
// src/theme-default/components/Nav/index.module.scss
|
|
2178
|
-
var
|
|
2220
|
+
var index_module_default11 = { "container": "container_47ac2", "leftNav": "leftNav_47ac2", "rightNav": "rightNav_47ac2", "activeItem": "activeItem_47ac2", "singleItem": "singleItem_47ac2", "navContainer": "navContainer_47ac2", "social-links-icon": "social-links-icon_47ac2", "socialLinksIcon": "social-links-icon_47ac2", "menu-item": "menu-item_47ac2", "menuItem": "menu-item_47ac2", "mobileNavMenu": "mobileNavMenu_47ac2", "mask": "mask_47ac2", "docPage": "docPage_47ac2" };
|
|
2179
2221
|
|
|
2180
2222
|
// src/theme-default/components/Nav/NavMenuSingleItem.tsx
|
|
2181
|
-
import { normalizeHref as
|
|
2223
|
+
import { normalizeHref as normalizeHref8 } from "@/runtime";
|
|
2182
2224
|
function NavMenuSingleItem(item) {
|
|
2183
2225
|
const { pathname, base } = item;
|
|
2184
2226
|
const isActive2 = new RegExp(item.activeMatch || item.link).test(withoutBase(pathname, base));
|
|
2185
2227
|
return /* @__PURE__ */ _jsx21(Link, {
|
|
2186
|
-
href:
|
|
2228
|
+
href: normalizeHref8(item.link),
|
|
2187
2229
|
children: /* @__PURE__ */ _jsxs14("div", {
|
|
2188
|
-
className: `${
|
|
2230
|
+
className: `${index_module_default11.singleItem} ${isActive2 ? index_module_default11.activeItem : ""} text-sm font-medium mx-1.5 px-3 py-2 flex items-center`,
|
|
2189
2231
|
children: [
|
|
2190
2232
|
/* @__PURE__ */ _jsx21(Tag, {
|
|
2191
2233
|
tag: item.tag
|
|
@@ -2340,13 +2382,11 @@ var classList;
|
|
|
2340
2382
|
var userPreference;
|
|
2341
2383
|
var query;
|
|
2342
2384
|
var setClass = (dark) => {
|
|
2343
|
-
|
|
2344
|
-
(_classList = classList) === null || _classList === void 0 ? void 0 : _classList[dark ? "add" : "remove"]("dark");
|
|
2385
|
+
classList === null || classList === void 0 ? void 0 : classList[dark ? "add" : "remove"]("dark");
|
|
2345
2386
|
};
|
|
2346
2387
|
var updateAppearance = () => {
|
|
2347
2388
|
const disableDarkMode = siteData.themeConfig.darkMode === false;
|
|
2348
2389
|
if (disableDarkMode) {
|
|
2349
|
-
setClass(false);
|
|
2350
2390
|
return;
|
|
2351
2391
|
}
|
|
2352
2392
|
if (window.MODERN_THEME) {
|
|
@@ -2361,10 +2401,7 @@ if (typeof window !== "undefined" && typeof localStorage !== "undefined") {
|
|
|
2361
2401
|
classList = document.documentElement.classList;
|
|
2362
2402
|
updateAppearance();
|
|
2363
2403
|
}
|
|
2364
|
-
var isDarkMode = () =>
|
|
2365
|
-
var _classList;
|
|
2366
|
-
return (_classList = classList) === null || _classList === void 0 ? void 0 : _classList.contains("dark");
|
|
2367
|
-
};
|
|
2404
|
+
var isDarkMode = () => classList === null || classList === void 0 ? void 0 : classList.contains("dark");
|
|
2368
2405
|
var getToggle = () => {
|
|
2369
2406
|
if (typeof window !== "undefined") {
|
|
2370
2407
|
window.addEventListener("storage", updateAppearance);
|
|
@@ -2391,10 +2428,9 @@ function SwitchAppearance({ onClick }) {
|
|
|
2391
2428
|
}, []);
|
|
2392
2429
|
return /* @__PURE__ */ _jsx24("div", {
|
|
2393
2430
|
onClick: () => {
|
|
2394
|
-
var _onClick;
|
|
2395
2431
|
setTheme(theme === "dark" ? "light" : "dark");
|
|
2396
2432
|
toggleAppearance();
|
|
2397
|
-
|
|
2433
|
+
onClick === null || onClick === void 0 ? void 0 : onClick();
|
|
2398
2434
|
},
|
|
2399
2435
|
className: "md:mr-2 rspress-nav-appearance",
|
|
2400
2436
|
children: /* @__PURE__ */ _jsx24("div", {
|
|
@@ -2558,7 +2594,7 @@ import { jsx as _jsx28, jsxs as _jsxs16 } from "react/jsx-runtime";
|
|
|
2558
2594
|
import { useState as useState6 } from "react";
|
|
2559
2595
|
|
|
2560
2596
|
// src/theme-default/components/SocialLinks/index.module.scss
|
|
2561
|
-
var
|
|
2597
|
+
var index_module_default12 = { "social-links-icon": "social-links-icon_8cbd0", "socialLinksIcon": "social-links-icon_8cbd0", "menu-item": "menu-item_8cbd0", "menuItem": "menu-item_8cbd0" };
|
|
2562
2598
|
|
|
2563
2599
|
// src/theme-default/components/SocialLinks/presetIcons.tsx
|
|
2564
2600
|
import { jsx as _jsx27, jsxs as _jsxs15 } from "react/jsx-runtime";
|
|
@@ -2832,14 +2868,14 @@ var LinkContent = (props) => {
|
|
|
2832
2868
|
rel: "noopener noreferrer",
|
|
2833
2869
|
className: "social-links",
|
|
2834
2870
|
children: /* @__PURE__ */ _jsx28("div", {
|
|
2835
|
-
className: `${
|
|
2871
|
+
className: `${index_module_default12.socialLinksIcon}`,
|
|
2836
2872
|
children: IconComp
|
|
2837
2873
|
})
|
|
2838
2874
|
}, content);
|
|
2839
2875
|
}
|
|
2840
2876
|
if (mode === "text") {
|
|
2841
2877
|
return /* @__PURE__ */ _jsxs16("div", {
|
|
2842
|
-
className: `${
|
|
2878
|
+
className: `${index_module_default12.socialLinksIcon} cursor-pointer relative mx-3`,
|
|
2843
2879
|
onMouseEnter: mouseEnterIcon,
|
|
2844
2880
|
onMouseLeave: mouseLeavePopper,
|
|
2845
2881
|
children: [
|
|
@@ -2860,7 +2896,7 @@ var LinkContent = (props) => {
|
|
|
2860
2896
|
}
|
|
2861
2897
|
if (mode === "img") {
|
|
2862
2898
|
return /* @__PURE__ */ _jsxs16("div", {
|
|
2863
|
-
className: `${
|
|
2899
|
+
className: `${index_module_default12.socialLinksIcon} cursor-pointer relative`,
|
|
2864
2900
|
onMouseEnter: mouseEnterIcon,
|
|
2865
2901
|
onMouseLeave: mouseLeavePopper,
|
|
2866
2902
|
children: [
|
|
@@ -2938,7 +2974,7 @@ var SocialLinks = ({ socialLinks }) => {
|
|
|
2938
2974
|
});
|
|
2939
2975
|
const [moreLinksVisible, setMoreLinksVisible] = useState7(false);
|
|
2940
2976
|
return /* @__PURE__ */ _jsxs18("div", {
|
|
2941
|
-
className: `social-links ${
|
|
2977
|
+
className: `social-links ${index_module_default12.menuItem} flex-center relative`,
|
|
2942
2978
|
onMouseLeave: () => setMoreLinksVisible(false),
|
|
2943
2979
|
children: [
|
|
2944
2980
|
/* @__PURE__ */ _jsx31(ShownLinks, {
|
|
@@ -2954,7 +2990,7 @@ var SocialLinks = ({ socialLinks }) => {
|
|
|
2954
2990
|
};
|
|
2955
2991
|
|
|
2956
2992
|
// src/theme-default/components/NavScreen/index.module.scss
|
|
2957
|
-
var
|
|
2993
|
+
var index_module_default13 = { "navScreen": "navScreen_8624f", "active": "active_8624f", "container": "container_8624f", "navMenu": "navMenu_8624f", "navMenuItem": "navMenuItem_8624f", "navAppearance": "navAppearance_8624f", "socialAndAppearance": "socialAndAppearance_8624f" };
|
|
2958
2994
|
|
|
2959
2995
|
// src/theme-default/components/NavScreen/index.tsx
|
|
2960
2996
|
import { NoSSR, ThemeContext as ThemeContext2 } from "@/runtime";
|
|
@@ -3012,7 +3048,7 @@ function _object_spread_props11(target, source) {
|
|
|
3012
3048
|
}
|
|
3013
3049
|
var NavScreenTranslations = ({ translationMenuData }) => {
|
|
3014
3050
|
return /* @__PURE__ */ _jsx32("div", {
|
|
3015
|
-
className: `${
|
|
3051
|
+
className: `${index_module_default13.navTranslations} flex text-sm font-bold justify-center`,
|
|
3016
3052
|
children: /* @__PURE__ */ _jsx32("div", {
|
|
3017
3053
|
className: "mx-1.5 my-1",
|
|
3018
3054
|
children: /* @__PURE__ */ _jsx32(NavScreenMenuGroup, _object_spread17({}, translationMenuData))
|
|
@@ -3020,7 +3056,7 @@ var NavScreenTranslations = ({ translationMenuData }) => {
|
|
|
3020
3056
|
});
|
|
3021
3057
|
};
|
|
3022
3058
|
function NavScreen(props) {
|
|
3023
|
-
var _siteData_themeConfig,
|
|
3059
|
+
var _siteData_themeConfig, _localesData_find;
|
|
3024
3060
|
const { isScreenOpen, localeData, siteData: siteData2, pathname, setLogo } = props;
|
|
3025
3061
|
const screen = useRef4(null);
|
|
3026
3062
|
const { theme } = useContext2(ThemeContext2);
|
|
@@ -3028,7 +3064,7 @@ function NavScreen(props) {
|
|
|
3028
3064
|
const hasMultiLanguage = localesData.length > 1;
|
|
3029
3065
|
const menuItems = localeData.nav || [];
|
|
3030
3066
|
const hasAppearanceSwitch = siteData2.themeConfig.darkMode !== false;
|
|
3031
|
-
const socialLinks = (
|
|
3067
|
+
const socialLinks = (siteData2 === null || siteData2 === void 0 ? void 0 : (_siteData_themeConfig = siteData2.themeConfig) === null || _siteData_themeConfig === void 0 ? void 0 : _siteData_themeConfig.socialLinks) || [];
|
|
3032
3068
|
const hasSocialLinks = socialLinks.length > 0;
|
|
3033
3069
|
const langs = localesData.map((item) => item.lang || "zh") || [];
|
|
3034
3070
|
const { base, logo } = siteData2;
|
|
@@ -3039,18 +3075,15 @@ function NavScreen(props) {
|
|
|
3039
3075
|
height: "18px"
|
|
3040
3076
|
}
|
|
3041
3077
|
}),
|
|
3042
|
-
items: localesData.map((item) => {
|
|
3043
|
-
|
|
3044
|
-
|
|
3045
|
-
|
|
3046
|
-
link: `/${item.lang}`
|
|
3047
|
-
};
|
|
3048
|
-
}),
|
|
3078
|
+
items: localesData.map((item) => ({
|
|
3079
|
+
text: item === null || item === void 0 ? void 0 : item.label,
|
|
3080
|
+
link: `/${item.lang}`
|
|
3081
|
+
})),
|
|
3049
3082
|
activeValue: (_localesData_find = localesData.find((item) => item.lang === localeData.lang)) === null || _localesData_find === void 0 ? void 0 : _localesData_find.label
|
|
3050
3083
|
} : null;
|
|
3051
3084
|
const NavScreenAppearance = () => {
|
|
3052
3085
|
return /* @__PURE__ */ _jsx32("div", {
|
|
3053
|
-
className: `mt-2 ${
|
|
3086
|
+
className: `mt-2 ${index_module_default13.navAppearance} flex justify-center`,
|
|
3054
3087
|
children: /* @__PURE__ */ _jsx32(NoSSR, {
|
|
3055
3088
|
children: /* @__PURE__ */ _jsx32(SwitchAppearance, {
|
|
3056
3089
|
onClick: () => {
|
|
@@ -3062,10 +3095,10 @@ function NavScreen(props) {
|
|
|
3062
3095
|
};
|
|
3063
3096
|
const NavScreenMenu = ({ menuItems: menuItems2 }) => {
|
|
3064
3097
|
return /* @__PURE__ */ _jsx32("div", {
|
|
3065
|
-
className:
|
|
3098
|
+
className: index_module_default13.navMenu,
|
|
3066
3099
|
children: menuItems2.map((item, index) => {
|
|
3067
3100
|
return /* @__PURE__ */ _jsx32("div", {
|
|
3068
|
-
className: `${
|
|
3101
|
+
className: `${index_module_default13.navMenuItem} w-full`,
|
|
3069
3102
|
children: "link" in item ? /* @__PURE__ */ _jsx32(NavMenuSingleItem, _object_spread17({
|
|
3070
3103
|
pathname,
|
|
3071
3104
|
base,
|
|
@@ -3091,11 +3124,11 @@ function NavScreen(props) {
|
|
|
3091
3124
|
isScreenOpen
|
|
3092
3125
|
]);
|
|
3093
3126
|
return /* @__PURE__ */ _jsx32("div", {
|
|
3094
|
-
className: `${
|
|
3127
|
+
className: `${index_module_default13.navScreen} ${isScreenOpen ? index_module_default13.active : ""}`,
|
|
3095
3128
|
ref: screen,
|
|
3096
3129
|
id: "navScreen",
|
|
3097
3130
|
children: /* @__PURE__ */ _jsxs19("div", {
|
|
3098
|
-
className:
|
|
3131
|
+
className: index_module_default13.container,
|
|
3099
3132
|
children: [
|
|
3100
3133
|
/* @__PURE__ */ _jsx32(NavScreenMenu, {
|
|
3101
3134
|
menuItems
|
|
@@ -3231,7 +3264,7 @@ var SvgSmallMenu = (props) => /* @__PURE__ */ _jsxs20("svg", _object_spread_prop
|
|
|
3231
3264
|
var small_menu_default = SvgSmallMenu;
|
|
3232
3265
|
|
|
3233
3266
|
// src/theme-default/components/NavHambmger/index.module.scss
|
|
3234
|
-
var
|
|
3267
|
+
var index_module_default14 = { "navHamburger": "navHamburger_2498a", "container": "container_2498a", "top": "top_2498a", "middle": "middle_2498a", "bottom": "bottom_2498a", "active": "active_2498a" };
|
|
3235
3268
|
|
|
3236
3269
|
// src/theme-default/components/NavHambmger/index.tsx
|
|
3237
3270
|
function NavHamburger(props) {
|
|
@@ -3248,7 +3281,7 @@ function NavHamburger(props) {
|
|
|
3248
3281
|
}),
|
|
3249
3282
|
/* @__PURE__ */ _jsx34("button", {
|
|
3250
3283
|
onClick: toggleScreen,
|
|
3251
|
-
className: `${isScreenOpen ?
|
|
3284
|
+
className: `${isScreenOpen ? index_module_default14.active : ""} ${index_module_default14.navHamburger} text-gray-500`,
|
|
3252
3285
|
children: /* @__PURE__ */ _jsx34(small_menu_default, {
|
|
3253
3286
|
fill: "currentColor"
|
|
3254
3287
|
})
|
|
@@ -3444,7 +3477,7 @@ function NavMenuGroup(item) {
|
|
|
3444
3477
|
}
|
|
3445
3478
|
|
|
3446
3479
|
// src/theme-default/components/Nav/index.tsx
|
|
3447
|
-
import { ThemeContext as ThemeContext3, usePageData as
|
|
3480
|
+
import { ThemeContext as ThemeContext3, usePageData as usePageData11, useVersion as useVersion2, withBase as withBase8 } from "@/runtime";
|
|
3448
3481
|
function _define_property20(obj, key, value) {
|
|
3449
3482
|
if (key in obj) {
|
|
3450
3483
|
Object.defineProperty(obj, key, {
|
|
@@ -3500,9 +3533,9 @@ function _object_spread_props14(target, source) {
|
|
|
3500
3533
|
var DEFAULT_NAV_POSTION = "right";
|
|
3501
3534
|
var NavBarTitle = ({ title, langRoutePrefix, logo }) => {
|
|
3502
3535
|
return /* @__PURE__ */ _jsx36("div", {
|
|
3503
|
-
className: `${
|
|
3536
|
+
className: `${index_module_default11.navBarTitle}`,
|
|
3504
3537
|
children: /* @__PURE__ */ _jsx36("a", {
|
|
3505
|
-
href:
|
|
3538
|
+
href: withBase8(langRoutePrefix),
|
|
3506
3539
|
className: "flex items-center w-full h-full text-base font-semibold transition-opacity duration-300 hover:opacity-60",
|
|
3507
3540
|
children: logo ? /* @__PURE__ */ _jsx36("img", {
|
|
3508
3541
|
src: logo,
|
|
@@ -3517,7 +3550,7 @@ var NavBarTitle = ({ title, langRoutePrefix, logo }) => {
|
|
|
3517
3550
|
};
|
|
3518
3551
|
var NavTranslations = ({ translationMenuData }) => {
|
|
3519
3552
|
return /* @__PURE__ */ _jsx36("div", {
|
|
3520
|
-
className: `translation ${
|
|
3553
|
+
className: `translation ${index_module_default11.menuItem} flex text-sm font-bold items-center px-3 py-2`,
|
|
3521
3554
|
children: /* @__PURE__ */ _jsx36("div", {
|
|
3522
3555
|
children: /* @__PURE__ */ _jsx36(NavMenuGroup, _object_spread_props14(_object_spread20({}, translationMenuData), {
|
|
3523
3556
|
isTranslation: true
|
|
@@ -3526,30 +3559,36 @@ var NavTranslations = ({ translationMenuData }) => {
|
|
|
3526
3559
|
});
|
|
3527
3560
|
};
|
|
3528
3561
|
function Nav2(props) {
|
|
3529
|
-
var _localeLanguages_find, _siteData_themeConfig
|
|
3562
|
+
var _localeLanguages_find, _siteData_themeConfig;
|
|
3530
3563
|
const { beforeNavTitle, afterNavTitle, beforeNav } = props;
|
|
3531
|
-
const { siteData: siteData2, page } =
|
|
3564
|
+
const { siteData: siteData2, page } = usePageData11();
|
|
3532
3565
|
const { logo: rawLogo, base } = siteData2;
|
|
3533
3566
|
const { pathname } = useLocation4();
|
|
3534
3567
|
const { theme } = useContext3(ThemeContext3);
|
|
3535
3568
|
const localeData = useLocaleSiteData();
|
|
3569
|
+
const currentVersion = useVersion2();
|
|
3536
3570
|
const [isMobile, setIsMobile] = useState10(false);
|
|
3537
3571
|
const localeLanguages = Object.values(siteData2.themeConfig.locales || {});
|
|
3538
3572
|
const hasMultiLanguage = localeLanguages.length > 1;
|
|
3539
3573
|
const socialLinks = siteData2.themeConfig.socialLinks || [];
|
|
3540
3574
|
const hasSocialLinks = socialLinks.length > 0;
|
|
3541
|
-
const defaultLang = siteData2.lang || "
|
|
3575
|
+
const defaultLang = siteData2.lang || "";
|
|
3576
|
+
const defaultVersion = siteData2.multiVersion.default || "";
|
|
3542
3577
|
const { lang } = page;
|
|
3543
|
-
const langs = localeLanguages.map((item) => item.lang || "
|
|
3578
|
+
const langs = localeLanguages.map((item) => item.lang || "") || [];
|
|
3544
3579
|
const [logo, setLogo] = useState10(getLogoUrl(rawLogo, theme));
|
|
3545
3580
|
const translationMenuData = hasMultiLanguage ? {
|
|
3546
|
-
items: localeLanguages.map((item) => {
|
|
3547
|
-
|
|
3548
|
-
|
|
3549
|
-
|
|
3550
|
-
|
|
3551
|
-
|
|
3552
|
-
|
|
3581
|
+
items: localeLanguages.map((item) => ({
|
|
3582
|
+
text: item === null || item === void 0 ? void 0 : item.label,
|
|
3583
|
+
link: replaceLang(pathname, {
|
|
3584
|
+
current: lang,
|
|
3585
|
+
target: item.lang,
|
|
3586
|
+
default: defaultLang
|
|
3587
|
+
}, {
|
|
3588
|
+
current: currentVersion,
|
|
3589
|
+
default: defaultVersion
|
|
3590
|
+
}, base)
|
|
3591
|
+
})),
|
|
3553
3592
|
activeValue: (_localeLanguages_find = localeLanguages.find((item) => lang === item.lang)) === null || _localeLanguages_find === void 0 ? void 0 : _localeLanguages_find.label
|
|
3554
3593
|
} : null;
|
|
3555
3594
|
useEffect11(() => {
|
|
@@ -3585,13 +3624,13 @@ function Nav2(props) {
|
|
|
3585
3624
|
const getPosition = (menuItem) => (_menuItem_position = menuItem.position) !== null && _menuItem_position !== void 0 ? _menuItem_position : DEFAULT_NAV_POSTION;
|
|
3586
3625
|
const leftMenuItems = menuItems.filter((item) => getPosition(item) === "left");
|
|
3587
3626
|
const rightMenuItems = menuItems.filter((item) => getPosition(item) === "right");
|
|
3588
|
-
const hasSearch = (
|
|
3627
|
+
const hasSearch = (siteData2 === null || siteData2 === void 0 ? void 0 : (_siteData_themeConfig = siteData2.themeConfig) === null || _siteData_themeConfig === void 0 ? void 0 : _siteData_themeConfig.search) !== false;
|
|
3589
3628
|
var _localeData_title;
|
|
3590
3629
|
const title = (_localeData_title = localeData.title) !== null && _localeData_title !== void 0 ? _localeData_title : siteData2.title;
|
|
3591
3630
|
const hasAppearanceSwitch = siteData2.themeConfig.darkMode !== false;
|
|
3592
3631
|
const leftNav = () => {
|
|
3593
3632
|
return leftMenuItems.length > 0 ? /* @__PURE__ */ _jsx36("div", {
|
|
3594
|
-
className:
|
|
3633
|
+
className: index_module_default11.leftNav,
|
|
3595
3634
|
children: /* @__PURE__ */ _jsx36(NavMenu, {
|
|
3596
3635
|
menuItems: leftMenuItems
|
|
3597
3636
|
})
|
|
@@ -3599,7 +3638,7 @@ function Nav2(props) {
|
|
|
3599
3638
|
};
|
|
3600
3639
|
const rightNav = () => {
|
|
3601
3640
|
return /* @__PURE__ */ _jsxs23("div", {
|
|
3602
|
-
className:
|
|
3641
|
+
className: index_module_default11.rightNav,
|
|
3603
3642
|
children: [
|
|
3604
3643
|
hasSearch && /* @__PURE__ */ _jsx36("div", {
|
|
3605
3644
|
className: "flex sm:flex-1 items-center sm:pl-4 sm:pr-2",
|
|
@@ -3627,7 +3666,7 @@ function Nav2(props) {
|
|
|
3627
3666
|
});
|
|
3628
3667
|
};
|
|
3629
3668
|
return /* @__PURE__ */ _jsxs23("header", {
|
|
3630
|
-
className:
|
|
3669
|
+
className: "top-0 left-0 md:fixed w-full",
|
|
3631
3670
|
style: {
|
|
3632
3671
|
zIndex: "var(--rp-z-index-nav)",
|
|
3633
3672
|
background: "var(--rp-c-bg)"
|
|
@@ -3635,9 +3674,9 @@ function Nav2(props) {
|
|
|
3635
3674
|
children: [
|
|
3636
3675
|
beforeNav,
|
|
3637
3676
|
/* @__PURE__ */ _jsx36("div", {
|
|
3638
|
-
className: `${
|
|
3677
|
+
className: `${index_module_default11.navContainer} rspress-nav px-6`,
|
|
3639
3678
|
children: /* @__PURE__ */ _jsxs23("div", {
|
|
3640
|
-
className: `${
|
|
3679
|
+
className: `${index_module_default11.container} flex justify-between items-center h-full`,
|
|
3641
3680
|
children: [
|
|
3642
3681
|
beforeNavTitle,
|
|
3643
3682
|
/* @__PURE__ */ _jsx36(NavBarTitle, {
|
|
@@ -3647,12 +3686,12 @@ function Nav2(props) {
|
|
|
3647
3686
|
}),
|
|
3648
3687
|
afterNavTitle,
|
|
3649
3688
|
/* @__PURE__ */ _jsxs23("div", {
|
|
3650
|
-
className: `${
|
|
3689
|
+
className: `${index_module_default11.content} flex flex-1 justify-end items-center`,
|
|
3651
3690
|
children: [
|
|
3652
3691
|
leftNav(),
|
|
3653
3692
|
rightNav(),
|
|
3654
3693
|
/* @__PURE__ */ _jsxs23("div", {
|
|
3655
|
-
className:
|
|
3694
|
+
className: index_module_default11.mobileNavMenu,
|
|
3656
3695
|
children: [
|
|
3657
3696
|
isMobile && /* @__PURE__ */ _jsx36(Search, {}),
|
|
3658
3697
|
/* @__PURE__ */ _jsx36(NavHamburger, {
|
|
@@ -3673,6 +3712,80 @@ function Nav2(props) {
|
|
|
3673
3712
|
}
|
|
3674
3713
|
|
|
3675
3714
|
// src/theme-default/components/Search/index.tsx
|
|
3715
|
+
import { jsx as _jsx49, jsxs as _jsxs31, Fragment as _Fragment6 } from "react/jsx-runtime";
|
|
3716
|
+
import { useState as useState13 } from "react";
|
|
3717
|
+
|
|
3718
|
+
// src/theme-default/components/Search/assets/search.svg
|
|
3719
|
+
import { jsx as _jsx37 } from "react/jsx-runtime";
|
|
3720
|
+
import * as React13 from "react";
|
|
3721
|
+
function _define_property21(obj, key, value) {
|
|
3722
|
+
if (key in obj) {
|
|
3723
|
+
Object.defineProperty(obj, key, {
|
|
3724
|
+
value,
|
|
3725
|
+
enumerable: true,
|
|
3726
|
+
configurable: true,
|
|
3727
|
+
writable: true
|
|
3728
|
+
});
|
|
3729
|
+
} else {
|
|
3730
|
+
obj[key] = value;
|
|
3731
|
+
}
|
|
3732
|
+
return obj;
|
|
3733
|
+
}
|
|
3734
|
+
function _object_spread21(target) {
|
|
3735
|
+
for (var i = 1; i < arguments.length; i++) {
|
|
3736
|
+
var source = arguments[i] != null ? arguments[i] : {};
|
|
3737
|
+
var ownKeys36 = Object.keys(source);
|
|
3738
|
+
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
3739
|
+
ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
3740
|
+
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
3741
|
+
}));
|
|
3742
|
+
}
|
|
3743
|
+
ownKeys36.forEach(function(key) {
|
|
3744
|
+
_define_property21(target, key, source[key]);
|
|
3745
|
+
});
|
|
3746
|
+
}
|
|
3747
|
+
return target;
|
|
3748
|
+
}
|
|
3749
|
+
function ownKeys15(object, enumerableOnly) {
|
|
3750
|
+
var keys = Object.keys(object);
|
|
3751
|
+
if (Object.getOwnPropertySymbols) {
|
|
3752
|
+
var symbols = Object.getOwnPropertySymbols(object);
|
|
3753
|
+
if (enumerableOnly) {
|
|
3754
|
+
symbols = symbols.filter(function(sym) {
|
|
3755
|
+
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
3756
|
+
});
|
|
3757
|
+
}
|
|
3758
|
+
keys.push.apply(keys, symbols);
|
|
3759
|
+
}
|
|
3760
|
+
return keys;
|
|
3761
|
+
}
|
|
3762
|
+
function _object_spread_props15(target, source) {
|
|
3763
|
+
source = source != null ? source : {};
|
|
3764
|
+
if (Object.getOwnPropertyDescriptors) {
|
|
3765
|
+
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3766
|
+
} else {
|
|
3767
|
+
ownKeys15(Object(source)).forEach(function(key) {
|
|
3768
|
+
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3769
|
+
});
|
|
3770
|
+
}
|
|
3771
|
+
return target;
|
|
3772
|
+
}
|
|
3773
|
+
var SvgSearch = (props) => /* @__PURE__ */ _jsx37("svg", _object_spread_props15(_object_spread21({
|
|
3774
|
+
width: 24,
|
|
3775
|
+
height: 24,
|
|
3776
|
+
viewBox: "0 0 32 32"
|
|
3777
|
+
}, props), {
|
|
3778
|
+
children: /* @__PURE__ */ _jsx37("path", {
|
|
3779
|
+
fill: "var(--rp-c-gray)",
|
|
3780
|
+
d: "m29 27.586-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29ZM4 13a9 9 0 1 1 9 9 9.01 9.01 0 0 1-9-9Z"
|
|
3781
|
+
})
|
|
3782
|
+
}));
|
|
3783
|
+
var search_default = SvgSearch;
|
|
3784
|
+
|
|
3785
|
+
// src/theme-default/components/Search/index.module.scss
|
|
3786
|
+
var index_module_default15 = { "mask": "mask_f619e", "modal": "modal_f619e", "inputForm": "inputForm_f619e", "input": "input_f619e", "close": "close_f619e", "searchHits": "searchHits_f619e", "groupTitle": "groupTitle_f619e", "navSearchButton": "navSearchButton_f619e", "searchWord": "searchWord_f619e", "suggestItem": "suggestItem_f619e", "suggestItemContainer": "suggestItemContainer_f619e", "contentWrapper": "contentWrapper_f619e", "mark": "mark_f619e", "titleForContent": "titleForContent_f619e", "actionIcon": "actionIcon_f619e", "current": "current_f619e", "tabClassName": "tabClassName_f619e", "mobileNavSearchButton": "mobileNavSearchButton_f619e" };
|
|
3787
|
+
|
|
3788
|
+
// src/theme-default/components/Search/SearchPanel.tsx
|
|
3676
3789
|
import { jsx as _jsx48, jsxs as _jsxs30, Fragment as _Fragment5 } from "react/jsx-runtime";
|
|
3677
3790
|
import debounce from "lodash-es/debounce";
|
|
3678
3791
|
import groupBy from "lodash-es/groupBy";
|
|
@@ -3681,14 +3794,14 @@ import { useEffect as useEffect12, useRef as useRef5, useState as useState12 } f
|
|
|
3681
3794
|
import { onSearch } from "virtual-search-hooks";
|
|
3682
3795
|
|
|
3683
3796
|
// src/theme-default/components/Tabs/index.tsx
|
|
3684
|
-
import { jsx as
|
|
3797
|
+
import { jsx as _jsx38, jsxs as _jsxs24 } from "react/jsx-runtime";
|
|
3685
3798
|
import { useContext as useContext4, useState as useState11 } from "react";
|
|
3686
3799
|
|
|
3687
3800
|
// src/theme-default/components/Tabs/index.module.scss
|
|
3688
3801
|
var index_module_default16 = { "container": "container_7e0fb", "tab-list": "tab-list_7e0fb", "tabList": "tab-list_7e0fb", "tab": "tab_7e0fb", "not-selected": "not-selected_7e0fb", "notSelected": "not-selected_7e0fb", "selected": "selected_7e0fb" };
|
|
3689
3802
|
|
|
3690
3803
|
// src/theme-default/components/Tabs/index.tsx
|
|
3691
|
-
function
|
|
3804
|
+
function _define_property22(obj, key, value) {
|
|
3692
3805
|
if (key in obj) {
|
|
3693
3806
|
Object.defineProperty(obj, key, {
|
|
3694
3807
|
value,
|
|
@@ -3701,7 +3814,7 @@ function _define_property21(obj, key, value) {
|
|
|
3701
3814
|
}
|
|
3702
3815
|
return obj;
|
|
3703
3816
|
}
|
|
3704
|
-
function
|
|
3817
|
+
function _object_spread22(target) {
|
|
3705
3818
|
for (var i = 1; i < arguments.length; i++) {
|
|
3706
3819
|
var source = arguments[i] != null ? arguments[i] : {};
|
|
3707
3820
|
var ownKeys36 = Object.keys(source);
|
|
@@ -3711,12 +3824,12 @@ function _object_spread21(target) {
|
|
|
3711
3824
|
}));
|
|
3712
3825
|
}
|
|
3713
3826
|
ownKeys36.forEach(function(key) {
|
|
3714
|
-
|
|
3827
|
+
_define_property22(target, key, source[key]);
|
|
3715
3828
|
});
|
|
3716
3829
|
}
|
|
3717
3830
|
return target;
|
|
3718
3831
|
}
|
|
3719
|
-
function
|
|
3832
|
+
function ownKeys16(object, enumerableOnly) {
|
|
3720
3833
|
var keys = Object.keys(object);
|
|
3721
3834
|
if (Object.getOwnPropertySymbols) {
|
|
3722
3835
|
var symbols = Object.getOwnPropertySymbols(object);
|
|
@@ -3729,12 +3842,12 @@ function ownKeys15(object, enumerableOnly) {
|
|
|
3729
3842
|
}
|
|
3730
3843
|
return keys;
|
|
3731
3844
|
}
|
|
3732
|
-
function
|
|
3845
|
+
function _object_spread_props16(target, source) {
|
|
3733
3846
|
source = source != null ? source : {};
|
|
3734
3847
|
if (Object.getOwnPropertyDescriptors) {
|
|
3735
3848
|
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3736
3849
|
} else {
|
|
3737
|
-
|
|
3850
|
+
ownKeys16(Object(source)).forEach(function(key) {
|
|
3738
3851
|
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3739
3852
|
});
|
|
3740
3853
|
}
|
|
@@ -3815,19 +3928,18 @@ function Tabs(props) {
|
|
|
3815
3928
|
return /* @__PURE__ */ _jsxs24("div", {
|
|
3816
3929
|
className: index_module_default16.container,
|
|
3817
3930
|
children: [
|
|
3818
|
-
/* @__PURE__ */
|
|
3931
|
+
/* @__PURE__ */ _jsx38("div", {
|
|
3819
3932
|
className: tabContainerClassName,
|
|
3820
|
-
children: tabValues.length ? /* @__PURE__ */
|
|
3933
|
+
children: tabValues.length ? /* @__PURE__ */ _jsx38("div", {
|
|
3821
3934
|
className: index_module_default16.tabList,
|
|
3822
3935
|
children: tabValues.map((item, index) => {
|
|
3823
|
-
return /* @__PURE__ */
|
|
3936
|
+
return /* @__PURE__ */ _jsx38("div", {
|
|
3824
3937
|
className: `${index_module_default16.tab} ${activeIndex === index ? index_module_default16.selected : index_module_default16.notSelected}`,
|
|
3825
3938
|
onClick: () => {
|
|
3826
|
-
|
|
3827
|
-
(_onChange = onChange) === null || _onChange === void 0 ? void 0 : _onChange(index);
|
|
3939
|
+
onChange === null || onChange === void 0 ? void 0 : onChange(index);
|
|
3828
3940
|
setActiveIndex(index);
|
|
3829
3941
|
if (groupId) {
|
|
3830
|
-
setTabData(
|
|
3942
|
+
setTabData(_object_spread_props16(_object_spread22({}, tabData), {
|
|
3831
3943
|
[groupId]: index
|
|
3832
3944
|
}));
|
|
3833
3945
|
}
|
|
@@ -3837,7 +3949,7 @@ function Tabs(props) {
|
|
|
3837
3949
|
})
|
|
3838
3950
|
}) : null
|
|
3839
3951
|
}),
|
|
3840
|
-
/* @__PURE__ */
|
|
3952
|
+
/* @__PURE__ */ _jsx38("div", {
|
|
3841
3953
|
children: children[activeIndex]
|
|
3842
3954
|
})
|
|
3843
3955
|
]
|
|
@@ -3847,82 +3959,12 @@ function Tab(_param) {
|
|
|
3847
3959
|
var { children } = _param, props = _object_without_properties(_param, [
|
|
3848
3960
|
"children"
|
|
3849
3961
|
]);
|
|
3850
|
-
return /* @__PURE__ */
|
|
3962
|
+
return /* @__PURE__ */ _jsx38("div", _object_spread_props16(_object_spread22({}, props), {
|
|
3851
3963
|
className: "rounded px-2",
|
|
3852
3964
|
children
|
|
3853
3965
|
}));
|
|
3854
3966
|
}
|
|
3855
3967
|
|
|
3856
|
-
// src/theme-default/components/Search/index.module.scss
|
|
3857
|
-
var index_module_default17 = { "mask": "mask_f619e", "modal": "modal_f619e", "inputForm": "inputForm_f619e", "input": "input_f619e", "close": "close_f619e", "searchHits": "searchHits_f619e", "groupTitle": "groupTitle_f619e", "navSearchButton": "navSearchButton_f619e", "searchWord": "searchWord_f619e", "suggestItem": "suggestItem_f619e", "suggestItemContainer": "suggestItemContainer_f619e", "contentWrapper": "contentWrapper_f619e", "mark": "mark_f619e", "titleForContent": "titleForContent_f619e", "actionIcon": "actionIcon_f619e", "current": "current_f619e", "tabClassName": "tabClassName_f619e", "mobileNavSearchButton": "mobileNavSearchButton_f619e" };
|
|
3858
|
-
|
|
3859
|
-
// src/theme-default/components/Search/assets/search.svg
|
|
3860
|
-
import { jsx as _jsx38 } from "react/jsx-runtime";
|
|
3861
|
-
import * as React13 from "react";
|
|
3862
|
-
function _define_property22(obj, key, value) {
|
|
3863
|
-
if (key in obj) {
|
|
3864
|
-
Object.defineProperty(obj, key, {
|
|
3865
|
-
value,
|
|
3866
|
-
enumerable: true,
|
|
3867
|
-
configurable: true,
|
|
3868
|
-
writable: true
|
|
3869
|
-
});
|
|
3870
|
-
} else {
|
|
3871
|
-
obj[key] = value;
|
|
3872
|
-
}
|
|
3873
|
-
return obj;
|
|
3874
|
-
}
|
|
3875
|
-
function _object_spread22(target) {
|
|
3876
|
-
for (var i = 1; i < arguments.length; i++) {
|
|
3877
|
-
var source = arguments[i] != null ? arguments[i] : {};
|
|
3878
|
-
var ownKeys36 = Object.keys(source);
|
|
3879
|
-
if (typeof Object.getOwnPropertySymbols === "function") {
|
|
3880
|
-
ownKeys36 = ownKeys36.concat(Object.getOwnPropertySymbols(source).filter(function(sym) {
|
|
3881
|
-
return Object.getOwnPropertyDescriptor(source, sym).enumerable;
|
|
3882
|
-
}));
|
|
3883
|
-
}
|
|
3884
|
-
ownKeys36.forEach(function(key) {
|
|
3885
|
-
_define_property22(target, key, source[key]);
|
|
3886
|
-
});
|
|
3887
|
-
}
|
|
3888
|
-
return target;
|
|
3889
|
-
}
|
|
3890
|
-
function ownKeys16(object, enumerableOnly) {
|
|
3891
|
-
var keys = Object.keys(object);
|
|
3892
|
-
if (Object.getOwnPropertySymbols) {
|
|
3893
|
-
var symbols = Object.getOwnPropertySymbols(object);
|
|
3894
|
-
if (enumerableOnly) {
|
|
3895
|
-
symbols = symbols.filter(function(sym) {
|
|
3896
|
-
return Object.getOwnPropertyDescriptor(object, sym).enumerable;
|
|
3897
|
-
});
|
|
3898
|
-
}
|
|
3899
|
-
keys.push.apply(keys, symbols);
|
|
3900
|
-
}
|
|
3901
|
-
return keys;
|
|
3902
|
-
}
|
|
3903
|
-
function _object_spread_props16(target, source) {
|
|
3904
|
-
source = source != null ? source : {};
|
|
3905
|
-
if (Object.getOwnPropertyDescriptors) {
|
|
3906
|
-
Object.defineProperties(target, Object.getOwnPropertyDescriptors(source));
|
|
3907
|
-
} else {
|
|
3908
|
-
ownKeys16(Object(source)).forEach(function(key) {
|
|
3909
|
-
Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key));
|
|
3910
|
-
});
|
|
3911
|
-
}
|
|
3912
|
-
return target;
|
|
3913
|
-
}
|
|
3914
|
-
var SvgSearch = (props) => /* @__PURE__ */ _jsx38("svg", _object_spread_props16(_object_spread22({
|
|
3915
|
-
width: 24,
|
|
3916
|
-
height: 24,
|
|
3917
|
-
viewBox: "0 0 32 32"
|
|
3918
|
-
}, props), {
|
|
3919
|
-
children: /* @__PURE__ */ _jsx38("path", {
|
|
3920
|
-
fill: "var(--rp-c-gray)",
|
|
3921
|
-
d: "m29 27.586-7.552-7.552a11.018 11.018 0 1 0-1.414 1.414L27.586 29ZM4 13a9 9 0 1 1 9 9 9.01 9.01 0 0 1-9-9Z"
|
|
3922
|
-
})
|
|
3923
|
-
}));
|
|
3924
|
-
var search_default = SvgSearch;
|
|
3925
|
-
|
|
3926
3968
|
// src/theme-default/components/Search/assets/loading.svg
|
|
3927
3969
|
import { jsx as _jsx39, jsxs as _jsxs25 } from "react/jsx-runtime";
|
|
3928
3970
|
import * as React14 from "react";
|
|
@@ -4495,13 +4537,12 @@ var RemoteProvider = class {
|
|
|
4495
4537
|
search(query2) {
|
|
4496
4538
|
var _this = this;
|
|
4497
4539
|
return _async_to_generator3(function* () {
|
|
4498
|
-
var _searchIndexes;
|
|
4499
4540
|
const { apiUrl, searchIndexes } = _class_private_field_get2(_this, _options);
|
|
4500
4541
|
const { keyword, limit } = query2;
|
|
4501
4542
|
const urlParams = buildQueryString({
|
|
4502
4543
|
keyword,
|
|
4503
4544
|
limit: limit.toString(),
|
|
4504
|
-
searchIndexes: (
|
|
4545
|
+
searchIndexes: (searchIndexes === null || searchIndexes === void 0 ? void 0 : searchIndexes.map((indexInfo) => typeof indexInfo === "string" ? indexInfo : indexInfo.value).join(",")) || "",
|
|
4505
4546
|
lang: _class_private_field_get2(_this, _options).currentLang
|
|
4506
4547
|
});
|
|
4507
4548
|
try {
|
|
@@ -4522,7 +4563,7 @@ var RemoteProvider = class {
|
|
|
4522
4563
|
};
|
|
4523
4564
|
|
|
4524
4565
|
// src/theme-default/components/Search/logic/search.ts
|
|
4525
|
-
import { normalizeHref as
|
|
4566
|
+
import { normalizeHref as normalizeHref9 } from "@/runtime";
|
|
4526
4567
|
function asyncGeneratorStep4(gen, resolve, reject, _next, _throw, key, arg) {
|
|
4527
4568
|
try {
|
|
4528
4569
|
var info = gen[key](arg);
|
|
@@ -4623,19 +4664,19 @@ var PageSearcher = class {
|
|
|
4623
4664
|
match(keyword, limit = 7) {
|
|
4624
4665
|
var _this = this;
|
|
4625
4666
|
return _async_to_generator4(function* () {
|
|
4626
|
-
var _class_private_field_get1
|
|
4667
|
+
var _class_private_field_get1;
|
|
4627
4668
|
const searchResult = yield (_class_private_field_get1 = _class_private_field_get3(_this, _provider)) === null || _class_private_field_get1 === void 0 ? void 0 : _class_private_field_get1.search({
|
|
4628
4669
|
keyword,
|
|
4629
4670
|
limit
|
|
4630
4671
|
});
|
|
4631
4672
|
const normaizedKeyWord = normalizeTextCase(keyword);
|
|
4632
|
-
const currentIndexInfo = (
|
|
4673
|
+
const currentIndexInfo = (searchResult === null || searchResult === void 0 ? void 0 : searchResult.find((res) => _class_private_method_get2(_this, _isCurrentIndex, isCurrentIndex).call(_this, res.index))) || {
|
|
4633
4674
|
index: LOCAL_INDEX,
|
|
4634
4675
|
hits: []
|
|
4635
4676
|
};
|
|
4636
4677
|
const matchResult = {
|
|
4637
4678
|
current: _class_private_method_get2(_this, _matchResultItem, matchResultItem).call(_this, normaizedKeyWord, currentIndexInfo),
|
|
4638
|
-
others: ((
|
|
4679
|
+
others: ((searchResult === null || searchResult === void 0 ? void 0 : searchResult.filter((res) => !_class_private_method_get2(_this, _isCurrentIndex, isCurrentIndex).call(_this, res.index))) || []).map((res) => ({
|
|
4639
4680
|
index: res.index,
|
|
4640
4681
|
items: _class_private_method_get2(_this, _matchResultItem, matchResultItem).call(_this, normaizedKeyWord, res)
|
|
4641
4682
|
}))
|
|
@@ -4675,9 +4716,8 @@ var PageSearcher = class {
|
|
|
4675
4716
|
}
|
|
4676
4717
|
};
|
|
4677
4718
|
function matchResultItem(normaizedKeyWord, resultItem) {
|
|
4678
|
-
var _resultItem;
|
|
4679
4719
|
const matchedResult = [];
|
|
4680
|
-
|
|
4720
|
+
resultItem === null || resultItem === void 0 ? void 0 : resultItem.hits.forEach((item) => {
|
|
4681
4721
|
_class_private_method_get2(this, _matchTitle, matchTitle).call(this, item, normaizedKeyWord, matchedResult);
|
|
4682
4722
|
const matchedHeader = _class_private_method_get2(this, _matchHeader, matchHeader).call(this, item, normaizedKeyWord, matchedResult);
|
|
4683
4723
|
if (matchedHeader) {
|
|
@@ -4695,7 +4735,7 @@ function matchTitle(item, query2, matchedResult) {
|
|
|
4695
4735
|
type: "title",
|
|
4696
4736
|
title,
|
|
4697
4737
|
header: title,
|
|
4698
|
-
link: `${item.domain}${
|
|
4738
|
+
link: `${item.domain}${normalizeHref9(item.routePath)}`,
|
|
4699
4739
|
query: query2,
|
|
4700
4740
|
highlightInfoList: [
|
|
4701
4741
|
{
|
|
@@ -4728,7 +4768,7 @@ function matchHeader(item, query2, matchedResult) {
|
|
|
4728
4768
|
length: getStrByteLength(query2)
|
|
4729
4769
|
}
|
|
4730
4770
|
],
|
|
4731
|
-
link: `${domain}${
|
|
4771
|
+
link: `${domain}${normalizeHref9(item.routePath)}#${header.id}`,
|
|
4732
4772
|
query: query2,
|
|
4733
4773
|
group: _class_private_field_get3(this, _options2).extractGroupName(item.routePath)
|
|
4734
4774
|
});
|
|
@@ -4760,9 +4800,9 @@ function matchContent(item, query2, matchedResult) {
|
|
|
4760
4800
|
return toc[currentHeaderIndex];
|
|
4761
4801
|
};
|
|
4762
4802
|
if (queryIndex === -1) {
|
|
4763
|
-
var _item__matchesPosition
|
|
4803
|
+
var _item__matchesPosition;
|
|
4764
4804
|
const hightlightItems = (_item__matchesPosition = item._matchesPosition) === null || _item__matchesPosition === void 0 ? void 0 : _item__matchesPosition.content;
|
|
4765
|
-
if (!(
|
|
4805
|
+
if (!(hightlightItems === null || hightlightItems === void 0 ? void 0 : hightlightItems.length)) {
|
|
4766
4806
|
return;
|
|
4767
4807
|
}
|
|
4768
4808
|
const highlightStartIndex = item._matchesPosition.content[0].start;
|
|
@@ -4782,8 +4822,8 @@ function matchContent(item, query2, matchedResult) {
|
|
|
4782
4822
|
matchedResult.push({
|
|
4783
4823
|
type: "content",
|
|
4784
4824
|
title: item.title,
|
|
4785
|
-
header: (_currentHeader_text =
|
|
4786
|
-
link: `${domain}${
|
|
4825
|
+
header: (_currentHeader_text = currentHeader === null || currentHeader === void 0 ? void 0 : currentHeader.text) !== null && _currentHeader_text !== void 0 ? _currentHeader_text : item.title,
|
|
4826
|
+
link: `${domain}${normalizeHref9(item.routePath)}${currentHeader ? `#${currentHeader.id}` : ""}`,
|
|
4787
4827
|
query: query2,
|
|
4788
4828
|
highlightInfoList,
|
|
4789
4829
|
group: _class_private_field_get3(this, _options2).extractGroupName(item.routePath),
|
|
@@ -4792,7 +4832,6 @@ function matchContent(item, query2, matchedResult) {
|
|
|
4792
4832
|
return;
|
|
4793
4833
|
}
|
|
4794
4834
|
while (queryIndex !== -1) {
|
|
4795
|
-
var _currentHeader1;
|
|
4796
4835
|
const currentHeader = getCurrentHeader(queryIndex);
|
|
4797
4836
|
let statementStartIndex = content.slice(0, queryIndex).lastIndexOf("\n");
|
|
4798
4837
|
statementStartIndex = statementStartIndex === -1 ? 0 : statementStartIndex;
|
|
@@ -4812,10 +4851,10 @@ function matchContent(item, query2, matchedResult) {
|
|
|
4812
4851
|
matchedResult.push({
|
|
4813
4852
|
type: "content",
|
|
4814
4853
|
title: item.title,
|
|
4815
|
-
header: (_currentHeader_text1 =
|
|
4854
|
+
header: (_currentHeader_text1 = currentHeader === null || currentHeader === void 0 ? void 0 : currentHeader.text) !== null && _currentHeader_text1 !== void 0 ? _currentHeader_text1 : item.title,
|
|
4816
4855
|
statement,
|
|
4817
4856
|
highlightInfoList,
|
|
4818
|
-
link: `${domain}${
|
|
4857
|
+
link: `${domain}${normalizeHref9(item.routePath)}${currentHeader ? `#${currentHeader.id}` : ""}`,
|
|
4819
4858
|
query: query2,
|
|
4820
4859
|
group: _class_private_field_get3(this, _options2).extractGroupName(item.routePath)
|
|
4821
4860
|
});
|
|
@@ -5148,7 +5187,7 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
|
|
|
5148
5187
|
const queryStr = getSlicedStrByByteLength(rawText, start, length);
|
|
5149
5188
|
framegmentList.push(prefix);
|
|
5150
5189
|
framegmentList.push(/* @__PURE__ */ _jsx45("span", {
|
|
5151
|
-
className:
|
|
5190
|
+
className: index_module_default15.mark,
|
|
5152
5191
|
children: queryStr
|
|
5153
5192
|
}, start));
|
|
5154
5193
|
lastIndex = start + queryStr.length;
|
|
@@ -5193,7 +5232,7 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
|
|
|
5193
5232
|
children: [
|
|
5194
5233
|
renderStatementMatch(),
|
|
5195
5234
|
/* @__PURE__ */ _jsx45("p", {
|
|
5196
|
-
className:
|
|
5235
|
+
className: index_module_default15.titleForContent,
|
|
5197
5236
|
children: suggestion.title
|
|
5198
5237
|
})
|
|
5199
5238
|
]
|
|
@@ -5203,7 +5242,7 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
|
|
|
5203
5242
|
break;
|
|
5204
5243
|
}
|
|
5205
5244
|
return /* @__PURE__ */ _jsx45("li", {
|
|
5206
|
-
className: `${
|
|
5245
|
+
className: `${index_module_default15.suggestItem} ${isCurrent ? index_module_default15.current : ""}`,
|
|
5207
5246
|
onMouseEnter: setCurrentSuggestionIndex,
|
|
5208
5247
|
children: /* @__PURE__ */ _jsx45("a", {
|
|
5209
5248
|
href: link,
|
|
@@ -5213,20 +5252,20 @@ function SuggestItem({ suggestion, closeSearch, isCurrent, setCurrentSuggestionI
|
|
|
5213
5252
|
},
|
|
5214
5253
|
target: inCurrentDocIndex ? "_self" : "_blank",
|
|
5215
5254
|
children: /* @__PURE__ */ _jsxs27("div", {
|
|
5216
|
-
className:
|
|
5255
|
+
className: index_module_default15.suggestItemContainer,
|
|
5217
5256
|
children: [
|
|
5218
5257
|
/* @__PURE__ */ _jsx45("div", {
|
|
5219
|
-
className:
|
|
5258
|
+
className: index_module_default15.hitIcon,
|
|
5220
5259
|
children: /* @__PURE__ */ _jsx45(HitIcon, {})
|
|
5221
5260
|
}),
|
|
5222
5261
|
/* @__PURE__ */ _jsx45("div", {
|
|
5223
|
-
className:
|
|
5262
|
+
className: index_module_default15.contentWrapper,
|
|
5224
5263
|
children: /* @__PURE__ */ _jsx45("span", {
|
|
5225
5264
|
children: hitContent
|
|
5226
5265
|
})
|
|
5227
5266
|
}),
|
|
5228
5267
|
/* @__PURE__ */ _jsx45("div", {
|
|
5229
|
-
className:
|
|
5268
|
+
className: index_module_default15.actionIcon,
|
|
5230
5269
|
children: /* @__PURE__ */ _jsx45(jump_default, {})
|
|
5231
5270
|
})
|
|
5232
5271
|
]
|
|
@@ -5343,8 +5382,8 @@ function NoSearchResult({ query: query2 }) {
|
|
|
5343
5382
|
});
|
|
5344
5383
|
}
|
|
5345
5384
|
|
|
5346
|
-
// src/theme-default/components/Search/
|
|
5347
|
-
import { isProduction as isProduction2, usePageData as
|
|
5385
|
+
// src/theme-default/components/Search/SearchPanel.tsx
|
|
5386
|
+
import { isProduction as isProduction2, usePageData as usePageData12 } from "@/runtime";
|
|
5348
5387
|
function asyncGeneratorStep5(gen, resolve, reject, _next, _throw, key, arg) {
|
|
5349
5388
|
try {
|
|
5350
5389
|
var info = gen[key](arg);
|
|
@@ -5437,18 +5476,17 @@ var RECOMMEND_WORD = {
|
|
|
5437
5476
|
zh: "其它站点推荐结果",
|
|
5438
5477
|
en: "Other Site Search Results"
|
|
5439
5478
|
};
|
|
5440
|
-
function
|
|
5479
|
+
function SearchPanel({ focused, setFocused }) {
|
|
5441
5480
|
const [query2, setQuery] = useState12("");
|
|
5442
5481
|
const [searchResult, setSearchResult] = useState12({
|
|
5443
5482
|
current: [],
|
|
5444
5483
|
others: []
|
|
5445
5484
|
});
|
|
5446
|
-
const [focused, setFocused] = useState12(false);
|
|
5447
5485
|
const searchInputRef = useRef5(null);
|
|
5448
5486
|
const [initing, setIniting] = useState12(true);
|
|
5449
5487
|
const [currentSuggestionIndex, setCurrentSuggestionIndex] = useState12(0);
|
|
5450
5488
|
const pageSearcherRef = useRef5(null);
|
|
5451
|
-
const { siteData: siteData2, page: { lang } } =
|
|
5489
|
+
const { siteData: siteData2, page: { lang } } = usePageData12();
|
|
5452
5490
|
const { sidebar } = useLocaleSiteData();
|
|
5453
5491
|
const { search } = siteData2;
|
|
5454
5492
|
const suggestions = [
|
|
@@ -5590,7 +5628,7 @@ function Search2() {
|
|
|
5590
5628
|
children: [
|
|
5591
5629
|
renderSearchResultItem(result.current),
|
|
5592
5630
|
hasOtherResult && /* @__PURE__ */ _jsx48("h2", {
|
|
5593
|
-
className:
|
|
5631
|
+
className: index_module_default15.groupTitle,
|
|
5594
5632
|
children: RECOMMEND_WORD[lang]
|
|
5595
5633
|
}),
|
|
5596
5634
|
/* @__PURE__ */ _jsx48("div", {
|
|
@@ -5599,7 +5637,7 @@ function Search2() {
|
|
|
5599
5637
|
},
|
|
5600
5638
|
children: /* @__PURE__ */ _jsx48(Tabs, {
|
|
5601
5639
|
values: tabValues,
|
|
5602
|
-
tabContainerClassName:
|
|
5640
|
+
tabContainerClassName: index_module_default15.tabClassName,
|
|
5603
5641
|
children: result.others.map((item) => /* @__PURE__ */ _jsx48(Tab, {
|
|
5604
5642
|
children: renderSearchResultItem(item.items, false)
|
|
5605
5643
|
}, item.index))
|
|
@@ -5623,13 +5661,13 @@ function Search2() {
|
|
|
5623
5661
|
}
|
|
5624
5662
|
const normalizedSuggestions = normalizeSuggestions(suggestionList);
|
|
5625
5663
|
return /* @__PURE__ */ _jsx48("ul", {
|
|
5626
|
-
className:
|
|
5664
|
+
className: index_module_default15.suggestList,
|
|
5627
5665
|
children: Object.keys(normalizedSuggestions).map((group) => {
|
|
5628
5666
|
const groupSuggestions = normalizedSuggestions[group] || [];
|
|
5629
5667
|
return /* @__PURE__ */ _jsxs30("li", {
|
|
5630
5668
|
children: [
|
|
5631
5669
|
isCurrent && /* @__PURE__ */ _jsx48("h2", {
|
|
5632
|
-
className:
|
|
5670
|
+
className: index_module_default15.groupTitle,
|
|
5633
5671
|
children: group
|
|
5634
5672
|
}),
|
|
5635
5673
|
/* @__PURE__ */ _jsx48("ul", {
|
|
@@ -5653,27 +5691,104 @@ function Search2() {
|
|
|
5653
5691
|
})
|
|
5654
5692
|
});
|
|
5655
5693
|
};
|
|
5656
|
-
return /* @__PURE__ */
|
|
5694
|
+
return /* @__PURE__ */ _jsx48(_Fragment5, {
|
|
5695
|
+
children: focused && /* @__PURE__ */ createPortal(/* @__PURE__ */ _jsx48("div", {
|
|
5696
|
+
className: index_module_default15.mask,
|
|
5697
|
+
onClick: () => setFocused(false),
|
|
5698
|
+
children: /* @__PURE__ */ _jsxs30("div", {
|
|
5699
|
+
className: `${index_module_default15.modal}`,
|
|
5700
|
+
onClick: (e) => {
|
|
5701
|
+
setFocused(true);
|
|
5702
|
+
e.stopPropagation();
|
|
5703
|
+
},
|
|
5704
|
+
children: [
|
|
5705
|
+
/* @__PURE__ */ _jsxs30("div", {
|
|
5706
|
+
className: "flex items-center",
|
|
5707
|
+
children: [
|
|
5708
|
+
/* @__PURE__ */ _jsxs30("div", {
|
|
5709
|
+
className: index_module_default15.inputForm,
|
|
5710
|
+
children: [
|
|
5711
|
+
/* @__PURE__ */ _jsx48("label", {
|
|
5712
|
+
children: /* @__PURE__ */ _jsx48(search_default, {})
|
|
5713
|
+
}),
|
|
5714
|
+
/* @__PURE__ */ _jsx48("input", {
|
|
5715
|
+
className: index_module_default15.input,
|
|
5716
|
+
ref: searchInputRef,
|
|
5717
|
+
placeholder: "Search Docs",
|
|
5718
|
+
"aria-label": "Search",
|
|
5719
|
+
autoComplete: "off",
|
|
5720
|
+
autoFocus: true,
|
|
5721
|
+
onChange: debounce(onQueryChanged, 150)
|
|
5722
|
+
}),
|
|
5723
|
+
/* @__PURE__ */ _jsx48("label", {
|
|
5724
|
+
children: /* @__PURE__ */ _jsx48(close_default, {
|
|
5725
|
+
className: index_module_default15.close,
|
|
5726
|
+
onClick: (e) => {
|
|
5727
|
+
if (searchInputRef.current) {
|
|
5728
|
+
e.stopPropagation();
|
|
5729
|
+
if (!query2) {
|
|
5730
|
+
setFocused(false);
|
|
5731
|
+
} else {
|
|
5732
|
+
searchInputRef.current.value = "";
|
|
5733
|
+
setQuery("");
|
|
5734
|
+
}
|
|
5735
|
+
}
|
|
5736
|
+
}
|
|
5737
|
+
})
|
|
5738
|
+
})
|
|
5739
|
+
]
|
|
5740
|
+
}),
|
|
5741
|
+
/* @__PURE__ */ _jsx48("h2", {
|
|
5742
|
+
className: "text-brand ml-2 sm:hidden cursor-pointer",
|
|
5743
|
+
onClick: (e) => {
|
|
5744
|
+
e.stopPropagation();
|
|
5745
|
+
setFocused(false);
|
|
5746
|
+
},
|
|
5747
|
+
children: "Cancel"
|
|
5748
|
+
})
|
|
5749
|
+
]
|
|
5750
|
+
}),
|
|
5751
|
+
query2 ? /* @__PURE__ */ _jsx48("div", {
|
|
5752
|
+
className: `${index_module_default15.searchHits} rspress-scrollbar`,
|
|
5753
|
+
children: renderSearchResult(searchResult, search)
|
|
5754
|
+
}) : null,
|
|
5755
|
+
initing && /* @__PURE__ */ _jsx48("div", {
|
|
5756
|
+
className: "flex-center",
|
|
5757
|
+
children: /* @__PURE__ */ _jsx48("div", {
|
|
5758
|
+
className: "p-2 text-sm",
|
|
5759
|
+
children: /* @__PURE__ */ _jsx48(loading_default, {})
|
|
5760
|
+
})
|
|
5761
|
+
})
|
|
5762
|
+
]
|
|
5763
|
+
})
|
|
5764
|
+
}), document.getElementById("search-container"))
|
|
5765
|
+
});
|
|
5766
|
+
}
|
|
5767
|
+
|
|
5768
|
+
// src/theme-default/components/Search/index.tsx
|
|
5769
|
+
function Search2() {
|
|
5770
|
+
const [focused, setFocused] = useState13(false);
|
|
5771
|
+
return /* @__PURE__ */ _jsxs31(_Fragment6, {
|
|
5657
5772
|
children: [
|
|
5658
|
-
/* @__PURE__ */
|
|
5659
|
-
className:
|
|
5773
|
+
/* @__PURE__ */ _jsx49("div", {
|
|
5774
|
+
className: index_module_default15.navSearchButton,
|
|
5660
5775
|
onClick: () => setFocused(true),
|
|
5661
|
-
children: /* @__PURE__ */
|
|
5776
|
+
children: /* @__PURE__ */ _jsxs31("button", {
|
|
5662
5777
|
children: [
|
|
5663
|
-
/* @__PURE__ */
|
|
5778
|
+
/* @__PURE__ */ _jsx49(search_default, {
|
|
5664
5779
|
width: "18",
|
|
5665
5780
|
hight: "18"
|
|
5666
5781
|
}),
|
|
5667
|
-
/* @__PURE__ */
|
|
5668
|
-
className:
|
|
5782
|
+
/* @__PURE__ */ _jsx49("p", {
|
|
5783
|
+
className: index_module_default15.searchWord,
|
|
5669
5784
|
children: "Search Docs"
|
|
5670
5785
|
}),
|
|
5671
|
-
/* @__PURE__ */
|
|
5786
|
+
/* @__PURE__ */ _jsxs31("div", {
|
|
5672
5787
|
children: [
|
|
5673
|
-
/* @__PURE__ */
|
|
5788
|
+
/* @__PURE__ */ _jsx49("span", {
|
|
5674
5789
|
children: "⌘"
|
|
5675
5790
|
}),
|
|
5676
|
-
/* @__PURE__ */
|
|
5791
|
+
/* @__PURE__ */ _jsx49("span", {
|
|
5677
5792
|
children: "K"
|
|
5678
5793
|
})
|
|
5679
5794
|
]
|
|
@@ -5681,96 +5796,30 @@ function Search2() {
|
|
|
5681
5796
|
]
|
|
5682
5797
|
})
|
|
5683
5798
|
}),
|
|
5684
|
-
/* @__PURE__ */
|
|
5685
|
-
className:
|
|
5799
|
+
/* @__PURE__ */ _jsx49("div", {
|
|
5800
|
+
className: index_module_default15.mobileNavSearchButton,
|
|
5686
5801
|
onClick: () => setFocused(true),
|
|
5687
|
-
children: /* @__PURE__ */
|
|
5802
|
+
children: /* @__PURE__ */ _jsx49(search_default, {})
|
|
5688
5803
|
}),
|
|
5689
|
-
|
|
5690
|
-
|
|
5691
|
-
|
|
5692
|
-
|
|
5693
|
-
className: `${index_module_default17.modal}`,
|
|
5694
|
-
onClick: (e) => {
|
|
5695
|
-
setFocused(true);
|
|
5696
|
-
e.stopPropagation();
|
|
5697
|
-
},
|
|
5698
|
-
children: [
|
|
5699
|
-
/* @__PURE__ */ _jsxs30("div", {
|
|
5700
|
-
className: "flex items-center",
|
|
5701
|
-
children: [
|
|
5702
|
-
/* @__PURE__ */ _jsxs30("div", {
|
|
5703
|
-
className: index_module_default17.inputForm,
|
|
5704
|
-
children: [
|
|
5705
|
-
/* @__PURE__ */ _jsx48("label", {
|
|
5706
|
-
children: /* @__PURE__ */ _jsx48(search_default, {})
|
|
5707
|
-
}),
|
|
5708
|
-
/* @__PURE__ */ _jsx48("input", {
|
|
5709
|
-
className: index_module_default17.input,
|
|
5710
|
-
ref: searchInputRef,
|
|
5711
|
-
placeholder: "Search Docs",
|
|
5712
|
-
"aria-label": "Search",
|
|
5713
|
-
autoComplete: "off",
|
|
5714
|
-
autoFocus: true,
|
|
5715
|
-
onChange: debounce(onQueryChanged, 150)
|
|
5716
|
-
}),
|
|
5717
|
-
/* @__PURE__ */ _jsx48("label", {
|
|
5718
|
-
children: /* @__PURE__ */ _jsx48(close_default, {
|
|
5719
|
-
className: index_module_default17.close,
|
|
5720
|
-
onClick: (e) => {
|
|
5721
|
-
if (searchInputRef.current) {
|
|
5722
|
-
e.stopPropagation();
|
|
5723
|
-
if (!query2) {
|
|
5724
|
-
setFocused(false);
|
|
5725
|
-
} else {
|
|
5726
|
-
searchInputRef.current.value = "";
|
|
5727
|
-
setQuery("");
|
|
5728
|
-
}
|
|
5729
|
-
}
|
|
5730
|
-
}
|
|
5731
|
-
})
|
|
5732
|
-
})
|
|
5733
|
-
]
|
|
5734
|
-
}),
|
|
5735
|
-
/* @__PURE__ */ _jsx48("h2", {
|
|
5736
|
-
className: "text-brand ml-2 sm:hidden cursor-pointer",
|
|
5737
|
-
onClick: (e) => {
|
|
5738
|
-
e.stopPropagation();
|
|
5739
|
-
setFocused(false);
|
|
5740
|
-
},
|
|
5741
|
-
children: "Cancel"
|
|
5742
|
-
})
|
|
5743
|
-
]
|
|
5744
|
-
}),
|
|
5745
|
-
query2 ? /* @__PURE__ */ _jsx48("div", {
|
|
5746
|
-
className: `${index_module_default17.searchHits} rspress-scrollbar`,
|
|
5747
|
-
children: renderSearchResult(searchResult, search)
|
|
5748
|
-
}) : null,
|
|
5749
|
-
initing && /* @__PURE__ */ _jsx48("div", {
|
|
5750
|
-
className: "flex-center",
|
|
5751
|
-
children: /* @__PURE__ */ _jsx48("div", {
|
|
5752
|
-
className: "p-2 text-sm",
|
|
5753
|
-
children: /* @__PURE__ */ _jsx48(loading_default, {})
|
|
5754
|
-
})
|
|
5755
|
-
})
|
|
5756
|
-
]
|
|
5757
|
-
})
|
|
5758
|
-
}), document.getElementById("search-container"))
|
|
5804
|
+
/* @__PURE__ */ _jsx49(SearchPanel, {
|
|
5805
|
+
focused,
|
|
5806
|
+
setFocused
|
|
5807
|
+
})
|
|
5759
5808
|
]
|
|
5760
5809
|
});
|
|
5761
5810
|
}
|
|
5762
5811
|
|
|
5763
5812
|
// src/theme-default/components/HomeFooter/index.tsx
|
|
5764
|
-
import { jsx as
|
|
5765
|
-
import { usePageData as
|
|
5813
|
+
import { jsx as _jsx50 } from "react/jsx-runtime";
|
|
5814
|
+
import { usePageData as usePageData13 } from "@/runtime";
|
|
5766
5815
|
function HomeFooter2() {
|
|
5767
|
-
const { siteData: siteData2 } =
|
|
5816
|
+
const { siteData: siteData2 } = usePageData13();
|
|
5768
5817
|
const { message } = siteData2.themeConfig.footer || {};
|
|
5769
|
-
return /* @__PURE__ */
|
|
5818
|
+
return /* @__PURE__ */ _jsx50("footer", {
|
|
5770
5819
|
className: "absolute bottom-0 mt-12 py-8 px-6 sm:p-8 w-full border-t border-solid border-divider-light",
|
|
5771
|
-
children: /* @__PURE__ */
|
|
5820
|
+
children: /* @__PURE__ */ _jsx50("div", {
|
|
5772
5821
|
className: "m-auto w-full text-center",
|
|
5773
|
-
children: message && /* @__PURE__ */
|
|
5822
|
+
children: message && /* @__PURE__ */ _jsx50("div", {
|
|
5774
5823
|
className: "font-meduim text-sm text-text-2",
|
|
5775
5824
|
children: message
|
|
5776
5825
|
})
|
|
@@ -5779,8 +5828,8 @@ function HomeFooter2() {
|
|
|
5779
5828
|
}
|
|
5780
5829
|
|
|
5781
5830
|
// src/theme-default/components/Toc/index.tsx
|
|
5782
|
-
import { jsx as
|
|
5783
|
-
import { usePageData as
|
|
5831
|
+
import { jsx as _jsx51 } from "react/jsx-runtime";
|
|
5832
|
+
import { usePageData as usePageData14 } from "@/runtime";
|
|
5784
5833
|
function _define_property32(obj, key, value) {
|
|
5785
5834
|
if (key in obj) {
|
|
5786
5835
|
Object.defineProperty(obj, key, {
|
|
@@ -5810,9 +5859,9 @@ function _object_spread32(target) {
|
|
|
5810
5859
|
return target;
|
|
5811
5860
|
}
|
|
5812
5861
|
var TocItem = (header) => {
|
|
5813
|
-
return /* @__PURE__ */
|
|
5862
|
+
return /* @__PURE__ */ _jsx51("li", {
|
|
5814
5863
|
className: "py-1",
|
|
5815
|
-
children: /* @__PURE__ */
|
|
5864
|
+
children: /* @__PURE__ */ _jsx51("a", {
|
|
5816
5865
|
href: `#${header.id}`,
|
|
5817
5866
|
className: "toc-link transition-all duration-300 hover:text-text-1 text-text-2 block underline underline-offset-2",
|
|
5818
5867
|
style: {
|
|
@@ -5826,7 +5875,7 @@ var TocItem = (header) => {
|
|
|
5826
5875
|
scrollToTarget(target, false);
|
|
5827
5876
|
}
|
|
5828
5877
|
},
|
|
5829
|
-
children: /* @__PURE__ */
|
|
5878
|
+
children: /* @__PURE__ */ _jsx51("span", {
|
|
5830
5879
|
className: "toc-link-text block",
|
|
5831
5880
|
children: header.text
|
|
5832
5881
|
})
|
|
@@ -5834,20 +5883,20 @@ var TocItem = (header) => {
|
|
|
5834
5883
|
}, header.id);
|
|
5835
5884
|
};
|
|
5836
5885
|
function Toc() {
|
|
5837
|
-
const { page } =
|
|
5838
|
-
return /* @__PURE__ */
|
|
5839
|
-
children: page.toc.map((item) => /* @__PURE__ */
|
|
5886
|
+
const { page } = usePageData14();
|
|
5887
|
+
return /* @__PURE__ */ _jsx51("ul", {
|
|
5888
|
+
children: page.toc.map((item) => /* @__PURE__ */ _jsx51(TocItem, _object_spread32({}, item), item.id))
|
|
5840
5889
|
});
|
|
5841
5890
|
}
|
|
5842
5891
|
|
|
5843
5892
|
// src/theme-default/components/PackageManagerTabs/index.tsx
|
|
5844
|
-
import { jsx as
|
|
5893
|
+
import { jsx as _jsx58, jsxs as _jsxs38 } from "react/jsx-runtime";
|
|
5845
5894
|
|
|
5846
5895
|
// src/theme-default/layout/DocLayout/docComponents/pre.tsx
|
|
5847
|
-
import { jsx as
|
|
5896
|
+
import { jsx as _jsx52, jsxs as _jsxs32 } from "react/jsx-runtime";
|
|
5848
5897
|
var DEFAULT_LANGUAGE_CLASS = "language-bash";
|
|
5849
5898
|
function parseTitleFromMeta(meta) {
|
|
5850
|
-
var _highlightReg_exec
|
|
5899
|
+
var _highlightReg_exec;
|
|
5851
5900
|
if (!meta) {
|
|
5852
5901
|
return "";
|
|
5853
5902
|
}
|
|
@@ -5859,24 +5908,24 @@ function parseTitleFromMeta(meta) {
|
|
|
5859
5908
|
}
|
|
5860
5909
|
var _result_split_;
|
|
5861
5910
|
result = (_result_split_ = result.split("=")[1]) !== null && _result_split_ !== void 0 ? _result_split_ : "";
|
|
5862
|
-
return
|
|
5911
|
+
return result === null || result === void 0 ? void 0 : result.replace(/["'`]/g, "");
|
|
5863
5912
|
}
|
|
5864
5913
|
function Pre({ children }) {
|
|
5865
5914
|
if (Array.isArray(children)) {
|
|
5866
|
-
return /* @__PURE__ */
|
|
5915
|
+
return /* @__PURE__ */ _jsx52("pre", {
|
|
5867
5916
|
children
|
|
5868
5917
|
});
|
|
5869
5918
|
}
|
|
5870
5919
|
const { className, meta } = children.props;
|
|
5871
5920
|
const codeTitle = parseTitleFromMeta(meta);
|
|
5872
|
-
return /* @__PURE__ */
|
|
5921
|
+
return /* @__PURE__ */ _jsxs32("div", {
|
|
5873
5922
|
className: className || DEFAULT_LANGUAGE_CLASS,
|
|
5874
5923
|
children: [
|
|
5875
|
-
codeTitle && /* @__PURE__ */
|
|
5924
|
+
codeTitle && /* @__PURE__ */ _jsx52("div", {
|
|
5876
5925
|
className: "rspress-code-title",
|
|
5877
5926
|
children: codeTitle
|
|
5878
5927
|
}),
|
|
5879
|
-
/* @__PURE__ */
|
|
5928
|
+
/* @__PURE__ */ _jsx52("div", {
|
|
5880
5929
|
className: "rspress-code-content",
|
|
5881
5930
|
children
|
|
5882
5931
|
})
|
|
@@ -5885,7 +5934,7 @@ function Pre({ children }) {
|
|
|
5885
5934
|
}
|
|
5886
5935
|
|
|
5887
5936
|
// src/theme-default/layout/DocLayout/docComponents/code.tsx
|
|
5888
|
-
import { jsx as
|
|
5937
|
+
import { jsx as _jsx53, jsxs as _jsxs33, Fragment as _Fragment7 } from "react/jsx-runtime";
|
|
5889
5938
|
import { PrismLight as SyntaxHighlighter } from "react-syntax-highlighter";
|
|
5890
5939
|
import jsx from "react-syntax-highlighter/dist/esm/languages/prism/jsx";
|
|
5891
5940
|
import js from "react-syntax-highlighter/dist/esm/languages/prism/javascript";
|
|
@@ -5979,7 +6028,7 @@ var prisim_theme_default = {
|
|
|
5979
6028
|
};
|
|
5980
6029
|
|
|
5981
6030
|
// src/theme-default/layout/DocLayout/docComponents/code.tsx
|
|
5982
|
-
import { usePageData as
|
|
6031
|
+
import { usePageData as usePageData15 } from "@/runtime";
|
|
5983
6032
|
function _define_property33(obj, key, value) {
|
|
5984
6033
|
if (key in obj) {
|
|
5985
6034
|
Object.defineProperty(obj, key, {
|
|
@@ -6028,17 +6077,16 @@ function registerLanguages() {
|
|
|
6028
6077
|
registered = true;
|
|
6029
6078
|
}
|
|
6030
6079
|
function Code(props) {
|
|
6031
|
-
var _className;
|
|
6032
6080
|
const copyButtonRef = useRef6(null);
|
|
6033
|
-
const { siteData: siteData2 } =
|
|
6081
|
+
const { siteData: siteData2 } = usePageData15();
|
|
6034
6082
|
const { showLineNumbers } = siteData2.markdown;
|
|
6035
6083
|
if (!registered) {
|
|
6036
6084
|
registerLanguages();
|
|
6037
6085
|
}
|
|
6038
6086
|
const { className, meta } = props;
|
|
6039
|
-
const language =
|
|
6087
|
+
const language = className === null || className === void 0 ? void 0 : className.replace(/language-/, "");
|
|
6040
6088
|
if (!language) {
|
|
6041
|
-
return /* @__PURE__ */
|
|
6089
|
+
return /* @__PURE__ */ _jsx53("code", _object_spread33({}, props));
|
|
6042
6090
|
}
|
|
6043
6091
|
let children;
|
|
6044
6092
|
if (typeof props.children === "string") {
|
|
@@ -6080,9 +6128,9 @@ function Code(props) {
|
|
|
6080
6128
|
timeoutIdMap.set(el, timeoutId);
|
|
6081
6129
|
}
|
|
6082
6130
|
};
|
|
6083
|
-
return /* @__PURE__ */
|
|
6131
|
+
return /* @__PURE__ */ _jsxs33(_Fragment7, {
|
|
6084
6132
|
children: [
|
|
6085
|
-
/* @__PURE__ */
|
|
6133
|
+
/* @__PURE__ */ _jsx53(SyntaxHighlighter, {
|
|
6086
6134
|
language,
|
|
6087
6135
|
style: prisim_theme_default,
|
|
6088
6136
|
wrapLines: true,
|
|
@@ -6105,7 +6153,7 @@ function Code(props) {
|
|
|
6105
6153
|
},
|
|
6106
6154
|
children
|
|
6107
6155
|
}),
|
|
6108
|
-
/* @__PURE__ */
|
|
6156
|
+
/* @__PURE__ */ _jsx53("button", {
|
|
6109
6157
|
className: "copy",
|
|
6110
6158
|
onClick: copyCode,
|
|
6111
6159
|
ref: copyButtonRef
|
|
@@ -6115,7 +6163,7 @@ function Code(props) {
|
|
|
6115
6163
|
}
|
|
6116
6164
|
|
|
6117
6165
|
// src/theme-default/components/PackageManagerTabs/icons/Npm.tsx
|
|
6118
|
-
import { jsx as
|
|
6166
|
+
import { jsx as _jsx54, jsxs as _jsxs34 } from "react/jsx-runtime";
|
|
6119
6167
|
function _define_property34(obj, key, value) {
|
|
6120
6168
|
if (key in obj) {
|
|
6121
6169
|
Object.defineProperty(obj, key, {
|
|
@@ -6169,18 +6217,18 @@ function _object_spread_props26(target, source) {
|
|
|
6169
6217
|
return target;
|
|
6170
6218
|
}
|
|
6171
6219
|
function Npm(props) {
|
|
6172
|
-
return /* @__PURE__ */
|
|
6220
|
+
return /* @__PURE__ */ _jsxs34("svg", _object_spread_props26(_object_spread34({
|
|
6173
6221
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6174
6222
|
width: "1em",
|
|
6175
6223
|
height: "1em",
|
|
6176
6224
|
viewBox: "0 0 256 256"
|
|
6177
6225
|
}, props), {
|
|
6178
6226
|
children: [
|
|
6179
|
-
/* @__PURE__ */
|
|
6227
|
+
/* @__PURE__ */ _jsx54("path", {
|
|
6180
6228
|
fill: "#C12127",
|
|
6181
6229
|
d: "M0 256V0h256v256z"
|
|
6182
6230
|
}),
|
|
6183
|
-
/* @__PURE__ */
|
|
6231
|
+
/* @__PURE__ */ _jsx54("path", {
|
|
6184
6232
|
fill: "#FFF",
|
|
6185
6233
|
d: "M48 48h160v160h-32V80h-48v128H48z"
|
|
6186
6234
|
})
|
|
@@ -6189,7 +6237,7 @@ function Npm(props) {
|
|
|
6189
6237
|
}
|
|
6190
6238
|
|
|
6191
6239
|
// src/theme-default/components/PackageManagerTabs/icons/Yarn.tsx
|
|
6192
|
-
import { jsx as
|
|
6240
|
+
import { jsx as _jsx55, jsxs as _jsxs35 } from "react/jsx-runtime";
|
|
6193
6241
|
function _define_property35(obj, key, value) {
|
|
6194
6242
|
if (key in obj) {
|
|
6195
6243
|
Object.defineProperty(obj, key, {
|
|
@@ -6243,19 +6291,19 @@ function _object_spread_props27(target, source) {
|
|
|
6243
6291
|
return target;
|
|
6244
6292
|
}
|
|
6245
6293
|
function Yarn(props) {
|
|
6246
|
-
return /* @__PURE__ */
|
|
6294
|
+
return /* @__PURE__ */ _jsx55("svg", _object_spread_props27(_object_spread35({
|
|
6247
6295
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6248
6296
|
width: "1em",
|
|
6249
6297
|
height: "1em",
|
|
6250
6298
|
viewBox: "0 0 128 128"
|
|
6251
6299
|
}, props), {
|
|
6252
|
-
children: /* @__PURE__ */
|
|
6300
|
+
children: /* @__PURE__ */ _jsxs35("g", {
|
|
6253
6301
|
fill: "#2c8ebb",
|
|
6254
6302
|
children: [
|
|
6255
|
-
/* @__PURE__ */
|
|
6303
|
+
/* @__PURE__ */ _jsx55("path", {
|
|
6256
6304
|
d: "M99.24 80.71C94.9 80.76 91.1 83 87.89 85c-6 3.71-9 3.47-9 3.47l-.1-.17c-.41-.67 1.92-6.68-.69-13.84c-2.82-7.83-7.3-9.72-6.94-10.32c1.53-2.59 5.36-6.7 6.89-14.36c.91-4.64.67-12.28-1.39-16.28c-.38-.74-3.78 1.24-3.78 1.24s-3.18-7.09-4.07-7.66c-2.87-1.84-6 7.61-6 7.61a14 14 0 0 0-11.71 4.5a9.64 9.64 0 0 1-3.85 2.27c-.41.14-.91.12-2.15 3.47c-1.9 5.07 3.24 10.81 3.24 10.81s-6.13 4.33-8.4 9.72a24.78 24.78 0 0 0-1.75 11.68s-4.36 3.78-4.64 7.68a12.87 12.87 0 0 0 1.77 7.83a1.94 1.94 0 0 0 2.63.91s-2.9 3.38-.19 4.81c2.47 1.29 6.63 2 8.83-.19c1.6-1.6 1.92-5.17 2.51-6.63c.14-.34.62.57 1.08 1a10 10 0 0 0 1.36 1s-3.9 1.68-2.3 5.51c.53 1.27 2.42 2.08 5.51 2.06c1.15 0 13.76-.72 17.12-1.53a4.33 4.33 0 0 0 2.61-1.46a63 63 0 0 0 15.49-7c4.74-3.09 6.68-3.93 10.51-4.84c3.16-.75 2.95-5.65-1.24-5.58z"
|
|
6257
6305
|
}),
|
|
6258
|
-
/* @__PURE__ */
|
|
6306
|
+
/* @__PURE__ */ _jsx55("path", {
|
|
6259
6307
|
d: "M64 2a62 62 0 1 0 62 62A62 62 0 0 0 64 2zm37.3 87.83c-3.35.81-4.91 1.44-9.41 4.36a67 67 0 0 1-15.56 7.18a8.71 8.71 0 0 1-3.64 1.77c-3.81.93-16.88 1.63-17.91 1.63h-.24c-4 0-6.27-1.24-7.49-2.54c-3.4 1.7-7.8 1-11-.69a5.55 5.55 0 0 1-3-3.9a6 6 0 0 1 0-2.06a6.66 6.66 0 0 1-.79-1A16.38 16.38 0 0 1 30 84.52c.29-3.73 2.87-7.06 4.55-8.83A28.56 28.56 0 0 1 36.61 64a26.82 26.82 0 0 1 6.82-9c-1.65-2.78-3.33-7.06-1.7-11.42c1.17-3.11 2.13-4.84 4.24-5.58a6.84 6.84 0 0 0 2.51-1.34A17.65 17.65 0 0 1 60.34 31c.19-.48.41-1 .65-1.46c1.6-3.4 3.3-5.31 5.29-6a4.88 4.88 0 0 1 4.4.5c.65.43 1.48 1 3.9 6a4.69 4.69 0 0 1 2.85-.1a3.81 3.81 0 0 1 2.39 1.94c2.47 4.74 2.8 13.19 1.72 18.62a33.8 33.8 0 0 1-5.84 13.31a25.73 25.73 0 0 1 5.77 9.43a25.42 25.42 0 0 1 1.41 10.41A28.7 28.7 0 0 0 86 81.91c3.06-1.89 7.68-4.74 13.19-4.81a6.62 6.62 0 0 1 7 5.7a6.35 6.35 0 0 1-4.89 7.03z"
|
|
6260
6308
|
})
|
|
6261
6309
|
]
|
|
@@ -6264,7 +6312,7 @@ function Yarn(props) {
|
|
|
6264
6312
|
}
|
|
6265
6313
|
|
|
6266
6314
|
// src/theme-default/components/PackageManagerTabs/icons/Pnpm.tsx
|
|
6267
|
-
import { jsx as
|
|
6315
|
+
import { jsx as _jsx56, jsxs as _jsxs36 } from "react/jsx-runtime";
|
|
6268
6316
|
function _define_property36(obj, key, value) {
|
|
6269
6317
|
if (key in obj) {
|
|
6270
6318
|
Object.defineProperty(obj, key, {
|
|
@@ -6318,18 +6366,18 @@ function _object_spread_props28(target, source) {
|
|
|
6318
6366
|
return target;
|
|
6319
6367
|
}
|
|
6320
6368
|
function Pnpm(props) {
|
|
6321
|
-
return /* @__PURE__ */
|
|
6369
|
+
return /* @__PURE__ */ _jsxs36("svg", _object_spread_props28(_object_spread36({
|
|
6322
6370
|
xmlns: "http://www.w3.org/2000/svg",
|
|
6323
6371
|
width: "1em",
|
|
6324
6372
|
height: "1em",
|
|
6325
6373
|
viewBox: "0 0 128 128"
|
|
6326
6374
|
}, props), {
|
|
6327
6375
|
children: [
|
|
6328
|
-
/* @__PURE__ */
|
|
6376
|
+
/* @__PURE__ */ _jsx56("path", {
|
|
6329
6377
|
fill: "#f8ab00",
|
|
6330
6378
|
d: "M0 .004V40h39.996V.004Zm43.996 0V40h40V.004Zm44.008 0V40H128V.004Zm0 43.996v39.996H128V44Z"
|
|
6331
6379
|
}),
|
|
6332
|
-
/* @__PURE__ */
|
|
6380
|
+
/* @__PURE__ */ _jsx56("path", {
|
|
6333
6381
|
fill: "#4c4c4c",
|
|
6334
6382
|
d: "M43.996 44v39.996h40V44ZM0 87.996v40h39.996v-40Zm43.996 0v40h40v-40Zm44.008 0v40H128v-40Z"
|
|
6335
6383
|
})
|
|
@@ -6338,7 +6386,7 @@ function Pnpm(props) {
|
|
|
6338
6386
|
}
|
|
6339
6387
|
|
|
6340
6388
|
// src/theme-default/components/PackageManagerTabs/icons/Bun.tsx
|
|
6341
|
-
import { jsx as
|
|
6389
|
+
import { jsx as _jsx57, jsxs as _jsxs37 } from "react/jsx-runtime";
|
|
6342
6390
|
function _define_property37(obj, key, value) {
|
|
6343
6391
|
if (key in obj) {
|
|
6344
6392
|
Object.defineProperty(obj, key, {
|
|
@@ -6392,28 +6440,28 @@ function _object_spread_props29(target, source) {
|
|
|
6392
6440
|
return target;
|
|
6393
6441
|
}
|
|
6394
6442
|
function Bun(props) {
|
|
6395
|
-
return /* @__PURE__ */
|
|
6443
|
+
return /* @__PURE__ */ _jsxs37("svg", _object_spread_props29(_object_spread37({
|
|
6396
6444
|
id: "Bun",
|
|
6397
6445
|
width: "1.2em",
|
|
6398
6446
|
height: "1.2em",
|
|
6399
6447
|
viewBox: "0 0 80 70"
|
|
6400
6448
|
}, props), {
|
|
6401
6449
|
children: [
|
|
6402
|
-
/* @__PURE__ */
|
|
6450
|
+
/* @__PURE__ */ _jsx57("path", {
|
|
6403
6451
|
id: "Shadow",
|
|
6404
6452
|
d: "M71.09,20.74c-.16-.17-.33-.34-.5-.5s-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5-.33-.34-.5-.5A26.46,26.46,0,0,1,75.5,35.7c0,16.57-16.82,30.05-37.5,30.05-11.58,0-21.94-4.23-28.83-10.86l.5.5.5.5.5.5.5.5.5.5.5.5.5.5C19.55,65.3,30.14,69.75,42,69.75c20.68,0,37.5-13.48,37.5-30C79.5,32.69,76.46,26,71.09,20.74Z"
|
|
6405
6453
|
}),
|
|
6406
|
-
/* @__PURE__ */
|
|
6454
|
+
/* @__PURE__ */ _jsxs37("g", {
|
|
6407
6455
|
id: "Body",
|
|
6408
6456
|
children: [
|
|
6409
|
-
/* @__PURE__ */
|
|
6457
|
+
/* @__PURE__ */ _jsx57("path", {
|
|
6410
6458
|
id: "Background",
|
|
6411
6459
|
d: "M73,35.7c0,15.21-15.67,27.54-35,27.54S3,50.91,3,35.7C3,26.27,9,17.94,18.22,13S33.18,3,38,3s8.94,4.13,19.78,10C67,17.94,73,26.27,73,35.7Z",
|
|
6412
6460
|
style: {
|
|
6413
6461
|
fill: "#fbf0df"
|
|
6414
6462
|
}
|
|
6415
6463
|
}),
|
|
6416
|
-
/* @__PURE__ */
|
|
6464
|
+
/* @__PURE__ */ _jsx57("path", {
|
|
6417
6465
|
id: "Bottom_Shadow",
|
|
6418
6466
|
"data-name": "Bottom Shadow",
|
|
6419
6467
|
d: "M73,35.7a21.67,21.67,0,0,0-.8-5.78c-2.73,33.3-43.35,34.9-59.32,24.94A40,40,0,0,0,38,63.24C57.3,63.24,73,50.89,73,35.7Z",
|
|
@@ -6421,7 +6469,7 @@ function Bun(props) {
|
|
|
6421
6469
|
fill: "#f6dece"
|
|
6422
6470
|
}
|
|
6423
6471
|
}),
|
|
6424
|
-
/* @__PURE__ */
|
|
6472
|
+
/* @__PURE__ */ _jsx57("path", {
|
|
6425
6473
|
id: "Light_Shine",
|
|
6426
6474
|
"data-name": "Light Shine",
|
|
6427
6475
|
d: "M24.53,11.17C29,8.49,34.94,3.46,40.78,3.45A9.29,9.29,0,0,0,38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7c0,.4,0,.8,0,1.19C9.06,15.48,20.07,13.85,24.53,11.17Z",
|
|
@@ -6429,7 +6477,7 @@ function Bun(props) {
|
|
|
6429
6477
|
fill: "#fffefc"
|
|
6430
6478
|
}
|
|
6431
6479
|
}),
|
|
6432
|
-
/* @__PURE__ */
|
|
6480
|
+
/* @__PURE__ */ _jsx57("path", {
|
|
6433
6481
|
id: "Top",
|
|
6434
6482
|
d: "M35.12,5.53A16.41,16.41,0,0,1,29.49,18c-.28.25-.06.73.3.59,3.37-1.31,7.92-5.23,6-13.14C35.71,5,35.12,5.12,35.12,5.53Zm2.27,0A16.24,16.24,0,0,1,39,19c-.12.35.31.65.55.36C41.74,16.56,43.65,11,37.93,5,37.64,4.74,37.19,5.14,37.39,5.49Zm2.76-.17A16.42,16.42,0,0,1,47,17.12a.33.33,0,0,0,.65.11c.92-3.49.4-9.44-7.17-12.53C40.08,4.54,39.82,5.08,40.15,5.32ZM21.69,15.76a16.94,16.94,0,0,0,10.47-9c.18-.36.75-.22.66.18-1.73,8-7.52,9.67-11.12,9.45C21.32,16.4,21.33,15.87,21.69,15.76Z",
|
|
6435
6483
|
style: {
|
|
@@ -6437,29 +6485,29 @@ function Bun(props) {
|
|
|
6437
6485
|
fillRule: "evenodd"
|
|
6438
6486
|
}
|
|
6439
6487
|
}),
|
|
6440
|
-
/* @__PURE__ */
|
|
6488
|
+
/* @__PURE__ */ _jsx57("path", {
|
|
6441
6489
|
id: "Outline",
|
|
6442
6490
|
d: "M38,65.75C17.32,65.75.5,52.27.5,35.7c0-10,6.18-19.33,16.53-24.92,3-1.6,5.57-3.21,7.86-4.62,1.26-.78,2.45-1.51,3.6-2.19C32,1.89,35,.5,38,.5s5.62,1.2,8.9,3.14c1,.57,2,1.19,3.07,1.87,2.49,1.54,5.3,3.28,9,5.27C69.32,16.37,75.5,25.69,75.5,35.7,75.5,52.27,58.68,65.75,38,65.75ZM38,3c-2.42,0-5,1.25-8.25,3.13-1.13.66-2.3,1.39-3.54,2.15-2.33,1.44-5,3.07-8,4.7C8.69,18.13,3,26.62,3,35.7,3,50.89,18.7,63.25,38,63.25S73,50.89,73,35.7C73,26.62,67.31,18.13,57.78,13,54,11,51.05,9.12,48.66,7.64c-1.09-.67-2.09-1.29-3-1.84C42.63,4,40.42,3,38,3Z"
|
|
6443
6491
|
})
|
|
6444
6492
|
]
|
|
6445
6493
|
}),
|
|
6446
|
-
/* @__PURE__ */
|
|
6494
|
+
/* @__PURE__ */ _jsxs37("g", {
|
|
6447
6495
|
id: "Mouth",
|
|
6448
6496
|
children: [
|
|
6449
|
-
/* @__PURE__ */
|
|
6497
|
+
/* @__PURE__ */ _jsx57("g", {
|
|
6450
6498
|
id: "Background-2",
|
|
6451
6499
|
"data-name": "Background",
|
|
6452
|
-
children: /* @__PURE__ */
|
|
6500
|
+
children: /* @__PURE__ */ _jsx57("path", {
|
|
6453
6501
|
d: "M45.05,43a8.93,8.93,0,0,1-2.92,4.71,6.81,6.81,0,0,1-4,1.88A6.84,6.84,0,0,1,34,47.71,8.93,8.93,0,0,1,31.12,43a.72.72,0,0,1,.8-.81H44.26A.72.72,0,0,1,45.05,43Z",
|
|
6454
6502
|
style: {
|
|
6455
6503
|
fill: "#b71422"
|
|
6456
6504
|
}
|
|
6457
6505
|
})
|
|
6458
6506
|
}),
|
|
6459
|
-
/* @__PURE__ */
|
|
6507
|
+
/* @__PURE__ */ _jsxs37("g", {
|
|
6460
6508
|
id: "Tongue",
|
|
6461
6509
|
children: [
|
|
6462
|
-
/* @__PURE__ */
|
|
6510
|
+
/* @__PURE__ */ _jsx57("path", {
|
|
6463
6511
|
id: "Background-3",
|
|
6464
6512
|
"data-name": "Background",
|
|
6465
6513
|
d: "M34,47.79a6.91,6.91,0,0,0,4.12,1.9,6.91,6.91,0,0,0,4.11-1.9,10.63,10.63,0,0,0,1-1.07,6.83,6.83,0,0,0-4.9-2.31,6.15,6.15,0,0,0-5,2.78C33.56,47.4,33.76,47.6,34,47.79Z",
|
|
@@ -6467,24 +6515,24 @@ function Bun(props) {
|
|
|
6467
6515
|
fill: "#ff6164"
|
|
6468
6516
|
}
|
|
6469
6517
|
}),
|
|
6470
|
-
/* @__PURE__ */
|
|
6518
|
+
/* @__PURE__ */ _jsx57("path", {
|
|
6471
6519
|
id: "Outline-2",
|
|
6472
6520
|
"data-name": "Outline",
|
|
6473
6521
|
d: "M34.16,47a5.36,5.36,0,0,1,4.19-2.08,6,6,0,0,1,4,1.69c.23-.25.45-.51.66-.77a7,7,0,0,0-4.71-1.93,6.36,6.36,0,0,0-4.89,2.36A9.53,9.53,0,0,0,34.16,47Z"
|
|
6474
6522
|
})
|
|
6475
6523
|
]
|
|
6476
6524
|
}),
|
|
6477
|
-
/* @__PURE__ */
|
|
6525
|
+
/* @__PURE__ */ _jsx57("path", {
|
|
6478
6526
|
id: "Outline-3",
|
|
6479
6527
|
"data-name": "Outline",
|
|
6480
6528
|
d: "M38.09,50.19a7.42,7.42,0,0,1-4.45-2,9.52,9.52,0,0,1-3.11-5.05,1.2,1.2,0,0,1,.26-1,1.41,1.41,0,0,1,1.13-.51H44.26a1.44,1.44,0,0,1,1.13.51,1.19,1.19,0,0,1,.25,1h0a9.52,9.52,0,0,1-3.11,5.05A7.42,7.42,0,0,1,38.09,50.19Zm-6.17-7.4c-.16,0-.2.07-.21.09a8.29,8.29,0,0,0,2.73,4.37A6.23,6.23,0,0,0,38.09,49a6.28,6.28,0,0,0,3.65-1.73,8.3,8.3,0,0,0,2.72-4.37.21.21,0,0,0-.2-.09Z"
|
|
6481
6529
|
})
|
|
6482
6530
|
]
|
|
6483
6531
|
}),
|
|
6484
|
-
/* @__PURE__ */
|
|
6532
|
+
/* @__PURE__ */ _jsxs37("g", {
|
|
6485
6533
|
id: "Face",
|
|
6486
6534
|
children: [
|
|
6487
|
-
/* @__PURE__ */
|
|
6535
|
+
/* @__PURE__ */ _jsx57("ellipse", {
|
|
6488
6536
|
id: "Right_Blush",
|
|
6489
6537
|
"data-name": "Right Blush",
|
|
6490
6538
|
cx: "53.22",
|
|
@@ -6495,7 +6543,7 @@ function Bun(props) {
|
|
|
6495
6543
|
fill: "#febbd0"
|
|
6496
6544
|
}
|
|
6497
6545
|
}),
|
|
6498
|
-
/* @__PURE__ */
|
|
6546
|
+
/* @__PURE__ */ _jsx57("ellipse", {
|
|
6499
6547
|
id: "Left_Bluch",
|
|
6500
6548
|
"data-name": "Left Bluch",
|
|
6501
6549
|
cx: "22.95",
|
|
@@ -6506,14 +6554,14 @@ function Bun(props) {
|
|
|
6506
6554
|
fill: "#febbd0"
|
|
6507
6555
|
}
|
|
6508
6556
|
}),
|
|
6509
|
-
/* @__PURE__ */
|
|
6557
|
+
/* @__PURE__ */ _jsx57("path", {
|
|
6510
6558
|
id: "Eyes",
|
|
6511
6559
|
d: "M25.7,38.8a5.51,5.51,0,1,0-5.5-5.51A5.51,5.51,0,0,0,25.7,38.8Zm24.77,0A5.51,5.51,0,1,0,45,33.29,5.5,5.5,0,0,0,50.47,38.8Z",
|
|
6512
6560
|
style: {
|
|
6513
6561
|
fillRule: "evenodd"
|
|
6514
6562
|
}
|
|
6515
6563
|
}),
|
|
6516
|
-
/* @__PURE__ */
|
|
6564
|
+
/* @__PURE__ */ _jsx57("path", {
|
|
6517
6565
|
id: "Iris",
|
|
6518
6566
|
d: "M24,33.64a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,24,33.64Zm24.77,0a2.07,2.07,0,1,0-2.06-2.07A2.07,2.07,0,0,0,48.75,33.64Z",
|
|
6519
6567
|
style: {
|
|
@@ -6543,10 +6591,10 @@ function normalizeCommand(command) {
|
|
|
6543
6591
|
function PackageManagerTabs({ command, additionalTabs = [] }) {
|
|
6544
6592
|
let commandInfo;
|
|
6545
6593
|
const packageMangerToIcon = {
|
|
6546
|
-
npm: /* @__PURE__ */
|
|
6547
|
-
yarn: /* @__PURE__ */
|
|
6548
|
-
pnpm: /* @__PURE__ */
|
|
6549
|
-
bun: /* @__PURE__ */
|
|
6594
|
+
npm: /* @__PURE__ */ _jsx58(Npm, {}),
|
|
6595
|
+
yarn: /* @__PURE__ */ _jsx58(Yarn, {}),
|
|
6596
|
+
pnpm: /* @__PURE__ */ _jsx58(Pnpm, {}),
|
|
6597
|
+
bun: /* @__PURE__ */ _jsx58(Bun, {})
|
|
6550
6598
|
};
|
|
6551
6599
|
additionalTabs.forEach((tab) => {
|
|
6552
6600
|
packageMangerToIcon[tab.tool] = tab.icon;
|
|
@@ -6566,8 +6614,8 @@ function PackageManagerTabs({ command, additionalTabs = [] }) {
|
|
|
6566
6614
|
}
|
|
6567
6615
|
commandInfo.yarn = normalizeCommand(commandInfo.yarn);
|
|
6568
6616
|
commandInfo.bun = normalizeCommand(commandInfo.bun);
|
|
6569
|
-
return /* @__PURE__ */
|
|
6570
|
-
values: Object.entries(commandInfo).map(([key]) => /* @__PURE__ */
|
|
6617
|
+
return /* @__PURE__ */ _jsx58(Tabs, {
|
|
6618
|
+
values: Object.entries(commandInfo).map(([key]) => /* @__PURE__ */ _jsxs38("div", {
|
|
6571
6619
|
style: {
|
|
6572
6620
|
display: "flex",
|
|
6573
6621
|
alignItems: "center",
|
|
@@ -6575,7 +6623,7 @@ function PackageManagerTabs({ command, additionalTabs = [] }) {
|
|
|
6575
6623
|
},
|
|
6576
6624
|
children: [
|
|
6577
6625
|
packageMangerToIcon[key],
|
|
6578
|
-
/* @__PURE__ */
|
|
6626
|
+
/* @__PURE__ */ _jsx58("span", {
|
|
6579
6627
|
style: {
|
|
6580
6628
|
marginLeft: 6,
|
|
6581
6629
|
marginBottom: 2
|
|
@@ -6584,9 +6632,9 @@ function PackageManagerTabs({ command, additionalTabs = [] }) {
|
|
|
6584
6632
|
})
|
|
6585
6633
|
]
|
|
6586
6634
|
}, key)),
|
|
6587
|
-
children: Object.entries(commandInfo).map(([key, value]) => /* @__PURE__ */
|
|
6588
|
-
children: /* @__PURE__ */
|
|
6589
|
-
children: /* @__PURE__ */
|
|
6635
|
+
children: Object.entries(commandInfo).map(([key, value]) => /* @__PURE__ */ _jsx58(Tab, {
|
|
6636
|
+
children: /* @__PURE__ */ _jsx58(Pre, {
|
|
6637
|
+
children: /* @__PURE__ */ _jsx58(Code, {
|
|
6590
6638
|
className: "language-js",
|
|
6591
6639
|
children: value
|
|
6592
6640
|
})
|
|
@@ -6596,10 +6644,10 @@ function PackageManagerTabs({ command, additionalTabs = [] }) {
|
|
|
6596
6644
|
}
|
|
6597
6645
|
|
|
6598
6646
|
// src/theme-default/layout/DocLayout/docComponents/title.tsx
|
|
6599
|
-
import { jsx as
|
|
6647
|
+
import { jsx as _jsx59 } from "react/jsx-runtime";
|
|
6600
6648
|
|
|
6601
6649
|
// src/theme-default/layout/DocLayout/docComponents/index.module.scss
|
|
6602
|
-
var
|
|
6650
|
+
var index_module_default17 = { "title": "title_f1ea0", "blockquote": "blockquote_f1ea0", "link": "link_f1ea0" };
|
|
6603
6651
|
|
|
6604
6652
|
// src/theme-default/layout/DocLayout/docComponents/title.tsx
|
|
6605
6653
|
function _define_property38(obj, key, value) {
|
|
@@ -6655,38 +6703,38 @@ function _object_spread_props30(target, source) {
|
|
|
6655
6703
|
return target;
|
|
6656
6704
|
}
|
|
6657
6705
|
var H1 = (props) => {
|
|
6658
|
-
return /* @__PURE__ */
|
|
6659
|
-
className: `text-3xl mb-10 leading-10 tracking-tight ${
|
|
6706
|
+
return /* @__PURE__ */ _jsx59("h1", _object_spread_props30(_object_spread38({}, props), {
|
|
6707
|
+
className: `text-3xl mb-10 leading-10 tracking-tight ${index_module_default17.title}`
|
|
6660
6708
|
}));
|
|
6661
6709
|
};
|
|
6662
6710
|
var H2 = (props) => {
|
|
6663
|
-
return /* @__PURE__ */
|
|
6664
|
-
className: `mt-14 mb-6 text-2xl tracking-tight ${
|
|
6711
|
+
return /* @__PURE__ */ _jsx59("h2", _object_spread_props30(_object_spread38({}, props), {
|
|
6712
|
+
className: `mt-14 mb-6 text-2xl tracking-tight ${index_module_default17.title}`
|
|
6665
6713
|
}));
|
|
6666
6714
|
};
|
|
6667
6715
|
var H3 = (props) => {
|
|
6668
|
-
return /* @__PURE__ */
|
|
6669
|
-
className: `mt-10 mb-2 leading-7 text-xl ${
|
|
6716
|
+
return /* @__PURE__ */ _jsx59("h3", _object_spread_props30(_object_spread38({}, props), {
|
|
6717
|
+
className: `mt-10 mb-2 leading-7 text-xl ${index_module_default17.title}`
|
|
6670
6718
|
}));
|
|
6671
6719
|
};
|
|
6672
6720
|
var H4 = (props) => {
|
|
6673
|
-
return /* @__PURE__ */
|
|
6674
|
-
className: `mt-8 leading-6 text-base ${
|
|
6721
|
+
return /* @__PURE__ */ _jsx59("h4", _object_spread_props30(_object_spread38({}, props), {
|
|
6722
|
+
className: `mt-8 leading-6 text-base ${index_module_default17.title}`
|
|
6675
6723
|
}));
|
|
6676
6724
|
};
|
|
6677
6725
|
var H5 = (props) => {
|
|
6678
|
-
return /* @__PURE__ */
|
|
6679
|
-
className:
|
|
6726
|
+
return /* @__PURE__ */ _jsx59("h5", _object_spread_props30(_object_spread38({}, props), {
|
|
6727
|
+
className: index_module_default17.title
|
|
6680
6728
|
}));
|
|
6681
6729
|
};
|
|
6682
6730
|
var H6 = (props) => {
|
|
6683
|
-
return /* @__PURE__ */
|
|
6684
|
-
className:
|
|
6731
|
+
return /* @__PURE__ */ _jsx59("h6", _object_spread_props30(_object_spread38({}, props), {
|
|
6732
|
+
className: index_module_default17.title
|
|
6685
6733
|
}));
|
|
6686
6734
|
};
|
|
6687
6735
|
|
|
6688
6736
|
// src/theme-default/layout/DocLayout/docComponents/list.tsx
|
|
6689
|
-
import { jsx as
|
|
6737
|
+
import { jsx as _jsx60 } from "react/jsx-runtime";
|
|
6690
6738
|
function _define_property39(obj, key, value) {
|
|
6691
6739
|
if (key in obj) {
|
|
6692
6740
|
Object.defineProperty(obj, key, {
|
|
@@ -6740,23 +6788,23 @@ function _object_spread_props31(target, source) {
|
|
|
6740
6788
|
return target;
|
|
6741
6789
|
}
|
|
6742
6790
|
var Ol = (props) => {
|
|
6743
|
-
return /* @__PURE__ */
|
|
6791
|
+
return /* @__PURE__ */ _jsx60("ol", _object_spread_props31(_object_spread39({}, props), {
|
|
6744
6792
|
className: "list-decimal pl-5 my-4 leading-7"
|
|
6745
6793
|
}));
|
|
6746
6794
|
};
|
|
6747
6795
|
var Ul = (props) => {
|
|
6748
|
-
return /* @__PURE__ */
|
|
6796
|
+
return /* @__PURE__ */ _jsx60("ul", _object_spread_props31(_object_spread39({}, props), {
|
|
6749
6797
|
className: "list-disc pl-5 my-4 leading-7"
|
|
6750
6798
|
}));
|
|
6751
6799
|
};
|
|
6752
6800
|
var Li = (props) => {
|
|
6753
|
-
return /* @__PURE__ */
|
|
6801
|
+
return /* @__PURE__ */ _jsx60("li", _object_spread_props31(_object_spread39({}, props), {
|
|
6754
6802
|
className: "[&:not(:first-child)]:mt-2"
|
|
6755
6803
|
}));
|
|
6756
6804
|
};
|
|
6757
6805
|
|
|
6758
6806
|
// src/theme-default/layout/DocLayout/docComponents/table.tsx
|
|
6759
|
-
import { jsx as
|
|
6807
|
+
import { jsx as _jsx61 } from "react/jsx-runtime";
|
|
6760
6808
|
function _define_property40(obj, key, value) {
|
|
6761
6809
|
if (key in obj) {
|
|
6762
6810
|
Object.defineProperty(obj, key, {
|
|
@@ -6810,28 +6858,28 @@ function _object_spread_props32(target, source) {
|
|
|
6810
6858
|
return target;
|
|
6811
6859
|
}
|
|
6812
6860
|
var Table = (props) => {
|
|
6813
|
-
return /* @__PURE__ */
|
|
6861
|
+
return /* @__PURE__ */ _jsx61("table", _object_spread_props32(_object_spread40({}, props), {
|
|
6814
6862
|
className: "table border-collapse text-base my-5 overflow-x-auto leading-7 border-gray-light-2"
|
|
6815
6863
|
}));
|
|
6816
6864
|
};
|
|
6817
6865
|
var Tr = (props) => {
|
|
6818
|
-
return /* @__PURE__ */
|
|
6866
|
+
return /* @__PURE__ */ _jsx61("tr", _object_spread_props32(_object_spread40({}, props), {
|
|
6819
6867
|
className: "border border-solid transition-colors duration-500 even:bg-soft border-gray-light-2"
|
|
6820
6868
|
}));
|
|
6821
6869
|
};
|
|
6822
6870
|
var Td = (props) => {
|
|
6823
|
-
return /* @__PURE__ */
|
|
6871
|
+
return /* @__PURE__ */ _jsx61("td", _object_spread_props32(_object_spread40({}, props), {
|
|
6824
6872
|
className: "border border-solid px-4 py-2 border-gray-light-2"
|
|
6825
6873
|
}));
|
|
6826
6874
|
};
|
|
6827
6875
|
var Th = (props) => {
|
|
6828
|
-
return /* @__PURE__ */
|
|
6876
|
+
return /* @__PURE__ */ _jsx61("th", _object_spread_props32(_object_spread40({}, props), {
|
|
6829
6877
|
className: "border border-solid px-4 py-2 text-text-1 text-base font-semibold border-gray-light-2"
|
|
6830
6878
|
}));
|
|
6831
6879
|
};
|
|
6832
6880
|
|
|
6833
6881
|
// src/theme-default/layout/DocLayout/docComponents/hr.tsx
|
|
6834
|
-
import { jsx as
|
|
6882
|
+
import { jsx as _jsx62 } from "react/jsx-runtime";
|
|
6835
6883
|
function _define_property41(obj, key, value) {
|
|
6836
6884
|
if (key in obj) {
|
|
6837
6885
|
Object.defineProperty(obj, key, {
|
|
@@ -6885,15 +6933,13 @@ function _object_spread_props33(target, source) {
|
|
|
6885
6933
|
return target;
|
|
6886
6934
|
}
|
|
6887
6935
|
var Hr = (props) => {
|
|
6888
|
-
return /* @__PURE__ */
|
|
6936
|
+
return /* @__PURE__ */ _jsx62("hr", _object_spread_props33(_object_spread41({}, props), {
|
|
6889
6937
|
className: "my-12 border-t bordder-solid border-divider-light"
|
|
6890
6938
|
}));
|
|
6891
6939
|
};
|
|
6892
6940
|
|
|
6893
6941
|
// src/theme-default/layout/DocLayout/docComponents/link.tsx
|
|
6894
|
-
import { jsx as
|
|
6895
|
-
import { isExternalUrl, normalizeHref as normalizeHref9, normalizeSlash as normalizeSlash2 } from "@rspress/shared";
|
|
6896
|
-
import { withBase as withBase8, useLang, usePageData as usePageData15, removeBase as removeBase3 } from "@/runtime";
|
|
6942
|
+
import { jsx as _jsx63 } from "react/jsx-runtime";
|
|
6897
6943
|
function _define_property42(obj, key, value) {
|
|
6898
6944
|
if (key in obj) {
|
|
6899
6945
|
Object.defineProperty(obj, key, {
|
|
@@ -6947,29 +6993,16 @@ function _object_spread_props34(target, source) {
|
|
|
6947
6993
|
return target;
|
|
6948
6994
|
}
|
|
6949
6995
|
var A = (props) => {
|
|
6950
|
-
|
|
6951
|
-
const
|
|
6952
|
-
|
|
6953
|
-
|
|
6954
|
-
|
|
6955
|
-
href = normalizeSlash2(href);
|
|
6956
|
-
const startWithLang = removeBase3(href).startsWith(`/${lang}`);
|
|
6957
|
-
if (lang !== defaultLang && !startWithLang) {
|
|
6958
|
-
href = `/${lang}${href}`;
|
|
6959
|
-
}
|
|
6960
|
-
if (lang === defaultLang && startWithLang) {
|
|
6961
|
-
href = removeBase3(href).replace(`/${lang}`, "");
|
|
6962
|
-
}
|
|
6963
|
-
href = normalizeHref9(withBase8(href || ""));
|
|
6964
|
-
}
|
|
6965
|
-
return /* @__PURE__ */ _jsx62("a", _object_spread_props34(_object_spread42({}, props), {
|
|
6966
|
-
className: `${index_module_default18.link} ${props.className}`,
|
|
6967
|
-
href
|
|
6996
|
+
const { href = "" } = props;
|
|
6997
|
+
const { normalizeLinkHref } = usePathUtils();
|
|
6998
|
+
return /* @__PURE__ */ _jsx63("a", _object_spread_props34(_object_spread42({}, props), {
|
|
6999
|
+
className: `${index_module_default17.link} ${props.className}`,
|
|
7000
|
+
href: normalizeLinkHref(href)
|
|
6968
7001
|
}));
|
|
6969
7002
|
};
|
|
6970
7003
|
|
|
6971
7004
|
// src/theme-default/layout/DocLayout/docComponents/paragraph.tsx
|
|
6972
|
-
import { jsx as
|
|
7005
|
+
import { jsx as _jsx64 } from "react/jsx-runtime";
|
|
6973
7006
|
function _define_property43(obj, key, value) {
|
|
6974
7007
|
if (key in obj) {
|
|
6975
7008
|
Object.defineProperty(obj, key, {
|
|
@@ -7023,17 +7056,17 @@ function _object_spread_props35(target, source) {
|
|
|
7023
7056
|
return target;
|
|
7024
7057
|
}
|
|
7025
7058
|
var P = (props) => {
|
|
7026
|
-
return /* @__PURE__ */
|
|
7059
|
+
return /* @__PURE__ */ _jsx64("p", _object_spread_props35(_object_spread43({}, props), {
|
|
7027
7060
|
className: "my-4 leading-7"
|
|
7028
7061
|
}));
|
|
7029
7062
|
};
|
|
7030
7063
|
var Blockquote = (props) => {
|
|
7031
|
-
return /* @__PURE__ */
|
|
7032
|
-
className: `border-l-2 border-solid border-divider pl-4 my-6 transition-colors duration-500 ${
|
|
7064
|
+
return /* @__PURE__ */ _jsx64("blockquote", _object_spread_props35(_object_spread43({}, props), {
|
|
7065
|
+
className: `border-l-2 border-solid border-divider pl-4 my-6 transition-colors duration-500 ${index_module_default17.blockquote}`
|
|
7033
7066
|
}));
|
|
7034
7067
|
};
|
|
7035
7068
|
var Strong = (props) => {
|
|
7036
|
-
return /* @__PURE__ */
|
|
7069
|
+
return /* @__PURE__ */ _jsx64("strong", _object_spread_props35(_object_spread43({}, props), {
|
|
7037
7070
|
className: "font-semibold"
|
|
7038
7071
|
}));
|
|
7039
7072
|
};
|
|
@@ -7074,10 +7107,14 @@ var theme_default_default = {
|
|
|
7074
7107
|
export {
|
|
7075
7108
|
Button,
|
|
7076
7109
|
HomeFooter2 as HomeFooter,
|
|
7110
|
+
HomeLayout,
|
|
7111
|
+
Layout,
|
|
7077
7112
|
Link,
|
|
7078
7113
|
Nav2 as Nav,
|
|
7114
|
+
NotFoundLayout,
|
|
7079
7115
|
PackageManagerTabs,
|
|
7080
7116
|
Search2 as Search,
|
|
7117
|
+
SearchPanel,
|
|
7081
7118
|
Tab,
|
|
7082
7119
|
Tabs,
|
|
7083
7120
|
Toc,
|
|
@@ -7092,6 +7129,7 @@ export {
|
|
|
7092
7129
|
setup,
|
|
7093
7130
|
useEditLink,
|
|
7094
7131
|
useLocaleSiteData,
|
|
7132
|
+
usePathUtils,
|
|
7095
7133
|
usePrevNextPage,
|
|
7096
7134
|
useSidebarData
|
|
7097
7135
|
};
|