# ljhhhhhh/vue-pure-admin architecture

> Architecture diagram of the GitHub repository ljhhhhhh/vue-pure-admin, 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/vue-pure-admin
- Repository: https://github.com/ljhhhhhh/vue-pure-admin

## Overview

##### Main System Components

a) Frontend Architecture (Core):
- Vue 3 Application Layer
- Layout System
- Router System
- State Management (Store)
- Component Library
- Authentication System

b) Supporting Systems:
- Build System
- Asset Management
- API Integration
- Theme System
- Plugin System

##### Component Relationships

**[Build System] → [Vue Application Core]**
- ↓
**[Layout System] ← [Core Components] → [Store/State Management]**
- ↓               ↓                        ↓
**[Views/Pages] ← [Router System] →  [Authentication System]**
- ↓
**[Component Library] → [Theme System]**

##### Specific Implementation Details

Key elements:

a) Core Features:
- Authentication flow
- Permission system
- Route management
- Theme management
- Multi-frame support
- Component system

b) Technical Stack Indicators:
- Vue 3
- Element Plus
- Vite
- TypeScript
- Tailwind CSS

**┌─ Build & Configuration Layer ─┐**
- (Vite, TypeScript, Tailwind) │
- Core Layer ───────┤
- Vue 3 + Element Plus       │
- Application Layer ────┤
- Layout | Router | Store     │
- Feature Layer ───────┤
- Auth | Permissions | Theme  │
- ┘

##### Important Relationships to Highlight

- Authentication flow from login to protected routes
- Demonstrate the permission system's integration with components
- Theme system's impact on the UI
- Relationship between the router and layout system

## Diagram (Mermaid)

```mermaid
flowchart TB
    subgraph Build
        BS[Build System]
        TS[TypeScript]
        Vite[Vite]
        TW[Tailwind CSS]
    end

    subgraph Core
        VA[Vue Application]
        EP[Element Plus]
        PL[Plugin System]
    end

    subgraph Application
        LS[Layout System]
        RS[Router System]
        SM[State Management]
        AS[Authentication System]
        PS[Permission System]
        TS_SYS[Theme System]
        MF[Multi-frame Support]
    end

    subgraph Features
        CL[Component Library]
        AM[Asset Management]
        API[API Integration]
        UI[UI Components]
        LC[Layout Components]
    end

    %% Build Layer Relationships
    BS --> VA
    TS --> VA
    Vite --> VA
    TW --> VA

    %% Core Layer Relationships
    VA --> LS
    VA --> RS
    VA --> SM
    EP --> CL
    PL --> VA

    %% Application Layer Relationships
    LS --> CL
    RS --> AS
    RS --> PS
    SM --> AS
    TS_SYS --> CL
    MF --> LS

    %% Feature Layer Relationships
    CL --> UI
    CL --> LC
    API --> AS
    API --> PS

    %% Styling
    classDef build fill:#f4f4f4,stroke:#666
    classDef core fill:#dbeafe,stroke:#2563eb
    classDef app fill:#fef3c7,stroke:#d97706
    classDef feature fill:#dcfce7,stroke:#16a34a

    class BS,TS,Vite,TW build
    class VA,EP,PL core
    class LS,RS,SM,AS,PS,TS_SYS,MF app
    class CL,AM,API,UI,LC feature

    %% Click Events
    click VA "https://github.com/Ljhhhhhh/vue-pure-admin/blob/main/src/App.vue"
    click LS "https://github.com/Ljhhhhhh/vue-pure-admin/tree/main/src/layout/"
    click RS "https://github.com/Ljhhhhhh/vue-pure-admin/tree/main/src/router/"
    click SM "https://github.com/Ljhhhhhh/vue-pure-admin/tree/main/src/store/"
    click CL "https://github.com/Ljhhhhhh/vue-pure-admin/tree/main/src/components/"
    click AS "https://github.com/Ljhhhhhh/vue-pure-admin/blob/main/src/utils/auth.ts"
    click TS_SYS "https://github.com/Ljhhhhhh/vue-pure-admin/tree/main/src/layout/theme/"
    click BS "https://github.com/Ljhhhhhh/vue-pure-admin/tree/main/build/"
    click AM "https://github.com/Ljhhhhhh/vue-pure-admin/tree/main/src/assets/"
    click API "https://github.com/Ljhhhhhh/vue-pure-admin/tree/main/src/api/"
    click PS "https://github.com/Ljhhhhhh/vue-pure-admin/tree/main/src/views/permission/"
    click PL "https://github.com/Ljhhhhhh/vue-pure-admin/tree/main/src/plugins/"
    click MF "https://github.com/Ljhhhhhh/vue-pure-admin/blob/main/src/layout/hooks/useMultiFrame.ts"
    click UI "https://github.com/Ljhhhhhh/vue-pure-admin/tree/main/src/components/ReDialog/"
    click LC "https://github.com/Ljhhhhhh/vue-pure-admin/tree/main/src/layout/components/lay-navbar/"
```
