[Electron] ComfyUI server config (Launch args config) (#1644)

* Remove electron adapter server args

* Add server args typing

* Add server config constant file

* Tooltip to name; name to id

* Capitalize category

* Server config store

* Prevent default value

* Add serverconfig test

* Guard server config panel with electron flag

* Filter nullish values from server args

* Use slider for preview size
This commit is contained in:
Chenlei Hu
2024-11-22 13:50:24 -08:00
committed by GitHub
parent 3920210c5c
commit 4007cc13c2
9 changed files with 846 additions and 9 deletions

View File

@@ -31,14 +31,6 @@ import { electronAPI as getElectronAPI, isElectron } from '@/utils/envUtil'
type: 'boolean',
defaultValue: true,
onChange: onChangeRestartApp
},
{
id: 'Comfy-Desktop.ComfyServer.ExtraLaunchArgs',
category: ['Comfy-Desktop', 'ComfyUI Server'],
name: 'Extra launch arguments passed to the ComfyUI main.py script',
type: 'text',
defaultValue: '',
onChange: onChangeRestartApp
}
],