How codfisher/side-project-cod-toys works
Main Components
a. Electron Layer
• Main Process (from electron/main.ts)
• Preload Scripts (from electron/preload.ts)
• IPC Communication Channels
b. Frontend Application (Vue.js Based)
• Core Application Layer
• App Root (App.vue)
• Router System (implied by typed-router.d.ts)
• Store System (stores directory)
• i18n System (locales directory)
c. Feature Modules
• Google Card Feature
• Kaomoji Feature
• Configuration System
Architecture Patterns to Highlight
a. Component Organization
• Base Components (/components)
• Domain-specific Components (/domains)
• Pages (/pages)
• Composables (/composables)
b. State Management
• Pinia store architecture (stores directory)
• Data flow between stores and components
Layer Organization (Top to Bottom)
[Electron Main Process]
• ↕
[Preload Bridge]
• ↕
[Vue.js Application]
• ↙ ↓ ↘
[Features][Core Services][UI Components]
Important Elements
a. Core Services Layer:
• API Service (src/common/api.ts)
• i18n Service (src/locales)
• Configuration API (src/composables/use-config-api.ts)
• Main API (src/composables/use-main-api.ts)
b. Feature Modules:
• Google Card Feature
• Kaomoji Feature with its configuration
c. Cross-Cutting Concerns:
• Type System (src/types)
• Utilities (src/common)
• Style System (src/style)