Add an option to set the favicon and PWA icon, like --app-name
Maintainer thường phản hồi trong vòng 1 ngày
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 51/100
- Loại issue
- Tính năng
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Sôi nổi
- Công nghệ
- typescript
Hướng nghiên cứu
Start by reading the existing --app-name option and how src/browser/media/ assets are served. Trace the references to favicon-dark-support.svg, favicon.ico, manifest.json, pwa-icon-192.png, pwa-icon-512.png, and the apple-touch-icon links. Done means an accepted option name lets operators provide an SVG or PNG used for both the page favicon and PWA icons; confirm the expected behavior and tests with maintainers.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
What is your suggestion?
A flag to set the icon code-server serves for its pages, alongside the existing --app-name. For example --app-icon <path>, taking an SVG or PNG file, used for:
- the page favicon (today
favicon-dark-support.svgandfavicon.ico) - the PWA icons referenced by
manifest.jsonand theapple-touch-iconlinks (todaypwa-icon-192.pngandpwa-icon-512.png)
Why do you want this feature?
--app-name already lets an operator name the app, e.g. --app-name "VS Code" turns the tab title into <folder> — VS Code. The icon can't be changed the same way, so the tab and an installed PWA show the code-server logo next to that name.
When code-server runs as one app among several in a developer environment, users pick the editor out of their tabs and dock by its icon. A configurable icon would let operators match the name they set.
Are there any workarounds to get this functionality today?
Only replacing the files under src/browser/media/ in the installed release. That relies on the package's internal layout and silently breaks when an upgrade renames or adds icon files.
Are you interested in submitting a PR for this?
Possibly. Guidance on whether a flag like this would be accepted, and its preferred name, would help.
- Ngôn ngữ chính
- TypeScript
- Star
- 79.9k
- Fork
- 6.9k
- Merge trung bình
- 20 giờ 21 phút
- Pull request đã merge (30 ngày)
- 51
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Có mẫu pull request
- Đọ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 coder/code-server
-
Error not trueĐang mở
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 45/100
coder/code-server#8148 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 15/100
coder/code-server#8142 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: --proxy-domain does not proxy when the host includes a portCó thể đã có người làm @adityajai119 đã nhận 10 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
coder/code-server#8128 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: /healthz with a query string triggers a heartbeatCó thể đã có người làm @adityajai119 đã nhận 10 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 25/100
coder/code-server#8126 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
enhancement
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 57/100
coder/code-server#8113 · 1 bình luận · 1 reaction ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của coder/code-server
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vercel-labs/ui#1066 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
fix(factory-cockpit): display active agent/actor name instead of verbose step name in run card badgeĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
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 68/100
ranxianglei/billion-context#7597 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation target:powerpoint
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 76/100
tomast1337/PdfLapas#602 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
kubernetes-ingestor: fetchCRDMapping() runs even when crossplane.enabled is false, logging a 403 ERROR every runCó thể đã có người làm @kc9ddi đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
TeraSky-OSS/backstage-plugins#228 ·