fzngagan
(Faizaan Gagan)
2019 年10 月 1 日 07:39
1
This theme component changes the default timed topic timer to a live countdown timer.
Repository Link
https://github.com/paviliondev/live-topic-timer
The rerender time can be changed in the component settings according to your use case.
The time displayed by the timer can be format in multiple ways from the theme component setting whose documentation can be found here .
To do
Display the timer on the header next to the topic title.
I’m looking for specific UI/UX suggestions for how to implement a header timer, in the context of Discourse, with a view to crowd-funding the development costs if there’s enough interest (@darhazer @tobiaseigen )
Installation
This is a guide for installing and managing themes and theme components in Discourse.
Required user level: Administrator
Installing and customizing themes can significantly improve the look and feel of your Discourse site. You can easily import and manage themes and their components through the Discourse admin panel.
This guide covers:
Importing new themes and theme components
Adding theme components to a theme
Managing automatic updates
Additional resourc…
27 个赞
fzngagan
(Faizaan Gagan)
2019 年12 月 28 日 22:24
3
是的,我知道我覆盖的一些代码在 Discourse 核心中已经更新。我会在下周中左右查看这个问题。
cc @angus , @Ellibereth , @darhazer
4 个赞
fzngagan
(Faizaan Gagan)
2020 年1 月 5 日 19:52
4
committed 07:32PM - 05 Jan 20 UTC
刚刚推送了组件更新,以修复与最新 Discourse 的兼容性问题。
7 个赞
可以针对特定类别设置吗?我觉得这与投票插件结合使用会非常有用。
1 个赞
fzngagan
(Faizaan Gagan)
2020 年1 月 20 日 12:56
6
目前,该功能适用于所有定时主题。@ninjapenguin ,如果您愿意资助此功能的开发,我很乐意为该组件添加分类特定功能。
无论如何,您可以在这里加入关于该组件的讨论:
1 个赞
我觉得我们目前还不太需要它。在我们的使用场景中,它更像是一个“锦上添花”的功能,而非我们频繁使用的核心功能。不过看起来很棒,做得很好。
1 个赞
不幸的是,这个主题组件破坏了话题计时器界面。天数似乎变成了秒数,并且包含“本话题的回复将在 .. 后自动删除”的蓝色条没有下一步。这导致无法移除计时器。删除该主题组件后,功能恢复正常。
2 个赞
fzngagan
(Faizaan Gagan)
2020 年5 月 7 日 20:29
9
这处需要再次除尘。我下周会来处理。感谢报告,这为我使用书签提醒提供了强有力的理由。
2 个赞
fzngagan
(Faizaan Gagan)
2021 年3 月 25 日 06:34
12
CaptainZac:
这是该主题的一个 Bug。
我可以复现这个问题。很抱歉没有早点来处理。
该主题组件从未针对“关闭主题计时器”以外的其他计时器进行测试,因为它最初就是为那个计时器而构建的,但其名称暗示它应该适用于各种主题计时器。
此外,它本不应影响任何其他默认功能。我正在着手修复这个问题,并会很快提供解决方案。
这是我首次在 Discourse 上进行的客户工作,勾起了许多旧回忆。
附注:
我已向核心主题计时器提交了一个拉取请求(PR),使其对插件和主题开发者可扩展。覆盖那个庞大的方法很容易导致破坏。
master ← fzngagan:topic-timer-impr
merged 11:12PM - 25 Mar 21 UTC
This PR improves the code structure of the topic-timer-info component while reta… ining all the functionality and making it extensible for theme/plugin devs.
cc @martin
4 个赞
sam
(Sam Saffron)
2021 年3 月 26 日 00:17
14
稍微偏离主题,但值得未来注意:
DEV: 前缀表示这是与开发相关的重构,我们无需在发布说明中提及。
FIX: 表示错误修复,我们可能希望在发布说明中特别指出。
FEATURE: 表示新功能(或功能移除),我们可能希望在发布说明中特别指出。
IMPR: 有点奇怪,我们从未在任何地方使用过该前缀。
4 个赞
fzngagan
(Faizaan Gagan)
2021 年3 月 26 日 00:50
15
这纯粹是我记错了。我误以为 Jeff 曾发过一篇帖子解释这些术语,但我能想象 IMPR 并不在其中。我会记住这一点的。
2 个赞
fzngagan
(Faizaan Gagan)
2021 年3 月 26 日 04:30
16
好消息是,合并后从开发角度来看,代码现在更具可扩展性和可维护性。我将在未来一周内尝试修复该组件。
感谢 @sam 的提示和 @martin 的合并。
2 个赞
fzngagan
(Faizaan Gagan)
2021 年3 月 29 日 20:39
17
如果您将主题组件和 Discourse 都更新到最新的 tests-passed 版本,这个问题应该就能解决。
此外,现在它应该也支持其他所有计时器。如果出现问题,我很乐意协助修复。