mirror of
https://github.com/ByteAtATime/raycast-linux.git
synced 2025-08-31 11:17:27 +00:00
feat(settings): Implement remaining preference types
This commit introduces support for all remaining preference types as specified in the API, including password, checkbox, appPicker, file, and directory. Eventually, we will probably have to somehow make the password preferences encrypted.
This commit is contained in:
parent
f2191cbdb4
commit
1bdb0f534e
4 changed files with 88 additions and 21 deletions
|
@ -121,7 +121,7 @@ export const PreferenceSchema = z.object({
|
|||
name: z.string(),
|
||||
title: z.string().optional(),
|
||||
description: z.string().optional(),
|
||||
type: z.enum(['textfield', 'dropdown', 'checkbox', 'directory']),
|
||||
type: z.enum(['textfield', 'password', 'checkbox', 'dropdown', 'appPicker', 'file', 'directory']),
|
||||
required: z.boolean().optional(),
|
||||
default: z.union([z.string(), z.boolean()]).optional(),
|
||||
data: z
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue