`MediaAreaOption`: support an active state like the built-in options
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 72/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Đặc tả rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- react, typescript
- Lĩnh vực
- frontend
Hướng nghiên cứu
Bắt đầu trong media-sharing/component.tsx, nơi MediaButton được render với color="default" được mã hóa cứng, và tìm định nghĩa MediaAreaOptionProps được API plugin sử dụng. Thêm một boolean tùy chọn active vào kiểu đó và truyền nó dưới dạng color={active ? "primary" : "default"}. Hoàn tất khi một tùy chọn plugin được tạo với active: true hiển thị cùng màu chính như các tùy chọn chia sẻ tích hợp và việc bỏ qua nó giữ nguyên giao diện mặc định hiện tại.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Built-in Media Area options show when their content is being shared. "Slides" uses color="active" (light blue tile, blue icon), and "Video link" and "Camera as content" use color="primary" while they are shared. Plugin options are always rendered with color="default":
// media-sharing/component.tsx
<MediaButton
key={item.id}
dataTest={item.dataTest}
color="default"
...
and MediaAreaOptionProps has no field for it. A plugin that shares something into the presentation area cannot show the presenter that its content is live. The only workaround is to change the label, or to pass an svgContent icon with a hard-coded fill.
Proposal
Add an optional field to MediaAreaOptionProps, passed through to MediaButton:
new MediaAreaOption({
label: 'Website',
icon,
tooltip: 'Change or stop sharing the website',
allowed: true,
active: true, // or: color: 'default' | 'active' | 'primary'
onClick: () => {},
});
A boolean active that maps to the same color the built-in sharing options use (primary) keeps the look consistent, and plugins cannot pick arbitrary styles.
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 17
- Fork
- 18
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Không có hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của bigbluebutton/bigbluebutton-html-plugin-sdk
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
-
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
-
`useChatMessageDomElements` never evicts removed elements from its storeCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 76/100
Tất cả issue của bigbluebutton/bigbluebutton-html-plugin-sdk
Issue tương tự
-
good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
keyxmakerx/Chronicle#2190 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
ai bug design good first issue
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
neomjs/neo-agent-institution#927 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
gramps-project/gramps-web#1671 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
项目日志弹出窗尺寸可拉伸功能Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
Maintainer thường phản hồi trong vòng 1 ngày
-
ログイン中の404画面にヘッダーとナビを出すĐang mởCodex使用可 コード
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ryuki-moro/Nicomaru#218 ·
Maintainer thường phản hồi trong vòng 3 ngày