cobalt/web/src/lib/settings/defaults.ts
wukko ea8560e8a9
web/settings/defaults: toggle localProcessing depending on device
webkit is really weird with wasm ram management, so we disable local processing by default there. the user can still enable it manually in settings, but then we're not at fault by allowing potentially broken behavior by default
2025-04-21 23:06:25 +06:00

53 lines
1.4 KiB
TypeScript

import { device } from "$lib/device";
import { defaultLocale } from "$lib/i18n/translations";
import type { CobaltSettings } from "$lib/types/settings";
const defaultSettings: CobaltSettings = {
schemaVersion: 5,
advanced: {
debug: false,
useWebCodecs: false,
},
appearance: {
theme: "auto",
language: defaultLocale,
autoLanguage: true,
},
accessibility: {
reduceMotion: false,
reduceTransparency: false,
disableHaptics: false,
dontAutoOpenQueue: false,
},
save: {
alwaysProxy: false,
localProcessing: device.supports.defaultLocalProcessing || false,
audioBitrate: "128",
audioFormat: "mp3",
disableMetadata: false,
downloadMode: "auto",
filenameStyle: "classic",
savingMethod: "download",
allowH265: false,
tiktokFullAudio: false,
convertGif: true,
videoQuality: "1080",
youtubeVideoCodec: "h264",
youtubeDubLang: "original",
youtubeHLS: false,
youtubeBetterAudio: false,
},
privacy: {
disableAnalytics: false,
},
processing: {
customInstanceURL: "",
customApiKey: "",
enableCustomInstances: false,
enableCustomApiKey: false,
seenCustomWarning: false,
}
}
export default defaultSettings;