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';
|
2025-01-25 00:12:56 +01:00
|
|
|
import { GridLayout } from '@/modules/core/Core.types.ts';
|
2025-05-09 00:44:48 +02:00
|
|
|
import { getDefaultLanguages } from '@/modules/core/utils/Languages.ts';
|
2025-05-17 21:04:44 +02:00
|
|
|
import { ThemeMode } from '@/modules/theme/contexts/AppThemeContext.tsx';
|
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,
|
2024-12-30 03:49:39 +01:00
|
|
|
showContinueReadingButton: false,
|
|
|
|
|
showDownloadBadge: false,
|
|
|
|
|
showUnreadBadge: false,
|
2025-01-25 00:12:56 +01:00
|
|
|
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,
|
2025-05-09 00:44:48 +02:00
|
|
|
extensionLanguages: getDefaultLanguages(),
|
2025-06-23 02:30:29 +02:00
|
|
|
sourceLanguages: getDefaultLanguages(),
|
2025-04-21 19:18:42 +02:00
|
|
|
showNsfw: true,
|
2025-05-17 23:37:00 +02:00
|
|
|
lastUsedSourceId: null,
|
2025-05-18 00:59:01 +02:00
|
|
|
shouldShowOnlySourcesWithResults: 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
|
2025-05-17 21:04:44 +02:00
|
|
|
appTheme: 'default',
|
|
|
|
|
themeMode: ThemeMode.SYSTEM,
|
|
|
|
|
shouldUsePureBlackMode: false,
|
2024-10-05 22:53:22 +02:00
|
|
|
customThemes: {},
|
|
|
|
|
mangaThumbnailBackdrop: true,
|
2025-01-26 03:53:19 +01:00
|
|
|
mangaDynamicColorSchemes: true,
|
2025-05-17 21:04:44 +02:00
|
|
|
mangaGridItemWidth: 300,
|
2024-10-05 22:53:22 +02:00
|
|
|
};
|