Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove windows parameter from Boilerplate docs in platform website (#9866) #9873

Merged
merged 1 commit into from
Feb 12, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading