mirror of
https://github.com/imputnet/cobalt.git
synced 2025-06-28 09:28:29 +00:00
44 lines
1.0 KiB
TypeScript
44 lines
1.0 KiB
TypeScript
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;
|
|
export { defaultSettingsPage };
|