diff --git a/website/content/sdk/guides/intros/stocks/fundamental-analysis.md b/website/content/sdk/guides/intros/stocks/fundamental-analysis.md index 9a852187bf51..9cd22f6dffce 100644 --- a/website/content/sdk/guides/intros/stocks/fundamental-analysis.md +++ b/website/content/sdk/guides/intros/stocks/fundamental-analysis.md @@ -284,7 +284,7 @@ openbb.stocks.fa.cash(symbol = 'COST') | Other non-cash items | 453000000 | 453000000 | 371000000 | 236000000 | 9000000 | | Net cash provided by operating activities | 7392000000 | 7392000000 | 8958000000 | 8861000000 | 6356000000 | | Investments in property, plant and equipment | -3891000000 | -3891000000 | -3588000000 | -2810000000 | -2998000000 | -| Acquisitions, net | 0 | 0 | 0 | -1163000000 | | +| Acquisitions, net | 0 | 0 | 0 | -1163000000 | `` | | Purchases of investments | -1121000000 | -1121000000 | -1331000000 | -1626000000 | -1094000000 | | Sales/maturities of investments | 1145000000 | 1145000000 | 1446000000 | 1678000000 | 1231000000 | | Other investing activities | -48000000 | -48000000 | -62000000 | 30000000 | -4000000 | @@ -322,7 +322,7 @@ openbb.stocks.fa.income('COST') | Other non-cash items | 453000000 | 453000000 | 371000000 | 236000000 | 9000000 | | Net cash provided by operating activities | 7392000000 | 7392000000 | 8958000000 | 8861000000 | 6356000000 | | Investments in property, plant and equipment | -3891000000 | -3891000000 | -3588000000 | -2810000000 | -2998000000 | -| Acquisitions, net | 0 | 0 | 0 | -1163000000 | | +| Acquisitions, net | 0 | 0 | 0 | -1163000000 | `` | | Purchases of investments | -1121000000 | -1121000000 | -1331000000 | -1626000000 | -1094000000 | | Sales/maturities of investments | 1145000000 | 1145000000 | 1446000000 | 1678000000 | 1231000000 | | Other investing activities | -48000000 | -48000000 | -62000000 | 30000000 | -4000000 | diff --git a/website/content/sdk/showcase.md b/website/content/sdk/showcase.md index a70aac8e260c..244cde395272 100644 --- a/website/content/sdk/showcase.md +++ b/website/content/sdk/showcase.md @@ -12,12 +12,12 @@ This page contains a list of projects that use the OpenBB SDK. If you have a pro +title="AI1 Crypto" +description="AI1 Crypto is a cryptocurrency dashboard that allows you get an overview of the current state of the cryptocurrency market." +url="https://ai1crypto.vercel.app/"> +src="https://ai1crypto.vercel.app/" title="AI1 Crypto"> --- diff --git a/website/src/theme/Tabs/index.js b/website/src/theme/Tabs/index.js index 033d7cd3b3d4..eaae1735a0e0 100644 --- a/website/src/theme/Tabs/index.js +++ b/website/src/theme/Tabs/index.js @@ -13,11 +13,10 @@ function getQueryVariable(query, variable) { // substring query const vars = query.substring(1).split('&'); for (let i = 0; i < vars.length; i++) { - let pair = vars[i].split('='); - console.log(decodeURIComponent(pair[0]), variable) - if (decodeURIComponent(pair[0]) == variable) { - return decodeURIComponent(pair[1]); - } + let pair = vars[i].split('='); + if (decodeURIComponent(pair[0]) == variable) { + return decodeURIComponent(pair[1]); + } } return null; } @@ -27,6 +26,34 @@ function getQueryVariable(query, variable) { function isTabItem(comp) { return 'value' in comp.props; } + +function getOSName() { + const userAgent = navigator.userAgent; + if (userAgent.indexOf('Windows') > -1) { + return 'Windows'; + } else if (userAgent.indexOf('Mac') > -1) { + return 'Mac'; + } else if (userAgent.indexOf('X11') > -1) { + return 'UNIX'; + } else if (userAgent.indexOf('Linux') > -1) { + return 'Linux'; + } else { + return 'Other'; + } +} + +function getInstallationTabType() { + const osName = getOSName(); + if (osName === 'Windows') { + return 'windows'; + } else if (osName === 'Mac') { + return 'mac'; + } else if(osName === 'Linux' || osName === 'UNIX') { + return 'python'; + } + return 'windows'; +} + function TabsComponent(props) { const { lazy, @@ -82,10 +109,11 @@ function TabsComponent(props) { ); } const { tabGroupChoices, setTabGroupChoices } = useTabGroupChoice(); - + const { pathname, search } = useLocation() const value = getQueryVariable(search, 'tab') - const [selectedValue, setSelectedValue] = useState(value ? value : defaultValue); + const osTabValue = getInstallationTabType() + const [selectedValue, setSelectedValue] = useState(pathname.startsWith("/terminal/quickstart/installation") ? value ? ['mac', 'windows', 'python', 'docker'].includes(value) ? value : osTabValue : osTabValue : defaultValue); const tabRefs = []; const { blockElementScrollPositionUntilNextRender } = useScrollPositionBlocker(); diff --git a/website/yarn.lock b/website/yarn.lock index c713be5466e4..302e6e7ba3ca 100644 --- a/website/yarn.lock +++ b/website/yarn.lock @@ -1390,7 +1390,7 @@ "fs-extra" "^10.1.0" "lodash" "^4.17.21" "tslib" "^2.4.0" - + "@docusaurus/plugin-content-blog@2.2.0": "integrity" "sha512-0mWBinEh0a5J2+8ZJXJXbrCk1tSTNf7Nm4tYAl5h2/xx+PvH/Bnu0V+7mMljYm/1QlDYALNIIaT/JcoZQFUN3w==" "resolved" "https://registry.npmjs.org/@docusaurus/plugin-content-blog/-/plugin-content-blog-2.2.0.tgz" @@ -4299,11 +4299,6 @@ "resolved" "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz" "version" "1.0.0" -"fsevents@~2.3.2": - "integrity" "sha512-xiqMQR4xAeHTuB9uWm+fFRcIOgKBMiOBP+eXiyT7jsgVCq1bkVygt00oASowB7EdtpOHaaPgKt812P9ab+DDKA==" - "resolved" "https://registry.npmjs.org/fsevents/-/fsevents-2.3.2.tgz" - "version" "2.3.2" - "function-bind@^1.1.1": "integrity" "sha512-yIovAzMX49sF8Yl58fSCWJ5svSLuaibPxXQJFLmBObTuCr0Mf1KiPopGM9NiFjiYBCbfaa2Fh6breQ6ANVTI0A==" "resolved" "https://registry.npmjs.org/function-bind/-/function-bind-1.1.1.tgz"