Files
suwayomi-material-you-webui/src/modules/settings/Settings.constants.ts

63 lines
1.8 KiB
TypeScript
Raw Normal View History

2024-10-05 22:53:22 +02:00
/*
* Copyright (C) Contributors to the Suwayomi project
*
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at https://mozilla.org/MPL/2.0/.
*/
import { DEFAULT_DEVICE } from '@/modules/device/services/Device.ts';
import { DEFAULT_SORT_SETTINGS } from '@/modules/migration/Migration.constants.ts';
import { MetadataServerSettings } from '@/modules/settings/Settings.types.ts';
import { GridLayout } from '@/modules/core/Core.types.ts';
import { extensionDefaultLanguages } from '@/modules/core/utils/Languages.ts';
2024-10-05 22:53:22 +02:00
export const SERVER_SETTINGS_METADATA_DEFAULT: MetadataServerSettings = {
// downloads
deleteChaptersManuallyMarkedRead: false,
deleteChaptersWhileReading: 0,
deleteChaptersWithBookmark: false,
downloadAheadLimit: 0,
// library
showAddToLibraryCategorySelectDialog: true,
ignoreFilters: false,
removeMangaFromCategories: false,
showTabSize: false,
showContinueReadingButton: false,
showDownloadBadge: false,
showUnreadBadge: false,
gridLayout: GridLayout.Compact,
2024-10-05 22:53:22 +02:00
// client
devices: [DEFAULT_DEVICE],
// migration
migrateChapters: true,
migrateCategories: true,
migrateTracking: true,
deleteChapters: true,
migrateSortSettings: DEFAULT_SORT_SETTINGS,
// browse
hideLibraryEntries: false,
extensionLanguages: extensionDefaultLanguages(),
2025-04-21 19:18:42 +02:00
showNsfw: true,
2024-10-05 22:53:22 +02:00
2025-03-22 01:16:38 +01:00
// history
hideHistory: false,
2024-10-05 22:53:22 +02:00
// tracking
updateProgressAfterReading: true,
updateProgressManualMarkRead: false,
// updates
webUIInformAvailableUpdate: true,
serverInformAvailableUpdate: true,
// themes
customThemes: {},
mangaThumbnailBackdrop: true,
mangaDynamicColorSchemes: true,
2024-10-05 22:53:22 +02:00
};