带有说明文档的组件或 PluginOutlets 列表


您好,

我有一些关于我们系统中组件或 PluginOutlets 的文档和功能方面的问题:

  1. 在哪里可以找到组件或 PluginOutlets 的列表及其说明文档?在哪里可以找到这份文档,其中详细说明了每个组件或 PluginOutlet 的使用位置及其用途?
  2. 用于从主题列表中获取发帖人头像的组件、PluginOutlet 或函数是什么?我们可以在哪里修改或更改发帖人的头像?

如果您能提供任何指导或相关资源链接,我将不胜感激。谢谢!

1 个赞

您可以使用此主题组件来查看可用的插件插槽(原始模板中的除外):

  1. 目前没有具体的文档。您可以阅读源代码来理解上下文。该组件会提供指向源代码的链接。如果您不理解任何内容,可以随时询问 Dev :+1:

  2. 主题列表中的发帖人可以在这些原始模板中找到:

https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/raw-templates/list/topic-list-item.hbr#L58
https://github.com/discourse/discourse/blob/main/app/assets/javascripts/discourse/app/raw-templates/list/posters-column.hbr

根据您的具体需求,您可能需要覆盖 posters-column 原始模板(不推荐)。您在这里想实现什么?

有用链接:

4 个赞

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.