1
0
Fork 0
mirror of https://github.com/wukko/cobalt.git synced 2025-03-29 21:01:37 +01:00
cobalt/web/src/lib/settings/defaults.ts

44 lines
1 KiB
TypeScript
Raw Normal View History

import { browser } from "$app/environment";
import { defaultLocale } from "$lib/i18n/translations";
import type { CobaltSettings } from "$lib/types/settings";
const defaultSettings: CobaltSettings = {
schemaVersion: 1,
advanced: {
debug: false,
},
appearance: {
theme: "auto",
language: defaultLocale,
autoLanguage: true,
reduceMotion: false,
reduceTransparency: false,
},
save: {
audioFormat: "mp3",
disableMetadata: false,
downloadMode: "auto",
downloadPopup: true,
filenameStyle: "classic",
tiktokH265: false,
tiktokFullAudio: false,
twitterGif: false,
videoQuality: "720",
youtubeVideoCodec: "h264",
youtubeDubBrowserLang: false,
},
}
const defaultSettingsPage = () => {
if (browser) {
if (window.innerWidth <= 750) {
return "/settings";
}
}
return "/settings/general/appearance";
}
export default defaultSettings;
2024-07-10 23:50:50 +06:00
export { defaultSettingsPage };