feat: añade renderGraphosLink al menú (nuevo módulo 0.7.6)
El módulo /graphos (mapa interactivo de la red) tenía: - ruta registrada en backend (línea 2016) - graphosMod en config-manager (default "on") - traducciones (i18n.graphos en 11 idiomas) - CSS específico ya copiado PERO faltaba el item en el menú lateral, así que aunque la ruta existía no había forma de llegar desde la UI. Cambios: - Nueva función renderGraphosLink() siguiendo el patrón de renderMapsLink/renderChatsLink - Llamada justo después de renderChatsLink en el grupo nav No reorganizo nada: el menú actual permanece intacto, solo se añade un item NUEVO (Graphos) en el grupo que ya existía. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
parent
eb73e87a54
commit
60cbfa9aa5
1 changed files with 16 additions and 0 deletions
|
|
@ -406,6 +406,21 @@ const renderChatsLink = () => {
|
|||
return "";
|
||||
};
|
||||
|
||||
const renderGraphosLink = () => {
|
||||
const graphosMod = getConfig().modules.graphosMod === "on";
|
||||
if (graphosMod) {
|
||||
return [
|
||||
navLink({
|
||||
href: "/graphos",
|
||||
emoji: "ꔯ",
|
||||
text: i18n.graphos || "Graphos",
|
||||
class: "graphos-link enabled"
|
||||
})
|
||||
];
|
||||
}
|
||||
return "";
|
||||
};
|
||||
|
||||
const renderVideosLink = () => {
|
||||
const videosMod = getConfig().modules.videosMod === "on";
|
||||
if (videosMod) {
|
||||
|
|
@ -1036,6 +1051,7 @@ const template = (titlePrefix, ...elements) => {
|
|||
renderForumLink(),
|
||||
renderMapsLink(),
|
||||
renderChatsLink(),
|
||||
renderGraphosLink(),
|
||||
renderInvitesLink(),
|
||||
navLink({
|
||||
href: "/peers",
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue