Add an option to set the favicon and PWA icon, like --app-name

Abierto
#8,145 1 comentario 0 reacciones 0 asignados Ver en GitHub

Los mantenedores suelen responder en 1 día

Nadie ha tomado este issue todavía.

Evaluación

Dificultad
4/5
Tiempo estimado
3-5 días
Aptitud para principiantes
51/100
Tipo de issue
Nueva funcionalidad
Claridad
Bastante claro
Estado de actividad
Activo
Stack tecnológico
typescript
Área
frontend, web-dev

Línea de trabajo

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.

Escrito por el modelo de indexación a partir del texto del issue.

Descripción

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.svg and favicon.ico)
  • the PWA icons referenced by manifest.json and the apple-touch-icon links (today pwa-icon-192.png and pwa-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.

Lenguaje dominante
TypeScript
Estrellas
79.9k
Forks
6.9k
Merge medio
20 h 21 min
PR fusionados (30 d)
51

Preparar el entorno

Primeros pasos

  1. Lee el issue completo y luego la guía de contribución del proyecto.
  2. Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
  3. Haz un fork del repositorio y trabaja en una rama.
  4. Abre un pull request que haga referencia al número del issue.

Más de coder/code-server

Todos los issues de coder/code-server

Issues similares

Más issues de TypeScript

Recibe los nuevos issues en tu correo

Un resumen breve de issues de GitHub para principiantes.