mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Modernize the post menu from widgets to Glimmer components (#28670)
This commit modernizes the post menu by migrating it from the existing widget-based implementation to Glimmer components. This transition aims to improve the maintainability, performance, and overall developer experience. It also introduces a new DAG-based transformer API for customizations that aims to be more flexible than the widget base one. --------- Co-authored-by: David Taylor <david@taylorhq.com>
This commit is contained in:
@@ -3846,17 +3846,24 @@ en:
|
||||
|
||||
controls:
|
||||
reply: "begin composing a reply to this post"
|
||||
like_action: "Like"
|
||||
like: "like this post"
|
||||
has_liked: "you've liked this post"
|
||||
read_indicator: "members who read this post"
|
||||
undo_like_action: "Undo like"
|
||||
undo_like: "undo like"
|
||||
edit: "edit this post"
|
||||
edit_action: "Edit"
|
||||
edit_anonymous: "Sorry, but you need to be logged in to edit this post."
|
||||
flag_action: "Flag"
|
||||
flag: "privately flag this post for attention or send a private notification about it"
|
||||
delete_action: "Delete post"
|
||||
delete: "delete this post"
|
||||
undelete_action: "Undelete post"
|
||||
undelete: "undelete this post"
|
||||
share_action: "Share"
|
||||
share: "share a link to this post"
|
||||
copy_action: "Copy link"
|
||||
copy_title: "copy a link to this post to clipboard"
|
||||
link_copied: "Link copied!"
|
||||
more: "More"
|
||||
@@ -3870,6 +3877,7 @@ en:
|
||||
other: "Yes, and all %{count} replies"
|
||||
just_the_post: "No, just this post"
|
||||
admin: "post admin actions"
|
||||
admin_action: "Admin"
|
||||
permanently_delete: "Permanently Delete"
|
||||
permanently_delete_confirmation: "Are you sure you permanently want to delete this post? You will not be able to recover it."
|
||||
wiki: "Make Wiki"
|
||||
|
||||
@@ -1877,7 +1877,7 @@ en:
|
||||
markdown_linkify_tlds: "List of top level domains that get automatically treated as links"
|
||||
markdown_typographer_quotation_marks: "List of double and single quotes replacement pairs"
|
||||
post_undo_action_window_mins: "Number of minutes users are allowed to undo recent actions on a post (like, flag, etc)."
|
||||
must_approve_users: "All new users must wait for moderator or admin approval before being allowed to log in. (Note: enabling this setting also removes the \"arrive at topic\" invite option)"
|
||||
must_approve_users: 'All new users must wait for moderator or admin approval before being allowed to log in. (Note: enabling this setting also removes the "arrive at topic" invite option)'
|
||||
invite_code: "User must type this code to be allowed account registration, ignored when empty (case-insensitive)"
|
||||
approve_suspect_users: "Add suspicious users to the review queue. Suspicious users have entered a bio/website but have no reading activity."
|
||||
review_every_post: "Send every new post to the review queue for moderation. Posts are still published immediately and are visible to all users. WARNING! Not recommended for high-traffic sites due to the potential volume of posts needing review."
|
||||
@@ -2725,6 +2725,8 @@ en:
|
||||
experimental_topics_filter: "Enables the experimental topics filter route at /filter"
|
||||
enable_experimental_lightbox: "Replace the default image lightbox with the revamped design."
|
||||
experimental_glimmer_topic_list_groups: "Enable the new 'glimmer' topic list implementation. This implementation is under active development, and is not intended for production use. Do not develop themes/plugins against it until the implementation is finalized and announced."
|
||||
glimmer_post_menu_mode: "Control whether the new 'glimmer' post menu implementation is used. 'auto' will enable automatically once all your themes and plugins are ready. This implementation is under active development, and is not intended for production use. Do not develop themes/plugins against it until the implementation is finalized and announced."
|
||||
glimmer_post_menu_groups: "Enable the new 'glimmer' post menu implementation in 'auto' mode for the specified user groups. This implementation is under active development, and is not intended for production use. Do not develop themes/plugins against it until the implementation is finalized and announced."
|
||||
experimental_form_templates: "Enable the form templates feature. <b>After enabled,</b> manage the templates at <a href='%{base_path}/admin/customize/form-templates'>Customize / Templates</a>."
|
||||
admin_sidebar_enabled_groups: "Enable sidebar navigation for the admin UI for the specified groups, which replaces the top-level admin navigation buttons."
|
||||
lazy_load_categories_groups: "Lazy load category information only for users of these groups. This improves performance on sites with many categories."
|
||||
|
||||
@@ -3304,6 +3304,22 @@ experimental:
|
||||
default: ""
|
||||
allow_any: false
|
||||
refresh: true
|
||||
glimmer_post_menu_mode:
|
||||
client: true
|
||||
hidden: true
|
||||
type: enum
|
||||
choices:
|
||||
- disabled
|
||||
- auto
|
||||
- enabled
|
||||
default: disabled
|
||||
glimmer_post_menu_groups:
|
||||
client: true
|
||||
type: group_list
|
||||
list_type: compact
|
||||
default: ""
|
||||
allow_any: false
|
||||
refresh: true
|
||||
enable_experimental_lightbox:
|
||||
default: false
|
||||
client: true
|
||||
|
||||
Reference in New Issue
Block a user