fix: add frontend/src/lib/ to git (was ignored by /lib/ pattern)
Some checks failed
Deploy to Homelab / Deploy Wordly to 192.168.1.151 (push) Has been cancelled
Deploy to Homelab / Deploy Monitoring (if configured) (push) Has been cancelled

The root .gitignore had `lib/` which matched frontend/src/lib/,
causing Docker build to fail with "Module not found: Can't resolve
'@/lib/utils'" and '@/lib/i18n'.

Changed to `/lib/` so it only ignores the Python lib at repo root.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
2026-05-10 15:17:22 +02:00
parent 98d82414bb
commit 05c5dfcbbb
10 changed files with 9115 additions and 2 deletions

View File

@@ -0,0 +1,6 @@
export const ANNUAL_DISCOUNT_PERCENT = 20;
export const YEARLY_DISCOUNT_FACTOR = (100 - ANNUAL_DISCOUNT_PERCENT) / 100;
export function computeYearlyFromMonthly(monthly: number): number {
return Number((monthly * 12 * YEARLY_DISCOUNT_FACTOR).toFixed(2));
}