add security and dependency injection#28
Merged
Merged
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This pull request introduces several improvements to the project generation workflow and template system, focusing on dynamic theming, dependency management, and animation support. The most significant changes include enabling conditional rendering and imports based on user-selected design themes, introducing an animation provider component for "Glassmorphism" designs, and improving dependency resolution during project generation. Additionally, environment variable validation and database connection handling have been added to the portfolio template.
Template theming and conditional logic:
eqhelper insrc/generate.jsto enable conditional logic in templates, allowing for dynamic imports and UI changes based on the selected design theme.layout.tsxfiles in both ecommerce and portfolio templates to conditionally import and render theme-specific elements, such as theTerminalicon for the "Dark Terminal" design. [1] [2] [3] [4] [5]Animation and UI enhancements:
AnimationProvidercomponent in both ecommerce and portfolio templates. For the "Glassmorphism" theme, this wraps children with aframer-motionanimation; for other themes, it renders children directly. The provider is now used in main layout files to enhance page transitions. [1] [2] [3]Project generation and dependency management:
src/generate.jsby adding a step to resolve and inject dynamic dependencies based on user choices before runningnpm install. Also, template rendering now supports.mjsfiles. [1] [2] [3]Environment and database setup (portfolio template):
env.mjsto ensure correctness and safety of sensitive configuration.lib/db.tsutility to manage and validate the database connection string using the new environment validation.Closes #15