Skip to content

Commit

Permalink
feat(websites): add framework option to Boilerplate docs in platform …
Browse files Browse the repository at this point in the history
…website #9225 (#9226)
  • Loading branch information
ysmoradi authored Nov 13, 2024
1 parent b99b918 commit db4a34a
Show file tree
Hide file tree
Showing 6 changed files with 227 additions and 181 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,28 +36,45 @@
<BitText Typography="BitTypography.Body1" Gutter>
Blazor is supported in the browsers shown in the following list on both mobile and desktop platforms.
</BitText>
<br />
<b>.NET 8</b>
<ul dir="auto">
<li>Apple Safari (Current† version)</li>
<li>Google Chrome (Current† version)</li>
<li>Microsoft Edge (Current† version)</li>
<li>Mozilla Firefox (Current† version)</li>
<li>Safari 15+</li>
<li>Firefox 100+</li>
<li>Chrome/Edge 95+</li>
</ul>
<br />
<b>.NET 9</b>
<ul dir="auto">
<li>Safari 16.4+</li>
<li>Firefox 100+</li>
<li>Chrome/Edge 95+</li>
</ul>
</li>
</ul>
</div>
<br />
<BitText Typography="BitTypography.H6" Gutter>Supported platforms</BitText>
<div class="section-card-txt">
<ul>
<li>
<BitText Typography="BitTypography.Body1" Gutter>
Blazor Hybrid apps have the following additional platform requirements:
</BitText>
<br />
<b>.NET 8</b>
<ul dir="auto">
<li>iOS 15+</li>
<li>Windows 7 SP1+</li>
<li>macOS (Monterey) 12+</li>
<li>Android 8+ & <a href="https://play.google.com/store/apps/details?id=com.google.android.webview" target="_blank">WebView</a> 84+</li>
</ul>
<br />
<b>.NET 9</b>
<ul dir="auto">
<li>Android 8 (API Level 26) or higher</li>
<li>iOS 15 or higher</li>
<li>macOS 12 (Monterey) or higher</li>
<li>Windows 7 SP1 or higher</li>
<li>iOS 16.4+</li>
<li>Windows 7 SP1+</li>
<li>macOS (Ventura) 13.3+</li>
<li>Android 8+ & <a href="https://play.google.com/store/apps/details?id=com.google.android.webview" target="_blank">WebView</a> 94+</li>
</ul>
</li>
</ul>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,13 @@
<section class="section-card">
<div class="section-card-txt">
<BitText Typography="BitTypography.H5" Gutter>Setup your development environment</BitText>
<BitDropdown @bind-Value="dotnetVersion"
FitWidth
Label=".NET version"
TItem="BitDropdownOption<string>" TValue="string">
<BitDropdownOption Text=".NET 8" Value="@("net8.0")" />
<BitDropdownOption Text=".NET 9" Value="@("net9.0")" />
</BitDropdown>
<br />
<BitPivot>
<BitPivotItem HeaderText="Easy setup">
Expand Down Expand Up @@ -83,36 +90,47 @@
</BitPivotItem>
<BitPivotItem HeaderText="Step-by-step setup">
<br />
<BitText Typography="BitTypography.H6" Gutter>
Step-by-step instructions for:
</BitText>
<BitStack Horizontal HorizontalAlign="BitAlignment.Start">
<BitText Typography="BitTypography.H6" Gutter>
Step-by-step instructions for
</BitText>
<BitPivot HeadersOnly="true" OnItemClick="@(item => devOS = item?.Key)">
<BitPivot HeaderOnly OnItemClick="@(item => devOS = item?.Key)">

Check warning on line 97 in src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates03GettingStartedPage.razor

View workflow job for this annotation

GitHub Actions / build api + blazor web

