[Refactor] Extract top menu bar command definitions (#1778)

This commit is contained in:
Chenlei Hu
2024-12-03 17:17:15 -08:00
committed by GitHub
parent 0fe0aea242
commit 9cbcda20a7
4 changed files with 65 additions and 43 deletions

View File

@@ -511,6 +511,36 @@ export const useCommandStore = defineStore('command', () => {
}
}
}
},
{
id: 'Comfy.Help.OpenComfyUIIssues',
icon: 'pi pi-github',
label: 'ComfyUI Issues',
versionAdded: '1.5.5',
function: () => {
window.open(
'https://github.com/comfyanonymous/ComfyUI/issues',
'_blank'
)
}
},
{
id: 'Comfy.Help.OpenComfyUIDocs',
icon: 'pi pi-info-circle',
label: 'ComfyUI Docs',
versionAdded: '1.5.5',
function: () => {
window.open('https://docs.comfy.org/', '_blank')
}
},
{
id: 'Comfy.Help.OpenComfyOrgDiscord',
icon: 'pi pi-discord',
label: 'Comfy-Org Discord',
versionAdded: '1.5.5',
function: () => {
window.open('https://www.comfy.org/discord', '_blank')
}
}
]