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

v14.11.0 #827

Merged
merged 81 commits into from
Oct 9, 2024
Merged

v14.11.0 #827

merged 81 commits into from
Oct 9, 2024

Conversation

EdiWang
Copy link
Owner

@EdiWang EdiWang commented Oct 9, 2024

No description provided.

Centralized _LightSwitch partial to _Layout.cshtml and removed it from individual view files. Removed localized "No Archive" and "No Posts" messages from several views. Eliminated image zoom modal from Post.cshtml and PostPreview.cshtml.
Updated the `Directory.Build.props` file to reflect the new version numbers:
- `AssemblyVersion` updated from `14.10.0.0` to `14.11.0.0`
- `FileVersion` updated from `14.10.0.0` to `14.11.0.0`
- `Version` updated from `14.10.0` to `14.11.0-preview.1`

These changes indicate a new preview release for version 14.11.0.
The application now supports an additional culture, "ja-JP" (Japanese - Japan), enhancing its localization capabilities. The line `var cultures = new[] { "en-US", "zh-Hans", "zh-Hant", "de-DE" }.Select(p => new CultureInfo(p)).ToList();` was modified to include "ja-JP" in the array of culture strings. This change ensures that the application can handle and display content appropriately for users in Japan.
Add support for Japanese culture (ja-JP)
Updated `_CommentForm.cshtml` to use localized strings for the email input field's placeholder and aria-label, enhancing accessibility and user experience for non-English speakers. Added new localization entries for "Email (Optional)" in German, Japanese, Simplified Chinese, and Traditional Chinese resource files.
Replaced hardcoded "Captcha Code" with localized string using
@SharedLocalizer["Captcha code"] to support internationalization
and enhance user experience for non-English speakers.
Updated the Npgsql.EntityFrameworkCore.PostgreSQL package version
from 8.0.4 to 8.0.8 in the Moonglade.Data.PostgreSql.csproj file.
This update includes potential bug fixes, performance improvements,
and new features.
Added new localization entries for "Dublin Core Metadata", "Dublin Core License URL", and "Use Dublin Core Metadata" in the following resource files:
- Program.de-DE.resx (German)
- Program.ja-JP.resx (Japanese)
- Program.zh-Hans.resx (Simplified Chinese)
- Program.zh-Hant.resx (Traditional Chinese)

These entries provide translations for terms related to Dublin Core metadata, which is a set of vocabulary terms used to describe web resources.
Added new localization entries for "Pronouns" related to gender identity in resource files. Supported languages include:
- German (de-DE): "Pronomen der Geschlechtsidentität"
- Japanese (ja-JP): "性自認の代名詞"
- Simplified Chinese (zh-Hans): "性别认同代词"
- Traditional Chinese (zh-Hant): "性別認同代詞"
Replaced hardcoded text in `General.cshtml` with localized strings using `@SharedLocalizer`. Added new localized strings for "Subscription buttons", "Side bar items", and "Show or hide widgets that display on the side bar" in German (`Program.de-DE.resx`), Japanese (`Program.ja-JP.resx`), Simplified Chinese (`Program.zh-Hans.resx`), and Traditional Chinese (`Program.zh-Hant.resx`).
Moved dark mode styles for the timeline component from `darkmode.css` to `timeline.css`:
- `.timeline-heading` border-bottom color
- `.timeline:before` background color
- `.timeline > li > .timeline-panel` border and background color
- `.timeline > li > .timeline-panel:before` border-left and border-right colors
- `.timeline > li > .timeline-panel:after` border-left and border-right colors
- `.timeline-body a` text color
- `.timeline-title a` text color
- `.timeline > li > .timeline-badge` background color and border

The `.article-post-summary` background color rule remains in `darkmode.css`.
Updated Mention.cshtml and admin.css to replace the class
mention-item-container with mention-item-entry. Adjusted
JavaScript code to reflect this change. Ensured the new class
name has appropriate styles in both light and dark themes.
Removed `ViewBag.ThemeSwitchReady` from multiple `.cshtml` files.
Moved theme switching script to always be included in `_LayoutAdmin.cshtml`.
This ensures theme switching is always available and simplifies the code by eliminating conditional checks.
Changed the background color of the `.md-editor-image-upload-area` class to use the CSS variable `--bs-secondary-bg`. Removed the `bg-light` class from the same element to ensure consistent background styling.
Updated the Microsoft.Identity.Web package from version 3.2.0 to 3.2.1 in the Moonglade.Auth.csproj file. This update includes minor improvements and bug fixes provided by the newer version of the package.
Centralized the CSS rules for the .md-editor-image-upload-area class
by moving them from EditPost.cshtml to admin.css. This improves
maintainability and organization of the codebase.
Replaced Bootstrap and post.css imports with tinymce-custom.css.
Removed font-family, font-size, and padding from body element.
Removed max-width from img element.
Removed extensive styling from pre element.
Modified EditPost.cshtml to use a new class 'admin-taginput-container' for the tag input container. Updated admin.css to include styles for this class in both light and dark themes. Added a comment indicating potential custom Tagify styles.
Introduce new CSS rules to style the tagify component for a dark theme.
Changes include setting border, background, and text colors, as well as
customizing hover states and the tag removal button. These updates ensure
visual consistency and a seamless user experience when the dark theme is
active.
The `LoadAssemblies` method in the `Program` class has been updated to exclude the `"Moonglade.Setup"` assembly from the list of assemblies being loaded. This change ensures that the `"Moonglade.Setup"` assembly is no longer part of the loading process.
Reordered assemblies in LoadAssemblies method, moving "Moonglade.Mention.Common", "Moonglade.Pingback", and "Moonglade.Webmention" to the beginning under "Core/Mention". Added "Data" section before "Moonglade.Data". Updated ConfigureServices to register only assemblies starting with "Moonglade" with MediatR.
Removed ImageStorageOptions and related logic from ServiceCollectionExtensions.cs. Updated ConfigureServices and ConfigureMoongladeServices method signatures in Program.cs to remove IWebHostEnvironment parameter. Modified AddImageStorage method call to exclude options parameter. Changed app.Run() to await app.RunAsync() in Program.cs.
Added several `using` directives in `Program.cs` for new functionalities and dependencies. Modified `RewriteOptions` configuration to use `HttpStatusCode.MovedPermanently` instead of a hardcoded integer for better readability and maintainability.
- Added `PrefersColorSchemeMiddleware` to handle color scheme headers.
- Updated `Program.cs` to conditionally use the new middleware based on `Experimental:UsePrefersColorSchemeHeader` setting.
- Modified `appsettings.json` to include `Experimental` section with `UsePrefersColorSchemeHeader` setting.
@EdiWang EdiWang merged commit bab4f24 into release Oct 9, 2024
7 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant