refactor: split app into modular src architecture
Some checks failed
Luggage List Build / release (push) Has been cancelled
Luggage List Build / build-android (push) Has been cancelled
Luggage List Build / build-web (push) Has been cancelled

This commit is contained in:
2026-04-18 12:56:12 +02:00
parent 3323d09dda
commit bdea52b7c6
17 changed files with 1493 additions and 1343 deletions

20
src/constants.js Normal file
View File

@@ -0,0 +1,20 @@
export const STORAGE_KEY = 'luggage-list:v2';
export const TAB_BAR_HEIGHT = 72;
export const ITEM_STATUSES = ['packed', 'unpacked', 'lost', 'left-behind', 'lent-to'];
export const ITEM_PLACEMENTS = ['suitcase', 'backpack', 'with-user', 'other'];
export const STATUS_COLORS = {
packed: '#22c55e',
unpacked: '#64748b',
lost: '#ef4444',
'left-behind': '#f59e0b',
'lent-to': '#8b5cf6',
};
export const emptyData = {
trips: [],
itemsByTrip: {},
checkupsByTrip: {},
defaultTemplateTripId: null,
};