Possible null reference assignment.
<BitPivotItem HeaderText="Windows" Key="Windows"></BitPivotItem>
<BitPivotItem HeaderText="macOS" Key="macOS"></BitPivotItem>
<BitPivotItem HeaderText="Linux" Key="Linux"></BitPivotItem>
</BitPivot>
</BitStack>
<br /><br />
<BitToggle IsInlineLabel Label="Show cross-platform development steps" @bind-Value="showCrossPlatform" />
<br />
<BitToggle Inline Label="Show cross-platform development steps" @bind-Value="showCrossPlatform" />
<ol>
<li style="margin-bottom:8px">
Install latest <a href="https://dotnet.microsoft.com/en-us/download/dotnet/8.0" target="_blank">.NET 8 SDK</a>
Install latest <a href="https://dotnet.microsoft.com/en-us/download/dotnet/@(dotnetVersion is "net9.0" ? "9.0" : "8.0")" target="_blank">.NET SDK</a>
@if (devOS is "Linux")
{
<BitAccordion Title=".NET 8 Sdk on Linux instructions">
<div>To install .NET 8 SDK on Linux(Ubuntu) run the following commands:</div>
<CodeBox>wget https://download.visualstudio.microsoft.com/download/pr/ca6cd525-677e-4d3a-b66c-11348a6f920a/ec395f498f89d0ca4d67d903892af82d/dotnet-sdk-8.0.403-linux-x64.tar.gz -O $HOME/dotnet.tar.gz
<br />
<BitAccordion Title=".NET Sdk on Linux instructions">
<div>To install .NET SDK on Linux(Ubuntu) run the following commands:</div>
@if (dotnetVersion is "net9.0")
{
<CodeBox>wget https://download.visualstudio.microsoft.com/download/pr/308f16a9-2ecf-4a42-b8bb-c1233de985fd/be6e87045ab21935bd8bb98ce69026c4/dotnet-sdk-9.0.100-linux-x64.tar.gz -O $HOME/dotnet.tar.gz
mkdir -p $HOME/.dotnet
tar zxf $HOME/dotnet.tar.gz -C "$HOME/.dotnet"
echo 'PATH=$HOME/.dotnet:$HOME/.dotnet/tools:$PATH' >> ~/.bashrc
export PATH=$HOME/.dotnet:$HOME/.dotnet/tools:$PATH
rm $HOME/dotnet.tar.gz</CodeBox>
}
else
{
<CodeBox>wget https://download.visualstudio.microsoft.com/download/pr/4e3b04aa-c015-4e06-a42e-05f9f3c54ed2/74d1bb68e330eea13ecfc47f7cf9aeb7/dotnet-sdk-8.0.404-linux-x64.tar.gz -O $HOME/dotnet.tar.gz
mkdir -p $HOME/.dotnet
tar zxf $HOME/dotnet.tar.gz -C "$HOME/.dotnet"
echo 'PATH=$HOME/.dotnet:$HOME/.dotnet/tools:$PATH' >> ~/.bashrc
export PATH=$HOME/.dotnet:$HOME/.dotnet/tools:$PATH
rm $HOME/dotnet.tar.gz</CodeBox>
}
</BitAccordion>
}
</li>
<br />
<li>Install <a href="@( devOS is "Windows" ? "https://nodejs.org/en/download/prebuilt-installer" : "https://nodejs.org/en/download/package-manager")" title="Node.js" rel="nofollow">Node.js</a></li>
<br />
<li>
Expand Down Expand Up @@ -199,7 +217,7 @@ rm $HOME/dotnet.tar.gz</CodeBox>
<div class="section-card-txt">
<ul>
<li>
<a href="https://visualstudio.microsoft.com/downloads/" target="_blank">Microsoft Visual Studio</a> 2022 - Version 17.11 or higher
<a href="https://visualstudio.microsoft.com/downloads/" target="_blank">Microsoft Visual Studio</a> 2022 - Version 17.12 or higher
<ul dir="auto">
<li>
Workloads:
Expand Down
Loading

0 comments on commit db4a34a

Please sign in to comment.