From e41a6fee1414756fdad5e2702f3635cc8189fc12 Mon Sep 17 00:00:00 2001 From: Victor Ilyushchenko Date: Mon, 9 Dec 2024 09:45:56 +0300 Subject: [PATCH 1/5] suppress mermaidjs errors (#7388) Signed-off-by: Victor Ilyushchenko --- .../text-editor-resources/src/components/extension/mermaid.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/plugins/text-editor-resources/src/components/extension/mermaid.ts b/plugins/text-editor-resources/src/components/extension/mermaid.ts index b655166e04..a93486492f 100644 --- a/plugins/text-editor-resources/src/components/extension/mermaid.ts +++ b/plugins/text-editor-resources/src/components/extension/mermaid.ts @@ -329,7 +329,8 @@ async function renderMermaidDiagram (code: string, theme: MermaidConfig['theme'] securityLevel: 'loose', fontFamily: 'var(--font-family)', logLevel: 5, - theme + theme, + suppressErrorRendering: true }) const id = `mermaid-diagram-${Math.random().toString(36).substring(2, 9)}` From b7c0701b5f4b348227a5be9a6018ddc8eed19bd5 Mon Sep 17 00:00:00 2001 From: Dakshesh Jain <65905942+dakshesh14@users.noreply.github.com> Date: Mon, 9 Dec 2024 12:16:12 +0530 Subject: [PATCH 2/5] fix(github integration): handle request failed gracefully with option to close tab (#7387) Signed-off-by: Dakshesh Jain --- services/github/github-assets/lang/en.json | 2 ++ services/github/github-assets/lang/pt.json | 2 ++ services/github/github-assets/lang/ru.json | 2 ++ services/github/github-assets/lang/sp.json | 2 ++ .../src/components/ConnectApp.svelte | 13 ++++++++++++- services/github/github-resources/src/plugin.ts | 2 ++ 6 files changed, 22 insertions(+), 1 deletion(-) diff --git a/services/github/github-assets/lang/en.json b/services/github/github-assets/lang/en.json index 8b57fcbf27..3ca4e656fc 100644 --- a/services/github/github-assets/lang/en.json +++ b/services/github/github-assets/lang/en.json @@ -72,6 +72,8 @@ "AuthenticatedWithGithubRequired": "Please authorize Github application to act on behind you to perform actions", "Processing": "Processing authentication/installation", "AutoClose": "Processing complete, Tab will be auto-closed in {time} seconds.", + "RequestFailed": "Request failed. Please close the tab and try again.", + "CloseTab": "Close Tab", "PleaseRetry": "Please retry authentication", "Updated": "Updated", "LinkToProject": "Connect to {title}", diff --git a/services/github/github-assets/lang/pt.json b/services/github/github-assets/lang/pt.json index cf23c737a5..ce5646cb18 100644 --- a/services/github/github-assets/lang/pt.json +++ b/services/github/github-assets/lang/pt.json @@ -72,6 +72,8 @@ "AuthenticatedWithGithubRequired": "Por favor, autorize a aplicação do Github a agir em seu nome para realizar ações", "Processing": "Processando autenticação/instalação", "AutoClose": "Processamento concluído, a guia será fechada automaticamente em {time} segundos.", + "RequestFailed": "Solicitação falhou. Por favor, feche a aba e tente novamente.", + "CloseTab": "Fechar aba", "PleaseRetry": "Por favor, tente novamente a autenticação", "Updated": "Atualizado", "LinkToProject": "Conectar ao {title}", diff --git a/services/github/github-assets/lang/ru.json b/services/github/github-assets/lang/ru.json index 5b2f990dc0..4cf09f2d7c 100644 --- a/services/github/github-assets/lang/ru.json +++ b/services/github/github-assets/lang/ru.json @@ -72,6 +72,8 @@ "AuthenticatedWithGithubRequired": "Пожалуйста авторизуйте Github приложение для действий от вашего имени", "Processing": "Происходит авторизация/установка", "AutoClose": "Процесс завершен, Вкладка будет автоматически закрыта через {time} секунд.", + "RequestFailed": "Запрос не выполнен. Пожалуйста, закройте вкладку и попробуйте снова.", + "CloseTab": "Закрыть вкладку", "PleaseRetry": "Пожалуйста повторите авторизацию", "Updated": "Обновлено", "LinkToProject": "Подключить к {title}", diff --git a/services/github/github-assets/lang/sp.json b/services/github/github-assets/lang/sp.json index d94ecdf1b9..5b6e36484d 100644 --- a/services/github/github-assets/lang/sp.json +++ b/services/github/github-assets/lang/sp.json @@ -72,6 +72,8 @@ "AuthenticatedWithGithubRequired": "Por favor, autoriza la aplicación de Github para actuar en tu nombre y realizar acciones", "Processing": "Procesando autenticación/instalación", "AutoClose": "Procesamiento completo, la pestaña se cerrará automáticamente en {time} segundos.", + "RequestFailed": "Solicitud fallida. Por favor, cierre la pestaña e intente nuevamente.", + "CloseTab": "Cerrar pestaña", "PleaseRetry": "Por favor, vuelve a intentar la autenticación", "Updated": "Actualizado", "LinkToProject": "Conectar a {title}", diff --git a/services/github/github-resources/src/components/ConnectApp.svelte b/services/github/github-resources/src/components/ConnectApp.svelte index 01f3b2408b..f9058c1bf1 100644 --- a/services/github/github-resources/src/components/ConnectApp.svelte +++ b/services/github/github-resources/src/components/ConnectApp.svelte @@ -5,7 +5,7 @@ -->