2024-09-30 04:01:23 +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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2025-08-15 22:02:58 +02:00
|
|
|
import { SortBy, SortOrder } from '@/features/migration/Migration.types.ts';
|
2024-10-05 16:09:34 +02:00
|
|
|
|
2025-08-16 02:48:46 +02:00
|
|
|
import { TranslationKey } from '@/base/Base.types.ts';
|
2024-09-30 04:01:23 +02:00
|
|
|
|
|
|
|
|
export const sortByToTranslationKey: Record<SortBy, TranslationKey> = {
|
|
|
|
|
[SortBy.SOURCE_NAME]: 'migrate.sort.by_source_name',
|
|
|
|
|
[SortBy.MANGA_COUNT]: 'migrate.sort.by_manga_count',
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const sortOrderToTranslationKey: Record<SortBy, TranslationKey> = {
|
|
|
|
|
[SortOrder.ASC]: 'global.sort.label.asc',
|
|
|
|
|
[SortOrder.DESC]: 'global.sort.label.desc',
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const DEFAULT_SORT_SETTINGS = {
|
|
|
|
|
sortBy: SortBy.SOURCE_NAME,
|
|
|
|
|
sortOrder: SortOrder.ASC,
|
|
|
|
|
};
|