Push Notification (Native and Web Push)
diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor.cs b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor.cs
index f5867c7114..e1bdd7412f 100644
--- a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor.cs
+++ b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor.cs
@@ -6,57 +6,41 @@ public partial class Templates05CreateProjectPage
{
private string name = "MyFirstProject";
- private Parameter windows = new()
- {
- Value = true,
- Default = true,
- };
-
- private Parameter appCenter = new()
- {
- Value = false,
- Default = false,
- };
-
- private Parameter offlineDb = new()
- {
- Value = false,
- Default = false,
- };
-
- private Parameter notification = new()
- {
- Value = false,
- Default = false,
- };
-
- private Parameter appInsight = new()
- {
- Value = false,
- Default = false,
- };
-
- private Parameter signalR = new()
- {
- Value = false,
- Default = false,
- };
+ private Parameter windows = new() { Value = true, Default = true };
+ private Parameter appCenter = new() { Value = false, Default = false };
+ private Parameter offlineDb = new() { Value = false, Default = false };
+ private Parameter notification = new() { Value = false, Default = false };
+ private Parameter appInsight = new() { Value = false, Default = false };
+ private Parameter signalR = new() { Value = false, Default = false };
private Parameter captcha = new()
{
Value = "None",
Default = "None",
- Items = [
+ Items =
+ [
new() { Text = "None", Value = "None" },
new() { Text = "reCaptcha", Value = "reCaptcha" },
]
};
+ private Parameter dotnetVersion = new()
+ {
+ Value = "net9.0",
+ Default = "net9.0",
+ Items =
+ [
+ new() { Text = ".NET 8", Value = "net8.0" },
+ new() { Text = ".NET 9", Value = "net9.0" },
+ ]
+ };
+
private Parameter pipeline = new()
{
Value = "GitHub",
Default = "GitHub",
- Items = [
+ Items =
+ [
new() { Text = "None", Value = "None" },
new() { Text = "GitHub", Value = "GitHub" },
new() { Text = "Azure", Value = "Azure" },
@@ -67,7 +51,8 @@ public partial class Templates05CreateProjectPage
{
Value = "None",
Default = "None",
- Items = [
+ Items =
+ [
new() { Text = "None", Value = "None" },
new() { Text = "Admin", Value = "Admin" },
new() { Text = "Todo", Value = "Todo" },
@@ -78,7 +63,8 @@ public partial class Templates05CreateProjectPage
{
Value = "Sqlite",
Default = "Sqlite",
- Items = [
+ Items =
+ [
new() { Text = "Sqlite", Value = "Sqlite" },
new() { Text = "SqlServer", Value = "SqlServer" },
new() { Text = "PostgreSQL", Value = "PostgreSQL" },
@@ -92,7 +78,8 @@ public partial class Templates05CreateProjectPage
{
Value = "Local",
Default = "Local",
- Items = [
+ Items =
+ [
new() { Text = "Local", Value = "Local" },
new() { Text = "AzureBlobStorage", Value = "AzureBlobStorage" },
new() { Text = "Other", Value = "Other" },
@@ -103,7 +90,8 @@ public partial class Templates05CreateProjectPage
{
Value = "Integrated",
Default = "Integrated",
- Items = [
+ Items =
+ [
new() { Text = "Integrated", Value = "Integrated" },
new() { Text = "Standalone", Value = "Standalone" },
]
@@ -118,6 +106,11 @@ private string GetFinalCommand()
finalCommand.Append(GetCaptchaCommand());
}
+ if (dotnetVersion.IsModified)
+ {
+ finalCommand.Append(GetDotNetVersionCommand());
+ }
+
if (pipeline.IsModified)
{
finalCommand.Append(GetPipelineCommand());
@@ -186,6 +179,11 @@ private string GetCaptchaCommand()
return $"--captcha {captcha.Value} ";
}
+ private string GetDotNetVersionCommand()
+ {
+ return $"--framework {dotnetVersion.Value} ";
+ }
+
private string GetPipelineCommand()
{
return $"--pipeline {pipeline.Value} ";
diff --git a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor.scss b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor.scss
index efc3843eff..f001d8dca3 100644
--- a/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor.scss
+++ b/src/Websites/Platform/src/Bit.Websites.Platform.Client/Pages/Templates/Templates05CreateProjectPage.razor.scss
@@ -62,9 +62,9 @@
}
.grid-item {
- width: rem2(550px);
- min-height: rem2(400px);
overflow: auto;
+ width: rem2(550px);
+ min-height: 21rem;
position: relative;
padding: rem2(28px);
word-wrap: break-word;
@@ -72,5 +72,33 @@
background-clip: padding-box;
box-shadow: $bit-box-shadow-callout;
background-color: $bit-color-background-primary;
+
+ &.md {
+ min-height: 24rem;
+ }
+
+ &.lg {
+ min-height: 28rem;
+ }
+
+ @include lt-xl {
+ &.md {
+ min-height: 27rem;
+ }
+
+ &.lg {
+ min-height: 33rem;
+ }
+ }
+
+ @include lt-lg {
+ &.md {
+ min-height: 30rem;
+ }
+
+ &.lg {
+ min-height: 37rem;
+ }
+ }
}
}