@netfoundry/docusaurus-theme 0.2.3 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/css/layout.css +14 -0
- package/css/legacy.css +2313 -0
- package/css/tabs-v1-gradient.css +92 -0
- package/css/tabs-v2-glass.css +116 -0
- package/css/tabs-v3-minimal.css +86 -0
- package/css/tabs-v4-segmented.css +85 -0
- package/css/tabs-v5-neon.css +99 -0
- package/css/tabs-v6-neumorphic.css +89 -0
- package/css/tabs-v7-brutalist.css +81 -0
- package/css/tabs-v8-float.css +114 -0
- package/css/tabs-v9-line.css +104 -0
- package/css/theme.css +20 -0
- package/css/vars-dark.css +7 -0
- package/css/vars.css +8 -0
- package/dist/css/theme.css +20 -72
- package/dist/src/components/Alert/Alert.js +6 -51
- package/dist/src/components/Alert/Alert.js.map +1 -7
- package/dist/src/components/Alert/index.js +2 -29
- package/dist/src/components/Alert/index.js.map +1 -7
- package/dist/src/components/CodeBlock/CodeBlock.js +7 -53
- package/dist/src/components/CodeBlock/CodeBlock.js.map +1 -7
- package/dist/src/components/CodeBlock/index.js +2 -29
- package/dist/src/components/CodeBlock/index.js.map +1 -7
- package/dist/src/components/Common/Common.js +16 -59
- package/dist/src/components/Common/Common.js.map +1 -7
- package/dist/src/components/Common/index.d.ts +0 -1
- package/dist/src/components/Common/index.d.ts.map +1 -1
- package/dist/src/components/Common/index.js +2 -25
- package/dist/src/components/Common/index.js.map +1 -7
- package/dist/src/components/NetFoundry/Divider/Divider.js +5 -46
- package/dist/src/components/NetFoundry/Divider/Divider.js.map +1 -7
- package/dist/src/components/NetFoundry/Divider/index.js +2 -23
- package/dist/src/components/NetFoundry/Divider/index.js.map +1 -7
- package/dist/src/components/NetFoundry/index.js +2 -23
- package/dist/src/components/NetFoundry/index.js.map +1 -7
- package/dist/src/components/NetFoundryFooter/NetFoundryFooter.d.ts +25 -2
- package/dist/src/components/NetFoundryFooter/NetFoundryFooter.d.ts.map +1 -1
- package/dist/src/components/NetFoundryFooter/NetFoundryFooter.js +65 -115
- package/dist/src/components/NetFoundryFooter/NetFoundryFooter.js.map +1 -7
- package/dist/src/components/NetFoundryFooter/index.js +2 -23
- package/dist/src/components/NetFoundryFooter/index.js.map +1 -7
- package/dist/src/components/NetFoundryHighlight/NetFoundryHighlight.js +5 -32
- package/dist/src/components/NetFoundryHighlight/NetFoundryHighlight.js.map +1 -7
- package/dist/src/components/NetFoundryHighlight/index.js +2 -29
- package/dist/src/components/NetFoundryHighlight/index.js.map +1 -7
- package/dist/src/components/NetFoundryHorizontalSection/NetFoundryHorizontalSection.js +7 -52
- package/dist/src/components/NetFoundryHorizontalSection/NetFoundryHorizontalSection.js.map +1 -7
- package/dist/src/components/NetFoundryHorizontalSection/index.js +2 -29
- package/dist/src/components/NetFoundryHorizontalSection/index.js.map +1 -7
- package/dist/src/components/NetFoundryLayout/NetFoundryLayout.d.ts.map +1 -1
- package/dist/src/components/NetFoundryLayout/NetFoundryLayout.js +32 -111
- package/dist/src/components/NetFoundryLayout/NetFoundryLayout.js.map +1 -7
- package/dist/src/components/NetFoundryLayout/index.js +2 -23
- package/dist/src/components/NetFoundryLayout/index.js.map +1 -7
- package/dist/src/components/NetFoundryNavbarItems/NetFoundryNavbarItems.js +13 -40
- package/dist/src/components/NetFoundryNavbarItems/NetFoundryNavbarItems.js.map +1 -7
- package/dist/src/components/NetFoundryNavbarItems/index.js +2 -29
- package/dist/src/components/NetFoundryNavbarItems/index.js.map +1 -7
- package/dist/src/components/OsTabs/OsTabs.js +17 -53
- package/dist/src/components/OsTabs/OsTabs.js.map +1 -7
- package/dist/src/components/OsTabs/index.js +2 -29
- package/dist/src/components/OsTabs/index.js.map +1 -7
- package/dist/src/components/StarUs/StarUs.js +6 -45
- package/dist/src/components/StarUs/StarUs.js.map +1 -7
- package/dist/src/components/StarUs/index.js +2 -39
- package/dist/src/components/StarUs/index.js.map +1 -7
- package/dist/src/components/index.d.ts +0 -1
- package/dist/src/components/index.d.ts.map +1 -1
- package/dist/src/components/index.js +12 -45
- package/dist/src/components/index.js.map +1 -7
- package/dist/src/docusaurus-envhelper.js +64 -111
- package/dist/src/docusaurus-envhelper.js.map +1 -7
- package/dist/src/docusaurus-plugins/index.js +8 -35
- package/dist/src/docusaurus-plugins/index.js.map +1 -7
- package/dist/src/docusaurus-plugins/logger.js +38 -66
- package/dist/src/docusaurus-plugins/logger.js.map +1 -7
- package/dist/src/docusaurus-plugins/remarkCodeSections.js +94 -127
- package/dist/src/docusaurus-plugins/remarkCodeSections.js.map +1 -7
- package/dist/src/docusaurus-plugins/remarkReplaceMetaUrl.js +22 -50
- package/dist/src/docusaurus-plugins/remarkReplaceMetaUrl.js.map +1 -7
- package/dist/src/docusaurus-plugins/remarkScopedPath.js +46 -78
- package/dist/src/docusaurus-plugins/remarkScopedPath.js.map +1 -7
- package/dist/src/docusaurus-plugins/remarkYamlTable.js +49 -84
- package/dist/src/docusaurus-plugins/remarkYamlTable.js.map +1 -7
- package/dist/src/docusaurus-plugins/remarkYouTube.js +42 -65
- package/dist/src/docusaurus-plugins/remarkYouTube.js.map +1 -7
- package/dist/src/docusaurus-plugins/timedPlugin.js +15 -42
- package/dist/src/docusaurus-plugins/timedPlugin.js.map +1 -7
- package/dist/src/index.d.ts.map +1 -1
- package/dist/src/index.js +31 -63
- package/dist/src/index.js.map +1 -7
- package/dist/src/node.js +7 -23
- package/dist/src/node.js.map +1 -7
- package/dist/src/options.d.ts +30 -27
- package/dist/src/options.d.ts.map +1 -1
- package/dist/src/options.js +2 -17
- package/dist/src/options.js.map +1 -7
- package/dist/src/plugins.js +7 -23
- package/dist/src/plugins.js.map +1 -7
- package/dist/src/ui.js +8 -25
- package/dist/src/ui.js.map +1 -7
- package/dist/src/version.js +2 -29
- package/dist/src/version.js.map +1 -7
- package/dist/theme/Layout/index.d.ts +9 -0
- package/dist/theme/Layout/index.d.ts.map +1 -1
- package/dist/theme/Layout/index.js +38 -82
- package/dist/theme/Layout/index.js.map +1 -7
- package/package.json +27 -19
- package/dist/src/components/Common/Logos.d.ts +0 -6
- package/dist/src/components/Common/Logos.d.ts.map +0 -1
- package/dist/src/components/Common/Logos.js +0 -93
- package/dist/src/components/Common/Logos.js.map +0 -7
- package/dist/src/components/NetFoundryFooter/defaults.d.ts +0 -19
- package/dist/src/components/NetFoundryFooter/defaults.d.ts.map +0 -1
- package/dist/src/components/NetFoundryFooter/defaults.js +0 -51
- package/dist/src/components/NetFoundryFooter/defaults.js.map +0 -7
- package/dist/src/components/NetFoundryFooter/types.d.ts +0 -27
- package/dist/src/components/NetFoundryFooter/types.d.ts.map +0 -1
- package/dist/src/components/NetFoundryFooter/types.js +0 -53
- package/dist/src/components/NetFoundryFooter/types.js.map +0 -7
- package/dist/src/components/ProductSearch/ProductSearch.d.ts +0 -10
- package/dist/src/components/ProductSearch/ProductSearch.d.ts.map +0 -1
- package/dist/src/components/ProductSearch/ProductSearch.js +0 -261
- package/dist/src/components/ProductSearch/ProductSearch.js.map +0 -7
- package/dist/src/components/ProductSearch/ProductSearch.module.css +0 -189
- package/dist/src/components/ProductSearch/index.d.ts +0 -4
- package/dist/src/components/ProductSearch/index.d.ts.map +0 -1
- package/dist/src/components/ProductSearch/index.js +0 -42
- package/dist/src/components/ProductSearch/index.js.map +0 -7
- package/dist/src/config.d.ts +0 -9
- package/dist/src/config.d.ts.map +0 -1
- package/dist/src/config.js +0 -34
- package/dist/src/config.js.map +0 -7
- package/dist/src/css-modules.d.js +0 -2
- package/dist/src/css-modules.d.js.map +0 -7
- package/dist/src/docusaurus.d.js +0 -2
- package/dist/src/docusaurus.d.js.map +0 -7
- package/dist/theme/BlogPostPage/Metadata.d.ts +0 -2
- package/dist/theme/BlogPostPage/Metadata.d.ts.map +0 -1
- package/dist/theme/BlogPostPage/Metadata.js +0 -35
- package/dist/theme/BlogPostPage/Metadata.js.map +0 -7
- package/dist/theme/BlogPostPage/StructuredData.d.ts +0 -2
- package/dist/theme/BlogPostPage/StructuredData.d.ts.map +0 -1
- package/dist/theme/BlogPostPage/StructuredData.js +0 -35
- package/dist/theme/BlogPostPage/StructuredData.js.map +0 -7
- package/dist/theme/BlogPostPage/index.d.ts +0 -14
- package/dist/theme/BlogPostPage/index.d.ts.map +0 -1
- package/dist/theme/BlogPostPage/index.js +0 -101
- package/dist/theme/BlogPostPage/index.js.map +0 -7
- package/dist/theme/BlogPostPage/index.module.css +0 -53
- package/dist/theme/DocSearch/index.d.ts +0 -3
- package/dist/theme/DocSearch/index.d.ts.map +0 -1
- package/dist/theme/DocSearch/index.js +0 -98
- package/dist/theme/DocSearch/index.js.map +0 -7
- package/dist/theme/DocSearch/styles.module.css +0 -12
- package/dist/theme/Navbar/Content/index.d.ts +0 -6
- package/dist/theme/Navbar/Content/index.d.ts.map +0 -1
- package/dist/theme/Navbar/Content/index.js +0 -70
- package/dist/theme/Navbar/Content/index.js.map +0 -7
- package/dist/theme/Navbar/Content/index.module.css +0 -0
- package/dist/theme/Navbar/Logo/index.d.ts +0 -3
- package/dist/theme/Navbar/Logo/index.d.ts.map +0 -1
- package/dist/theme/Navbar/Logo/index.js +0 -89
- package/dist/theme/Navbar/Logo/index.js.map +0 -7
- package/dist/theme/OsTabs/index.d.ts +0 -13
- package/dist/theme/OsTabs/index.d.ts.map +0 -1
- package/dist/theme/OsTabs/index.js +0 -51
- package/dist/theme/OsTabs/index.js.map +0 -7
- package/dist/theme/SearchBar/SearchBar.module.css +0 -37
- package/dist/theme/SearchBar/index.d.ts +0 -2
- package/dist/theme/SearchBar/index.d.ts.map +0 -1
- package/dist/theme/SearchBar/index.js +0 -91
- package/dist/theme/SearchBar/index.js.map +0 -7
|
@@ -1,29 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var NetFoundryHighlight_exports = {};
|
|
20
|
-
__export(NetFoundryHighlight_exports, {
|
|
21
|
-
NetFoundryHighlight: () => import_NetFoundryHighlight.NetFoundryHighlight
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(NetFoundryHighlight_exports);
|
|
24
|
-
var import_NetFoundryHighlight = require("./NetFoundryHighlight");
|
|
25
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
26
|
-
0 && (module.exports = {
|
|
27
|
-
NetFoundryHighlight
|
|
28
|
-
});
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { NetFoundryHighlight } from './NetFoundryHighlight';
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/components/NetFoundryHighlight/index.ts"],
|
|
4
|
-
"sourcesContent": ["export { NetFoundryHighlight } from './NetFoundryHighlight';\r\nexport type { NetFoundryHighlightProps } from './NetFoundryHighlight';\r\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iCAAoC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/NetFoundryHighlight/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,mBAAmB,EAAE,MAAM,uBAAuB,CAAC"}
|
|
@@ -1,53 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
-
var __export = (target, all) => {
|
|
9
|
-
for (var name in all)
|
|
10
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
-
};
|
|
12
|
-
var __copyProps = (to, from, except, desc) => {
|
|
13
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
-
for (let key of __getOwnPropNames(from))
|
|
15
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var NetFoundryHorizontalSection_exports = {};
|
|
30
|
-
__export(NetFoundryHorizontalSection_exports, {
|
|
31
|
-
NetFoundryHorizontalSection: () => NetFoundryHorizontalSection
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(NetFoundryHorizontalSection_exports);
|
|
34
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_clsx = __toESM(require("clsx"));
|
|
36
|
-
var import_styles = __toESM(require("./styles.module.css"));
|
|
37
|
-
function NetFoundryHorizontalSection(props) {
|
|
38
|
-
const { children, className, style, id } = props;
|
|
39
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(
|
|
40
|
-
"section",
|
|
41
|
-
{
|
|
42
|
-
className: (0, import_clsx.default)(className, import_styles.default.ozHorizontalSectionRoot, import_styles.default.ozhsContent),
|
|
43
|
-
style,
|
|
44
|
-
id,
|
|
45
|
-
children
|
|
46
|
-
}
|
|
47
|
-
);
|
|
1
|
+
import { jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import clsx from 'clsx';
|
|
3
|
+
import styles from './styles.module.css';
|
|
4
|
+
export function NetFoundryHorizontalSection(props) {
|
|
5
|
+
const { children, className, style, id } = props;
|
|
6
|
+
return (_jsx("section", { className: clsx(className, styles.ozHorizontalSectionRoot, styles.ozhsContent), style: style, id: id, children: children }));
|
|
48
7
|
}
|
|
49
|
-
|
|
50
|
-
0 && (module.exports = {
|
|
51
|
-
NetFoundryHorizontalSection
|
|
52
|
-
});
|
|
53
|
-
//# sourceMappingURL=NetFoundryHorizontalSection.js.map
|
|
8
|
+
//# sourceMappingURL=NetFoundryHorizontalSection.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/components/NetFoundryHorizontalSection/NetFoundryHorizontalSection.tsx"],
|
|
4
|
-
"sourcesContent": ["import React, { ReactNode, CSSProperties } from 'react';\nimport clsx from 'clsx';\nimport styles from './styles.module.css';\n\nexport type NetFoundryHorizontalSectionProps = {\n children?: ReactNode;\n className?: string;\n style?: CSSProperties;\n id?: string;\n};\n\nexport function NetFoundryHorizontalSection(props: NetFoundryHorizontalSectionProps) {\n const { children, className, style, id } = props;\n return (\n <section\n className={clsx(className, styles.ozHorizontalSectionRoot, styles.ozhsContent)}\n style={style}\n id={id}\n >\n {children}\n </section>\n );\n}"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAcQ;AAbR,kBAAiB;AACjB,oBAAmB;AASZ,SAAS,4BAA4B,OAAyC;AACjF,QAAM,EAAE,UAAU,WAAW,OAAO,GAAG,IAAI;AAC3C,SACI;AAAA,IAAC;AAAA;AAAA,MACG,eAAW,YAAAA,SAAK,WAAW,cAAAC,QAAO,yBAAyB,cAAAA,QAAO,WAAW;AAAA,MAC7E;AAAA,MACA;AAAA,MAEC;AAAA;AAAA,EACL;AAER;",
|
|
6
|
-
"names": ["clsx", "styles"]
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"NetFoundryHorizontalSection.js","sourceRoot":"","sources":["../../../../src/components/NetFoundryHorizontalSection/NetFoundryHorizontalSection.tsx"],"names":[],"mappings":";AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,MAAM,MAAM,qBAAqB,CAAC;AASzC,MAAM,UAAU,2BAA2B,CAAC,KAAuC;IAC/E,MAAM,EAAE,QAAQ,EAAE,SAAS,EAAE,KAAK,EAAE,EAAE,EAAE,GAAG,KAAK,CAAC;IACjD,OAAO,CACH,kBACI,SAAS,EAAE,IAAI,CAAC,SAAS,EAAE,MAAM,CAAC,uBAAuB,EAAE,MAAM,CAAC,WAAW,CAAC,EAC9E,KAAK,EAAE,KAAK,EACZ,EAAE,EAAE,EAAE,YAEL,QAAQ,GACH,CACb,CAAC;AACN,CAAC"}
|
|
@@ -1,29 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var NetFoundryHorizontalSection_exports = {};
|
|
20
|
-
__export(NetFoundryHorizontalSection_exports, {
|
|
21
|
-
NetFoundryHorizontalSection: () => import_NetFoundryHorizontalSection.NetFoundryHorizontalSection
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(NetFoundryHorizontalSection_exports);
|
|
24
|
-
var import_NetFoundryHorizontalSection = require("./NetFoundryHorizontalSection");
|
|
25
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
26
|
-
0 && (module.exports = {
|
|
27
|
-
NetFoundryHorizontalSection
|
|
28
|
-
});
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { NetFoundryHorizontalSection } from './NetFoundryHorizontalSection';
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/components/NetFoundryHorizontalSection/index.ts"],
|
|
4
|
-
"sourcesContent": ["export { NetFoundryHorizontalSection } from './NetFoundryHorizontalSection';\r\nexport type { NetFoundryHorizontalSectionProps } from './NetFoundryHorizontalSection';\r\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,yCAA4C;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/NetFoundryHorizontalSection/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,2BAA2B,EAAE,MAAM,+BAA+B,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"NetFoundryLayout.d.ts","sourceRoot":"","sources":["../../../../src/components/NetFoundryLayout/NetFoundryLayout.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,EAAC,GAAG,EAAC,MAAM,OAAO,CAAC;AAgBjC,OAAO,EAAoB,qBAAqB,EAAE,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAU,WAAW,EAAE,MAAM,WAAW,CAAC;AAGhD,MAAM,WAAW,SAAS;IACtB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,GAAG,CAAC,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,QAAQ,CAAC,EAAE,MAAM,CAAC;IAClB,MAAM,CAAC,EAAE,MAAM,CAAC;IAChB,QAAQ,CAAC,EAAE;QACP,IAAI,CAAC,EAAE,SAAS,GAAG,qBAAqB,GAAG,QAAQ,GAAG,KAAK,CAAC;QAC5D,IAAI,CAAC,EAAE,MAAM,CAAC;QACd,OAAO,CAAC,EAAE,MAAM,CAAC;QACjB,QAAQ,CAAC,EAAE,MAAM,CAAC;KACrB,CAAC;CACL;AAED,MAAM,WAAW,qBAAqB;IAClC,QAAQ,EAAE,KAAK,CAAC,SAAS,CAAC;IAC1B,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB,KAAK,CAAC,EAAE,MAAM,CAAC;IACf,WAAW,CAAC,EAAE,MAAM,CAAC;IACrB,SAAS,CAAC,EAAE,WAAW,CAAC;IACxB,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,IAAI,C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AC;IACxB,WAAW,CAAC,EAAE,qBAAqB,CAAC;IACpC,IAAI,CAAC,EAAE,SAAS,CAAC;CACpB;AAUD,wBAAgB,gBAAgB,CAAC,EACI,QAAQ,EACR,QAAQ,EACR,SAAS,EACT,KAAK,EACL,WAAW,EACX,SAAuD,EACvD,WAAW,EACX,IAAI,EAAE,SAAc,GACvB,EAAE,qBAAqB,GAAG,GAAG,CAAC,OAAO,CA6CtE"}
|
|
@@ -1,114 +1,35 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var NetFoundryLayout_exports = {};
|
|
30
|
-
__export(NetFoundryLayout_exports, {
|
|
31
|
-
NetFoundryLayout: () => NetFoundryLayout
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(NetFoundryLayout_exports);
|
|
34
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_clsx = __toESM(require("clsx"));
|
|
36
|
-
var import_ErrorBoundary = __toESM(require("@docusaurus/ErrorBoundary"));
|
|
37
|
-
var import_theme_common = require("@docusaurus/theme-common");
|
|
38
|
-
var import_internal = require("@docusaurus/theme-common/internal");
|
|
39
|
-
var import_Head = __toESM(require("@docusaurus/Head"));
|
|
40
|
-
var import_useBaseUrl = __toESM(require("@docusaurus/useBaseUrl"));
|
|
41
|
-
var import_SkipToContent = __toESM(require("@theme/SkipToContent"));
|
|
42
|
-
var import_AnnouncementBar = __toESM(require("@theme/AnnouncementBar"));
|
|
43
|
-
var import_Navbar = __toESM(require("@theme/Navbar"));
|
|
44
|
-
var import_Provider = __toESM(require("@theme/Layout/Provider"));
|
|
45
|
-
var import_ErrorPageContent = __toESM(require("@theme/ErrorPageContent"));
|
|
46
|
-
var import_NetFoundryLayout = __toESM(require("./NetFoundryLayout.module.css"));
|
|
47
|
-
var import_NetFoundryFooter = require("../NetFoundryFooter");
|
|
48
|
-
var import_StarUs = require("../StarUs");
|
|
49
|
-
var import_version = require("../../version");
|
|
1
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
2
|
+
import clsx from "clsx";
|
|
3
|
+
import ErrorBoundary from "@docusaurus/ErrorBoundary";
|
|
4
|
+
import { ThemeClassNames } from "@docusaurus/theme-common";
|
|
5
|
+
// @ts-ignore
|
|
6
|
+
import { useKeyboardNavigation } from "@docusaurus/theme-common/internal";
|
|
7
|
+
import Head from "@docusaurus/Head";
|
|
8
|
+
import useBaseUrl from "@docusaurus/useBaseUrl";
|
|
9
|
+
import SkipToContent from "@theme/SkipToContent";
|
|
10
|
+
import AnnouncementBar from "@theme/AnnouncementBar";
|
|
11
|
+
import Navbar from "@theme/Navbar";
|
|
12
|
+
import LayoutProvider from "@theme/Layout/Provider";
|
|
13
|
+
import ErrorPageContent from "@theme/ErrorPageContent";
|
|
14
|
+
import styles from "./NetFoundryLayout.module.css";
|
|
15
|
+
import { NetFoundryFooter } from "../NetFoundryFooter";
|
|
16
|
+
import { StarUs } from "../StarUs";
|
|
17
|
+
import { version } from '../../version';
|
|
50
18
|
function useAbs() {
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
19
|
+
return (p) => {
|
|
20
|
+
if (!p)
|
|
21
|
+
return undefined;
|
|
22
|
+
if (p.startsWith("http"))
|
|
23
|
+
return p;
|
|
24
|
+
return new URL(useBaseUrl(p), window.location.origin).toString();
|
|
25
|
+
};
|
|
56
26
|
}
|
|
57
|
-
function NetFoundryLayout({
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
footerProps,
|
|
65
|
-
meta: metaInput = {}
|
|
66
|
-
}) {
|
|
67
|
-
(0, import_internal.useKeyboardNavigation)();
|
|
68
|
-
const abs = useAbs();
|
|
69
|
-
const meta = metaInput;
|
|
70
|
-
const pageTitle = (meta.title ?? title ?? "") + (meta.siteName ? ` | ${meta.siteName}` : "");
|
|
71
|
-
const HeadComp = import_Head.default;
|
|
72
|
-
const ErrorBoundaryComp = import_ErrorBoundary.default;
|
|
73
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)(import_Provider.default, { children: [
|
|
74
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(HeadComp, { children: [
|
|
75
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("title", { children: pageTitle }),
|
|
76
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("meta", { "data-rh": "true", name: "nf-layout-version", content: import_version.version }),
|
|
77
|
-
(meta.description ?? description) && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("meta", { name: "description", content: meta.description ?? description }),
|
|
78
|
-
meta.url && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("meta", { property: "og:url", content: meta.url }),
|
|
79
|
-
meta.siteName && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("meta", { property: "og:site_name", content: meta.siteName }),
|
|
80
|
-
meta.title && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("meta", { property: "og:title", content: meta.title }),
|
|
81
|
-
meta.description && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("meta", { property: "og:description", content: meta.description }),
|
|
82
|
-
meta.image && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("meta", { property: "og:image", content: abs(meta.image) }),
|
|
83
|
-
meta.locale && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("meta", { property: "og:locale", content: meta.locale }),
|
|
84
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("meta", { name: "twitter:card", content: meta.twitterX?.card ?? "summary_large_image" }),
|
|
85
|
-
meta.twitterX?.site && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("meta", { name: "twitter:site", content: meta.twitterX.site }),
|
|
86
|
-
meta.twitterX?.creator && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("meta", { name: "twitter:creator", content: meta.twitterX.creator }),
|
|
87
|
-
meta.image && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("meta", { name: "twitter:image", content: abs(meta.image) }),
|
|
88
|
-
meta.twitterX?.imageAlt && /* @__PURE__ */ (0, import_jsx_runtime.jsx)("meta", { name: "twitter:image:alt", content: meta.twitterX.imageAlt })
|
|
89
|
-
] }),
|
|
90
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_SkipToContent.default, {}),
|
|
91
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_AnnouncementBar.default, {}),
|
|
92
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Navbar.default, {}),
|
|
93
|
-
starProps.repoUrl && starProps.label && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_StarUs.StarUs, { ...starProps }),
|
|
94
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)(
|
|
95
|
-
"div",
|
|
96
|
-
{
|
|
97
|
-
className: (0, import_clsx.default)(
|
|
98
|
-
import_theme_common.ThemeClassNames.wrapper.main,
|
|
99
|
-
import_NetFoundryLayout.default.ozLayoutMainWrapper,
|
|
100
|
-
className
|
|
101
|
-
),
|
|
102
|
-
children: [
|
|
103
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)(ErrorBoundaryComp, { fallback: (props) => /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_ErrorPageContent.default, { ...props }), children }),
|
|
104
|
-
!noFooter && footerProps && /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_NetFoundryFooter.NetFoundryFooter, { ...footerProps })
|
|
105
|
-
]
|
|
106
|
-
}
|
|
107
|
-
)
|
|
108
|
-
] });
|
|
27
|
+
export function NetFoundryLayout({ children, noFooter, className, title, description, starProps = { repoUrl: "", label: "Star us on GitHub" }, footerProps, meta: metaInput = {}, }) {
|
|
28
|
+
useKeyboardNavigation();
|
|
29
|
+
const abs = useAbs();
|
|
30
|
+
const meta = metaInput;
|
|
31
|
+
const pageTitle = (meta.title ?? title ?? "") +
|
|
32
|
+
(meta.siteName ? ` | ${meta.siteName}` : "");
|
|
33
|
+
return (_jsxs(LayoutProvider, { children: [_jsxs(Head, { children: [_jsx("title", { children: pageTitle }), _jsx("meta", { "data-rh": "true", name: "nf-layout-version", content: version }), (meta.description ?? description) && (_jsx("meta", { name: "description", content: meta.description ?? description })), meta.url && _jsx("meta", { property: "og:url", content: meta.url }), meta.siteName && _jsx("meta", { property: "og:site_name", content: meta.siteName }), meta.title && _jsx("meta", { property: "og:title", content: meta.title }), meta.description && (_jsx("meta", { property: "og:description", content: meta.description })), meta.image && _jsx("meta", { property: "og:image", content: abs(meta.image) }), meta.locale && _jsx("meta", { property: "og:locale", content: meta.locale }), _jsx("meta", { name: "twitter:card", content: meta.twitterX?.card ?? "summary_large_image" }), meta.twitterX?.site && (_jsx("meta", { name: "twitter:site", content: meta.twitterX.site })), meta.twitterX?.creator && (_jsx("meta", { name: "twitter:creator", content: meta.twitterX.creator })), meta.image && (_jsx("meta", { name: "twitter:image", content: abs(meta.image) })), meta.twitterX?.imageAlt && (_jsx("meta", { name: "twitter:image:alt", content: meta.twitterX.imageAlt }))] }), _jsx(SkipToContent, {}), _jsx(AnnouncementBar, {}), _jsx(Navbar, {}), starProps.repoUrl && starProps.label && _jsx(StarUs, { ...starProps }), _jsxs("div", { className: clsx(ThemeClassNames.wrapper.main, styles.ozLayoutMainWrapper, className), children: [_jsx(ErrorBoundary, { fallback: (props) => _jsx(ErrorPageContent, { ...props }), children: children }), !noFooter && footerProps && _jsx(NetFoundryFooter, { ...footerProps })] })] }));
|
|
109
34
|
}
|
|
110
|
-
|
|
111
|
-
0 && (module.exports = {
|
|
112
|
-
NetFoundryLayout
|
|
113
|
-
});
|
|
114
|
-
//# sourceMappingURL=NetFoundryLayout.js.map
|
|
35
|
+
//# sourceMappingURL=NetFoundryLayout.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/components/NetFoundryLayout/NetFoundryLayout.tsx"],
|
|
4
|
-
"sourcesContent": ["import React, {JSX} from \"react\";\nimport clsx from \"clsx\";\nimport ErrorBoundary from \"@docusaurus/ErrorBoundary\";\nimport { ThemeClassNames } from \"@docusaurus/theme-common\";\n// @ts-ignore\nimport { useKeyboardNavigation } from \"@docusaurus/theme-common/internal\";\nimport Head from \"@docusaurus/Head\";\nimport useBaseUrl from \"@docusaurus/useBaseUrl\";\n\nimport SkipToContent from \"@theme/SkipToContent\";\nimport AnnouncementBar from \"@theme/AnnouncementBar\";\nimport Navbar from \"@theme/Navbar\";\nimport LayoutProvider from \"@theme/Layout/Provider\";\nimport ErrorPageContent from \"@theme/ErrorPageContent\";\nimport styles from \"./NetFoundryLayout.module.css\";\n\nimport { NetFoundryFooter, NetFoundryFooterProps } from \"../NetFoundryFooter\";\nimport { StarUs, StarUsProps } from \"../StarUs\";\nimport { version } from '../../version';\n\nexport interface MetaProps {\n title?: string;\n description?: string;\n url?: string;\n image?: string;\n siteName?: string;\n locale?: string;\n twitterX?: {\n card?: \"summary\" | \"summary_large_image\" | \"player\" | \"app\";\n site?: string;\n creator?: string;\n imageAlt?: string;\n };\n}\n\nexport interface NetFoundryLayoutProps {\n children: React.ReactNode;\n noFooter?: boolean;\n className?: string;\n footerClassName?: string;\n title?: string;\n description?: string;\n starProps?: StarUsProps;\n footerProps?: NetFoundryFooterProps;\n meta?: MetaProps;\n}\n\nfunction useAbs() {\n return (p?: string) => {\n if (!p) return undefined;\n if (p.startsWith(\"http\")) return p;\n return new URL(useBaseUrl(p), window.location.origin).toString();\n };\n}\n\nexport function NetFoundryLayout({\n children,\n noFooter,\n className,\n title,\n description,\n starProps = { repoUrl: \"\", label: \"Star us on GitHub\" },\n footerProps,\n meta: metaInput = {},\n }: NetFoundryLayoutProps): JSX.Element {\n useKeyboardNavigation();\n\n const abs = useAbs();\n const meta = metaInput;\n const pageTitle =\n (meta.title ?? title ?? \"\") +\n (meta.siteName ? ` | ${meta.siteName}` : \"\");\n\n const HeadComp = Head as any;\n const ErrorBoundaryComp = ErrorBoundary as any;\n\n return (\n <LayoutProvider>\n <HeadComp>\n <title>{pageTitle}</title>\n <meta data-rh=\"true\" name=\"nf-layout-version\" content={version} />\n {(meta.description ?? description) && (<meta name=\"description\" content={meta.description ?? description} />)}\n {meta.url && <meta property=\"og:url\" content={meta.url} />}\n {meta.siteName && <meta property=\"og:site_name\" content={meta.siteName} />}\n {meta.title && <meta property=\"og:title\" content={meta.title} />}\n {meta.description && (<meta property=\"og:description\" content={meta.description} />)}\n {meta.image && <meta property=\"og:image\" content={abs(meta.image)} />}\n {meta.locale && <meta property=\"og:locale\" content={meta.locale} />}\n <meta name=\"twitter:card\" content={meta.twitterX?.card ?? \"summary_large_image\"} />\n {meta.twitterX?.site && (<meta name=\"twitter:site\" content={meta.twitterX.site} />)}\n {meta.twitterX?.creator && (<meta name=\"twitter:creator\" content={meta.twitterX.creator} />)}\n {meta.image && (<meta name=\"twitter:image\" content={abs(meta.image)} />)}\n {meta.twitterX?.imageAlt && (<meta name=\"twitter:image:alt\" content={meta.twitterX.imageAlt} />)}\n </HeadComp>\n <SkipToContent />\n <AnnouncementBar />\n <Navbar />\n {starProps.repoUrl && starProps.label && <StarUs {...starProps} />}\n <div\n className={clsx(\n ThemeClassNames.wrapper.main,\n styles.ozLayoutMainWrapper,\n className,\n )}\n >\n <ErrorBoundaryComp fallback={(props: any) => <ErrorPageContent {...props} />}>\n {children}\n </ErrorBoundaryComp>\n {!noFooter && footerProps && <NetFoundryFooter {...footerProps} />}\n </div>\n </LayoutProvider>\n );\n}\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AA8EY;AA7EZ,kBAAiB;AACjB,2BAA0B;AAC1B,0BAAgC;AAEhC,sBAAsC;AACtC,kBAAiB;AACjB,wBAAuB;AAEvB,2BAA0B;AAC1B,6BAA4B;AAC5B,oBAAmB;AACnB,sBAA2B;AAC3B,8BAA6B;AAC7B,8BAAmB;AAEnB,8BAAwD;AACxD,oBAAoC;AACpC,qBAAwB;AA6BxB,SAAS,SAAS;AACd,SAAO,CAAC,MAAe;AACnB,QAAI,CAAC,EAAG,QAAO;AACf,QAAI,EAAE,WAAW,MAAM,EAAG,QAAO;AACjC,WAAO,IAAI,QAAI,kBAAAA,SAAW,CAAC,GAAG,OAAO,SAAS,MAAM,EAAE,SAAS;AAAA,EACnE;AACJ;AAEO,SAAS,iBAAiB;AAAA,EACI;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA;AAAA,EACA,YAAY,EAAE,SAAS,IAAI,OAAO,oBAAoB;AAAA,EACtD;AAAA,EACA,MAAM,YAAY,CAAC;AACvB,GAAuC;AACpE,6CAAsB;AAEtB,QAAM,MAAM,OAAO;AACnB,QAAM,OAAO;AACb,QAAM,aACD,KAAK,SAAS,SAAS,OACvB,KAAK,WAAW,MAAM,KAAK,QAAQ,KAAK;AAE7C,QAAM,WAAW,YAAAC;AACjB,QAAM,oBAAoB,qBAAAC;AAE1B,SACI,6CAAC,gBAAAC,S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AA,MAAC;AAAA;AAAA,QACG,eAAW,YAAAC;AAAA,UACP,oCAAgB,QAAQ;AAAA,UACxB,wBAAAC,QAAO;AAAA,UACP;AAAA,QACJ;AAAA,QAEA;AAAA,sDAAC,qBAAkB,UAAU,CAAC,UAAe,4CAAC,wBAAAC,SAAA,EAAkB,GAAG,OAAO,GACrE,UACL;AAAA,UACC,CAAC,YAAY,eAAe,4CAAC,4CAAkB,GAAG,aAAa;AAAA;AAAA;AAAA,IACpE;AAAA,KACJ;AAER;",
|
|
6
|
-
"names": ["useBaseUrl", "Head", "ErrorBoundary", "LayoutProvider", "SkipToContent", "AnnouncementBar", "Navbar", "clsx", "styles", "ErrorPageContent"]
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"NetFoundryLayout.js","sourceRoot":"","sources":["../../../../src/components/NetFoundryLayout/NetFoundryLayout.tsx"],"names":[],"mappings":";AACA,OAAO,IAAI,MAAM,MAAM,CAAC;AACxB,OAAO,aAAa,MAAM,2BAA2B,CAAC;AACtD,OAAO,EAAE,eAAe,EAAE,MAAM,0BAA0B,CAAC;AAC3D,aAAa;AACb,OAAO,EAAE,qBAAqB,EAAE,MAAM,mCAAmC,CAAC;AAC1E,OAAO,IAAI,MAAM,kBAAkB,CAAC;AACpC,OAAO,UAAU,MAAM,wBAAwB,CAAC;AAEhD,OAAO,aAAa,MAAM,sBAAsB,CAAC;AACjD,OAAO,eAAe,MAAM,wBAAwB,CAAC;AACrD,OAAO,MAAM,MAAM,eAAe,CAAC;AACnC,OAAO,cAAc,MAAM,wBAAwB,CAAC;AACpD,OAAO,gBAAgB,MAAM,yBAAyB,CAAC;AACvD,OAAO,MAAM,MAAM,+BAA+B,CAAC;AAEnD,OAAO,EAAE,gBAAgB,EAAyB,MAAM,qBAAqB,CAAC;AAC9E,OAAO,EAAE,MAAM,EAAe,MAAM,WAAW,CAAC;AAChD,OAAO,EAAE,OAAO,EAAE,MAAM,eAAe,CAAC;AA6BxC,SAAS,MAAM;IACX,OAAO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O,IAAI,SAAS,CAAC,KAAK,IAAI,KAAC,MAAM,OAAK,SAAS,GAAI,EAClE,eACI,SAAS,EAAE,IAAI,CACX,eAAe,CAAC,OAAO,CAAC,IAAI,EAC5B,MAAM,CAAC,mBAAmB,EAC1B,SAAS,CACZ,aAED,KAAC,aAAa,IAAC,QAAQ,EAAE,CAAC,KAAK,EAAE,EAAE,CAAC,KAAC,gBAAgB,OAAK,KAAK,GAAI,YAC9D,QAAQ,GACG,EACf,CAAC,QAAQ,IAAI,WAAW,IAAI,KAAC,gBAAgB,OAAK,WAAW,GAAI,IAChE,IACO,CACpB,CAAC;AACN,CAAC"}
|
|
@@ -1,23 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __copyProps = (to, from, except, desc) => {
|
|
7
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
8
|
-
for (let key of __getOwnPropNames(from))
|
|
9
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
10
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
11
|
-
}
|
|
12
|
-
return to;
|
|
13
|
-
};
|
|
14
|
-
var __reExport = (target, mod, secondTarget) => (__copyProps(target, mod, "default"), secondTarget && __copyProps(secondTarget, mod, "default"));
|
|
15
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
16
|
-
var NetFoundryLayout_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(NetFoundryLayout_exports);
|
|
18
|
-
__reExport(NetFoundryLayout_exports, require("./NetFoundryLayout"), module.exports);
|
|
19
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
20
|
-
0 && (module.exports = {
|
|
21
|
-
...require("./NetFoundryLayout")
|
|
22
|
-
});
|
|
23
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from './NetFoundryLayout';
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/components/NetFoundryLayout/index.ts"],
|
|
4
|
-
"sourcesContent": ["export * from './NetFoundryLayout';"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,qCAAc,+BAAd;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/NetFoundryLayout/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC"}
|
|
@@ -1,41 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var NetFoundryNavbarItems_exports = {};
|
|
20
|
-
__export(NetFoundryNavbarItems_exports, {
|
|
21
|
-
NavbarItems: () => NavbarItems
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(NetFoundryNavbarItems_exports);
|
|
24
|
-
const NavbarItems = [
|
|
25
|
-
{
|
|
26
|
-
type: "docSidebar",
|
|
27
|
-
sidebarId: "tutorialSidebar",
|
|
28
|
-
position: "left",
|
|
29
|
-
label: "Docs"
|
|
30
|
-
},
|
|
31
|
-
{
|
|
32
|
-
href: "https://github.com/facebook/docusaurus",
|
|
33
|
-
label: "GitHub",
|
|
34
|
-
position: "right"
|
|
35
|
-
}
|
|
1
|
+
export const NavbarItems = [
|
|
2
|
+
{
|
|
3
|
+
type: 'docSidebar',
|
|
4
|
+
sidebarId: 'tutorialSidebar',
|
|
5
|
+
position: 'left',
|
|
6
|
+
label: 'Docs',
|
|
7
|
+
},
|
|
8
|
+
{
|
|
9
|
+
href: 'https://github.com/facebook/docusaurus',
|
|
10
|
+
label: 'GitHub',
|
|
11
|
+
position: 'right',
|
|
12
|
+
},
|
|
36
13
|
];
|
|
37
|
-
|
|
38
|
-
0 && (module.exports = {
|
|
39
|
-
NavbarItems
|
|
40
|
-
});
|
|
41
|
-
//# sourceMappingURL=NetFoundryNavbarItems.js.map
|
|
14
|
+
//# sourceMappingURL=NetFoundryNavbarItems.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/components/NetFoundryNavbarItems/NetFoundryNavbarItems.tsx"],
|
|
4
|
-
"sourcesContent": ["export type NavbarItem = {\r\n label: string;\r\n href?: string;\r\n to?: string;\r\n type?: string;\r\n position?: 'left' | 'right';\r\n sidebarId?: string;\r\n};\r\n\r\nexport const NavbarItems: NavbarItem[] = [\r\n {\r\n type: 'docSidebar',\r\n sidebarId: 'tutorialSidebar',\r\n position: 'left',\r\n label: 'Docs',\r\n },\r\n {\r\n href: 'https://github.com/facebook/docusaurus',\r\n label: 'GitHub',\r\n position: 'right',\r\n },\r\n];"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AASO,MAAM,cAA4B;AAAA,EACrC;AAAA,IACI,MAAM;AAAA,IACN,WAAW;AAAA,IACX,UAAU;AAAA,IACV,OAAO;AAAA,EACX;AAAA,EACA;AAAA,IACI,MAAM;AAAA,IACN,OAAO;AAAA,IACP,UAAU;AAAA,EACd;AACJ;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"NetFoundryNavbarItems.js","sourceRoot":"","sources":["../../../../src/components/NetFoundryNavbarItems/NetFoundryNavbarItems.tsx"],"names":[],"mappings":"AASA,MAAM,CAAC,MAAM,WAAW,GAAiB;IACrC;QACI,IAAI,EAAE,YAAY;QAClB,SAAS,EAAE,iBAAiB;QAC5B,QAAQ,EAAE,MAAM;QAChB,KAAK,EAAE,MAAM;KAChB;IACD;QACI,IAAI,EAAE,wCAAwC;QAC9C,KAAK,EAAE,QAAQ;QACf,QAAQ,EAAE,OAAO;KACpB;CACJ,CAAC"}
|
|
@@ -1,29 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var NetFoundryNavbarItems_exports = {};
|
|
20
|
-
__export(NetFoundryNavbarItems_exports, {
|
|
21
|
-
NavbarItems: () => import_NetFoundryNavbarItems.NavbarItems
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(NetFoundryNavbarItems_exports);
|
|
24
|
-
var import_NetFoundryNavbarItems = require("./NetFoundryNavbarItems");
|
|
25
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
26
|
-
0 && (module.exports = {
|
|
27
|
-
NavbarItems
|
|
28
|
-
});
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { NavbarItems } from './NetFoundryNavbarItems';
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/components/NetFoundryNavbarItems/index.ts"],
|
|
4
|
-
"sourcesContent": ["export type {NavbarItem} from './NetFoundryNavbarItems';\r\nexport { NavbarItems } from './NetFoundryNavbarItems';\r\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AACA,mCAA4B;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/NetFoundryNavbarItems/index.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,WAAW,EAAE,MAAM,yBAAyB,CAAC"}
|
|
@@ -1,54 +1,18 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
}
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
}
|
|
18
|
-
return to;
|
|
19
|
-
};
|
|
20
|
-
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
-
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
-
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
-
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
-
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
-
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
-
mod
|
|
27
|
-
));
|
|
28
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
-
var OsTabs_exports = {};
|
|
30
|
-
__export(OsTabs_exports, {
|
|
31
|
-
OsTabs: () => OsTabs
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(OsTabs_exports);
|
|
34
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_react = require("react");
|
|
36
|
-
var import_Tabs = __toESM(require("@theme/Tabs"));
|
|
37
|
-
var import_react_device_detect = require("react-device-detect");
|
|
38
|
-
function OsTabs(props) {
|
|
39
|
-
const [defaultValue, setDefaultValue] = (0, import_react.useState)(null);
|
|
40
|
-
(0, import_react.useEffect)(() => {
|
|
41
|
-
const tabs = ["iOS", "Android", "Mac OS", "Windows", "Linux"];
|
|
42
|
-
if (tabs.includes(import_react_device_detect.osName)) {
|
|
43
|
-
setDefaultValue(import_react_device_detect.osName);
|
|
44
|
-
} else {
|
|
45
|
-
setDefaultValue("Windows");
|
|
46
|
-
}
|
|
47
|
-
}, []);
|
|
48
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_jsx_runtime.Fragment, { children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_Tabs.default, { ...props, defaultValue: defaultValue ?? void 0, children: props.children }) });
|
|
1
|
+
import { jsx as _jsx, Fragment as _Fragment } from "react/jsx-runtime";
|
|
2
|
+
import { useState, useEffect } from 'react';
|
|
3
|
+
import OriginalTabs from '@theme/Tabs';
|
|
4
|
+
import { osName } from 'react-device-detect';
|
|
5
|
+
export function OsTabs(props) {
|
|
6
|
+
const [defaultValue, setDefaultValue] = useState(null);
|
|
7
|
+
useEffect(() => {
|
|
8
|
+
const tabs = ['iOS', 'Android', 'Mac OS', 'Windows', 'Linux'];
|
|
9
|
+
if (tabs.includes(osName)) {
|
|
10
|
+
setDefaultValue(osName);
|
|
11
|
+
}
|
|
12
|
+
else {
|
|
13
|
+
setDefaultValue('Windows');
|
|
14
|
+
}
|
|
15
|
+
}, []);
|
|
16
|
+
return (_jsx(_Fragment, { children: _jsx(OriginalTabs, { ...props, defaultValue: defaultValue ?? undefined, children: props.children }) }));
|
|
49
17
|
}
|
|
50
|
-
|
|
51
|
-
0 && (module.exports = {
|
|
52
|
-
OsTabs
|
|
53
|
-
});
|
|
54
|
-
//# sourceMappingURL=OsTabs.js.map
|
|
18
|
+
//# sourceMappingURL=OsTabs.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/components/OsTabs/OsTabs.tsx"],
|
|
4
|
-
"sourcesContent": ["import React, {useState, useEffect, ReactNode, JSX} from 'react';\r\nimport OriginalTabs from '@theme/Tabs';\r\nimport { osName } from 'react-device-detect';\r\nimport type { ComponentProps } from 'react';\r\n\r\n\r\nexport type OsTabsProps = ComponentProps<typeof OriginalTabs>;\r\n\r\nexport function OsTabs(props: OsTabsProps): JSX.Element {\r\n const [defaultValue, setDefaultValue] = useState<string | null>(null);\r\n\r\n useEffect(() => {\r\n const tabs = ['iOS', 'Android', 'Mac OS', 'Windows', 'Linux'];\r\n if (tabs.includes(osName)) {\r\n setDefaultValue(osName);\r\n } else {\r\n setDefaultValue('Windows');\r\n }\r\n }, []);\r\n\r\n return (\r\n <>\r\n <OriginalTabs {...props} defaultValue={defaultValue ?? undefined}>\r\n {props.children}\r\n </OriginalTabs>\r\n {/* Uncomment the following line to debug the detected and selected values */}\r\n {/* <h2>detected={osName}, selected={defaultValue}</h2> */}\r\n </>\r\n );\r\n}"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAqBQ;AArBR,mBAAyD;AACzD,kBAAyB;AACzB,iCAAuB;AAMhB,SAAS,OAAO,OAAiC;AACpD,QAAM,C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ACN,CAAC"}
|
|
@@ -1,29 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
4
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
5
|
-
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
6
|
-
var __export = (target, all) => {
|
|
7
|
-
for (var name in all)
|
|
8
|
-
__defProp(target, name, { get: all[name], enumerable: true });
|
|
9
|
-
};
|
|
10
|
-
var __copyProps = (to, from, except, desc) => {
|
|
11
|
-
if (from && typeof from === "object" || typeof from === "function") {
|
|
12
|
-
for (let key of __getOwnPropNames(from))
|
|
13
|
-
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
14
|
-
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
15
|
-
}
|
|
16
|
-
return to;
|
|
17
|
-
};
|
|
18
|
-
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
19
|
-
var OsTabs_exports = {};
|
|
20
|
-
__export(OsTabs_exports, {
|
|
21
|
-
OsTabs: () => import_OsTabs.OsTabs
|
|
22
|
-
});
|
|
23
|
-
module.exports = __toCommonJS(OsTabs_exports);
|
|
24
|
-
var import_OsTabs = require("./OsTabs");
|
|
25
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
26
|
-
0 && (module.exports = {
|
|
27
|
-
OsTabs
|
|
28
|
-
});
|
|
29
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { OsTabs } from './OsTabs';
|
|
2
|
+
//# sourceMappingURL=index.js.map
|