feat: import jen některých dnů

feat: násobení jídel/cviků
feat: refaktor napojování šablon
This commit is contained in:
Ondřej Anděl committed 2026-09-30 19:10:54 +02:00
1 parent c3990d80f8
commit 8dac67bdd1
37 files changed
+2314 -481

No files matched your search

+18 -1
View File
@@ -1,4 +1,4 @@
import { ActivityUnit, MealType, Pohlavi } from "../../types";
import { ActivityUnit, ImportMode, MealTemplateKind, MealType, Pohlavi } from "../../types";
/** Lidsky čitelné názvy typů jídel. */
export const MEAL_TYPE_NAMES: Record<MealType, string> = {
@@ -117,3 +117,20 @@ export const TEMPLATE_TAB_NAMES: Record<TemplateTab, string> = {
TRENINKY: 'Tréninky',
JIDLA: 'Jídla',
};
/** Lidsky čitelné názvy druhů šablon jídel. */
export const MEAL_TEMPLATE_KIND_NAMES: Record<MealTemplateKind, string> = {
HOTOVE: 'Hotové jídlo',
RECEPT: 'Recept',
};
export const MEAL_TEMPLATE_KINDS_IN_ORDER: MealTemplateKind[] = [MealTemplateKind.HOTOVE, MealTemplateKind.RECEPT];
/** Názvy režimů importu. */
export const IMPORT_MODE_NAMES: Record<ImportMode, string> = {
PRIDAT: 'Přidat k tomu, co už mám',
NAHRADIT: 'Nahradit dřívější import',
};
/** Předvolby násobku porce nabízené v přehledu dne. */
export const MULTIPLIER_PRESETS = [0.5, 1, 1.5, 2, 3];