مؤقت الموضوع المباشر

This theme component changes the default timed topic timer to a live countdown timer.

29%20PM


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

27 إعجابًا

This doesn’t work since a few days. Can you look at it?

إعجاب واحد (1)

Yes, I’m aware of the fact that some of the code I overrode is changed in core discourse. I’ll take a look at this around mid next week.

cc @angus, @Ellibereth, @darhazer

4 إعجابات

Just pushed an update to the component to fix compatibility with latest discourse.

7 إعجابات

can this be set on specific categories? i could see this being very useful in combination with the voting plugin.

إعجاب واحد (1)

Currently, it works for all timed topics. @ninjapenguin if you’re are willing to fund the development of this feature, I’ll be happy to add the category specific feature for the component.

In any case, you can join the discussion related to the component here.

إعجاب واحد (1)

i don’t think we need it enough. more a ‘nice to have’ in our use case than a core feature we’d use often. it looks great though, well done.

إعجاب واحد (1)

This theme component is breaking the topic timers interface, unfortunately. Number of days seems to turn into number of seconds, and the blue bar containing the “Replies on this topic are automatically deleted after …” has no next. It then becomes impossible to remove timer. Deleting this theme component made it work again.

Screen Shot 2020-05-07 at 11.12.32 AM

إعجابَين (2)

It needs to be dusted again. I’ll come to this one in the next week. Thanks for reporting. Makes a strong case for bookmark reminders for me.

إعجابَين (2)

خطأ في هذا السمة.

إعجاب واحد (1)

كنتُ أرغب في الحضور إلى هذا منذ فترة. سألقي نظرة يوم الجمعة.

إعجاب واحد (1)

يمكنني تكرار هذه المشكلة. آسف على عدم التعامل مع الأمر في وقت سابق.

لم يتم اختبار مكون القالب مع أي مؤقتات أخرى غير مؤقت “إغلاق الموضوع”، لأنه بُني خصيصًا لذلك المؤقت، لكن اسمه يوحي بأنه يجب أن يعمل مع جميع أنواع مؤقتات المواضيع.

أيضًا، لم يكن يجب أن يؤثر على أي وظيفة افتراضية أخرى على الأقل. أنا أعمل على إصلاح هذا وسأعود بحلول قريبًا.

كان هذا أول عمل لي كعميل على منصة Discourse. يثير ذكريات قديمة.

ملاحظة:

لقد قدمت طلب دمج (PR) إلى مؤقت المواضيع الأساسي لجعله قابلًا للتوسع لمطوري الإضافات والقوالب. تجاوز طريقة “monolith” يمكن أن يكون عرضة للكسر بسهولة.

cc @martin

4 إعجابات

شكرًا لك على الإصلاح، لقد دمجتُه في النواة الآن :+1:

إعجابَين (2)

خارج الموضوع قليلاً، لكنه جدير بالملاحظة للمستقبل:

البادئة DEV: تعني أن هذا إعادة هيكلة تتعلق بالتطوير، ولا نحتاج إلى أي شيء في ملاحظات الإصدار.

FIX: تعني إصلاح خطأ نرغب في الإشارة إليه ربما في ملاحظات الإصدار.

FEATURE: تعني ميزة جديدة (أو إزالة ميزة) نرغب في الإشارة إليها ربما في ملاحظات الإصدار.

IMPR: غريبة بعض الشيء، لا نستخدم هذه البادئة في أي مكان.

4 إعجابات

إنه سوء ذاكرة من جانبي. تذكرت بشكل خاطئ منشورًا لـ جيف يشرح هذه المصطلحات، لكنني أتخيل أن IMPR ليست واحدة منها. سأحتفظ بهذا في ذهني.

إعجابَين (2)

الأخبار الجيدة هي أن الكود أصبح الآن أكثر قابلية للتوسع والصيانة من وجهة نظر المطورين بعد الدمج. سأحاول إصلاح المكون خلال الأسبوع القادم.

شكرًا لك @sam على النصيحة و@martin على الدمج.

إعجابَين (2)

يجب حل هذه المشكلة إذا قمت بتحديث مكون المظهر وDiscourse كلاهما إلى أحدث إصدار تم اختباره بنجاح.

علاوة على ذلك، يجب أن يدعم الآن جميع المؤقتات الأخرى. يسعدني حل أي مشاكل قد تنشأ.