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

Integrate commercial pages into Blazorise web #4923

Merged
merged 12 commits into from
Aug 12, 2023
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
19 changes: 19 additions & 0 deletions Documentation/Blazorise.Docs.Server/Infrastructure/EmailOptions.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
using Blazorise.Docs.Core;

namespace Blazorise.Docs.Server.Infrastructure;

public class EmailOptions : IEmailOptions
{
public string SmtpServer { get; set; }
public int SmtpPort { get; set; }
public string SmtpUsername { get; set; }
public string SmtpPassword { get; set; }
public bool SmtpUseSSL { get; set; }

public string FromName { get; set; }
public string FromAddress { get; set; }
public string ReplyToAddress { get; set; }

public string ThemeReviewName { get; set; }
public string ThemeReviewAddress { get; set; }
}
5 changes: 5 additions & 0 deletions Documentation/Blazorise.Docs.Server/Pages/_Layout.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,11 @@
<script src="https://cdn.jsdelivr.net/npm/[email protected]"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/tocbot/4.11.1/tocbot.min.js"></script>

<script src="https://cdn.paddle.com/paddle/paddle.js"></script>
<script type="text/javascript">
Paddle.Setup({ vendor: 130780 });
</script>

<script src="_content/Blazorise.Animate/blazorise.animate.js?v=1.3.0.0"></script>
<script src="_content/Blazorise.Docs/blazorise.docs.min.js?v=1.3.0.0"></script>
<script src="_framework/blazor.server.js" autostart="false"></script>
Expand Down
7 changes: 7 additions & 0 deletions Documentation/Blazorise.Docs.Server/Startup.cs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
using System;
using System.IO.Compression;
using Blazorise.Bootstrap5;
using Blazorise.Docs.Core;
using Blazorise.Docs.Server.Infrastructure;
using Blazorise.Docs.Services;
using Blazorise.FluentValidation;
using Blazorise.Icons.FontAwesome;
using Blazorise.RichTextEdit;
Expand Down Expand Up @@ -56,6 +58,11 @@ public void ConfigureServices( IServiceCollection services )
services.AddScoped<Shared.Data.CountryData>();
services.AddScoped<Shared.Data.PageEntryData>();

var emailOptions = Configuration.GetSection( "Email" ).Get<EmailOptions>();
services.AddSingleton<IEmailOptions>( serviceProvider => emailOptions );

services.AddSingleton<EmailSender>();

services.AddResponseCompression( options =>
{
options.EnableForHttps = true;
Expand Down
12 changes: 12 additions & 0 deletions Documentation/Blazorise.Docs.Server/appsettings.json
Original file line number Diff line number Diff line change
Expand Up @@ -13,5 +13,17 @@
"SendGrid": {
"ApiKey": "SECRET_KEY",
"ListId": "SECRET_ID"
},
"Email": {
"SmtpServer": "",
"SmtpPort": 465,
"SmtpUseSSL": true,
"SmtpUsername": "apikey",
"SmtpPassword": "",
"FromName": "Blazorise Commercial",
"FromAddress": "[email protected]",
"ReplyToAddress": "[email protected]",
"ThemeReviewName": "Blazorise Commercial",
"ThemeReviewAddress": "[email protected]"
}
}
Binary file not shown.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading