-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- update translations - Localize email input in CommentForm - Localize Captcha placeholder text - update more translations - Update Npgsql.EntityFrameworkCore.PostgreSQL to 8.0.8 - Add localization for Dublin Core Metadata terms - Add "Pronouns" translations for multiple languages - Localize sidebar and widget text in multiple languages - update translations - add translation - add more translation - update translations - update translation - update translations - update translation - update more translation - Refactor dark mode CSS for timeline component - support dark theme on sign in page - admin: apply theme to page with ThemeSwitchReady - refact dark theme style - move more dark theme css - complete darkmode.css migration - move around rwd css - fix rwd background color - update dark theme - Update admin.css - Refactor BlogPage config settings for clarity - Refactor caching logic and update ImageStorage settings - Update SQL Server migration script URL in appsettings.json - Update admin.css - color fix - support dark theme on Notification settings - support dark theme on Subscription page - support dark theme on image settings - dark theme for advanced settings - dark mode for CustomStyleSheet - dark mode for content settings - dark mode for general settings - Update drop target styling in modals and add dark theme - support dark mode for categories - dark mode for BlogPage - dark mode for EditPage - Add localization for "Change Password" in multiple languages - remove MFA option - dark theme for menu settings - dark mode for friendlink - dark mode for mention - dark mode for tags admin - dark mode for post admin - dark mode for draft - Update RecycleBin.cshtml - dark mode for comments admin - Rename CSS class from mention-item-container to mention-item-entry - partial support for dark mode on post editor - upgrade tagify - Refactor theme switching script inclusion - Update EditPost.cshtml - Update background color for image upload area - Update Microsoft.Identity.Web to version 3.2.1 - Move .md-editor-image-upload-area CSS to admin.css - bump version - Refactor CSS imports and remove redundant styles - Add custom styles for tag input container in admin panel - Add dark theme support for tagify component in admin UI - fix build warning - code refact - Remove Moonglade.Setup from LoadAssemblies method - bump version - fix LoadAssemblies - Reorder assemblies and filter MediatR registrations - Refactor service configuration and async app run - Add new namespaces and improve RewriteOptions readability - bump version to rc - Add PrefersColorSchemeMiddleware and config setting - patch .net - bump version - Add server-side handling for color scheme preference - Update version numbers in Directory.Build.props - Enable config-based dark mode and improve code readability - Update PrefersColorScheme feature and configuration - Update config key for PrefersColorScheme header name - Add DI, anti-forgery token, and "Index Now" settings - Update icons for ...
- Loading branch information
Showing
84 changed files
with
2,822 additions
and
895 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -3,8 +3,8 @@ | |
<Authors>Edi Wang</Authors> | ||
<Company>edi.wang</Company> | ||
<Copyright>(C) 2024 [email protected]</Copyright> | ||
<AssemblyVersion>14.10.0.0</AssemblyVersion> | ||
<FileVersion>14.10.0.0</FileVersion> | ||
<Version>14.10.0-beta.1</Version> | ||
<AssemblyVersion>14.12.0.0</AssemblyVersion> | ||
<FileVersion>14.12.0.0</FileVersion> | ||
<Version>14.12.0-preview.2</Version> | ||
</PropertyGroup> | ||
</Project> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
using Edi.CacheAside.InMemory; | ||
using Moonglade.Data; | ||
|
||
namespace Moonglade.Core.PostFeature; | ||
|
||
public record UnpublishPostCommand(Guid Id) : IRequest; | ||
|
||
public class UnpublishPostCommandHandler(MoongladeRepository<PostEntity> repo, ICacheAside cache) : IRequestHandler<UnpublishPostCommand> | ||
{ | ||
public async Task Handle(UnpublishPostCommand request, CancellationToken ct) | ||
{ | ||
var post = await repo.GetByIdAsync(request.Id, ct); | ||
if (null == post) return; | ||
|
||
post.IsPublished = false; | ||
post.PubDateUtc = null; | ||
post.RouteLink = null; | ||
post.LastModifiedUtc = DateTime.UtcNow; | ||
|
||
await repo.UpdateAsync(post, ct); | ||
|
||
cache.Remove(BlogCachePartition.Post.ToString(), request.Id.ToString()); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.