You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
feat: Implement dynamic theming based on COMPANY_NAME environment variable
- Added support for dynamic theming in the store front application.
- Introduced COMPANY_NAME and PRODUCT_SERVICE_URL environment variables.
- Updated Dockerfile to substitute environment variables in nginx config and HTML.
- Created a new useTheme composable to manage theme application and initialization.
- Defined themes for Contoso and Zava in a new themes configuration file.
- Updated TopNav component to use dynamic logo based on the selected theme.
- Modified styles to utilize CSS custom properties for theming.
- Enhanced ShoppingCartView with theme-aware styles.
- Added runtime configuration endpoint in Vite for fetching company name.
- Updated README with usage instructions for dynamic theming.
description:"Watch your feline friend embark on a fishing adventure with Contoso Catnip's Friend toy. Packed with irresistible catnip and dangling fish lure.".to_string(),
10
+
description:format!("Watch your feline friend embark on a fishing adventure with {} Catnip's Friend toy. Packed with irresistible catnip and dangling fish lure.", settings.company_name),
description:"Watch your cat go crazy for Contoso Claw's Crabby Cat Toy. This crinkly and catnip-filled toy will awaken their hunting instincts and provide endless entertainment.".to_string(),
66
+
description:format!("Watch your cat go crazy for {} Claw's Crabby Cat Toy. This crinkly and catnip-filled toy will awaken their hunting instincts and provide endless entertainment.", settings.company_name),
echo ' sed -i "s/<title>Pet Store Admin Portal<\/title>/<title>Zava Pet Store Admin Portal<\/title>/g" /usr/share/nginx/html/index.html' >> /docker-entrypoint.d/30-substitute-env.sh && \
echo ' sed -i "s/<title>Pet Store Admin Portal<\/title>/<title>Contoso Pet Store Admin Portal<\/title>/g" /usr/share/nginx/html/index.html' >> /docker-entrypoint.d/30-substitute-env.sh && \
0 commit comments