Navigation Constants
ITEMS_NAV_TOP
Top-level navigation items displayed in the main menu.string[]
Values:
"Productos"- Products page"Nosotros"- About us page"Contacto"- Contact page
Camera Field Constants
FIELDS_CARD
Standard fields displayed on camera product cards.string[]
Fields:
"diseño"- Camera design/form factor"resolucion"- Video resolution"conectividad"- Connectivity type"marca"- Brand name"tipo_de_camara"- Camera type/category
Data Service Configuration
API Endpoint
The application fetches camera data from a remote JSON endpoint:Data Limit
Camera data is limited to the first 100 items to optimize performance:String Utilities
Utility functions for string manipulation and URL generation.normalizeString
Remove accents and diacritical marks from a string.String to normalize
Normalized string without accents
hasWhiteSpace
Check if a string contains whitespace characters.String to check
True if the string contains whitespace, false otherwise
createSlug
Convert a string to URL-friendly slug format by replacing spaces with underscores.String to convert to slug
Slug with underscores instead of spaces
deleteSlug
Convert a slug back to a readable string by replacing underscores with spaces.Slug to convert back to string
String with spaces instead of underscores
capitalize
Capitalize the first letter of a string.String to capitalize
String with first letter capitalized
Filter URL Utilities
Functions for creating and managing filter URLs in the application routing system.urlFiltro
Generate a filter URL based on the current location and filter string.Filter string to convert to URL
React Router location object with pathname
URL-friendly filter string, with multiple filters joined by ’+’
filterArray
Convert a filter URL string into an array of readable filter values.Filter URL string with filters joined by ’+’
Array of filter strings with slugs removed
createUrlFilter
Create a new filter URL by removing a specific filter from an existing filter string.Current filter URL string
Filter value to remove
New filter URL with the specified filter removed
React Router Aliases
The application uses aliased React Router components for easier access:Related
- Filter Data - Camera filtering functions
- Installation - Project setup and dependencies