# comnori/vite-template-awesome-soho architecture

> Architecture diagram of the GitHub repository comnori/vite-template-awesome-soho, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2025-01-18). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/comnori/vite-template-awesome-soho
- Repository: https://github.com/comnori/vite-template-awesome-soho

## Overview

##### Core Features
- Theme Management (antdSlice)
- Internationalization (i18n)
- Authentication (LoginForm)
- Error Handling (RootErrorBoundary)

##### Component Architecture (using Atomic Design)
- Molecules (e.g., LanguageSwitch)
- Organisms (Common components)
- Templates (Layout components)

##### Pages Structure
- Homepage
- Admin Dashboard
- Settings
- Login

c) Infrastructure Layer (Bottom Level)
- Vite Build System
- Configuration Management (.env files)
- Development Tools (ESLint, Prettier, etc.)

##### Component Relationships

- Double lines: Context providers

##### Technical Stack Indicators

- Vite
- React
- Redux
- Ant Design
- i18next
- SASS Modules

- UI Components
- Business Logic
- Configuration
- Development Tools

Important Notes for Implementation:
##### Build/deployment flow in a separate connected section

Keep the abstraction level high enough to be understandable but detailed enough to show the template's key features and architecture decisions. Focus on showing how the atomic design pattern is implemented and how the various features (theming, i18n, routing) interact with each other.

Remember to highlight the development environment integration features (devcontainer, IDE support) in a separate section, as they're a key feature of this template.

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "Application Layer"
        App["App.jsx"]
        Router["Router Configuration"]
        
        subgraph "Layouts"
            BasicLayout["Basic Layout"]
            MinimalLayout["Minimal Layout"]
            ExactlyCenter["Exactly Center"]
        end
    end

    subgraph "Core Features"
        ThemeManagement["Theme Management"]
        ThemeSwitch["Theme Switch"]
        I18N["Internationalization"]
        I18NResources["Language Resources"]
        Auth["Authentication"]
        ErrorHandling["Error Boundary"]
    end

    subgraph "Component Architecture"
        subgraph "Molecules"
            LangSwitch["Language Switch"]
        end

        subgraph "Organisms"
            LoginForm["Login Form"]
            ErrorBoundary["Root Error Boundary"]
        end

        subgraph "Templates"
            LayoutComponents["Layout Components"]
        end
    end

    subgraph "Pages"
        Homepage["Homepage"]
        AdminDash["Admin Dashboard"]
        Settings["Settings Management"]
        Login["Login Page"]
    end

    subgraph "Context System"
        LoggerContext["Logger Context"]
        LoggerProvider["Logger Provider"]
    end

    subgraph "Configuration"
        MenuConfig["Menu Configuration"]
        StoreConfig["Store Configuration"]
        ThemeConfig["Theme Configuration"]
    end

    subgraph "Infrastructure"
        ViteConfig["Vite Configuration"]
        EnvFiles["Environment Files"]
        DevContainer["Development Container"]
    end

    %% Relationships
    App --> Router
    Router --> |routes to| Homepage
    Router --> |routes to| AdminDash
    Router --> |routes to| Settings
    Router --> |routes to| Login

    App --> BasicLayout
    App --> MinimalLayout
    App --> ExactlyCenter

    ThemeManagement --> ThemeSwitch
    I18N --> I18NResources
    Auth --> LoginForm
    ErrorHandling --> ErrorBoundary

    LoggerContext --> LoggerProvider
    
    %% Style Classes
    classDef core fill:#2196F3,color:white
    classDef feature fill:#4CAF50,color:white
    classDef config fill:#FF9800,color:white
    classDef infra fill:#9C27B0,color:white

    class App,Router,BasicLayout,MinimalLayout,ExactlyCenter core
    class ThemeManagement,ThemeSwitch,I18N,Auth,ErrorHandling feature
    class MenuConfig,StoreConfig,ThemeConfig config
    class ViteConfig,EnvFiles,DevContainer infra

    %% Click Events
    click App "https://github.com/comnori/vite-template-awesome-soho/blob/main/src/App.jsx"
    click Router "https://github.com/comnori/vite-template-awesome-soho/blob/main/src/config/Router.jsx"
    click BasicLayout "https://github.com/comnori/vite-template-awesome-soho/blob/main/src/components/templates/BasicLayout/BasicLayout.jsx"
    click MinimalLayout "https://github.com/comnori/vite-template-awesome-soho/blob/main/src/components/templates/MinimalLayout/MinimalLayout.jsx"
    click ExactlyCenter "https://github.com/comnori/vite-template-awesome-soho/blob/main/src/components/templates/ExactlyCenter/ExactlyCenter.jsx"
    click ThemeManagement "https://github.com/comnori/vite-template-awesome-soho/blob/main/src/features/antd/antdSlice.jsx"
    click ThemeSwitch "https://github.com/comnori/vite-template-awesome-soho/blob/main/src/features/antd/ThemeChangeSwitch/ThemeChangeSwitch.jsx"
    click I18N "https://github.com/comnori/vite-template-awesome-soho/blob/main/src/lib/i18nextConfig.jsx"
    click I18NResources "https://github.com/comnori/vite-template-awesome-soho/tree/main/src/config/i18n"
    click LoginForm "https://github.com/comnori/vite-template-awesome-soho/blob/main/src/components/organisms/Common/LoginForm/LoginForm.jsx"
    click ErrorBoundary "https://github.com/comnori/vite-template-awesome-soho/blob/main/src/components/organisms/Common/RootErrorBoundary/RootErrorBoundary.jsx"
    click Homepage "https://github.com/comnori/vite-template-awesome-soho/blob/main/src/pages/Homepage/Homepage.jsx"
    click AdminDash "https://github.com/comnori/vite-template-awesome-soho/blob/main/src/pages/admin/Dashboard/Dashboard.jsx"
    click Settings "https://github.com/comnori/vite-template-awesome-soho/blob/main/src/pages/admin/Settings/MenuManagement/MenuManagement.jsx"
    click Login "https://github.com/comnori/vite-template-awesome-soho/blob/main/src/pages/Login/Login.jsx"
    click LoggerContext "https://github.com/comnori/vite-template-awesome-soho/blob/main/src/context/Logger/LoggerContext.jsx"
    click LoggerProvider "https://github.com/comnori/vite-template-awesome-soho/blob/main/src/context/Logger/components/LoggerProvier.jsx"
    click MenuConfig "https://github.com/comnori/vite-template-awesome-soho/blob/main/src/config/MenuItems.jsx"
    click StoreConfig "https://github.com/comnori/vite-template-awesome-soho/blob/main/src/lib/storeConfig.jsx"
    click ThemeConfig "https://github.com/comnori/vite-template-awesome-soho/blob/main/src/lib/themeConfig.jsx"
    click ViteConfig "https://github.com/comnori/vite-template-awesome-soho/blob/main/vite.config.ts"
    click DevContainer "https://github.com/comnori/vite-template-awesome-soho/blob/main/.devcontainer/devcontainer.json"
```
