Skip to content

Commit

Permalink
Merge pull request #797 from EdiWang/master
Browse files Browse the repository at this point in the history
Patch v14.4.1
  • Loading branch information
EdiWang committed May 15, 2024
2 parents 786be8f + 50ad889 commit edc8614
Show file tree
Hide file tree
Showing 17 changed files with 25 additions and 46 deletions.
6 changes: 3 additions & 3 deletions src/Directory.Build.props
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<Authors>Edi Wang</Authors>
<Company>edi.wang</Company>
<Copyright>(C) 2024 edi.wang@outlook.com</Copyright>
<AssemblyVersion>14.4.0.0</AssemblyVersion>
<FileVersion>14.4.0.0</FileVersion>
<Version>14.4.0</Version>
<AssemblyVersion>14.4.1.0</AssemblyVersion>
<FileVersion>14.4.1.0</FileVersion>
<Version>14.4.1</Version>
</PropertyGroup>
</Project>
4 changes: 1 addition & 3 deletions src/Moonglade.Configuration/BlogConfig.cs
Original file line number Diff line number Diff line change
@@ -1,9 +1,7 @@

namespace Moonglade.Configuration;

public interface IBlogSettings
{
}
public interface IBlogSettings;

public interface IBlogConfig
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.2" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.4" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Moonglade.Data\Moonglade.Data.csproj" />
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
<Nullable>enable</Nullable>
</PropertyGroup>
<ItemGroup>
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.SqlServer" Version="8.0.5" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Moonglade.Data\Moonglade.Data.csproj" />
Expand Down
5 changes: 4 additions & 1 deletion src/Moonglade.Data/Moonglade.Data.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,9 @@
<PackageReference Include="Ardalis.Specification" Version="8.0.0" />
<PackageReference Include="Ardalis.Specification.EntityFrameworkCore" Version="8.0.0" />
<PackageReference Include="MediatR" Version="12.2.0" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Proxies" Version="8.0.4" />
<PackageReference Include="Microsoft.EntityFrameworkCore.Proxies" Version="8.0.5" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Moonglade.Utils\Moonglade.Utils.csproj" />
</ItemGroup>
</Project>
6 changes: 5 additions & 1 deletion src/Moonglade.Data/Seed.cs
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
using Microsoft.Extensions.Logging;
using Moonglade.Data.Entities;
using Moonglade.Utils;

namespace Moonglade.Data;

Expand Down Expand Up @@ -46,12 +47,15 @@ public static async Task SeedAsync(BlogDbContext dbContext, ILogger logger, int
LastModifiedUtc = DateTime.UtcNow,
PubDateUtc = DateTime.UtcNow,
ContentLanguageCode = "en-us",
HashCheckSum = -1688639577,
IsOriginal = true,
Tags = dbContext.Tag.ToList(),
PostCategory = dbContext.PostCategory.ToList()
};

var input = $"{post.Slug}#{post.PubDateUtc.GetValueOrDefault():yyyyMMdd}";
var checkSum = Helper.ComputeCheckSum(input);
post.HashCheckSum = checkSum;

await dbContext.Post.AddAsync(post);

await dbContext.SaveChangesAsync();
Expand Down
2 changes: 1 addition & 1 deletion src/Moonglade.Data/Specifications/BlogConfigurationSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Moonglade.Data.Specifications;

public class BlogConfigurationSpec : SingleResultSpecification<BlogConfigurationEntity>
public sealed class BlogConfigurationSpec : SingleResultSpecification<BlogConfigurationEntity>
{
public BlogConfigurationSpec(string cfgKey)
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Moonglade.Data.Specifications;

public class BlogThemeForIdNameSpec : Specification<BlogThemeEntity, ThemeSegment>
public sealed class BlogThemeForIdNameSpec : Specification<BlogThemeEntity, ThemeSegment>
{
public BlogThemeForIdNameSpec()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Moonglade.Data/Specifications/CategoryBySlugSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Moonglade.Data.Specifications;

public class CategoryBySlugSpec : SingleResultSpecification<CategoryEntity>
public sealed class CategoryBySlugSpec : SingleResultSpecification<CategoryEntity>
{
public CategoryBySlugSpec(string slug)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Moonglade.Data/Specifications/PageBySlugSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Moonglade.Data.Specifications;

public class PageBySlugSpec : SingleResultSpecification<PageEntity>
public sealed class PageBySlugSpec : SingleResultSpecification<PageEntity>
{
public PageBySlugSpec(string slug)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Moonglade.Data/Specifications/PingbackReadOnlySpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

namespace Moonglade.Data.Specifications;

public class PingbackReadOnlySpec : Specification<PingbackEntity>
public sealed class PingbackReadOnlySpec : Specification<PingbackEntity>
{
public PingbackReadOnlySpec()
{
Expand Down
2 changes: 1 addition & 1 deletion src/Moonglade.Data/Specifications/PostTagSpec.cs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ public PostTagSpec(int tagId, int pageSize, int pageIndex)
}
}

public class PostTagByTagIdSpec : SingleResultSpecification<PostTagEntity>
public sealed class PostTagByTagIdSpec : SingleResultSpecification<PostTagEntity>
{
public PostTagByTagIdSpec(int tagId)
{
Expand Down
2 changes: 1 addition & 1 deletion src/Moonglade.ImageStorage/Moonglade.ImageStorage.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
</PropertyGroup>
<ItemGroup>
<FrameworkReference Include="Microsoft.AspNetCore.App" />
<PackageReference Include="Azure.Storage.Blobs" Version="12.19.1" />
<PackageReference Include="Azure.Storage.Blobs" Version="12.20.0" />
<PackageReference Include="Minio" Version="6.0.2" />
</ItemGroup>
</Project>
26 changes: 0 additions & 26 deletions src/Moonglade.ImageStorage/RegularFileNameGenerator.cs

This file was deleted.

2 changes: 1 addition & 1 deletion src/Moonglade.Utils/Helper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public static string TryGetFullOSVersion()
if (currentVersion != null)
{
var name = currentVersion.GetValue("ProductName", "Microsoft Windows NT");
var ubr = currentVersion.GetValue("UBR", string.Empty)?.ToString();
var ubr = currentVersion.GetValue("UBR", string.Empty).ToString();
if (!string.IsNullOrWhiteSpace(ubr))
{
return $"{name} {osVer.Version.Major}.{osVer.Version.Minor}.{osVer.Version.Build}.{ubr}";
Expand Down
2 changes: 1 addition & 1 deletion src/Moonglade.Web/Moonglade.Web.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<PackageReference Include="Edi.ImageWatermark" Version="2.11.4" />
<PackageReference Include="Edi.PasswordGenerator" Version="1.1.0" />
<PackageReference Include="Microsoft.ApplicationInsights.AspNetCore" Version="2.22.0" />
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="8.0.4" />
<PackageReference Include="Microsoft.Extensions.Logging.AzureAppServices" Version="8.0.5" />
</ItemGroup>
<ItemGroup>
<ProjectReference Include="..\Moonglade.Auth\Moonglade.Auth.csproj" />
Expand Down
2 changes: 1 addition & 1 deletion src/Moonglade.Web/Pages/_CommentForm.cshtml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
id="input-comment-email" />

<span class="text-muted">
* @SharedLocalizer["Enter your email to receive reply notifications and display your Gravatar"]
* @SharedLocalizer["Enter your email to receive reply notifications and display your Gravatar. Your email will not be displayed publicly."]
</span>
</div>
<div class="comment-md-content mb-2">
Expand Down

0 comments on commit edc8614

Please sign in to comment.