Bilibili Inline Player: مكون سمة Discourse بدون إعادة بناء، مع دليل إعداد ومقارنة بالإضافة الحالية

أشارك مكون واجهة مستخدم مضمن لمشغل Bilibili للاستخدام الذاتي:

ويختلف عن الإضافة الحالية

في مسار الإضافة. طريقة النشر:
• discourse-bilibili-onebox هو إضافة على جانب الخادم، يتم تثبيته كإضافة، ويتطلب إعادة بناء (rebuild). يُنصح بهذا إذا كنت تحتاج إلى شيء أكثر استقرارًا.
• discourse-bilibili-inline-player هو مكون واجهة مستخدم (theme component)، تثبيته أخف، ولا يتطلب إعادة بناء.

كيفية الاستخدام:
• اذهب إلى Admin (المسؤول) → Customize (تخصيص) → Themes (واجهات المستخدم)
• اختر Install (تثبيت) → From a git repository (من مستودع git)
• أضف Discourse Bilibili Onebox
• قم بإرفاقه بواجهة المستخدم النشطة
• اختبر بنشر رابط Bilibili في سطر منفصل

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


This project is meant for a different use case from the existing plugin approach. It is a remote theme component, so it can be installed from the Themes UI without editing app.yml or rebuilding the container.

Compared with discourse-bilibili-onebox, the main difference is deployment style:
• discourse-bilibili-onebox: server plugin, plugin install path, rebuild required
• discourse-bilibili-inline-player: theme component, lighter setup, no rebuild required

This component is intended for admins who want a simpler way to try Bilibili inline playback on Discourse.

Basic setup is straightforward:
• go to Admin → Customize → Themes
• choose Install → From a git repository
• add the repository
• attach it to your active theme
• test with a standalone Bilibili link in a post

It supports common Bilibili video links and some related URL forms. For cases that cannot be handled reliably in a pure theme-component architecture, it falls back more conservatively.

I’m sharing it here in case this lighter theme-component approach is useful to others.