@netfoundry/docusaurus-theme 0.2.3 → 0.3.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/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 +21 -2
- package/dist/src/components/NetFoundryFooter/NetFoundryFooter.d.ts.map +1 -1
- package/dist/src/components/NetFoundryFooter/NetFoundryFooter.js +58 -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,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/components/OsTabs/index.ts"],
|
|
4
|
-
"sourcesContent": ["export { OsTabs } from './OsTabs';\nexport type { OsTabsProps } from './OsTabs';"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAuB;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/OsTabs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1,46 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
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 StarUs_exports = {};
|
|
30
|
-
__export(StarUs_exports, {
|
|
31
|
-
default: () => StarUs
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(StarUs_exports);
|
|
34
|
-
var import_jsx_runtime = require("react/jsx-runtime");
|
|
35
|
-
var import_styles = __toESM(require("./styles.module.css"));
|
|
36
|
-
var import_react_github_btn = __toESM(require("react-github-btn"));
|
|
37
|
-
function StarUs({ repoUrl = "", label = "" }) {
|
|
38
|
-
return /* @__PURE__ */ (0, import_jsx_runtime.jsxs)("div", { className: import_styles.default.starUsRoot, children: [
|
|
39
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsxs)("span", { style: { color: "whitesmoke" }, children: [
|
|
40
|
-
label,
|
|
41
|
-
"\xA0"
|
|
42
|
-
] }),
|
|
43
|
-
/* @__PURE__ */ (0, import_jsx_runtime.jsx)("span", { style: { height: "20px" }, children: /* @__PURE__ */ (0, import_jsx_runtime.jsx)(import_react_github_btn.default, { href: repoUrl, "data-icon": "octicon-star", "data-show-count": "true", "aria-label": "Star buttons/github-buttons on GitHub", children: "Star" }) })
|
|
44
|
-
] });
|
|
1
|
+
import { jsxs as _jsxs, jsx as _jsx } from "react/jsx-runtime";
|
|
2
|
+
import styles from './styles.module.css';
|
|
3
|
+
import GitHubButton from 'react-github-btn';
|
|
4
|
+
export default function StarUs({ repoUrl = '', label = '' }) {
|
|
5
|
+
return (_jsxs("div", { className: styles.starUsRoot, children: [_jsxs("span", { style: { color: "whitesmoke" }, children: [label, "\u00A0"] }), _jsx("span", { style: { height: "20px" }, children: _jsx(GitHubButton, { href: repoUrl, "data-icon": "octicon-star", "data-show-count": "true", "aria-label": "Star buttons/github-buttons on GitHub", children: "Star" }) })] }));
|
|
45
6
|
}
|
|
46
|
-
//# sourceMappingURL=StarUs.js.map
|
|
7
|
+
//# sourceMappingURL=StarUs.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/components/StarUs/StarUs.tsx"],
|
|
4
|
-
"sourcesContent": ["import React, {ReactNode} from 'react';\nimport styles from './styles.module.css';\nimport GitHubButton from 'react-github-btn';\n\nexport type StarUsProps = {\n repoUrl?: string;\n label?: string;\n};\n\nexport default function StarUs({repoUrl = '', label = ''}: StarUsProps): ReactNode {\n return (\n <div className={styles.starUsRoot}>\n <span style={{color: \"whitesmoke\"}}>{label} </span>\n <span style={{height: \"20px\"}}>\n <GitHubButton href={repoUrl} data-icon=\"octicon-star\" data-show-count=\"true\" aria-label=\"Star buttons/github-buttons on GitHub\">Star</GitHubButton>\n </span>\n </div>\n );\n}"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAYY;AAXZ,oBAAmB;AACnB,8BAAyB;AAOV,SAAR,OAAwB,EAAC,UAAU,IAAI,QAAQ,GAAE,GAA2B;AAC/E,SACI,6CAAC,SAAI,WAAW,cAAAA,QAAO,YACnB;AAAA,iDAAC,UAAK,OAAO,EAAC,OAAO,aAAY,GAAI;AAAA;AAAA,MAAM;AAAA,OAAM;AAAA,IACjD,4CAAC,UAAK,OAAO,EAAC,QAAQ,OAAM,GACvB,sDAAC,wBAAAC,SAAA,EAAa,MAAM,SAAS,aAAU,gBAAe,mBAAgB,QAAO,cAAW,yCAAwC,kBAAI,GACzI;AAAA,KACJ;AAER;",
|
|
6
|
-
"names": ["styles", "GitHubButton"]
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"StarUs.js","sourceRoot":"","sources":["../../../../src/components/StarUs/StarUs.tsx"],"names":[],"mappings":";AACA,OAAO,MAAM,MAAM,qBAAqB,CAAC;AACzC,OAAO,YAAY,MAAM,kBAAkB,CAAC;AAO5C,MAAM,CAAC,OAAO,UAAU,MAAM,CAAC,EAAC,OAAO,GAAG,EAAE,EAAE,KAAK,GAAG,EAAE,EAAc;IAClE,OAAO,CACH,eAAK,SAAS,EAAE,MAAM,CAAC,UAAU,aAC7B,gBAAM,KAAK,EAAE,EAAC,KAAK,EAAE,YAAY,EAAC,aAAG,KAAK,cAAc,EACxD,eAAM,KAAK,EAAE,EAAC,MAAM,EAAE,MAAM,EAAC,YACxB,KAAC,YAAY,IAAC,IAAI,EAAE,OAAO,eAAY,cAAc,qBAAiB,MAAM,gBAAY,uCAAuC,qBAAoB,GACjJ,IACL,CACT,CAAC;AACN,CAAC"}
|
|
@@ -1,39 +1,2 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var __defProp = Object.defineProperty;
|
|
4
|
-
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
-
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
-
var __getProtoOf = Object.getPrototypeOf;
|
|
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 StarUs_exports = {};
|
|
30
|
-
__export(StarUs_exports, {
|
|
31
|
-
StarUs: () => import_StarUs.default
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(StarUs_exports);
|
|
34
|
-
var import_StarUs = __toESM(require("./StarUs"));
|
|
35
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
36
|
-
0 && (module.exports = {
|
|
37
|
-
StarUs
|
|
38
|
-
});
|
|
39
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export { default as StarUs } from './StarUs';
|
|
2
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../../src/components/StarUs/index.ts"],
|
|
4
|
-
"sourcesContent": ["export { default as StarUs } from './StarUs';\nexport type { StarUsProps } from './StarUs';"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,oBAAkC;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/components/StarUs/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,IAAI,MAAM,EAAE,MAAM,UAAU,CAAC"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
@@ -1,45 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
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 components_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(components_exports);
|
|
18
|
-
__reExport(components_exports, require("./Alert"), module.exports);
|
|
19
|
-
__reExport(components_exports, require("./CodeBlock"), module.exports);
|
|
20
|
-
__reExport(components_exports, require("./Common"), module.exports);
|
|
21
|
-
__reExport(components_exports, require("./NetFoundry"), module.exports);
|
|
22
|
-
__reExport(components_exports, require("./NetFoundryFooter"), module.exports);
|
|
23
|
-
__reExport(components_exports, require("./NetFoundryHighlight"), module.exports);
|
|
24
|
-
__reExport(components_exports, require("./NetFoundryHorizontalSection"), module.exports);
|
|
25
|
-
__reExport(components_exports, require("./NetFoundryLayout"), module.exports);
|
|
26
|
-
__reExport(components_exports, require("./NetFoundryNavbarItems"), module.exports);
|
|
27
|
-
__reExport(components_exports, require("./OsTabs"), module.exports);
|
|
28
|
-
__reExport(components_exports, require("./StarUs"), module.exports);
|
|
29
|
-
__reExport(components_exports, require("./ProductSearch"), module.exports);
|
|
30
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
31
|
-
0 && (module.exports = {
|
|
32
|
-
...require("./Alert"),
|
|
33
|
-
...require("./CodeBlock"),
|
|
34
|
-
...require("./Common"),
|
|
35
|
-
...require("./NetFoundry"),
|
|
36
|
-
...require("./NetFoundryFooter"),
|
|
37
|
-
...require("./NetFoundryHighlight"),
|
|
38
|
-
...require("./NetFoundryHorizontalSection"),
|
|
39
|
-
...require("./NetFoundryLayout"),
|
|
40
|
-
...require("./NetFoundryNavbarItems"),
|
|
41
|
-
...require("./OsTabs"),
|
|
42
|
-
...require("./StarUs"),
|
|
43
|
-
...require("./ProductSearch")
|
|
44
|
-
});
|
|
45
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from './Alert';
|
|
2
|
+
export * from './CodeBlock';
|
|
3
|
+
export * from './Common';
|
|
4
|
+
export * from './NetFoundry';
|
|
5
|
+
export * from './NetFoundryFooter';
|
|
6
|
+
export * from './NetFoundryHighlight';
|
|
7
|
+
export * from './NetFoundryHorizontalSection';
|
|
8
|
+
export * from './NetFoundryLayout';
|
|
9
|
+
export * from './NetFoundryNavbarItems';
|
|
10
|
+
export * from './OsTabs';
|
|
11
|
+
export * from './StarUs';
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/components/index.ts"],
|
|
4
|
-
"sourcesContent": ["export * from './Alert'\nexport * from './CodeBlock';\nexport * from './Common';\nexport * from './NetFoundry'\nexport * from './NetFoundryFooter';\nexport * from './NetFoundryHighlight';\nexport * from './NetFoundryHorizontalSection';\nexport * from './NetFoundryLayout';\nexport * from './NetFoundryNavbarItems';\nexport * from './OsTabs';\nexport * from './StarUs';\nexport * from './ProductSearch';\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,+BAAc,oBAAd;AACA,+BAAc,wBADd;AAEA,+BAAc,qBAFd;AAGA,+BAAc,yBAHd;AAIA,+BAAc,+BAJd;AAKA,+BAAc,kCALd;AAMA,+BAAc,0CANd;AAOA,+BAAc,+BAPd;AAQA,+BAAc,oCARd;AASA,+BAAc,qBATd;AAUA,+BAAc,qBAVd;AAWA,+BAAc,4BAXd;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/components/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAA;AACvB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,cAAc,CAAA;AAC5B,cAAc,oBAAoB,CAAC;AACnC,cAAc,uBAAuB,CAAC;AACtC,cAAc,+BAA+B,CAAC;AAC9C,cAAc,oBAAoB,CAAC;AACnC,cAAc,yBAAyB,CAAC;AACxC,cAAc,UAAU,CAAC;AACzB,cAAc,UAAU,CAAC"}
|
|
@@ -1,120 +1,73 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __defProp = Object.defineProperty;
|
|
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 docusaurus_envhelper_exports = {};
|
|
20
|
-
__export(docusaurus_envhelper_exports, {
|
|
21
|
-
DOCUSAURUS_BASE_PATH: () => DOCUSAURUS_BASE_PATH,
|
|
22
|
-
DOCUSAURUS_CANONICAL_DOMAIN: () => DOCUSAURUS_CANONICAL_DOMAIN,
|
|
23
|
-
DOCUSAURUS_DEBUG: () => DOCUSAURUS_DEBUG,
|
|
24
|
-
DOCUSAURUS_DOCS_PATH: () => DOCUSAURUS_DOCS_PATH,
|
|
25
|
-
DOCUSAURUS_URL: () => DOCUSAURUS_URL,
|
|
26
|
-
absoluteUrl: () => absoluteUrl,
|
|
27
|
-
addDocsRedir: () => addDocsRedir,
|
|
28
|
-
cleanUrl: () => cleanUrl,
|
|
29
|
-
docUrl: () => docUrl,
|
|
30
|
-
hotjarId: () => hotjarId,
|
|
31
|
-
pluginHotjar: () => pluginHotjar
|
|
32
|
-
});
|
|
33
|
-
module.exports = __toCommonJS(docusaurus_envhelper_exports);
|
|
34
1
|
const g = typeof globalThis !== "undefined" ? globalThis : {};
|
|
35
2
|
const RUNTIME_ENV = (() => {
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
3
|
+
if (g.process && typeof g.process.env === "object")
|
|
4
|
+
return g.process.env;
|
|
5
|
+
if (g.__DOCUSAURUS_ENV__)
|
|
6
|
+
return g.__DOCUSAURUS_ENV__;
|
|
7
|
+
return {};
|
|
39
8
|
})();
|
|
40
|
-
const getEnv = (k, d) => RUNTIME_ENV[k] ?? d;
|
|
41
|
-
const ORIGIN = getEnv("DOCUSAURUS_URL") ||
|
|
42
|
-
|
|
43
|
-
const
|
|
44
|
-
const
|
|
45
|
-
const
|
|
46
|
-
const
|
|
47
|
-
const
|
|
48
|
-
|
|
49
|
-
|
|
9
|
+
const getEnv = (k, d) => (RUNTIME_ENV[k] ?? d);
|
|
10
|
+
const ORIGIN = getEnv("DOCUSAURUS_URL") ||
|
|
11
|
+
(typeof window !== "undefined" ? window.location.origin : "http://localhost");
|
|
12
|
+
export const DOCUSAURUS_DEBUG = getEnv("DOCUSAURUS_DEBUG") === "true";
|
|
13
|
+
export const DOCUSAURUS_URL = ORIGIN;
|
|
14
|
+
export const DOCUSAURUS_BASE_PATH = getEnv("DOCUSAURUS_BASE_PATH", "/base-url");
|
|
15
|
+
export const DOCUSAURUS_DOCS_PATH = getEnv("DOCUSAURUS_DOCS_PATH", "/docs-path");
|
|
16
|
+
export const DOCUSAURUS_CANONICAL_DOMAIN = getEnv("DOCUSAURUS_CANONICAL_DOMAIN", "canonical.domain.missing.local");
|
|
17
|
+
export const hotjarId = getEnv("ZITI_HOTJAR_APPID", "6443327");
|
|
18
|
+
export function cleanUrl(path) {
|
|
19
|
+
return path.replace(/([^:]\/)\/+/g, "$1");
|
|
50
20
|
}
|
|
51
|
-
function docUrl(base, path) {
|
|
52
|
-
|
|
21
|
+
export function docUrl(base, path) {
|
|
22
|
+
return cleanUrl(`${base}/${path}`);
|
|
53
23
|
}
|
|
54
|
-
function absoluteUrl(base, path) {
|
|
55
|
-
|
|
24
|
+
export function absoluteUrl(base, path) {
|
|
25
|
+
return cleanUrl(`${base}/${DOCUSAURUS_DOCS_PATH}/${path}`);
|
|
56
26
|
}
|
|
57
|
-
function addDocsRedir(base, redirectsArr) {
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
27
|
+
export function addDocsRedir(base, redirectsArr) {
|
|
28
|
+
if (getEnv("DEPLOY_ENV") === "kinsta") {
|
|
29
|
+
redirectsArr.push({
|
|
30
|
+
to: docUrl(base, "/learn/introduction/"),
|
|
31
|
+
from: [docUrl(base, "/docs")],
|
|
32
|
+
});
|
|
33
|
+
}
|
|
64
34
|
}
|
|
65
|
-
function pluginHotjar(context) {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
throw new Error(
|
|
77
|
-
"You specified the `hotjar` object in `themeConfig` but the `applicationId` field was missing. Please ensure this is not a mistake."
|
|
78
|
-
);
|
|
79
|
-
}
|
|
80
|
-
const isProd = process.env.NODE_ENV === "production";
|
|
81
|
-
return {
|
|
82
|
-
name: "docusaurus-plugin-hotjar",
|
|
83
|
-
injectHtmlTags() {
|
|
84
|
-
console.log(`[hotjar] applicationId = ${applicationId} isProd = ${isProd}`);
|
|
85
|
-
if (!isProd) {
|
|
86
|
-
return {};
|
|
87
|
-
}
|
|
88
|
-
return {
|
|
89
|
-
headTags: [
|
|
90
|
-
{
|
|
91
|
-
tagName: "script",
|
|
92
|
-
innerHTML: `(function(h,o,t,j,a,r){
|
|
93
|
-
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
|
|
94
|
-
h._hjSettings={hjid:${applicationId},hjsv:6};
|
|
95
|
-
a=o.getElementsByTagName('head')[0];
|
|
96
|
-
r=o.createElement('script');r.async=1;
|
|
97
|
-
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
|
|
98
|
-
a.appendChild(r);
|
|
99
|
-
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');`
|
|
100
|
-
}
|
|
101
|
-
]
|
|
102
|
-
};
|
|
35
|
+
export function pluginHotjar(context) {
|
|
36
|
+
const { siteConfig } = context;
|
|
37
|
+
const { themeConfig } = siteConfig;
|
|
38
|
+
const { hotjar } = themeConfig;
|
|
39
|
+
if (!hotjar) {
|
|
40
|
+
throw new Error(`You need to specify 'hotjar' object in 'themeConfig' with 'applicationId' field in it to use docusaurus-plugin-hotjar`);
|
|
41
|
+
}
|
|
42
|
+
const { applicationId } = hotjar;
|
|
43
|
+
if (!applicationId) {
|
|
44
|
+
throw new Error('You specified the `hotjar` object in `themeConfig` but the `applicationId` field was missing. ' +
|
|
45
|
+
'Please ensure this is not a mistake.');
|
|
103
46
|
}
|
|
104
|
-
|
|
47
|
+
const isProd = process.env.NODE_ENV === 'production';
|
|
48
|
+
return {
|
|
49
|
+
name: 'docusaurus-plugin-hotjar',
|
|
50
|
+
injectHtmlTags() {
|
|
51
|
+
console.log(`[hotjar] applicationId = ${applicationId} isProd = ${isProd}`);
|
|
52
|
+
if (!isProd) {
|
|
53
|
+
return {};
|
|
54
|
+
}
|
|
55
|
+
return {
|
|
56
|
+
headTags: [
|
|
57
|
+
{
|
|
58
|
+
tagName: 'script',
|
|
59
|
+
innerHTML: `(function(h,o,t,j,a,r){
|
|
60
|
+
h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};
|
|
61
|
+
h._hjSettings={hjid:${applicationId},hjsv:6};
|
|
62
|
+
a=o.getElementsByTagName('head')[0];
|
|
63
|
+
r=o.createElement('script');r.async=1;
|
|
64
|
+
r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;
|
|
65
|
+
a.appendChild(r);
|
|
66
|
+
})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');`,
|
|
67
|
+
},
|
|
68
|
+
],
|
|
69
|
+
};
|
|
70
|
+
},
|
|
71
|
+
};
|
|
105
72
|
}
|
|
106
|
-
|
|
107
|
-
0 && (module.exports = {
|
|
108
|
-
DOCUSAURUS_BASE_PATH,
|
|
109
|
-
DOCUSAURUS_CANONICAL_DOMAIN,
|
|
110
|
-
DOCUSAURUS_DEBUG,
|
|
111
|
-
DOCUSAURUS_DOCS_PATH,
|
|
112
|
-
DOCUSAURUS_URL,
|
|
113
|
-
absoluteUrl,
|
|
114
|
-
addDocsRedir,
|
|
115
|
-
cleanUrl,
|
|
116
|
-
docUrl,
|
|
117
|
-
hotjarId,
|
|
118
|
-
pluginHotjar
|
|
119
|
-
});
|
|
120
|
-
//# sourceMappingURL=docusaurus-envhelper.js.map
|
|
73
|
+
//# sourceMappingURL=docusaurus-envhelper.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../src/docusaurus-envhelper.ts"],
|
|
4
|
-
"sourcesContent": ["import type { LoadContext, Plugin } from '@docusaurus/types';\r\n\r\n// Safe in browser & Node: check globalThis.process only by property access on a known object.\r\n// 1) Use Node's env if present; 2) else use browser-injected __DOCUSAURUS_ENV__; 3) else {}\r\ntype Env = Record<string, string | undefined>;\r\nconst g: any = typeof globalThis !== \"undefined\" ? globalThis : {};\r\n\r\nconst RUNTIME_ENV: Env = (() => {\r\n if (g.process && typeof g.process.env === \"object\") return g.process.env as Env;\r\n if (g.__DOCUSAURUS_ENV__) return g.__DOCUSAURUS_ENV__ as Env;\r\n return {};\r\n})();\r\n\r\nconst getEnv = (k: string, d?: string) =>\r\n (RUNTIME_ENV[k] ?? d) as string | undefined;\r\n\r\nconst ORIGIN =\r\n getEnv(\"DOCUSAURUS_URL\") ||\r\n (typeof window !== \"undefined\" ? window.location.origin : \"http://localhost\");\r\n\r\nexport const DOCUSAURUS_DEBUG = getEnv(\"DOCUSAURUS_DEBUG\") === \"true\";\r\nexport const DOCUSAURUS_URL = ORIGIN;\r\nexport const DOCUSAURUS_BASE_PATH = getEnv(\"DOCUSAURUS_BASE_PATH\", \"/base-url\");\r\nexport const DOCUSAURUS_DOCS_PATH = getEnv(\"DOCUSAURUS_DOCS_PATH\", \"/docs-path\");\r\nexport const DOCUSAURUS_CANONICAL_DOMAIN = getEnv(\"DOCUSAURUS_CANONICAL_DOMAIN\", \"canonical.domain.missing.local\");\r\nexport const hotjarId = getEnv(\"ZITI_HOTJAR_APPID\", \"6443327\")!;\r\n\r\nexport function cleanUrl(path: string) {\r\n return path.replace(/([^:]\\/)\\/+/g, \"$1\");\r\n}\r\n\r\nexport function docUrl(base: string, path: string): string {\r\n return cleanUrl(`${base}/${path}`);\r\n}\r\n\r\nexport function absoluteUrl(base: string, path: string): string {\r\n return cleanUrl(`${base}/${DOCUSAURUS_DOCS_PATH}/${path}`);\r\n}\r\n\r\nexport function addDocsRedir(base: string, redirectsArr: { to: string; from: string[] }[]) {\r\n if (getEnv(\"DEPLOY_ENV\") === \"kinsta\") {\r\n redirectsArr.push({\r\n to: docUrl(base, \"/learn/introduction/\"),\r\n from: [docUrl(base, \"/docs\")],\r\n });\r\n }\r\n}\r\n\r\n\r\n\r\n\r\n\r\ninterface HotjarThemeConfig {\r\n applicationId: string;\r\n}\r\n\r\nexport function pluginHotjar(context: LoadContext): Plugin {\r\n const { siteConfig } = context;\r\n const { themeConfig } = siteConfig;\r\n const { hotjar } = themeConfig as { hotjar?: HotjarThemeConfig };\r\n\r\n if (!hotjar) {\r\n throw new Error(\r\n `You need to specify 'hotjar' object in 'themeConfig' with 'applicationId' field in it to use docusaurus-plugin-hotjar`,\r\n );\r\n }\r\n\r\n const { applicationId } = hotjar;\r\n\r\n if (!applicationId) {\r\n throw new Error(\r\n 'You specified the `hotjar` object in `themeConfig` but the `applicationId` field was missing. ' +\r\n 'Please ensure this is not a mistake.',\r\n );\r\n }\r\n\r\n const isProd = process.env.NODE_ENV === 'production';\r\n\r\n return {\r\n name: 'docusaurus-plugin-hotjar',\r\n\r\n injectHtmlTags() {\r\n console.log(`[hotjar] applicationId = ${applicationId} isProd = ${isProd}`);\r\n if (!isProd) {\r\n return {};\r\n }\r\n\r\n return {\r\n headTags: [\r\n {\r\n tagName: 'script',\r\n innerHTML: `(function(h,o,t,j,a,r){\r\n h.hj=h.hj||function(){(h.hj.q=h.hj.q||[]).push(arguments)};\r\n h._hjSettings={hjid:${applicationId},hjsv:6};\r\n a=o.getElementsByTagName('head')[0];\r\n r=o.createElement('script');r.async=1;\r\n r.src=t+h._hjSettings.hjid+j+h._hjSettings.hjsv;\r\n a.appendChild(r);\r\n})(window,document,'https://static.hotjar.com/c/hotjar-','.js?sv=');`,\r\n },\r\n ],\r\n };\r\n },\r\n };\r\n}\r\n"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA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,CAAC,MAAM,CAAC,IAAI,EAAE,OAAO,CAAC,CAAC;SAChC,CAAC,CAAC;IACP,CAAC;AACL,CAAC;AAUD,MAAM,UAAU,YAAY,CAAC,OAAoB;IAC7C,MAAM,EAAE,UAAU,EAAE,GAAG,OAAO,CAAC;IAC/B,MAAM,EAAE,WAAW,EAAE,GAAG,UAAU,CAAC;IACnC,MAAM,EAAE,MAAM,EAAE,GAAG,WAA6C,CAAC;IAEjE,IAAI,CAAC,MAAM,EAAE,CAAC;QACV,MAAM,IAAI,KAAK,CACX,uHAAuH,CAC1H,CAAC;IACN,CAAC;IAED,MAAM,EAAE,aAAa,EAAE,GAAG,MAAM,CAAC;IAEjC,IAAI,CAAC,aAAa,EAAE,CAAC;QACjB,MAAM,IAAI,KAAK,CACX,gGAAgG;YAChG,sCAAsC,CACzC,CAAC;IACN,CAAC;IAED,MAAM,MAAM,GAAG,OAAO,CAAC,GAAG,CAAC,QAAQ,KAAK,YAAY,CAAC;IAErD,OAAO;QACH,IAAI,EAAE,0BAA0B;QAEhC,cAAc;YACV,OAAO,CAAC,GAAG,CAAC,4BAA4B,aAAa,aAAa,MAAM,EAAE,CAAC,CAAC;YAC5E,IAAI,CAAC,MAAM,EAAE,CAAC;gBACV,OAAO,EAAE,CAAC;YACd,CAAC;YAED,OAAO;gBACH,QAAQ,EAAE;oBACN;wBACI,OAAO,EAAE,QAAQ;wBACjB,SAAS,EAAE;;wBAEX,aAAa;;;;;qEAKgC;qBAChD;iBACJ;aACJ,CAAC;QACN,CAAC;KACJ,CAAC;AACN,CAAC"}
|
|
@@ -1,35 +1,8 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
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 docusaurus_plugins_exports = {};
|
|
17
|
-
module.exports = __toCommonJS(docusaurus_plugins_exports);
|
|
18
|
-
__reExport(docusaurus_plugins_exports, require("./logger"), module.exports);
|
|
19
|
-
__reExport(docusaurus_plugins_exports, require("./remarkYouTube"), module.exports);
|
|
20
|
-
__reExport(docusaurus_plugins_exports, require("./remarkScopedPath"), module.exports);
|
|
21
|
-
__reExport(docusaurus_plugins_exports, require("./remarkReplaceMetaUrl"), module.exports);
|
|
22
|
-
__reExport(docusaurus_plugins_exports, require("./remarkCodeSections"), module.exports);
|
|
23
|
-
__reExport(docusaurus_plugins_exports, require("./remarkYamlTable"), module.exports);
|
|
24
|
-
__reExport(docusaurus_plugins_exports, require("./timedPlugin"), module.exports);
|
|
25
|
-
// Annotate the CommonJS export names for ESM import in node:
|
|
26
|
-
0 && (module.exports = {
|
|
27
|
-
...require("./logger"),
|
|
28
|
-
...require("./remarkYouTube"),
|
|
29
|
-
...require("./remarkScopedPath"),
|
|
30
|
-
...require("./remarkReplaceMetaUrl"),
|
|
31
|
-
...require("./remarkCodeSections"),
|
|
32
|
-
...require("./remarkYamlTable"),
|
|
33
|
-
...require("./timedPlugin")
|
|
34
|
-
});
|
|
35
|
-
//# sourceMappingURL=index.js.map
|
|
1
|
+
export * from './logger';
|
|
2
|
+
export * from './remarkYouTube';
|
|
3
|
+
export * from './remarkScopedPath';
|
|
4
|
+
export * from './remarkReplaceMetaUrl';
|
|
5
|
+
export * from './remarkCodeSections';
|
|
6
|
+
export * from './remarkYamlTable';
|
|
7
|
+
export * from './timedPlugin';
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/docusaurus-plugins/index.ts"],
|
|
4
|
-
"sourcesContent": ["export * from './logger'\nexport * from './remarkYouTube';\nexport * from './remarkScopedPath';\nexport * from './remarkReplaceMetaUrl'\nexport * from './remarkCodeSections'\nexport * from './remarkYamlTable'\nexport * from './timedPlugin'"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;AAAA;AAAA;AAAA,uCAAc,qBAAd;AACA,uCAAc,4BADd;AAEA,uCAAc,+BAFd;AAGA,uCAAc,mCAHd;AAIA,uCAAc,iCAJd;AAKA,uCAAc,8BALd;AAMA,uCAAc,0BANd;",
|
|
6
|
-
"names": []
|
|
7
|
-
}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/docusaurus-plugins/index.ts"],"names":[],"mappings":"AAAA,cAAc,UAAU,CAAA;AACxB,cAAc,iBAAiB,CAAC;AAChC,cAAc,oBAAoB,CAAC;AACnC,cAAc,wBAAwB,CAAA;AACtC,cAAc,sBAAsB,CAAA;AACpC,cAAc,mBAAmB,CAAA;AACjC,cAAc,eAAe,CAAA"}
|
|
@@ -1,69 +1,41 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
var
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
var LogLevel = /* @__PURE__ */ ((LogLevel2) => {
|
|
29
|
-
LogLevel2[LogLevel2["Silent"] = 0] = "Silent";
|
|
30
|
-
LogLevel2[LogLevel2["Info"] = 1] = "Info";
|
|
31
|
-
LogLevel2[LogLevel2["Debug"] = 2] = "Debug";
|
|
32
|
-
return LogLevel2;
|
|
33
|
-
})(LogLevel || {});
|
|
34
|
-
const LOG = (0, import_path.join)(process.cwd(), "remark-plugins.log");
|
|
35
|
-
class Logger {
|
|
36
|
-
constructor(level, name) {
|
|
37
|
-
this.level = level;
|
|
38
|
-
this.name = name;
|
|
39
|
-
}
|
|
40
|
-
log(msg, level = 1 /* Info */) {
|
|
41
|
-
if (this.level === 0 /* Silent */) return;
|
|
42
|
-
if (level > this.level) return;
|
|
43
|
-
const text = String(msg);
|
|
44
|
-
if (!text.trim()) return;
|
|
45
|
-
const line = `[${this.name}] ${LogLevel[level]} ${text}`;
|
|
46
|
-
if (!(0, import_fs.existsSync)(LOG)) (0, import_fs.writeFileSync)(LOG, "");
|
|
47
|
-
(0, import_fs.appendFileSync)(LOG, `[${(/* @__PURE__ */ new Date()).toISOString()}] ${line}
|
|
48
|
-
`);
|
|
49
|
-
}
|
|
1
|
+
import { writeFileSync, appendFileSync, existsSync } from 'fs';
|
|
2
|
+
import { join } from 'path';
|
|
3
|
+
export var LogLevel;
|
|
4
|
+
(function (LogLevel) {
|
|
5
|
+
LogLevel[LogLevel["Silent"] = 0] = "Silent";
|
|
6
|
+
LogLevel[LogLevel["Info"] = 1] = "Info";
|
|
7
|
+
LogLevel[LogLevel["Debug"] = 2] = "Debug";
|
|
8
|
+
})(LogLevel || (LogLevel = {}));
|
|
9
|
+
const LOG = join(process.cwd(), 'remark-plugins.log');
|
|
10
|
+
export class Logger {
|
|
11
|
+
constructor(level, name) {
|
|
12
|
+
this.level = level;
|
|
13
|
+
this.name = name;
|
|
14
|
+
}
|
|
15
|
+
log(msg, level = LogLevel.Info) {
|
|
16
|
+
if (this.level === LogLevel.Silent)
|
|
17
|
+
return;
|
|
18
|
+
if (level > this.level)
|
|
19
|
+
return;
|
|
20
|
+
const text = String(msg);
|
|
21
|
+
if (!text.trim())
|
|
22
|
+
return;
|
|
23
|
+
const line = `[${this.name}] ${LogLevel[level]} ${text}`;
|
|
24
|
+
if (!existsSync(LOG))
|
|
25
|
+
writeFileSync(LOG, '');
|
|
26
|
+
appendFileSync(LOG, `[${new Date().toISOString()}] ${line}\n`);
|
|
27
|
+
}
|
|
50
28
|
}
|
|
51
|
-
function resolveLogLevel(val) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
29
|
+
export function resolveLogLevel(val) {
|
|
30
|
+
if (typeof val === "number" && LogLevel[val] !== undefined) {
|
|
31
|
+
return val;
|
|
32
|
+
}
|
|
33
|
+
if (typeof val === "string") {
|
|
34
|
+
const key = val[0].toUpperCase() + val.slice(1).toLowerCase();
|
|
35
|
+
if (key in LogLevel) {
|
|
36
|
+
return LogLevel[key];
|
|
37
|
+
}
|
|
59
38
|
}
|
|
60
|
-
|
|
61
|
-
return 0 /* Silent */;
|
|
39
|
+
return LogLevel.Silent;
|
|
62
40
|
}
|
|
63
|
-
|
|
64
|
-
0 && (module.exports = {
|
|
65
|
-
LogLevel,
|
|
66
|
-
Logger,
|
|
67
|
-
resolveLogLevel
|
|
68
|
-
});
|
|
69
|
-
//# sourceMappingURL=logger.js.map
|
|
41
|
+
//# sourceMappingURL=logger.js.map
|
|
@@ -1,7 +1 @@
|
|
|
1
|
-
{
|
|
2
|
-
"version": 3,
|
|
3
|
-
"sources": ["../../../src/docusaurus-plugins/logger.ts"],
|
|
4
|
-
"sourcesContent": ["import { writeFileSync, appendFileSync, existsSync } from 'fs'\r\nimport { join } from 'path'\r\n\r\nexport enum LogLevel {\r\n Silent = 0,\r\n Info = 1,\r\n Debug = 2,\r\n}\r\n\r\nconst LOG = join(process.cwd(), 'remark-plugins.log')\r\n\r\nexport class Logger {\r\n constructor(private level: LogLevel, private name: string) {}\r\n log(msg: unknown, level: LogLevel = LogLevel.Info) {\r\n if (this.level === LogLevel.Silent) return\r\n if (level > this.level) return\r\n\r\n const text = String(msg)\r\n if (!text.trim()) return\r\n\r\n const line = `[${this.name}] ${LogLevel[level]} ${text}`\r\n if (!existsSync(LOG)) writeFileSync(LOG, '')\r\n appendFileSync(LOG, `[${new Date().toISOString()}] ${line}\\n`)\r\n }\r\n}\r\n\r\nexport function resolveLogLevel(val: unknown): LogLevel {\r\n if (typeof val === \"number\" && LogLevel[val] !== undefined) {\r\n return val as LogLevel\r\n }\r\n if (typeof val === \"string\") {\r\n const key = val[0].toUpperCase() + val.slice(1).toLowerCase()\r\n if (key in LogLevel) {\r\n return LogLevel[key as keyof typeof LogLevel]\r\n }\r\n }\r\n return LogLevel.Silent\r\n}"],
|
|
5
|
-
"mappings": ";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,gBAA0D;AAC1D,kBAAqB;AAEd,IAAK,WAAL,kBAAKA,cAAL;AACH,EAAAA,oBAAA,YAAS,KAAT;AACA,EAAAA,oBAAA,UAAO,KAAP;AACA,EAAAA,oBAAA,WAAQ,KAAR;AAHQ,SAAAA;AAAA,GAAA;AAMZ,MAAM,UAAM,kBAAK,QAAQ,IAAI,GAAG,oBAAoB;AAE7C,MAAM,OAAO;AAAA,EAChB,YAAoB,OAAyB,MAAc;AAAvC;AAAyB;AAAA,EAAe;AAAA,EAC5D,IAAI,KAAc,QAAkB,cAAe;AAC/C,QAAI,KAAK,UAAU,eAAiB;AACpC,QAAI,QAAQ,KAAK,MAAO;AAExB,UAAM,OAAO,OAAO,GAAG;AACvB,QAAI,CAAC,KAAK,KAAK,EAAG;AAElB,UAAM,OAAO,IAAI,KAAK,IAAI,KAAK,SAAS,KAAK,CAAC,IAAI,IAAI;AACtD,QAAI,KAAC,sBAAW,GAAG,EAAG,8BAAc,KAAK,EAAE;AAC3C,kCAAe,KAAK,KAAI,oBAAI,KAAK,GAAE,YAAY,CAAC,KAAK,IAAI;AAAA,CAAI;AAAA,EACjE;AACJ;AAEO,SAAS,gBAAgB,KAAwB;AACpD,MAAI,OAAO,QAAQ,YAAY,SAAS,GA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