@netfoundry/docusaurus-shared 0.0.168
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/components/Alert/Alert.d.ts +8 -0
- package/dist/components/Alert/index.d.ts +2 -0
- package/dist/components/CodeBlock/CodeBlock.d.ts +9 -0
- package/dist/components/CodeBlock/index.d.ts +2 -0
- package/dist/components/Common/Common.d.ts +23 -0
- package/dist/components/Common/index.d.ts +1 -0
- package/dist/components/NetFoundry/Divider/Divider.d.ts +2 -0
- package/dist/components/NetFoundry/Divider/index.d.ts +1 -0
- package/dist/components/NetFoundry/index.d.ts +1 -0
- package/dist/components/NetFoundryFooter/NetFoundryFooter.d.ts +22 -0
- package/dist/components/NetFoundryFooter/index.d.ts +1 -0
- package/dist/components/NetFoundryHighlight/NetFoundryHighlight.d.ts +6 -0
- package/dist/components/NetFoundryHighlight/index.d.ts +2 -0
- package/dist/components/NetFoundryHorizontalSection/NetFoundryHorizontalSection.d.ts +8 -0
- package/dist/components/NetFoundryHorizontalSection/index.d.ts +2 -0
- package/dist/components/NetFoundryLayout/NetFoundryLayout.d.ts +29 -0
- package/dist/components/NetFoundryLayout/index.d.ts +1 -0
- package/dist/components/NetFoundryNavbarItems/NetFoundryNavbarItems.d.ts +9 -0
- package/dist/components/NetFoundryNavbarItems/index.d.ts +2 -0
- package/dist/components/OsTabs/OsTabs.d.ts +5 -0
- package/dist/components/OsTabs/index.d.ts +2 -0
- package/dist/components/StarUs/StarUs.d.ts +6 -0
- package/dist/components/StarUs/index.d.ts +2 -0
- package/dist/components/index.d.ts +11 -0
- package/dist/docusaurus-envhelper.d.ts +15 -0
- package/dist/docusaurus-plugins/index.d.ts +7 -0
- package/dist/docusaurus-plugins/logger.d.ts +12 -0
- package/dist/docusaurus-plugins/remarkCodeSections.d.ts +7 -0
- package/dist/docusaurus-plugins/remarkReplaceMetaUrl.d.ts +10 -0
- package/dist/docusaurus-plugins/remarkScopedPath.d.ts +12 -0
- package/dist/docusaurus-plugins/remarkYamlTable.d.ts +7 -0
- package/dist/docusaurus-plugins/remarkYouTube.d.ts +7 -0
- package/dist/docusaurus-plugins/timedPlugin.d.ts +5 -0
- package/dist/index.cjs +8 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.css +1 -0
- package/dist/index.d.ts +1 -0
- package/dist/index.esm.js +6 -0
- package/dist/index.esm.js.map +1 -0
- package/dist/node.cjs +80 -0
- package/dist/node.cjs.map +1 -0
- package/dist/node.d.ts +1 -0
- package/dist/node.esm.js +68 -0
- package/dist/node.esm.js.map +1 -0
- package/dist/plugins.cjs +4643 -0
- package/dist/plugins.cjs.map +1 -0
- package/dist/plugins.d.ts +1 -0
- package/dist/plugins.esm.js +4634 -0
- package/dist/plugins.esm.js.map +1 -0
- package/dist/ui.cjs +1312 -0
- package/dist/ui.cjs.map +1 -0
- package/dist/ui.d.ts +2 -0
- package/dist/ui.esm.js +1284 -0
- package/dist/ui.esm.js.map +1 -0
- package/dist/version.cjs +6 -0
- package/dist/version.cjs.map +1 -0
- package/dist/version.d.ts +1 -0
- package/dist/version.esm.js +4 -0
- package/dist/version.esm.js.map +1 -0
- package/package.json +82 -0
- package/src/components/Alert/Alert.module.css +39 -0
- package/src/components/Alert/Alert.tsx +24 -0
- package/src/components/Alert/index.ts +2 -0
- package/src/components/CodeBlock/CodeBlock.module.css +27 -0
- package/src/components/CodeBlock/CodeBlock.tsx +32 -0
- package/src/components/CodeBlock/index.ts +2 -0
- package/src/components/Common/Common.module.css +0 -0
- package/src/components/Common/Common.tsx +53 -0
- package/src/components/Common/index.ts +1 -0
- package/src/components/NetFoundry/Divider/Divider.module.css +23 -0
- package/src/components/NetFoundry/Divider/Divider.tsx +20 -0
- package/src/components/NetFoundry/Divider/index.ts +1 -0
- package/src/components/NetFoundry/index.ts +1 -0
- package/src/components/NetFoundryFooter/NetFoundryFooter.tsx +164 -0
- package/src/components/NetFoundryFooter/index.ts +1 -0
- package/src/components/NetFoundryFooter/styles.module.css +99 -0
- package/src/components/NetFoundryHighlight/NetFoundryHighlight.tsx +15 -0
- package/src/components/NetFoundryHighlight/index.ts +2 -0
- package/src/components/NetFoundryHighlight/styles.module.css +26 -0
- package/src/components/NetFoundryHorizontalSection/NetFoundryHorizontalSection.tsx +23 -0
- package/src/components/NetFoundryHorizontalSection/index.ts +2 -0
- package/src/components/NetFoundryHorizontalSection/styles.module.css +23 -0
- package/src/components/NetFoundryLayout/NetFoundryLayout.module.css +6 -0
- package/src/components/NetFoundryLayout/NetFoundryLayout.tsx +110 -0
- package/src/components/NetFoundryLayout/index.ts +1 -0
- package/src/components/NetFoundryNavbarItems/NetFoundryNavbarItems.tsx +22 -0
- package/src/components/NetFoundryNavbarItems/index.ts +2 -0
- package/src/components/OsTabs/OsTabs.tsx +30 -0
- package/src/components/OsTabs/index.ts +2 -0
- package/src/components/StarUs/StarUs.tsx +19 -0
- package/src/components/StarUs/index.ts +2 -0
- package/src/components/StarUs/styles.module.css +6 -0
- package/src/components/index.ts +11 -0
- package/src/css/layout.css +14 -0
- package/src/css/legacy.css +2348 -0
- package/src/css/vars-dark.css +7 -0
- package/src/css/vars.css +8 -0
- package/src/docusaurus-envhelper.ts +105 -0
- package/src/docusaurus-plugins/index.ts +7 -0
- package/src/docusaurus-plugins/logger.ts +38 -0
- package/src/docusaurus-plugins/remarkCodeSections.ts +115 -0
- package/src/docusaurus-plugins/remarkReplaceMetaUrl.ts +35 -0
- package/src/docusaurus-plugins/remarkScopedPath.ts +70 -0
- package/src/docusaurus-plugins/remarkYamlTable.ts +83 -0
- package/src/docusaurus-plugins/remarkYouTube.ts +56 -0
- package/src/docusaurus-plugins/timedPlugin.ts +22 -0
- package/src/global.d.ts +1 -0
- package/src/index.ts +3 -0
- package/src/node.ts +1 -0
- package/src/plugins.ts +1 -0
- package/src/ui.ts +2 -0
- package/src/version.ts +1 -0
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import React, {useState, useEffect, ReactNode, JSX} from 'react';
|
|
2
|
+
import OriginalTabs from '@theme/Tabs';
|
|
3
|
+
import { osName } from 'react-device-detect';
|
|
4
|
+
import type { ComponentProps } from 'react';
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
export type OsTabsProps = ComponentProps<typeof OriginalTabs>;
|
|
8
|
+
|
|
9
|
+
export function OsTabs(props: OsTabsProps): JSX.Element {
|
|
10
|
+
const [defaultValue, setDefaultValue] = useState<string | null>(null);
|
|
11
|
+
|
|
12
|
+
useEffect(() => {
|
|
13
|
+
const tabs = ['iOS', 'Android', 'Mac OS', 'Windows', 'Linux'];
|
|
14
|
+
if (tabs.includes(osName)) {
|
|
15
|
+
setDefaultValue(osName);
|
|
16
|
+
} else {
|
|
17
|
+
setDefaultValue('Windows');
|
|
18
|
+
}
|
|
19
|
+
}, []);
|
|
20
|
+
|
|
21
|
+
return (
|
|
22
|
+
<>
|
|
23
|
+
<OriginalTabs {...props} defaultValue={defaultValue}>
|
|
24
|
+
{props.children}
|
|
25
|
+
</OriginalTabs>
|
|
26
|
+
{/* Uncomment the following line to debug the detected and selected values */}
|
|
27
|
+
{/* <h2>detected={osName}, selected={defaultValue}</h2> */}
|
|
28
|
+
</>
|
|
29
|
+
);
|
|
30
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import React, {ReactNode} from 'react';
|
|
2
|
+
import styles from './styles.module.css';
|
|
3
|
+
import GitHubButton from 'react-github-btn';
|
|
4
|
+
|
|
5
|
+
export type StarUsProps = {
|
|
6
|
+
repoUrl?: string;
|
|
7
|
+
label?: string;
|
|
8
|
+
};
|
|
9
|
+
|
|
10
|
+
export default function StarUs({repoUrl = '', label = ''}: StarUsProps): ReactNode {
|
|
11
|
+
return (
|
|
12
|
+
<div className={styles.starUsRoot}>
|
|
13
|
+
<span style={{color: "whitesmoke"}}>{label} </span>
|
|
14
|
+
<span style={{height: "20px"}}>
|
|
15
|
+
<GitHubButton href={repoUrl} data-icon="octicon-star" data-show-count="true" aria-label="Star buttons/github-buttons on GitHub">Star</GitHubButton>
|
|
16
|
+
</span>
|
|
17
|
+
</div>
|
|
18
|
+
);
|
|
19
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
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';
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
html,
|
|
2
|
+
body,
|
|
3
|
+
#__docusaurus {
|
|
4
|
+
height: 100%;
|
|
5
|
+
width: 100%;
|
|
6
|
+
display: flex;
|
|
7
|
+
flex-direction: column;
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
.main-wrapper > div {
|
|
11
|
+
/* work around issue from docusaurus doc grow/shrinking based on content */
|
|
12
|
+
width: 100%;
|
|
13
|
+
max-width: var(--ziti-max-width);
|
|
14
|
+
}
|