Add products
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import { INGREDIENTS, RECIPES } from '../data/catalog.js?v=6';
|
||||
import { INGREDIENTS, RECIPES } from '../data/catalog.js?v=8';
|
||||
import { MEAL_SLOTS } from '../planner/mealSlots.js';
|
||||
import {
|
||||
addMonths,
|
||||
@@ -15,7 +15,7 @@ import {
|
||||
countDayShortfalls,
|
||||
dayHasAnyMeal,
|
||||
sumDayNutrition,
|
||||
} from '../services/planIngredients.js?v=3';
|
||||
} from '../services/planIngredients.js?v=4';
|
||||
import { addOrMergeShoppingLines, loadPantry } from '../services/pantryShopping.js?v=2';
|
||||
import {
|
||||
dateKey,
|
||||
@@ -88,24 +88,22 @@ export function getMealPlannerHTML() {
|
||||
<div class="h-full flex flex-col" style="background:#2d2e2b !important; background-image:none !important; box-shadow:none !important;">
|
||||
<p class="text-[10px] font-bold text-gray-400 uppercase tracking-wider mb-2">Wartości odżywcze</p>
|
||||
<div class="flex-1 flex items-center">
|
||||
<div class="w-full rounded-xl border px-3 py-2.5" style="background:#2f2f2d !important; border-color:#444442 !important; box-shadow:0 2px 8px rgba(0,0,0,0.25);">
|
||||
<div class="grid grid-cols-4 gap-3 text-left">
|
||||
<div class="min-w-0">
|
||||
<span id="planner-nutrition-kcal" class="block text-[15px] font-semibold text-[#ddd6ca] tabular-nums leading-none">—</span>
|
||||
<span class="text-[9px] text-gray-500">kcal</span>
|
||||
</div>
|
||||
<div class="min-w-0">
|
||||
<span id="planner-nutrition-p" class="block text-[15px] font-semibold text-[#ddd6ca] tabular-nums leading-none">—</span>
|
||||
<span class="text-[9px] text-gray-500">Białko</span>
|
||||
</div>
|
||||
<div class="min-w-0">
|
||||
<span id="planner-nutrition-c" class="block text-[15px] font-semibold text-[#ddd6ca] tabular-nums leading-none">—</span>
|
||||
<span class="text-[9px] text-gray-500">Węgle</span>
|
||||
</div>
|
||||
<div class="min-w-0">
|
||||
<span id="planner-nutrition-f" class="block text-[15px] font-semibold text-[#ddd6ca] tabular-nums leading-none">—</span>
|
||||
<span class="text-[9px] text-gray-500">Tłuszcze</span>
|
||||
</div>
|
||||
<div class="grid grid-cols-4 gap-1.5 w-full">
|
||||
<div class="rounded-xl px-2 py-1.5 text-center" style="background:#393937;">
|
||||
<p id="planner-nutrition-kcal" class="text-[15px] font-bold text-gray-100 tabular-nums leading-tight">—</p>
|
||||
<p class="text-[9px] text-gray-500 font-medium">kcal</p>
|
||||
</div>
|
||||
<div class="rounded-xl px-2 py-1.5 text-center" style="background:#393937;">
|
||||
<p id="planner-nutrition-p" class="text-[15px] font-bold text-blue-400 tabular-nums leading-tight">—</p>
|
||||
<p class="text-[9px] text-gray-500 font-medium">białko</p>
|
||||
</div>
|
||||
<div class="rounded-xl px-2 py-1.5 text-center" style="background:#393937;">
|
||||
<p id="planner-nutrition-f" class="text-[15px] font-bold text-amber-400 tabular-nums leading-tight">—</p>
|
||||
<p class="text-[9px] text-gray-500 font-medium">tłuszcz</p>
|
||||
</div>
|
||||
<div class="rounded-xl px-2 py-1.5 text-center" style="background:#393937;">
|
||||
<p id="planner-nutrition-c" class="text-[15px] font-bold text-orange-400 tabular-nums leading-tight">—</p>
|
||||
<p class="text-[9px] text-gray-500 font-medium">węgl.</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
@@ -332,9 +330,7 @@ function renderDayContent(state) {
|
||||
const setGrams = (id, value) => {
|
||||
const el = document.getElementById(id);
|
||||
if (!el) return;
|
||||
el.innerHTML = value === null
|
||||
? '—'
|
||||
: `${value}<span class="ml-0.5 text-[12px] font-medium text-[#9b978f]">g</span>`;
|
||||
el.textContent = value === null ? '—' : `${value}g`;
|
||||
};
|
||||
|
||||
const hasMeals = totals.mealCount > 0;
|
||||
|
||||
Reference in New Issue
Block a user