2024-03-29 16:54:53 +01: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/.
|
|
|
|
|
*/
|
|
|
|
|
|
2024-04-14 15:50:12 +02:00
|
|
|
import { SxProps, Theme } from '@mui/material/styles';
|
2025-05-30 22:55:57 +02:00
|
|
|
import { PublishingStatus, PublishingType } from '@/modules/tracker/Tracker.types.ts';
|
|
|
|
|
import { TranslationKey } from '@/Base.types.ts';
|
2024-03-29 16:54:53 +01:00
|
|
|
|
|
|
|
|
export const DIALOG_PADDING: number = 2;
|
|
|
|
|
|
2024-04-14 15:50:12 +02:00
|
|
|
export const CARD_BACKGROUND: SxProps<Theme> = {
|
2024-03-29 16:54:53 +01:00
|
|
|
backgroundColor: 'transparent',
|
|
|
|
|
boxShadow: 'unset',
|
|
|
|
|
backgroundImage: 'unset',
|
|
|
|
|
};
|
|
|
|
|
|
2024-04-14 15:50:12 +02:00
|
|
|
export const CARD_STYLING: SxProps<Theme> = {
|
2024-03-29 16:54:53 +01:00
|
|
|
padding: DIALOG_PADDING,
|
|
|
|
|
...CARD_BACKGROUND,
|
|
|
|
|
};
|
2025-05-30 22:55:57 +02:00
|
|
|
|
|
|
|
|
export const PUBLISHING_TYPE_TO_TRANSLATION: Record<PublishingType, TranslationKey> = {
|
|
|
|
|
[PublishingType.UNKNOWN]: 'tracking.publishing.type.unknown',
|
|
|
|
|
[PublishingType.MANGA]: 'tracking.publishing.type.manga',
|
|
|
|
|
[PublishingType.NOVEL]: 'tracking.publishing.type.novel',
|
|
|
|
|
[PublishingType.ONE_SHOT]: 'tracking.publishing.type.one_shot',
|
|
|
|
|
[PublishingType.DOUJINSHI]: 'tracking.publishing.type.doujinshi',
|
|
|
|
|
[PublishingType.MANHWA]: 'tracking.publishing.type.manhwa',
|
|
|
|
|
[PublishingType.MANHUA]: 'tracking.publishing.type.manhua',
|
|
|
|
|
[PublishingType.OEL]: 'tracking.publishing.type.oel',
|
|
|
|
|
};
|
|
|
|
|
|
|
|
|
|
export const PUBLISHING_STATUS_TO_TRANSLATION: Record<PublishingStatus, TranslationKey> = {
|
|
|
|
|
[PublishingStatus.FINISHED]: 'tracking.publishing.status.finished',
|
|
|
|
|
[PublishingStatus.RELEASING]: 'tracking.publishing.status.releasing',
|
|
|
|
|
[PublishingStatus.NOT_YET_RELEASED]: 'tracking.publishing.status.not_yet_released',
|
|
|
|
|
[PublishingStatus.CANCELLED]: 'tracking.publishing.status.cancelled',
|
|
|
|
|
[PublishingStatus.HIATUS]: 'tracking.publishing.status.hiatus',
|
|
|
|
|
[PublishingStatus.CURRENTLY_PUBLISHING]: 'tracking.publishing.status.currently_publishing',
|
|
|
|
|
[PublishingStatus.NOT_YET_PUBLISHED]: 'tracking.publishing.status.not_yet_published',
|
|
|
|
|
};
|
2025-05-30 22:58:36 +02:00
|
|
|
|
|
|
|
|
export const UNSET_DATE = '0';
|