Skip to content

Commit

Permalink
Remove --windows parameter of the Boilerplate from platform website d…
Browse files Browse the repository at this point in the history
…ocs (#9866)
  • Loading branch information
ysmoradi committed Feb 12, 2025
1 parent 4fcf1a9 commit 987be1f
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 24 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -341,19 +341,6 @@
Integrating Cloudflare and placing your backend behind the Cloudflare CDN will significantly enhance the app's performance while reducing server load.
</BitGridItem>

<BitGridItem Class="grid-item md">
<div class="row">
<BitText Typography="BitTypography.H6" Gutter>Windows</BitText>
<BitToggle @bind-Value="windows.Value" OnText="true" OffText="false" />
</div>
<br />
<CodeBox>
@GetWindowsCommand()
</CodeBox>
If you set the windows parameter to false, the Maui project will still be created,
but no separate Windows application will be included.
</BitGridItem>

</BitGrid>
<br />
<br />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@ public partial class Templates05CreateProjectPage
{
private string name = "MyFirstProject";

private Parameter<bool> windows = new() { Value = true, Default = true };
private Parameter<bool> cloudflare = new() { Value = true, Default = true };
private Parameter<bool> sample = new() { Value = false, Default = false };
private Parameter<bool> sentry = new() { Value = false, Default = false };
Expand Down Expand Up @@ -127,11 +126,6 @@ private string GetFinalCommand()
finalCommand.Append(GetModuleCommand());
}

if (windows.IsModified)
{
finalCommand.Append(GetWindowsCommand());
}

if (cloudflare.IsModified)
{
finalCommand.Append(GetCloudflareCommand());
Expand Down Expand Up @@ -205,11 +199,6 @@ private string GetModuleCommand()
return $"--module {module.Value} ";
}

private string GetWindowsCommand()
{
return $"--windows{(windows.Value ? string.Empty : " false")} ";
}

private string GetCloudflareCommand()
{
return $"--cloudflare{(cloudflare.Value ? string.Empty : " false")} ";
Expand Down

0 comments on commit 987be1f

Please sign in to comment.