Merge branch 'ulsklyc:main' into main

This commit is contained in:
Rafael Foster
2026-04-29 15:30:32 -03:00
committed by GitHub
28 changed files with 460 additions and 85 deletions
+2
View File
@@ -10,6 +10,7 @@ import { stagger } from '/utils/ux.js';
import { t, formatDate, dateInputPlaceholder, formatDateInput, parseDateInput, isDateInputValid } from '/i18n.js';
import { esc } from '/utils/html.js';
import { DEFAULT_CATEGORY_NAME, categoryLabel } from '/utils/shopping-categories.js';
import { renderKitchenTabsBar } from '/utils/kitchen-tabs.js';
// --------------------------------------------------------
// Konstanten
@@ -163,6 +164,7 @@ export async function render(container, { user }) {
`;
if (window.lucide) lucide.createIcons();
renderKitchenTabsBar(container, '/meals');
const today = new Date().toISOString().slice(0, 10);
const monday = getMondayOf(today);
+2
View File
@@ -7,6 +7,7 @@ import { api } from '/api.js';
import { t } from '/i18n.js';
import { openModal as openSharedModal, closeModal as closeSharedModal } from '/components/modal.js';
import { DEFAULT_CATEGORY_NAME, categoryLabel } from '/utils/shopping-categories.js';
import { renderKitchenTabsBar } from '/utils/kitchen-tabs.js';
let _container = null;
@@ -70,6 +71,7 @@ export async function render(container) {
page.append(header, list, fab);
container.replaceChildren(page);
renderKitchenTabsBar(container, '/recipes');
if (window.lucide) window.lucide.createIcons();
+2 -1
View File
@@ -10,6 +10,7 @@ import { t } from '/i18n.js';
import { esc } from '/utils/html.js';
import { promptModal } from '/components/modal.js';
import { DEFAULT_CATEGORY_NAME, categoryLabel } from '/utils/shopping-categories.js';
import { renderKitchenTabsBar } from '/utils/kitchen-tabs.js';
// --------------------------------------------------------
// Konstanten
@@ -839,7 +840,6 @@ export async function render(container, { user }) {
</div>
</div>
`;
try {
await Promise.all([loadCategories(), loadLists()]);
if (state.lists.length) {
@@ -862,6 +862,7 @@ export async function render(container, { user }) {
</div>
`;
renderKitchenTabsBar(container, '/shopping');
renderTabs(container);
wireTabBar(container);
renderListContent(container);