mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-03-01 19:20:10 +00:00
[Refactor] Extract command definitions to coreCommandHooks (#1785)
* [Refactor] Extract command definitions to coreCommandHooks * Register core commands * Fix rebase issue
This commit is contained in:
@@ -40,6 +40,8 @@ import { useModelStore } from '@/stores/modelStore'
|
||||
import { useServerConfigStore } from '@/stores/serverConfigStore'
|
||||
import { SERVER_CONFIG_ITEMS } from '@/constants/serverConfig'
|
||||
import { useMenuItemStore } from '@/stores/menuItemStore'
|
||||
import { useCommandStore } from '@/stores/commandStore'
|
||||
import { useCoreCommands } from '@/hooks/coreCommandHooks'
|
||||
|
||||
setupAutoQueueHandler()
|
||||
|
||||
@@ -105,6 +107,8 @@ watchEffect(() => {
|
||||
|
||||
const init = () => {
|
||||
settingStore.addSettings(app.ui.settings)
|
||||
const coreCommands = useCoreCommands()
|
||||
useCommandStore().registerCommands(coreCommands)
|
||||
useMenuItemStore().registerCoreMenuCommands()
|
||||
useKeybindingStore().loadCoreKeybindings()
|
||||
useSidebarTabStore().registerCoreSidebarTabs()
|
||||
|
||||
Reference in New Issue
Block a user