# 我们正在将图标升级到 Font Awesome 6！

**URL:** <https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349>\
**Category:** Announcements\
**Created:** [2024年九月9日 13:40 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349 "2024-09-09T13:40:27Z")\
**Posts on this page:** 20\
**Page:** 2

<div class="post-metadata">

**Author:** ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
**Post date:** [2024年九月26日 03:51 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/26 "2024-09-26T03:51:27Z")

</div>

3 个帖子已拆分为新主题：[主题组件中新 Fontawesome 6 图标的麻烦](https://meta.discourse.org/t/trouble-with-new-fontawesome-6-icons-in-theme-components/328165)

---

<div class="post-metadata">

**Author:** ![PatrickF](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/patrickf/32/485193_2.png) [@PatrickF](https://meta.discourse.org/u/PatrickF)\
**Post date:** [2025年一月28日 17:37 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/27 "2025-01-28T17:37:28Z")

</div>

@awesomerobot 我已尽我（有限）能力遵循了您帖子中的说明，并且遇到了一些问题，我认为其中只有一个与 Font Awesome 图标的更改有关。但我们在此处理它。

这是控制台中发生情况的屏幕截图：

 ![Screenshot 2025-01-28 at 17.26.40](https://global.discourse-cdn.com/meta/original/4X/f/6/2/f626483480514ef1cbff1600bc3737aa4ab26098.png)

关注弃用通知，似乎“search”图标是一个问题，新图标名为“magnifying-glass”。在开发人员工具的搜索功能中搜索“search”（不出所料）会返回许多结果 -（278 个文件中匹配 6,504 行）- 我真的无法从中找到重点。但我可以说，您原始帖子第三段中显示的那些结果根本没有出现！

如果您能提供有关如何查找导致此问题的组件的建议，我将不胜感激！

我稍后将在另一篇帖子中发布有关 emberjs 问题的内容。

谢谢 - Discourse 通常很简单，但这让我感到困惑。

---

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [2025年一月28日 18:09 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/28 "2025-01-28T18:09:16Z")

</div>

嘿 @PatrickF

你是否安装了 [https://meta.discourse.org/t/search-banner/122939？](https://meta.discourse.org/t/search-banner/122939%EF%BC%9F)

如果是，能否检查一下该组件是否已是最新版本？

 ![图片显示一个网页，其中有一个名为“discourse-search-banner”的主题，并包含更新选项、源代码链接、主页、许可信息以及一个提示该主题落后 3 个提交的说明。（由 AI 标注）](https://global.discourse-cdn.com/meta/original/4X/8/9/3/8932d5df306e1fb6dfe71d60768ebbd546aa1343.png)

我看到它在一个月前已更新：

> <https://github.com/discourse/discourse-search-banner/commit/95abe577edc243db728ab13e20217b13b976050a>

---

<div class="post-metadata">

**Author:** ![david](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/david/32/157490_2.png) [@david](https://meta.discourse.org/u/david)\
**Post date:** [2025年一月28日 18:14 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/29 "2025-01-28T18:14:32Z")

</div>

> [@PatrickF](#):
>
> 在开发者工具的搜索功能中搜索“search”（不出所料）会返回许多结果

啊是的，这不太理想 😅

如果关闭 JS 和 CSS 源代码映射，则可以帮助减少结果中的文件数量。然后，您可以查找主题中的任何特定结果。

---

<div class="post-metadata">

**Author:** ![PatrickF](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/patrickf/32/485193_2.png) [@PatrickF](https://meta.discourse.org/u/PatrickF)\
**Post date:** [2025年一月28日 18:21 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/31 "2025-01-28T18:21:27Z")

</div>

是的，我们确实安装了搜索横幅，并且它是在一段时间前由某人定制的。我现在就来看看。

好眼力，谢谢！

补充说明：  
好的，我看到我们需要在 `<search-icon.gjs>` 中添加一个新行：  
`@icon="magnifying-glass"`

我已经通过导出组件下载了该文件，但我该如何上传修改后的文件？  
（我猜我不能，因为我们的 Discourse 社区是由 Discourse 托管的，对吧？）

我在 Discourse 中也看不到任何更新按钮——我应该重新安装该组件吗？

---

<div class="post-metadata">

**Author:** ![Moin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/moin/32/554653_2.png) [@Moin](https://meta.discourse.org/u/Moin)\
**Post date:** [2025年一月28日 20:44 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/32 "2025-01-28T20:44:31Z")

</div>

> [@PatrickF](#):
>
> 但我该如何上传带有修订的文件？  
> （我认为我不能，因为我们的 Discourse 社区是由 Discourse 托管的，对吗？）

您可以在大多数托管计划上安装自定义主题组件

> [@How do I install a custom theme on my Discourse instance?](https://meta.discourse.org/t/how-do-i-install-a-custom-theme-on-my-discourse-instance/306418?u=moin):
>
> bookmark This guide explains how to install and manage custom themes on your Discourse site. person_raising_hand Required user level: Administrator Theme availability Custom themes are available to all Discourse customers on the following hosting plans: Standard Business Enterprisewarning Starter tier customers do not have access to custom themes and must upgrade to at least the Standard plan to use this feature. Installing a theme Go to your site’s Admin Panel Navigate to Cust…

---

<div class="post-metadata">

**Author:** ![PatrickF](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/patrickf/32/485193_2.png) [@PatrickF](https://meta.discourse.org/u/PatrickF)\
**Post date:** [2025年一月28日 23:31 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/33 "2025-01-28T23:31:48Z")

</div>

谢谢，我已经多次阅读了所有链接的文档。

我没有看到任何更新按钮，正如 @Arkshine 的帖子中所述：

 ![image](https://global.discourse-cdn.com/meta/original/4X/8/9/3/8932d5df306e1fb6dfe71d60768ebbd546aa1343.png)

我的组件面板看起来是这样的：

 ![The image appears to be a section of the Digital discourse module for creating and customizing a theme, showing choices for CSS/HTML customization and uploading files associated with the theme. (Captioned by AI)](https://global.discourse-cdn.com/meta/original/4X/5/c/d/5cd395247e913a4a922bfecd9c06e053e4a5cc94.png)  
此页面上唯一的按钮是页面下方的“安装”。假设我重新安装主题，我们所有的自定义内容都会被覆盖。

我很感激我（可能）显得有点迟钝 😂 但我在 Discourse meta 上看到的内容似乎没有反映在我们自己的 Discourse 实例上。

感谢您的耐心。

---

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [2025年一月29日 00:02 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/34 "2025-01-29T00:02:41Z")

</div>

> [@PatrickF](#):
>
> 此页面上唯一的按钮是“安装”，位于页面下方。假设我重新安装主题，我们所有的自定义内容都会被覆盖。

看起来您手动上传了原始主题组件的修改版本。  
如果它是从 GitHub 存储库链接安装的，您会看到一个按钮。（作者也将是 Discourse）

> [@PatrickF](#):
>
> 编辑以添加：
> 
> 好的，我看到我们需要在 `<search-icon.gjs>` 中添加一个新行：  
> `@icon="magnifying-glass"`
> 
> 我已经通过导出组件下载了此文件——但我该如何上传修改后的文件？  
> （我想我不能这样做，因为我们的 Discourse 社区是由 Discourse 托管的，对吗？）
> 
> 我在 Discourse 中也看不到任何更新按钮——我应该重新安装组件吗？

是的，您必须重新安装更新后的组件。您可以使用“设置编辑器”按钮来导出/导入您的设置。

您还记得您做了哪些自定义吗？如果只是 CSS，我建议您使用官方版本，并将 CSS 自定义添加到您的主题或单独的主题组件中。这样，您将始终获得最新更新。

---

<div class="post-metadata">

**Author:** ![PatrickF](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/patrickf/32/485193_2.png) [@PatrickF](https://meta.discourse.org/u/PatrickF)\
**Post date:** [2025年一月31日 20:34 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/35 "2025-01-31T20:34:59Z")

</div>

@Arkshine，@Moin - 感谢您的帮助。

我删除了现有主题并从 GitHub 存储库重新安装，一切都正常了。网站看起来和以前一样，关于 FontAwesome 的通知也消失了。而且主题现在将自动更新。

再次感谢！

---

<div class="post-metadata">

**Author:** ![emonunix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/emonunix/32/485652_2.png) [@emonunix](https://meta.discourse.org/u/emonunix)\
**Post date:** [2025年三月15日 00:45 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/36 "2025-03-15T00:45:44Z")

</div>

已更新 discourse。  
此通知仍然出现。

 ![图片显示了一个粉色的通知，建议具有特定 ID 的用户更新他们的主题或插件以兼容即将到来的 Disqus 核心更改，并提供了一个链接以获取更多详细信息。(AI 标注)](https://global.discourse-cdn.com/meta/original/4X/e/1/0/e10ef5a05bb6dfd1ceb03a0ff95b60a136ec54f5.png)

没有主题/插件显示更新通知。  
还有其他需要做的吗？

---

<div class="post-metadata">

**Author:** ![Jagster](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jagster/32/192154_2.png) [@Jagster](https://meta.discourse.org/u/Jagster)\
**Post date:** [2025年三月15日 07:39 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/37 "2025-03-15T07:39:41Z")

</div>

查看日志。我认为它显示了一个或多个图标正在使用旧名称。如果其中一个可以由管理员更改，则不会显示该组件的名称。

---

<div class="post-metadata">

**Author:** ![emonunix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/emonunix/32/485652_2.png) [@emonunix](https://meta.discourse.org/u/emonunix)\
**Post date:** [2025年三月15日 21:05 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/38 "2025-03-15T21:05:47Z")

</div>

非常感谢 @Jagster  
我找到了这个控制台日志

`Deprecation notice: The icon name "undo" has been updated to "arrow-rotate-left". Please use the new name in your code. Old names will be removed in Q2 2025. [deprecation id: discourse.fontawesome-6-upgrade] [info: https://meta.discourse.org/t/325349]`

但不确定在哪里更新这个图标。

---

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [2025年三月15日 22:02 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/39 "2025-03-15T22:02:15Z")

</div>

请确认您的所有插件/组件都已是最新版本？

---

<div class="post-metadata">

**Author:** ![emonunix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/emonunix/32/485652_2.png) [@emonunix](https://meta.discourse.org/u/emonunix)\
**Post date:** [2025年三月15日 22:06 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/40 "2025-03-15T22:06:23Z")

</div>

是的，都已更新。  
昨天刚更新。

---

<div class="post-metadata">

**Author:** ![Arkshine](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/arkshine/32/298682_2.png) [@Arkshine](https://meta.discourse.org/u/Arkshine)\
**Post date:** [2025年三月15日 22:20 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/41 "2025-03-15T22:20:01Z")

</div>

使用安全模式，您可以确定问题是来自插件还是主题组件？

---

<div class="post-metadata">

**Author:** ![LeoDavidson](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/leodavidson/32/119574_2.png) [@LeoDavidson](https://meta.discourse.org/u/LeoDavidson)\
**Post date:** [2025年三月18日 09:21 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/42 "2025-03-18T09:21:56Z")

</div>

我理解重命名是由你无法控制的上游项目强加的，但为什么不能永远保留兼容性映射呢？它们带来什么危害？

有没有人在研究Discourse或其依赖项时理解已发布API的概念，而该API被其他人使用？

除非有非常充分的理由，否则你不会破坏API。仅仅是内部开发人员看到的事物的名称不完全符合某些人的心意，并不足以成为破坏其他人代码的理由。

我真的越来越厌倦为了防止现有事物与Discourse一起破坏而需要做的大量工作。如果有一项改变游戏规则的改进可以证明每次都要花费时间和麻烦是值得的，那还可以，但实际上从未有过。感觉这些破坏性变化总是因为琐事而进行，没有考虑到它们给其他人带来的时间和麻烦。

---

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [2025年三月18日 14:05 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/43 "2025-03-18T14:05:59Z")

</div>

抱歉给您带来不便，我们努力使这些更新变得简单，并提供数月的时间来完成它们——但这总是有取舍的。如果我们无限期地保留重映射，我们已经会有多个层级的重映射，从 V4 → V5 → V6，这将产生需要自身理解和维护的债务。如果我们为每一段代码都这样做，Discourse 将会更大，更难理解和使用。

> [@LeoDavidson](#):
>
> Discourse 或其依赖项的任何开发者都理解已发布 API 被其他人使用的概念吗？

是的，这就是为什么我们提供弃用警告和更新说明。我们不仅仅是更新一个文件然后把所有工作都推给您——每次我们进行这样的更新时，我们都必须编写文档、警告系统，并亲自更新数百个主题、主题组件和插件。对于 Ember 更新，我们的工程师已经想出了全新的系统，以使遗留的自定义成为可能。

即使是_大得多_的软件公司也会以破坏性的方式更新其 API。我至少需要因 API 更改而更新我们的 Google Fonts 组件 2 次，而 Google 的市值约为两万亿美元。我们集成的每一个用于登录的身份验证服务都要求我们因 API 更改而进行更新。

如果您没有时间进行偶尔的维护，那么我建议尽可能减少自定义。如果您使用 Discourse 的现成主题/组件/插件，那么大多数情况下我们会免费更新它们。

您也可以避免更新 Discourse，但一切总会改变，您最终会面临新的安全问题或浏览器兼容性问题。每个选项都有成本和取舍。

---

<div class="post-metadata">

**Author:** ![Jonathan\_Potter](https://avatars.discourse-cdn.com/v4/letter/j/eb9ed0/32.png) [@Jonathan\_Potter](https://meta.discourse.org/u/Jonathan_Potter)\
**Post date:** [2025年三月18日 19:56 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/44 "2025-03-18T19:56:52Z")

</div>

> [@awesomerobot](#):
>
> 就连_大得多的_软件公司也会以破坏性的方式更新其 API。我至少需要因 API 更改而更新我们的 Google Fonts 组件 2 次，而 Google 的价值约为两万亿美元。我们集成的每个用于登录的身份验证服务都因 API 更改而要求我们进行更新。

然而，为 Windows 95 编写的程序在 30 年后仍然可以未经修改地使用。所以这是可能的。

仅仅因为其他公司选择了捷径，并不意味着你也不必这样做。这是一个选择。

---

<div class="post-metadata">

**Author:** ![awesomerobot](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/awesomerobot/32/142900_2.png) [@awesomerobot](https://meta.discourse.org/u/awesomerobot)\
**Post date:** [2025年三月18日 20:11 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/45 "2025-03-18T20:11:53Z")

</div>

这是一个受限于在现实中运作的选择，现实带来了大量关于时间和预算的权衡。我们不需要偏离到“技术上一切皆有可能”的离题。

话虽如此，Discourse 的好处在于它是免费且开源的——所以如果你想运行一年前或十年前的版本，你当然可以这样做，但这很可能会带来比解决问题更多的问题。

---

<div class="post-metadata">

**Author:** ![emonunix](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/emonunix/32/485652_2.png) [@emonunix](https://meta.discourse.org/u/emonunix)\
**Post date:** [2025年三月27日 21:32 UTC](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349/46 "2025-03-27T21:32:59Z")

</div>

感谢 @Arkshine  
通知已自动消失。  
今天再次找到它，然后检查浏览器控制台，我找到了图标的名称，在更新它们之后，通知就消失了。

[上一頁](https://meta.discourse.org/t/were-upgrading-our-icons-to-font-awesome-6/325349.md?page=1)
