# ljhhhhhh/lowcode-view architecture

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

- Interactive diagram: https://gitdiagram.com/ljhhhhhh/lowcode-view
- Repository: https://github.com/ljhhhhhh/lowcode-view

## Overview

##### Main System Components

a. Frontend Core (Vue 3 Application)
- Editor Module
- Preview Module
- Project Management Module
- Component Library
- Store Management (Pinia)

b. Component System
- Charts Components (ECharts-based)
- Decorative Components
- Information Components
- Table Components

c. Data Management Layer
- Data Source Management
- Data Processing
- Data Filtering
- API Integration

##### Architecture Layers

**┌─ Presentation Layer ─────────────────────────┐**
- Vue Components                             │
- NaiveUI Components                         │
- Custom Components                          │
- Business Logic Layer ──────────────────────┤
- Chart Configuration                        │
- Layout Management                          │
- Event Handling                             │
- Theme Management                           │
- Data Management Layer ────────────────────┤
- Data Source Connectors                     │
- Data Transform                             │
- State Management (Pinia)                   │
- ┘

##### Key Interactions

- User Interface → Chart Editor
- Chart Editor → Component Library
- Component Library → Data Management
- Data Management → External APIs
- Theme System → All Visual Components

##### Component Architecture

Detail the component hierarchy:

**Components**
- Charts (ECharts-based)
- Bars
- Lines
- Pies
- Maps
- Decoratives
- Borders
- Backgrounds
- Animations
- Informational
- Text
- Images
- Videos
- Tables
- Static
- Dynamic

##### Data Flow

**Data Source → Data Processing → Component Rendering → User Interface**

## Diagram (Mermaid)

```mermaid
graph TB
    subgraph "Presentation Layer"
        UI[User Interface]
        NaiveUI[NaiveUI Components]
        CustomComp[Custom Components]
    end

    subgraph "Business Logic Layer"
        ChartConfig["Chart Configuration"]:::config
        LayoutMgmt["Layout Management"]:::layout
        EventHandle["Event Handling"]:::event
        ThemeMgmt["Theme Management"]:::theme
    end

    subgraph "Data Management Layer"
        DataSrc["Data Source Connectors"]:::data
        DataTrans["Data Transform"]:::data
        StoreMgmt["Store Management (Pinia)"]:::store
    end

    subgraph "Component System"
        direction TB
        subgraph "Core Components"
            Editor["Editor Module"]:::editor
            Preview["Preview Module"]:::preview
            ProjectMgmt["Project Management"]:::project
        end

        subgraph "Component Library"
            direction TB
            Charts["Charts Components"]:::charts
            Decorative["Decorative Components"]:::decorative
            Info["Information Components"]:::info
            Tables["Table Components"]:::tables
            Icons["Icon Components"]:::icons
        end
    end

    subgraph "Integration Layer"
        API["API Integration"]:::api
    end

    %% Relationships
    UI --> Editor
    UI --> Preview
    UI --> ProjectMgmt
    Editor --> ComponentLibrary
    Preview --> ComponentLibrary
    ComponentLibrary --> DataSrc
    DataSrc --> API
    ThemeMgmt --> UI
    StoreMgmt --> DataTrans
    DataTrans --> ComponentLibrary
    EventHandle --> UI

    %% Styling
    classDef editor fill:#2196F3,color:#fff
    classDef preview fill:#2196F3,color:#fff
    classDef project fill:#2196F3,color:#fff
    classDef charts fill:#4CAF50,color:#fff
    classDef decorative fill:#4CAF50,color:#fff
    classDef info fill:#4CAF50,color:#fff
    classDef tables fill:#4CAF50,color:#fff
    classDef icons fill:#4CAF50,color:#fff
    classDef data fill:#FF9800,color:#fff
    classDef store fill:#FF9800,color:#fff
    classDef api fill:#9C27B0,color:#fff
    classDef config fill:#607D8B,color:#fff
    classDef layout fill:#607D8B,color:#fff
    classDef event fill:#607D8B,color:#fff
    classDef theme fill:#607D8B,color:#fff

    %% Click Events
    click Editor "https://github.com/Ljhhhhhh/lowcode-view/tree/master/src/views/chart/ContentEdit"
    click Preview "https://github.com/Ljhhhhhh/lowcode-view/tree/master/src/views/preview"
    click ProjectMgmt "https://github.com/Ljhhhhhh/lowcode-view/tree/master/src/views/project"
    click StoreMgmt "https://github.com/Ljhhhhhh/lowcode-view/tree/master/src/store/modules"
    click Charts "https://github.com/Ljhhhhhh/lowcode-view/tree/master/src/packages/components/Charts"
    click Decorative "https://github.com/Ljhhhhhh/lowcode-view/tree/master/src/packages/components/Decorates"
    click Info "https://github.com/Ljhhhhhh/lowcode-view/tree/master/src/packages/components/Informations"
    click Tables "https://github.com/Ljhhhhhh/lowcode-view/tree/master/src/packages/components/Tables"
    click Icons "https://github.com/Ljhhhhhh/lowcode-view/tree/master/src/packages/components/Icons"
    click DataSrc "https://github.com/Ljhhhhhh/lowcode-view/tree/master/src/views/chart/ContentConfigurations/components/ChartData"
    click API "https://github.com/Ljhhhhhh/lowcode-view/tree/master/src/api"
    click ThemeMgmt "https://github.com/Ljhhhhhh/lowcode-view/tree/master/src/settings/chartThemes"
    click LayoutMgmt "https://github.com/Ljhhhhhh/lowcode-view/tree/master/src/layout"
    click ChartConfig "https://github.com/Ljhhhhhh/lowcode-view/tree/master/src/packages/chartConfiguration"
    click EventHandle "https://github.com/Ljhhhhhh/lowcode-view/tree/master/src/views/chart/ContentConfigurations/components/ChartEvent"
```
