From 8b9f0ddd1dbadde1aaa6d55d03567bc23b62ac9d Mon Sep 17 00:00:00 2001 From: bymyself Date: Mon, 20 Jan 2025 14:06:31 -0700 Subject: [PATCH] Add Comfy Forum (forum.comfy.org) to Help menu (#2305) Co-authored-by: github-actions --- src/constants/coreMenuCommands.ts | 3 ++- src/hooks/coreCommandHooks.ts | 10 ++++++++++ src/locales/en/commands.json | 3 +++ src/locales/en/main.json | 1 + src/locales/fr/commands.json | 3 +++ src/locales/fr/main.json | 1 + src/locales/ja/commands.json | 3 +++ src/locales/ja/main.json | 1 + src/locales/ko/commands.json | 3 +++ src/locales/ko/main.json | 1 + src/locales/ru/commands.json | 3 +++ src/locales/ru/main.json | 1 + src/locales/zh/commands.json | 3 +++ src/locales/zh/main.json | 1 + 14 files changed, 36 insertions(+), 1 deletion(-) diff --git a/src/constants/coreMenuCommands.ts b/src/constants/coreMenuCommands.ts index da1097d2e..dbe36f3ef 100644 --- a/src/constants/coreMenuCommands.ts +++ b/src/constants/coreMenuCommands.ts @@ -19,7 +19,8 @@ export const CORE_MENU_COMMANDS = [ [ 'Comfy.Help.OpenComfyUIIssues', 'Comfy.Help.OpenComfyUIDocs', - 'Comfy.Help.OpenComfyOrgDiscord' + 'Comfy.Help.OpenComfyOrgDiscord', + 'Comfy.Help.OpenComfyUIForum' ] ], [['Help'], ['Comfy.Help.AboutComfyUI', 'Comfy.Feedback']] diff --git a/src/hooks/coreCommandHooks.ts b/src/hooks/coreCommandHooks.ts index b662ccebd..945cbcf2c 100644 --- a/src/hooks/coreCommandHooks.ts +++ b/src/hooks/coreCommandHooks.ts @@ -555,6 +555,16 @@ export function useCoreCommands(): ComfyCommand[] { } }) } + }, + { + id: 'Comfy.Help.OpenComfyUIForum', + icon: 'pi pi-comments', + label: 'Open ComfyUI Forum', + menubarLabel: 'ComfyUI Forum', + versionAdded: '1.8.2', + function: () => { + window.open('https://forum.comfy.org/', '_blank') + } } ] } diff --git a/src/locales/en/commands.json b/src/locales/en/commands.json index dd4132dfb..c7b6a536e 100644 --- a/src/locales/en/commands.json +++ b/src/locales/en/commands.json @@ -110,6 +110,9 @@ "Comfy_Help_OpenComfyUIDocs": { "label": "Open ComfyUI Docs" }, + "Comfy_Help_OpenComfyUIForum": { + "label": "Open Comfy-Org Forum" + }, "Comfy_Help_OpenComfyUIIssues": { "label": "Open ComfyUI Issues" }, diff --git a/src/locales/en/main.json b/src/locales/en/main.json index ee82558ad..02837079c 100644 --- a/src/locales/en/main.json +++ b/src/locales/en/main.json @@ -392,6 +392,7 @@ "About ComfyUI": "About ComfyUI", "Comfy-Org Discord": "Comfy-Org Discord", "ComfyUI Docs": "ComfyUI Docs", + "Comfy-Org Forum": "Comfy-Org Forum", "ComfyUI Issues": "ComfyUI Issues", "Interrupt": "Interrupt", "Load Default Workflow": "Load Default Workflow", diff --git a/src/locales/fr/commands.json b/src/locales/fr/commands.json index 78b227a8e..d721b1520 100644 --- a/src/locales/fr/commands.json +++ b/src/locales/fr/commands.json @@ -110,6 +110,9 @@ "Comfy_Help_OpenComfyUIDocs": { "label": "Ouvrir les documents ComfyUI" }, + "Comfy_Help_OpenComfyUIForum": { + "label": "Ouvrir le forum Comfy-Org" + }, "Comfy_Help_OpenComfyUIIssues": { "label": "Ouvrir les problèmes ComfyUI" }, diff --git a/src/locales/fr/main.json b/src/locales/fr/main.json index e28350af1..b75f0f7c6 100644 --- a/src/locales/fr/main.json +++ b/src/locales/fr/main.json @@ -292,6 +292,7 @@ "Close Current Workflow": "Fermer le flux de travail actuel", "Collapse/Expand Selected Nodes": "Réduire/Étendre les nœuds sélectionnés", "Comfy-Org Discord": "Discord de Comfy-Org", + "Comfy-Org Forum": "Forum Comfy-Org", "ComfyUI Docs": "Docs de ComfyUI", "ComfyUI Issues": "Problèmes de ComfyUI", "Convert selected nodes to group node": "Convertir les nœuds sélectionnés en nœud de groupe", diff --git a/src/locales/ja/commands.json b/src/locales/ja/commands.json index 13414cbac..dc51551db 100644 --- a/src/locales/ja/commands.json +++ b/src/locales/ja/commands.json @@ -110,6 +110,9 @@ "Comfy_Help_OpenComfyUIDocs": { "label": "ComfyUIのドキュメントを開く" }, + "Comfy_Help_OpenComfyUIForum": { + "label": "Comfy-Orgフォーラムを開く" + }, "Comfy_Help_OpenComfyUIIssues": { "label": "ComfyUIの問題を開く" }, diff --git a/src/locales/ja/main.json b/src/locales/ja/main.json index 06867e573..13df772c2 100644 --- a/src/locales/ja/main.json +++ b/src/locales/ja/main.json @@ -292,6 +292,7 @@ "Close Current Workflow": "現在のワークフローを閉じる", "Collapse/Expand Selected Nodes": "選択したノードの折りたたみ/展開", "Comfy-Org Discord": "Comfy-Org Discord", + "Comfy-Org Forum": "Comfy-Org フォーラム", "ComfyUI Docs": "ComfyUIのドキュメント", "ComfyUI Issues": "ComfyUIの問題", "Convert selected nodes to group node": "選択したノードをグループノードに変換", diff --git a/src/locales/ko/commands.json b/src/locales/ko/commands.json index 93c213af1..5781e6992 100644 --- a/src/locales/ko/commands.json +++ b/src/locales/ko/commands.json @@ -110,6 +110,9 @@ "Comfy_Help_OpenComfyUIDocs": { "label": "ComfyUI 문서 열기" }, + "Comfy_Help_OpenComfyUIForum": { + "label": "Comfy-Org 포럼 열기" + }, "Comfy_Help_OpenComfyUIIssues": { "label": "ComfyUI 문제 열기" }, diff --git a/src/locales/ko/main.json b/src/locales/ko/main.json index 7b2070d4c..7273c6e06 100644 --- a/src/locales/ko/main.json +++ b/src/locales/ko/main.json @@ -292,6 +292,7 @@ "Close Current Workflow": "현재 워크플로 닫기", "Collapse/Expand Selected Nodes": "선택한 노드 축소/확장", "Comfy-Org Discord": "Comfy-Org 디스코드", + "Comfy-Org Forum": "Comfy-Org 포럼", "ComfyUI Docs": "ComfyUI 문서", "ComfyUI Issues": "ComfyUI 이슈 페이지", "Convert selected nodes to group node": "선택한 노드를 그룹 노드로 변환", diff --git a/src/locales/ru/commands.json b/src/locales/ru/commands.json index fff924f35..a614c24e5 100644 --- a/src/locales/ru/commands.json +++ b/src/locales/ru/commands.json @@ -110,6 +110,9 @@ "Comfy_Help_OpenComfyUIDocs": { "label": "Открыть документацию ComfyUI" }, + "Comfy_Help_OpenComfyUIForum": { + "label": "Открыть форум Comfy-Org" + }, "Comfy_Help_OpenComfyUIIssues": { "label": "Открыть ComfyUI Issues" }, diff --git a/src/locales/ru/main.json b/src/locales/ru/main.json index 75855db2e..003146877 100644 --- a/src/locales/ru/main.json +++ b/src/locales/ru/main.json @@ -292,6 +292,7 @@ "Close Current Workflow": "Закрыть текущий рабочий процесс", "Collapse/Expand Selected Nodes": "Свернуть/развернуть выбранные ноды", "Comfy-Org Discord": "Discord Comfy-Org", + "Comfy-Org Forum": "Форум Comfy-Org", "ComfyUI Docs": "Документация ComfyUI", "ComfyUI Issues": "Проблемы ComfyUI", "Convert selected nodes to group node": "Преобразовать выбранные ноды в групповую ноду", diff --git a/src/locales/zh/commands.json b/src/locales/zh/commands.json index 810fb0b5a..f4afdbab0 100644 --- a/src/locales/zh/commands.json +++ b/src/locales/zh/commands.json @@ -110,6 +110,9 @@ "Comfy_Help_OpenComfyUIDocs": { "label": "打开ComfyUI文档" }, + "Comfy_Help_OpenComfyUIForum": { + "label": "打开 Comfy-Org 论坛" + }, "Comfy_Help_OpenComfyUIIssues": { "label": "打开ComfyUI问题" }, diff --git a/src/locales/zh/main.json b/src/locales/zh/main.json index 19f390716..c7816adac 100644 --- a/src/locales/zh/main.json +++ b/src/locales/zh/main.json @@ -292,6 +292,7 @@ "Close Current Workflow": "关闭当前工作流", "Collapse/Expand Selected Nodes": "折叠/展开选定节点", "Comfy-Org Discord": "Comfy-Org Discord", + "Comfy-Org Forum": "Comfy-Org 论坛", "ComfyUI Docs": "ComfyUI 文档", "ComfyUI Issues": "ComfyUI 问题", "Convert selected nodes to group node": "将选中节点转换为组节点",