Add an option to set the favicon and PWA icon, like --app-name
维护者通常 1 天内回复
还没有人认领这个 Issue。
评估
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 新手友好度
- 51/100
- Issue 类型
- 功能
- 描述清晰度
- 基本清楚
- 活跃度
- 活跃
- 技术栈
- typescript
调研方向
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.
由索引模型根据 Issue 内容生成。
描述
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.
- 主要语言
- TypeScript
- 星标
- 79.9k
- 派生
- 6.9k
- 平均合并
- 20 小时 21 分钟
- 30 天内合并 PR
- 51
环境准备
- 没有 Dockerfile 或 Docker Compose 文件
- 有 Pull Request 模板
- 阅读贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
coder/code-server 的其他 Issue
-
Error not true未关闭
难度 3/5 1-2 天 新手友好度 45/100
coder/code-server#8148 · 1 条评论 ·
维护者通常 1 天内回复
-
难度 4/5 3-5 天 新手友好度 15/100
coder/code-server#8142 · 1 条评论 ·
维护者通常 1 天内回复
-
[Bug]: --proxy-domain does not proxy when the host includes a port可能已有人在做 @adityajai119 于 10 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 35/100
coder/code-server#8128 · 1 条评论 ·
维护者通常 1 天内回复
-
[Bug]: /healthz with a query string triggers a heartbeat可能已有人在做 @adityajai119 于 10 天前认领。 未关闭
难度 2/5 1-3 小时 新手友好度 25/100
coder/code-server#8126 · 1 条评论 ·
维护者通常 1 天内回复
-
enhancement
难度 3/5 1-2 天 新手友好度 57/100
coder/code-server#8113 · 1 条评论 · 1 个 reaction ·
维护者通常 1 天内回复
查看 coder/code-server 的全部 Issue
相似的 Issue
-
难度 2/5 1-3 小时 新手友好度 78/100
vercel-labs/ui#1066 ·
维护者通常 1 天内回复
-
fix(factory-cockpit): display active agent/actor name instead of verbose step name in run card badge未关闭
难度 2/5 1-3 小时 新手友好度 72/100
维护者通常 1 天内回复
-
难度 2/5 1-3 小时 新手友好度 68/100
ranxianglei/billion-context#7597 ·
维护者通常 1 天内回复
-
documentation target:powerpoint
难度 1/5 1 小时以内 新手友好度 76/100
tomast1337/PdfLapas#602 ·
维护者通常 1 天内回复
-
kubernetes-ingestor: fetchCRDMapping() runs even when crossplane.enabled is false, logging a 403 ERROR every run可能已有人在做 @kc9ddi 今天认领。 未关闭
难度 2/5 1-3 小时 新手友好度 76/100
TeraSky-OSS/backstage-plugins#228 ·