web: implement settings core

this was a torture
This commit is contained in:
wukko
2024-06-19 21:12:51 +06:00
parent 21e03a407c
commit 009a2cc863
6 changed files with 139 additions and 2 deletions

View File

@@ -0,0 +1,35 @@
import type { CobaltSettings } from "$lib/types/settings";
const defaultSettings: CobaltSettings = {
schemaVersion: 1,
accessibility: {
reduceAnimations: false,
reduceTransparency: false
},
appearance: {
theme: "auto"
},
general: {
customProcessingEndpoint: "",
seenOnboarding: false,
seenSafetyWarning: false
},
save: {
audioFormat: "mp3",
disableMetadata: false,
downloadMode: "auto",
downloadPopup: true,
filenameStyle: "classic",
tiktokH265: false,
tiktokFullAudio: false,
twitterGif: false,
videoQuality: "720",
youtubeVideoCodec: "h264",
youtubeDubBrowserLang: false
},
privacy: {
trafficAnalytics: true
}
}
export default defaultSettings;