mirror of
				https://github.com/ItzCrazyKns/Perplexica.git
				synced 2025-10-30 19:08:15 +00:00 
			
		
		
		
	feat(config): add new switch config field
This commit is contained in:
		| @@ -38,11 +38,17 @@ type TextareaUIConfigField = BaseUIConfigField & { | |||||||
|   default?: string; |   default?: string; | ||||||
| }; | }; | ||||||
|  |  | ||||||
|  | type SwitchUIConfigField = BaseUIConfigField & { | ||||||
|  |   type: 'switch'; | ||||||
|  |   default?: boolean; | ||||||
|  | }; | ||||||
|  |  | ||||||
| type UIConfigField = | type UIConfigField = | ||||||
|   | StringUIConfigField |   | StringUIConfigField | ||||||
|   | SelectUIConfigField |   | SelectUIConfigField | ||||||
|   | PasswordUIConfigField |   | PasswordUIConfigField | ||||||
|   | TextareaUIConfigField; |   | TextareaUIConfigField | ||||||
|  |   | SwitchUIConfigField; | ||||||
|  |  | ||||||
| type ConfigModelProvider = { | type ConfigModelProvider = { | ||||||
|   id: string; |   id: string; | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user