feat(webui): render Mermaid diagrams with Pele (#6302)

* feat(webui): render Mermaid diagrams with Pele

* fix(webui): reserve diagram replacement capacity

* fix(webui): prebundle lazy diagram worker dependencies

* fix(webui): account diagram capacity by encoded size

* fix(webui): use shared hover hints for diagram actions

* docs(webui): focus diagram guide on usage
This commit is contained in:
chengyongru authored and GitHub committed 2026-10-19 17:16:20 +08:00
1 parent 0f3b47bc3a
commit f57018aa7f
40 files changed
+2335 -1458

No files matched your search

+19
View File
@@ -2224,6 +2224,25 @@
"dismiss": "Descartar",
"continue": "Continuar"
},
"diagram": {
"graph": "Diagrama",
"source": "Código-fonte",
"copy": "Copiar código-fonte",
"enlarge": "Ampliar diagrama",
"title": "Diagrama Mermaid",
"preparing": "Preparando diagrama…",
"errors": {
"syntax": "Confira a sintaxe do diagrama no código-fonte.",
"unsupported": "Este tipo de diagrama não é compatível. Consulte o código-fonte.",
"policy": "O diagrama usa estilos ou recursos incompatíveis. Consulte o código-fonte.",
"limit": "O diagrama excede o limite de renderização. Consulte o código-fonte.",
"load": "Não foi possível carregar o renderizador. Tente novamente.",
"deadline": "A renderização demorou demais. Simplifique o código-fonte ou tente novamente.",
"worker": "Não foi possível gerar o diagrama. Tente novamente.",
"image": "Não foi possível exibir o diagrama. Tente novamente.",
"capability": "Este navegador não pode gerar diagramas. Consulte o código-fonte."
}
},
"lightbox": {
"viewAll": "Ver todas as {{count}} imagens",
"zoomIn": "Ampliar",