feat: add the ability to configure query params encoding for requests (#4412)

Co-authored-by: nivedin <nivedinp@gmail.com>
Co-authored-by: jamesgeorge007 <25279263+jamesgeorge007@users.noreply.github.com>
This commit is contained in:
Pranay Pandey
2024-10-23 18:44:21 +05:30
committed by GitHub
parent 0e00eeb950
commit cf0978bce0
11 changed files with 193 additions and 114 deletions

View File

@@ -26,6 +26,8 @@ const ThemeColorSchema = z.enum([
const BgColorSchema = z.enum(["system", "light", "dark", "black"])
const EncodeMode = z.enum(["enable", "disable", "auto"])
const SettingsDefSchema = z.object({
syncCollections: z.boolean(),
syncHistory: z.boolean(),
@@ -41,6 +43,7 @@ const SettingsDefSchema = z.object({
}),
THEME_COLOR: ThemeColorSchema,
BG_COLOR: BgColorSchema,
ENCODE_MODE: EncodeMode.catch("enable"),
TELEMETRY_ENABLED: z.boolean(),
EXPAND_NAVIGATION: z.boolean(),
SIDEBAR: z.boolean(),