How dc989/svecicezaauto works
This repository is a bilingual Serbian/Russian auto-ignition-parts catalog storefront. A visitor browses categories or searches by part number, opens a product page, and can check vehicle compatibility and contact the seller about price or availability. Product loading, category filtering, and search-index generation are visible in the sampled utility; page-to-component wiring and several page behaviors are inferred from the tree, so those links are shown as unverified. The README is an untouched Astro starter and does not document product capabilities.
Main entry points: BaseLayout.astro Base layout · products.ts Product queries · pages Route handlers · CategoryPage.astro Category listings
Components 15
Catalog storefront
- Home page
src/components/pages/HomePage.astro - Category listings
src/components/pages/CategoryPage.astro - Search results
src/components/pages/SearchPage.astro - Product details
src/components/pages/ProductPage.astro - Route handlers
src/pages - Search index API
src/pages/search-index.json.ts
Product data
- Product queries
src/utils/products.ts - Product catalog
src/data/products.json - Search index
Localization
- UI translations
src/i18n/ui.ts - Locale helpers
src/i18n/utils.ts
Shared presentation
- Base layout
src/layouts/BaseLayout.astro - Site header
src/components/Header.astro - Site footer
src/components/Footer.astro
Other components
- Visitor
Connections 20
- Visitor → Route handlers: opens pages
- Route handlers → Home page: renders
- Route handlers → Category listings: renders
- Route handlers → Search results: renders
- Route handlers → Product details: renders
- Visitor → Search index API: requests index
- Search index API → Product queries: generates index
src/pages/search-index.json.ts - Product queries → Product catalog: reads catalog
src/utils/products.ts - Product queries → Search index: returns records
src/utils/products.ts - Product queries → Category listings: provides category data
- Product queries → Product details: provides product data
- Product queries → Search results: provides search data
- Base layout → Site header: renders
- Base layout → Site footer: renders
- Locale helpers → UI translations: uses translations
src/i18n/utils.ts - Base layout → Locale helpers: resolves locale
- Home page → Base layout: uses layout
- Category listings → Base layout: uses layout
- Search results → Base layout: uses layout
- Product details → Base layout: uses layout