How scriptim/bash-prompt-generator works
Main Components
a. Frontend Architecture (Primary Focus)
• Vue.js Components Layer
• Business Logic Layer (lib directory)
• User Interface Layer
• State Management
Component Organization
A. Core Components (Top Level):
App.vue
• SiteHeader.vue
Element Selection Module
• ElementSelection.vue
• Base Components (EmptyState.vue, PromptElement.vue)
Prompt Editor Module
• PromptElements.vue
• AddedPromptElement.vue
• DeleteElementIcon.vue
Properties Module
• ElementProperties.vue
• ColorPicker.vue
• IconButton.vue
Output Module
• PromptPreview.vue
• PS1Variable.vue
• prompt.ts
• promptElement.ts
• promptElementProperties.ts
• promptParser.ts
Flow Representation
Main data flow:
Key Architectural Patterns to Highlight
• Component-based architecture
• Modular design with clear separation of concerns
• Service layer pattern for business logic
• Presentation layer pattern for UI components
Additional Elements
• Component types
• Special symbols