feat: dynamic UI texts system + admin panel editor + Vazirmatn local font + bug fixes

- Add getText() system for all homepage sections (Header, Hero, FeaturedProducts, SmartAdvisor, VetGallery, Footer)
- Add UITexts admin page in frontend/admin-panel with search, group collapse, per-key save
- Add seed-ui-texts.ts with 102 texts in 9 groups
- Add local VazirmatnVariable.woff2 font, remove CDN + Inter references
- Fix hero image path, productService return type { data, meta }
- Fix ArchivePage pagination + CATEGORIES list + breadcrumbs
- Fix BlogPage/Wiki page links + brightness-0 invert removal
- Fix IngredientWiki search + product links + placeholder
- Fix all getProducts() callers for { data } destructuring
- Fix sitemap.ts, CartDrawer, B2BPortal, CheckoutPage type issues
- Add .gitignore for /fonts/ and /backend/uploads/
This commit is contained in:
parsa aghaei committed 2026-07-11 17:19:55 +03:30
1 parent ab7ed279c8
commit 1a0c98a34e
26 files changed
+653 -132

No files matched your search

@@ -38,7 +38,7 @@ export default function CartDrawer({ isOpen, onClose, onCheckout, onShopNavigate
useEffect(() => {
if (!hasLachsOl && hasCanhydrox) {
productService.getProducts().then(prods => {
productService.getProducts({ limit: 999 }).then(({ data: prods }) => {
const found = prods.find(p => p.id === 'lachs-ol' || p.artNo === 'lachs-ol');
setSuggestedProduct(found || null);
});