phase3-4 done
Some checks failed
Deploy to VPS / deploy (push) Has been cancelled

This commit is contained in:
Ali Taghavi
2026-04-24 11:28:48 +03:30
parent 95a546df11
commit f08d3b1fde
24 changed files with 1500 additions and 16 deletions

View File

@@ -89,6 +89,23 @@ export const siteSettingsQuery = groq`
}
`;
// ── Products ───────────────────────────────────────────────────────────────
export const allProductsQuery = groq`
*[_type == "product" && locale == $locale] | order(_createdAt desc) {
_id, title, slug, description, price, currency, productType, purchaseUrl, featured,
"coverImage": coverImage { asset->, alt }
}
`;
// ── Uses items ─────────────────────────────────────────────────────────────
export const allUsesItemsQuery = groq`
*[_type == "usesItem"] | order(category asc, title asc) {
_id, title, description, category, url, "image": image { asset-> }
}
`;
// ── RSS (all fa posts) ─────────────────────────────────────────────────────
export const rssPostsQuery = groq`