Server changes

This commit is contained in:
2026-08-29 12:55:11 +00:00
parent faf7f7bc6f
commit 12bac58cb0
7 changed files with 7 additions and 5 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
PORT=3000
PORT=3010
NODE_ENV=development
Binary file not shown.
Binary file not shown.
+1 -1
View File
@@ -2,7 +2,7 @@
"name": "pantryhub",
"version": "1.0.0",
"description": "PantryHub - Realtime boodschappenapp",
"private": true,
"private": false,
"main": "app.js",
"scripts": {
"start": "node app.js",
+3 -1
View File
@@ -32,7 +32,9 @@ class ShoppingListRepository {
WHERE shopping_list_items.list_id = ?
AND products.household_id = ?
ORDER BY shopping_list_items.checked ASC,
shopping_list_items.sort_order ASC,
categories.name ASC,
products.name ASC,
shopping_list_items.sort_order ASC,
shopping_list_items.created_at ASC
`).all(listId, householdId);
}
BIN
View File
Binary file not shown.
+1 -1
View File
@@ -30,7 +30,7 @@
<strong<% if (item.checked) { %> style="text-decoration: line-through"<% } %>>
<%= item.product_name %>
</strong>
<% if (item.amount !== 1) { %><span class="badge bg-info"><%= item.amount %></span><% } %>
<% if (item.amount !== 1) { %><span class="badge bg-info text-white"><%= item.amount %></span><% } %>
<div class="small text-secondary"><%= item.category_icon || "" %> <%= item.category_name || "Geen categorie" %></div>
</div>
<form class="delete-item-form" method="post" action="/lists/<%= list.id %>/items/<%= item.id %>">